* configure.ac: On alpha-osf, error out if enable_tui is set to
[external/binutils.git] / gdb / ChangeLog
1 2008-10-02  Joel Brobecker  <brobecker@adacore.com>
2
3         * configure.ac: On alpha-osf, error out if enable_tui is set to
4         "yes", and set enable_tui to "no" if previously set to "auto".
5         Check for waddstr only if TUI support was requested. Move the
6         part of the configure script that updates various Makefile
7         variables up, together with the check for waddstr.
8         * configure: Regenerate.
9
10 2008-10-22  Joel brobecker  <brobecker@adacore.com>
11
12         * gdbtypes.c (copy_type): New function.
13         * gdbtypes.h (copy_type): Add declaration.
14         * ada-lang.c (ada_to_fixed_type_1): If there is a parallel XVZ
15         variable, then use it.
16
17 2008-10-22  Joel Brobecker  <brobecker@adacore.com>
18
19         * target.h (struct target_ops): Add new field to_get_ada_task_ptid.
20         (target_get_ada_task_ptid): New macro.
21         * target.c (default_get_ada_task_ptid): New function.
22         (update_current_target): Inherit field default_get_ada_task_ptid.
23         (update_current_target): Make default_get_ada_task_ptid the default
24         value for field to_get_ada_task_ptid.
25         * ada-lang.h (struct task_control_block): Delete. Never used.
26         (struct task_ptid, task_ptid_t, struct task_entry, task_list):
27         Likewise.
28         (struct ada_task_info): New.
29         (ada_task_is_alive, ada_find_printable_frame)
30         (ada_task_list_iterator_ftype, iterate_over_live_ada_tasks): Add
31         declarations.
32         (ada_build_task_list): Update prototype.
33         (init_task_list, ada_is_exception_breakpoint): Remove prototypes.
34         * ada-lang.c (ada_find_printable_frame): Make non-static.
35         * ada-tasks.c: New file.
36         * Makefile.in (SFILES): Add ada-tasks.c.
37         (COMMON_OBS): Add ada-tasks.o.
38         * linux-thread-db.c (thread_db_find_thread_from_tid)
39         (thread_db_get_ada_task_ptid): New functions.
40         (init_thread_db_ops): Set thread_db_ops.to_get_ada_task_ptid.
41
42 2008-10-22  Tom Tromey  <tromey@redhat.com>
43
44         PR gdb/2506:
45         * c-exp.y (string_exp): New production.
46         (exp): Use it.
47
48 2008-10-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
49
50         * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): Update TYPE_FIELD_STATIC
51         removed before.
52
53 2008-10-20  Joel Brobecker  <brobecker@adacore.com>
54
55         * NEWS: Add entry mentioning thread-support on Tru64
56
57 2008-10-19  Joel Brobecker  <brobecker@adacore.com>
58
59         * dec-thread.c: New file.
60         * config/alpha/alpha-osf3.mh (NATDEPFILES): Add dec-thread.o.
61         (NAT_CLIBS): Define.
62
63 2008-10-19  Hui Zhu  <teawater@gmail.com>
64
65         * infrun.c (handle_inferior_event): Set "stop_pc" when
66         TARGET_WAITKIND_NO_HISTORY.
67
68 2008-10-19  Pedro Alves  <pedro@codesourcery.com>
69
70         * python/python-value.c (value_object_methods)
71         (value_object_as_number, value_object_as_mapping): Move to bottom
72         of file.
73         (valpy_dealloc, valpy_new, valpy_length, valpy_getitem)
74         (valpy_setitem, valpy_str, valpy_add, valpy_subtract)
75         (valpy_multiply, valpy_divide, valpy_remainder, valpy_power)
76         (valpy_negative, valpy_positive, valpy_absolute, valpy_nonzero)
77         (valpy_richcompare, valpy_dereference): Don't forward-declare.
78         (valpy_length) [HAVE_LIBPYTHON2_4]: Change return type to `int'.
79
80 2008-10-18  Pedro Alves  <pedro@codesourcery.com>
81
82         * infrun.c (adjust_pc_after_break): Do nothing if executing in
83         reverse.
84
85 2008-10-17  Pedro Alves  <pedro@codesourcery.com>
86
87         * infcmd.c (GO_USAGE): Delete.
88         (go_command): Adjust.
89
90 2008-10-17  Michael Snyder  <msnyder@vmware.com>
91         Target interface for reverse debugging.
92         * target.h (enum target_waitkind): 
93         Add new wait event, TARGET_WAITKIND_NO_HISTORY.
94         (struct target_ops): New method to_can_execute_reverse.
95         (target_can_execute_reverse): New macro.
96         * target.c (update_current_target): Inherit to_can_execute_reverse.
97
98         Remote interface for reverse debugging.
99         * remote.c (remote_can_execute_reverse): New target method.
100         (remote_resume): Check for reverse exec direction, and send 
101         appropriate command to target.
102         (remote_wait_as): Check target response for NO_HISTORY status.
103         Also check for empty reply (target doesn't understand "bs" or "bc).
104         (remote_vcont_resume): Jump out if attempting reverse execution.
105
106         Event handling interface for reverse debugging.
107         * infrun.c (execution_direction): New state variable.
108         (enum inferior_stop_reason): Add NO_HISTORY reason.
109         (handle_inferior_event): Handle TARGET_WAITKIND_NO_HISTORY.
110         Handle stepping over a function call in reverse.
111         Handle stepping thru a line range in reverse.
112         Handle setting a step-resume breakpoint in reverse.
113         Handle stepping into a function in reverse.
114         Handle stepping between line ranges in reverse.
115         (print_stop_reason): Print reason for NO_HISTORY.
116         (step_into_function): Rename to handle_step_into_function.
117         (handle_step_into_function_backward): New function.
118         (set_exec_direction_func, show_exec_direction_func): New funcs.
119         (proceed): No need to singlestep over a breakpoint
120         when resuming in reverse.
121         
122         * inferior.h (enum exec_direction_kind): New enum.
123         (execution_direction): Export new execution state variable.
124
125         * breakpoint.c (make_breakpoint_silent): New function.
126         * breakpoint.h (make_breakpoint_silent): Export.
127         * infcmd.c (finish_command): Check for reverse exec direction.
128         (finish_backward): New function, handle finish cmd in reverse.
129
130         User interface for reverse execution.
131         * Makefile.in (reverse.c): New file.
132         * reverse.c: New file.  User interface for reverse execution.
133
134 2008-10-17  Pedro Alves  <pedro@codesourcery.com>
135
136         * remote.c (record_currthread): Add inferior before child threads.
137         (remote_threads_info): Check for exited threads.  Mention
138         notification order.
139
140 2008-10-16  Joel Brobecker  <brobecker@adacore.com>
141
142         * breakpoint.h (enum bptype): New enum bp_catchpoint.
143         Delete bp_catch_fork and bp_catch_vfork.
144         (struct breakpoint_ops): Add new methods "insert", "remove"
145         and "breakpoint_hit".
146         * breakpoint.c (create_fork_vfork_event_catchpoint)
147         (create_fork_event_catchpoint, create_vfork_event_catchpoint): Remove.
148         (insert_catchpoint): Remove handling of bp_catch_fork and
149         bp_catch_vfork catchpoints, and handle them as bp_catchpoint
150         catchpoints instead.
151         (insert_bp_location, update_breakpoints_after_exec)
152         (remove_breakpoint, bpstat_check_location, bpstat_what)
153         (allocate_bp_location): Likewise.
154         (print_it_typical, print_one_breakpoint_location, mention): Remove
155         handling of bp_catch_fork and bp_catch_vfork breakpoints.
156         (ep_is_catchpoint, user_settable_breakpoint)
157         (breakpoint_address_is_meaningful, adjust_breakpoint_address)
158         (breakpoint_re_set_one, disable_command, enable_command):
159         Remove use of bp_catch_fork and bp_catch_vfork.  Add handling of
160         bp_catchpoint breakpoints.
161         (insert_catch_fork, remove_catch_fork, breakpoint_hit_catch_fork)
162         (print_it_catch_fork, print_one_catch_fork, print_mention_catch_fork):
163         New functions.
164         (catch_fork_breakpoint_ops): New static constant.
165         (insert_catch_vfork, remove_catch_vfork, breakpoint_hit_catch_vfork)
166         (print_it_catch_vfork, print_one_catch_vfork)
167         (print_mention_catch_vfork): New functions.
168         (catch_vfork_breakpoint_ops): New static constant.
169         (create_catchpoint, create_fork_vfork_event_catchpoint): New functions.
170         (catch_fork_command_1): Use create_fork_vfork_event_catchpoint
171         to create the fork and vfork catchpoints.
172         (gnu_v3_exception_catchpoint_ops): Set new breakpoint_ops fields.
173         * ada-lang.c (catch_exception_breakpoint_ops): Set new breakpoint_ops
174         fields.
175         (catch_exception_unhandled_breakpoint_ops): Likewise.
176         (catch_assert_breakpoint_ops): Likewise.
177
178 2008-10-16  Pedro Alves  <pedro@codesourcery.com>
179
180         * remote.c (set_general_process): New.
181         (remote_check_symbols): Use it.
182
183 2008-10-16  Pedro Alves  <pedro@codesourcery.com>
184
185         * remote.c (push_remote_target): Delete.
186         * target.h (push_remote_target): Delete declaration.
187
188 2008-10-15  Pedro Alves  <pedro@codesourcery.com>
189
190         * remote.c (remote_close): Unregister remote_desc from the event
191         loop.  Always restore the SIGINT handler.  Discard all inferiors
192         here.
193         (remote_detach_1, remote_disconnect): Don't unregister the file
194         descriptor from the event loop here.
195         (interrupt_query, readchar, getpkt_sane): Pop the target instead
196         of morning the current inferior.
197         (remote_kill): Don't unregister the file descriptor from the event
198         loop here.
199         (remote_mourn_1): Don't discard inferiors here.
200
201 2008-10-15  Pedro Alves  <pedro@codesourcery.com>
202
203         * breakpoint.c (breakpoint_init_inferior): Clean up the moribund
204         locations list.
205         (moribund_breakpoint_here_p): Record the moribund
206         location in the moribund_locations vector.
207         * breakpoint.h (moribund_breakpoint_here_p): Declare.
208         (displaced_step_fixup): Check if the breakpoint the thread was
209         trying to step over has been removed since having been placed in
210         the displaced stepping queue.
211         (adjust_pc_after_break): In non-stop mode, check for a moribund
212         breakpoint at the stop pc.
213         (handle_inferior_event): Don't retire moribund breakpoints on
214         TARGET_WAITKIND_IGNORE.
215
216 2008-10-15  Pedro Alves  <pedro@codesourcery.com>
217
218         * infrun.c (displaced_step_prepare): Switch thread temporarily
219         while we're here.
220         (displaced_step_fixup): Make sure target_resume sees ptid as
221         inferior_ptid.  Add debug output.
222
223 2008-10-14  Pedro Alves  <pedro@codesourcery.com>
224
225         Remove dead code.
226
227         * breakpoint.c (show_breakpoint_hit_counts): Delete.
228         (print_one_breakpoint_location): Adjust.
229         (breakpoint_clear_ignore_counts): Delete.
230         * breakpoint.h (breakpoint_clear_ignore_counts): Remove
231         declaration.
232         * target.c (generic_mourn_inferior): Don't clear ignore
233         counts (never reached).
234
235 2008-10-10  Doug Evans  <dje@google.com>
236
237         * dwarf2read.c (comp_unit_head): Use unsigned int consistently
238         for dwarf section offsets and sizes.
239         (dwarf2_cu): Ditto.
240         (dwarf2_per_cu_data): Ditto.
241         (create_all_comp_units): Change offset to unsigned int.
242         (load_full_comp_unit,find_partial_die_in_comp_unit,find_partial_die,
243         dwarf2_find_containing_comp_unit,dwarf2_find_comp_unit): Ditto.
244
245         * dwarf2read.c (read_initial_length): Delete cu_header arg.
246         All callers updated.
247         (read_checked_initial_length_and_offset): New function.
248         (read_offset_1): New function.
249         (read_offset): Call it.
250         (dwarf_decode_line_header): Call read_checked_initial_length_and_offset
251         instead of read_initial_length.  Call read_offset_1 instead of
252         read_offset.
253
254         * dwarf2read.c (dwarf2_get_ref_die_offset): Remove unused arg `cu'.
255         All callers updated.
256
257         * dwarf2read.c (dwarf_attr_name): Unconditionally support all
258         DW_AT_MIPS_* except DW_AT_MIPS_fde which collides with
259         DW_AT_HP_block_index.
260
261 2008-10-10  Pedro Alves  <pedro@codesourcery.com>
262
263         * remote.c (remote_start_remote): Always tell the stub if we're in
264         extended-remote.
265
266 2008-10-09  Pedro Alves  <pedro@codesourcery.com>
267
268         * remote.c (remote_wait): Rename to...
269         (remote_wait_as): ... this.  Don't loop here.  If the remote
270         didn't stop, return TARGET_WAITKIND_IGNORE.
271         (remote_wait): New, reimplemented on top of remote_wait_as.
272
273 2008-10-09  Thomas Schwinge  <tschwinge@gnu.org>
274
275         * Makefile.in (gnu-nat.o): Revert the 2008-09-10 change, as the problem
276         is fixed upstream.
277
278         * reply_mig_hack.awk: Use the `BAD_TYPECHECK' macro.
279
280         * MAINTAINERS (Write After Approval): Add myself.
281
282 2008-10-09  Pedro Alves  <pedro@codesourcery.com>
283
284         Make it compile without warnings.
285
286         * procfs.c (create_procinfo): Initialize `parent'.
287         (dead_procinfo): Pass a constant string as format to error.
288         (procfs_address_to_host_pointer): Add cast to gdb_type *.
289         (procfs_find_LDT_entry): Adjust format string to long int
290         ptid.tid.
291         (procfs_xfer_partial): Adjust prototype.  Add gdb_byte* cast.
292         (procfs_xfer_memory): Adjust prototype.
293         (info_mappings_callback, info_proc_mappings): Adjust to not pass a
294         variable as printf_filtered format.
295         (procfs_make_note_section): Change type of auxv local to gdb_byte.
296         * Makefile.in: Remove special rule.
297
298 2008-10-09  Pedro Alves  <pedro@codesourcery.com>
299             Daniel Jacobowitz  <dan@codesourcery.com>
300
301         * remote.c (remote_open_1): Move acknowledging any pending ack,
302         querying supported features, activating noack mode, finding the
303         target description, enabling extended remote, and checking remote
304         symbols from here ...
305         (remote_start_remote): ... to here.
306         (remote_open_1): Don't pop the target if it is already gone.
307         * target.c (unpush_target): Check for the dummy target.
308
309 2008-10-09  Pedro Alves  <pedro@codesourcery.com>
310
311         * ser-mingw.c: Include "command.h".
312         (pipe_windows_open): Declare locals at the beginning of the scope.
313
314 2008-10-08  Pedro Alves  <pedro@codesourcery.com>
315
316         * remote.c (struct remote_state) <waiting_for_stop_reply>: New
317         field.
318         (remote_open_1): Clear waiting_for_stop_reply.
319         (remote_resume): Set waiting_for_stop_reply.
320         (remote_wait): Clear or set waiting_for_stop_reply accordingly.
321         (putpkt_binary): If we're in async mode and waiting for a stop
322         reply, bail out with an error.
323         (extended_remote_mourn_1): Clear waiting_for_stop_reply.
324
325 2008-10-08  Pedro Alves  <pedro@codesourcery.com>
326
327         * remote.c (remote_get_thread_info): If the remote doesn't support
328         the query, bail out.
329
330 2008-10-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
331
332         Convert static_kind into loc_kind enum.
333         * gdbtypes.h (enum field_loc_kind): New.
334         (union field_location): New field dwarf_block.
335         (struct field): Rename static_kind as loc_kind.
336         (FIELD_STATIC_KIND): Rename to ...
337         (FIELD_LOC_KIND): ... here.
338         (TYPE_FIELD_STATIC_KIND): Rename to ...
339         (TYPE_FIELD_LOC_KIND): ... here and use there now new FIELD_LOC_KIND.
340         (TYPE_FIELD_STATIC_HAS_ADDR): Remove.
341         (TYPE_FIELD_STATIC): Remove.
342         (TYPE_FIELD_BITPOS): Reformat.
343         (SET_FIELD_BITPOS): New.
344         (FIELD_PHYSADDR): Rename to ...
345         (FIELD_STATIC_PHYSADDR): ... here.
346         (TYPE_FIELD_STATIC_PHYSADDR): Follow the FIELD_PHYSADDR rename.
347         (SET_FIELD_PHYSADDR): Use new FIELD_LOC_KIND.
348         (FIELD_PHYSNAME): Rename to ...
349         (FIELD_STATIC_PHYSNAME): ... here.
350         (TYPE_FIELD_STATIC_PHYSNAME): Follow the FIELD_PHYSNAME rename.
351         (SET_FIELD_PHYSNAME): Use new FIELD_LOC_KIND.
352         (FIELD_DWARF_BLOCK, TYPE_FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK): New.
353         (field_is_static): New declaration.
354         * gdbtypes.c (field_is_static): New function.
355         (copy_type_recursive): Update throughout.
356         * amd64-tdep.c, c-typeprint.c, coffread.c, cp-valprint.c, dwarf2read.c,
357         eval.c, jv-typeprint.c, jv-valprint.c, mdebugread.c, p-typeprint.c,
358         p-valprint.c, valops.c, value.c, varobj.c: Update throughout.
359
360 2008-10-07  Thomas Schwinge  <tschwinge@gnu.org>
361             Pedro Alves  <pedro@codesourcery.com>
362
363         * gnu-nat.h: Rename `current_inferior' to `gnu_current_inf' to
364         avoid a name collision.
365         * gnu-nat.c: Likewise.
366         * i386gnu-nat.c: Likewise.
367
368 2008-10-07  Joel Brobecker  <brobecker@adacore.com>
369
370         * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Add handling
371         of arguments that are references.
372
373 2008-10-06  Doug Evans  <dje@google.com>
374
375         * dwarf2read.c (dwarf2_die_debug): New static global.
376         (dump_die_shallow): Renamed from dump_die, New args f, indent.
377         Print to specified file, indented by the specified amount.
378         (dump_die_for_error): New fn.  Point all existing callers of
379         dump_die here.
380         (dump_die_die_1,dump_die): New fns, replaces ...
381         (dump_die_list): ... deleted.
382         (read_die_and_children_1): Old contents of read_die_and_children
383         moved here.
384         (read_die_and_children): Rewrite.
385         (read_die_and_siblings): Call read_die_and_children_1 instead of
386         read_die_and_children.
387         (_initialize_dwarf2_read): New option "debug dwarf2-die".
388         * gdbinit.in (pdie): New macro.
389
390         * dwarf2read.c (offset_in_cu_p): New function.
391         (find_partial_die,follow_die_ref): Use it.
392
393         * symmisc.c (maintenance_info_symtabs): Watch for ^c.
394         (maintenance_info_psymtabs): Ditto.
395
396 2008-10-05  Michael Snyder  <msnyder@vmware.com>
397
398         * infrun.c (handle_inferior_event): Fix typo in comment.
399
400 2008-10-04  Vladimir Prus  <vladimir@codesourcery.com>
401
402         * mi/mi-interp.c (mi_on_resume): Flush raw_stdout.
403
404 2008-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
405
406         PR gdb/2384:
407         * gdbtypes.c (get_vptr_fieldno): baseclass and basetype may have
408         different lifetimes.
409         
410 2008-10-03  Joel Brobecker  <brobecker@adacore.com>
411
412         * solib-osf.c: Include "solib.h".
413
414 2008-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
415         
416         * utils.c, defs.h (gdb_buildargv): New fn. Wrap buildargv
417         and check for out-of-memory condition.
418         * exec.c (exec_file_command): Call it.
419         * infrun.c (handle_command, xdb_handle_command): Likewise.
420         * interps.c (interpreter_exec_cmd): Likewise.
421         * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
422         * procfs.c (info_proc_cmd): Likewise.
423         * remote-mips.c (common_open): Likewise.
424         * remote-sim.c (gdbsim_kill, gdbsim_create_inferior)
425         (gdbsim_open): Likewise.
426         * remote.c (extended_remote_run, remote_put_command)
427         (remote_get_command, remote_delete_command): Likewise.
428         * ser-mingw.c (pipe_windows_open): Likesise.
429         * source.c (add_path, show_substitute_path_command)
430         (unset_substitute_path_command, set_substitute_path_command):
431         Likewise.
432         * stack.c (backtrace_command): Likewise.
433         * symfile.c (symbol_file_command, generic_load)
434         (add_symbol_file_command): Likesise.
435         * symmisc.c (maintenance_print_symbols, maintenance_print_psymbols)
436         (maintenance_print_msymbols): Likewise.
437
438 2008-10-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
439
440         Replace TYPE_ARRAY_{UPPER,LOWER}_BOUND_TYPE by a bit if {un,}defined.
441         * c-typeprint.c (c_type_print_varspec_suffix), m2-typeprint.c
442         (m2_array), p-typeprint.c (pascal_type_print_varspec_prefix),
443         valops.c (value_cast), varobj.c (c_number_of_children): Replace
444         TYPE_ARRAY_UPPER_BOUND_TYPE compared to BOUND_CANNOT_BE_DETERMINED by
445         TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
446         * parse.c (follow_types): Use TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
447         * f-valprint.c (f77_get_dynamic_upperbound): Replace with ...
448         (f77_get_upperbound): ... this function handling now only
449         TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
450         (f77_get_dynamic_lowerbound): Replace with ...
451         (f77_get_lowerbound): ... this function handling now only
452         TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED.
453         (f77_get_dynamic_length_of_aggregate, f77_create_arrayprint_offset_tbl):
454         Update their callers.
455         * eval.c (evaluate_subexp_standard): Update their callers.
456         * f-lang.h (f77_get_dynamic_upperbound, f77_get_upperbound)
457         (f77_get_dynamic_lowerbound, f77_get_lowerbound): Update their
458         prototypes.
459         (BOUND_FETCH_OK, BOUND_FETCH_ERROR): Remove.
460         * f-typeprint.c (f_type_print_varspec_suffix, f_type_print_base): Remove
461         the lower_bound_was_default variable.  Update the
462         f77_get_dynamic_upperbound, f77_get_upperbound and
463         TYPE_ARRAY_UPPER_BOUND_TYPE calls.
464         * gdbtypes.c (print_bound_type): Remove the function.
465         (recursive_dump_type): Remove its calls printing UPPER_BOUND_TYPE and
466         LOWER_BOUND_TYPE.
467         * gdbtypes.h (enum array_bound_type): Remove.
468         (struct main_type): Remove the fields upper_bound_type and
469         lower_bound_type.  Comment the new overload of the field artificial.
470         (TYPE_ARRAY_UPPER_BOUND_TYPE): Replace by ...
471         (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): ... this macro.
472         (TYPE_ARRAY_LOWER_BOUND_TYPE): Replace by ...
473         (TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): ... this macro.
474
475 2008-10-02  Tom Tromey  <tromey@redhat.com>
476
477         * Makefile.in (HFILES_NO_SRCDIR): Remove gdb-events.h, gstdint.h.
478
479 2008-10-02  Daniel Jacobowitz  <dan@codesourcery.com>
480
481         * mips-linux-tdep.c (mips_linux_in_dynsym_resolve_code): Update
482         comments.
483         (mips_linux_skip_resolver): Also use glibc_skip_solib_resolver.
484         (mips_linux_init_abi): Do not override skip_trampoline_code.
485         * configure.tgt (mips*-*-linux*): Add glibc-tdep.o.
486         * mips-tdep.c (mips32_scan_prologue): Stop scanning at branches.
487         (mips_stub_frame_sniffer): Use the stub frame sniffer for PIC stubs.
488         (mips_skip_mips16_trampoline_code): Rename from
489         mips_skip_trampoline_code.
490         (mips_skip_pic_trampoline_code, mips_skip_trampoline_code): New.
491         * infrun.c (handle_inferior_event): Do not pass zero to
492         in_solib_dynsym_resolve_code.
493
494 2008-10-02  Pierre Muller  <muller@ics.u-strasbg.fr>
495             Pedro Alves  <pedro@codesourcery.com>
496
497         * win32-nat.c (do_initial_win32_stuff): Set inferior_ptid.
498
499
500 2008-10-01  Tom Tromey  <tromey@redhat.com>
501
502         * symtab.c (search_symbols): Update.
503         * symtab.h (domain_enum_tag) <METHODS_DOMAIN>: Remove.
504
505 2008-10-01  Tom Tromey  <tromey@redhat.com>
506
507         * symfile.c (syms_from_objfile): Update.
508         (reread_symbols): Update.
509         * objfiles.h (OBJF_SYMS): Remove.
510         (OBJF_REORDERED): Renumber.
511         (OBJF_SHARED): Likewise.
512         (OBJF_READNOW): Likewise.
513         (OBJF_USERLOADED): Likewise.
514
515 2008-10-01  Tom Tromey  <tromey@redhat.com>
516
517         * symtab.c (find_pc_sect_psymtab): Use MSYMBOL_TYPE.
518         (find_pc_sect_symtab): Likewise.
519         * symmisc.c (dump_msymbols): Use MSYMBOL_TYPE.
520         * solib-som.c (som_solib_desire_dynamic_linker_symbols): Use
521         MSYMBOL_TYPE, not SYMBOL_TYPE.
522         * parse.c (write_exp_msymbol): Use MSYMBOL_TYPE.
523         * objc-lang.c (find_methods): Use MSYMBOL_TYPE.
524         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Use
525         MSYMBOL_TYPE.
526         * m2-exp.y (yylex): Use SYMBOL_CLASS.
527
528 2008-10-01  Tom Tromey  <tromey@redhat.com>
529
530         * xcoffread.c (RECORD_MINIMAL_SYMBOL): Update.
531         (scan_xcoff_symtab): Update.
532         * mdebugread.c (record_minimal_symbol): Update.
533         (parse_partial_symbols): Update.
534         * elfread.c (record_minimal_symbol): Update.
535         * dbxread.c (record_minimal_symbol): Update.
536         * coffread.c (record_minimal_symbol): Update.
537         * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Redefine.
538         (sh64_elf_make_msymbol_special): Update.
539         * mips-tdep.c (mips_elf_make_msymbol_special): Use
540         MSYMBOL_TARGET_FLAG_1.
541         (mips_elf_make_msymbol_special): Likewise.
542         (msymbol_is_special): Likewise.
543         * minsyms.c (prim_record_minimal_symbol_and_info): Update.
544         (install_minimal_symbols): Likewise.
545         (prim_record_minimal_symbol): Update.
546         (prim_record_minimal_symbol_and_info): Remove 'info' argument.
547         * m68hc11-tdep.c (MSYMBOL_SET_RTC): Redefine.
548         (MSYMBOL_SET_RTI): Redefine.
549         (MSYMBOL_IS_RTC): Redefine.
550         (MSYMBOL_IS_RTI): Redefine.
551         * arm-tdep.c (MSYMBOL_SET_SPECIAL): Redefine.
552         (MSYMBOL_IS_SPECIAL): Redefine.
553         * symtab.h (struct minimal_symbol) <info>: Remove.
554         <target_flag_1, target_flag_2>: New fields.
555         (MSYMBOL_INFO): Remove.
556         (MSYMBOL_TARGET_FLAG_1): New macro.
557         (MSYMBOL_TARGET_FLAG_2): Likewise.
558         (prim_record_minimal_symbol_and_info): Update.
559
560 2008-09-30  Joel Brobecker  <brobecker@adacore.com>
561
562         * ada-lang.c (is_digits_suffix): Delete unused function.
563
564 2008-09-30  Paul Hilfinger  <hilfinger@adacore.com>
565
566         * ada-lang.c (ada_modulus): Correct to avoid sign problem with
567         moduli >= 2**31.
568
569 2008-09-30  Paul Hilfinger  <hilfinger@adacore.com>
570
571         * ada-lang.c (ada_lookup_struct_elt_type): Handle case of a "naked"
572         variant branch.
573         (empty_record): Use INIT_CPLUS_SPECIFIC, since this field is not
574         supposed to be null.  Fixes debugger segfaults.
575         (is_unchecked_variant): New function.
576         (to_fixed_variant_branch_type): Modify to leave unchecked unions
577         untouched.
578         (ada_template_to_fixed_record_type_1): Fix comment.
579
580 2008-09-30  Joel Brobecker  <brobecker@adacore.com>
581
582         * ada-lang.c (standard_exc): New static constant.
583         (ada_exception_catchpoint_cond_string): Add special handling
584         for the predefined exceptions.
585
586 2008-09-30  Joel Brobecker  <brobecker@adacore.com>
587
588         * ada-lang.c (ADA_RETAIN_DOTS): Delete this dead macro.  Update
589         the code accordingly.
590
591 2008-09-30  Joel Brobecker  <brobecker@adacore.com>
592
593         * ada-lang.c (ada_evaluate_subexp) [UNOP_IND]: Remove strange
594         treatment of expect_type. Return the correct type when dereferencing
595         an integer.
596
597 2008-09-30  Tom Tromey  <tromey@redhat.com>
598
599         PR gdb/2484:
600         * symtab.c (struct add_macro_name_data): New struct.
601         (add_macro_name): New function.
602         (default_make_symbol_completion_list): Complete macro names.
603         * scm-lang.c (scm_language_defn): Update.
604         * p-lang.c (pascal_language_defn): Update.
605         * objc-lang.c (objc_language_defn): Update.
606         * macrotab.h (macro_callback_fn): Add user_data argument.
607         (macro_for_each): Likewise.
608         (macro_for_each_in_scope): Declare.
609         * macrotab.c: (struct macro_for_each_data): New struct.
610         (foreach_macro): Use it.
611         (macro_for_each): Likewise.
612         (foreach_macro_in_scope): New function.
613         (macro_for_each_in_scope): Likewise.
614         * macrocmd.c (print_one_macro): Add argument.
615         (macro_list_command): Pass NULL to macro_for_each.
616         * m2-lang.c (m2_language_defn): Update.
617         * language.h (struct language_defn) <la_macro_expansion>: New
618         field.
619         (macro_expansion): New enum.
620         * language.c (unknown_language_defn): Update.  Fix order of
621         initializers.
622         (auto_language_defn): Likewise.
623         (local_language_defn): Update.
624         * jv-lang.c (java_language_defn): Update.
625         * f-lang.c (f_language_defn): Update.
626         * c-lang.c (c_language_defn): Update.
627         (cplus_language_defn): Likewise.
628         (asm_language_defn): Likewise.
629         (minimal_language_defn): Likewise.
630         * ada-lang.c (ada_language_defn): Update.
631
632 2008-09-30  Joel Brobecker  <brobecker@adacore.com>
633
634         * dwarf2read.c (dwarf2_get_subprogram_pc_bounds): New function.
635         (get_scope_pc_bounds): Use it.
636
637 2008-09-27  Tom Tromey  <tromey@redhat.com>
638
639         * NEWS: Update.
640         * macrocmd.c (extract_identifier): Add is_parameter argument.
641         (macro_define_command): Update.
642         (macro_undef_command): Likewise.
643         * macroexp.c (stringify): New function.
644         (find_parameter): Likewise.
645         (gather_arguments): Add nargs argument.  Handle varargs.
646         (substitute_args): Add is_varargs and va_arg_name arguments.
647         Handle varargs, splicing, stringification.  Use find_parameter.
648         (expand): Handle varargs.
649
650 2008-09-27  Tom Tromey  <tromey@redhat.com>
651
652         * scm-lang.c (scm_language_defn): Update.
653         * p-typeprint.c (pascal_print_typedef): New function.
654         * p-lang.h: (pascal_print_typedef): Declare.
655         * p-lang.c (pascal_language_defn): Update.
656         * objc-lang.c (objc_language_defn): Update.
657         * m2-typeprint.c (m2_print_typedef): New function.
658         * m2-lang.h (m2_print_typedef): Declare.
659         * m2-lang.c (m2_language_defn): Update.
660         * language.h (_LANG_c, _LANG_m2, _LANG_fortran, _LANG_pascal):
661         Remove.
662         (struct language_defn) <la_print_typedef>: New field.
663         (default_print_typedef): Declare.
664         (LA_PRINT_TYPEDEF): New define.
665         * language.c (unknown_language_defn): Update.
666         (auto_language_defn): Update.
667         (local_language_defn): Update.
668         * jv-lang.c (java_language_defn): Update.
669         * f-lang.c (f_language_defn): Update.
670         * c-typeprint.c (c_print_typedef): New function.
671         * c-lang.h (c_print_typedef): Declare.
672         * c-lang.c (c_language_defn): Update.
673         (cplus_language_defn): Update.
674         (asm_language_defn): Update.
675         (minimal_language_defn): Update.
676         * ada-lang.c (ada_language_defn): Update.
677         * typeprint.c (default_print_typedef): New function.
678
679 2008-09-27  Tom Tromey  <tromey@redhat.com>
680
681         * jv-exp.y (insert_exp): Define using ISO syntax.
682         (copy_exp): Likewise.
683         (push_expression_name): Likewise.
684         (push_fieldnames): Likewise.
685         (java_type_from_name): Likewise.
686         (yyerror): Likewise.
687         (yylex): Likewise.
688         (parse_number): Likewise.
689
690 2008-09-26  Joel Brobecker  <brobecker@adacore.com>
691
692         * MAINTAINERS (GLOBAL MAINTAINERS): Add Pedro Alves.
693
694 2008-09-25  Stephan Springl  <springl-gdb@bfw-online.de> (tiny change)
695
696         * stack.c (print_frame_args): Fix typos in comments.
697
698 2008-09-25  Sérgio Durigan Júnior  <sergiodj@linux.vnet.ibm.com>
699
700         * linux-nat.c (get_pending_status): Fix argument to WIFSTOPPED.
701
702 2008-09-24  Vladimir Prus  <vladimir@codesourcery.com>
703
704         * remote-sim.c (gdbsim_create_inferior): Fix missing parenthesis.
705         
706 2008-09-24  Andreas Schwab  <schwab@suse.de>
707
708         * frame.c (get_frame_register_bytes): Take pseudo registers into
709         account.  Avoid excessive function calls.
710
711 2008-09-23  Doug Evans  <dje@google.com>
712
713         * dcache.c (state_chars): New static global.
714         (ENTRY_INVALID,ENTRY_VALID): Renamed from ENTRY_BAD,ENTRY_OK.
715         All uses updated.
716         (dcache_info): Print cache state as mnemonically useful letters instead
717         of magic numbers.
718
719         * dwarf2read.c (comp_unit_head): Reorganize for better packing.
720
721 2008-09-22  Tom Tromey  <tromey@redhat.com>
722
723         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't use
724         printf_filtered.
725
726 2008-09-22  Pedro Alves  <pedro@codesourcery.com>
727
728         * infrun.c (follow_exec): Don't do a generic mourn.  Instead
729         inline the required bits.
730         * breakpoint.h (enum inf_context): Add inf_execd.
731
732 2008-09-22  Pedro Alves  <pedro@codesourcery.com>
733
734         * infrun.c (handle_inferior_event): In the follow exec case,
735         context-switch before doing anything else.
736
737 2008-09-22  Pedro Alves  <pedro@codesourcery.com>
738
739         * top.c (any_thread_of, kill_or_detach): New functions.
740         (quit_target): Iterate over all inferiors, killing or detaching
741         accordingly.
742
743 2008-09-22  Pedro Alves  <pedro@codesourcery.com>
744
745         Remove the attach_flag global, and make it per-inferior.
746
747         * inferior.h (attach_flag): Delete.
748         (inferior_process): Declare.
749         * solib.c (update_solib_list): Adjust.
750         * gnu-nat.c (gnu_create_inferior, gnu_attach): Adjust.
751         * inf-ptrace.c (inf_ptrace_detach): Adjust.
752         (inf_ptrace_files_info): Get it from the current inferior.
753         * inf-ttrace.c (inf_ttrace_attach): Adjust.
754         (inf_ttrace_files_info): Get it from the current
755         inferior.
756         * inflow.c (terminal_inferior, terminal_ours_1, set_sigint_trap)
757         (clear_sigint_trap): Get it from the current process.
758         * remote.c (extended_remote_attach_1)
759         (extended_remote_create_inferior_1): Adjust.
760         * top.c (quit_confirm, quit_target): Get it from the current inferior.
761         * procfs.c (do_detach): Adjust.
762         (procfs_wait): Get it from the event inferior.
763         (procfs_files_info): Get it from the current inferior.
764         * nto-procfs.c (procfs_files_info): Likewise.
765         (procfs_attach): Adjust.  Set the attach_flag here.
766         (do_attach): Don't set it here.
767         (procfs_detach): Don't clear it.
768         (procfs_mourn_inferior): Don't clear it.
769         * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
770         * target.c (attach_flag): Delete.
771         (generic_mourn_inferior): Don't clear it.
772         * win32-nat.c (get_win32_debug_event): Get it from the event
773         process.
774         (do_initial_win32_stuff): Add attaching argument.  Set attach_flag
775         in the inferior accordingly.
776         (win32_attach): Don't set the attach_flag here.  Pass 1 to
777         do_intial_win32_stuff.
778         (win32_files_info): Get it from the current inferior.
779         (win32_create_inferior): Dont clear attach_flag here.  Pass 0 to
780         do_intial_win32_stuff.
781
782 2008-09-22  Pedro Alves  <pedro@codesourcery.com>
783
784         Make the stop_soon global be per-inferior instead.
785
786         * infcmd.c (attach_command_post_wait): Adjust.
787         (attach_command): Likewise.
788
789         * inferior.h (stop_soon): Delete.
790         (struct inferior): Add stop_soon member.
791
792         * infrun.c (stop_soon): Delete.
793         (clear_proceed_status, start_remote)
794         (fetch_inferior_event, handle_inferior_event): Adjust.
795         (signal_stop_state): Don't check stop_soon here.  Check in callers
796         instead.
797         (save_inferior_status, restore_inferior_status): Adjust.
798
799         * linux-nat.c (linux_nat_resume, linux_nat_wait): Always pass
800         signals to common code if starting up the inferior.
801         
802         * inferior.h (struct inferior_info): Added stop_soon member.
803         * inferior.c (add_inferior) Clear stop_soon.
804
805         * mips-tdep.c (heuristic_proc_start): Adjust.
806         * nto-procfs.c (procfs_create_inferior): Adjust.
807         * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
808         * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
809         * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
810         * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
811
812         * win32-nat.c (do_initial_win32_stuff): Adjust.
813
814         * alpha-tdep.c (alpha_heuristic_proc_start): Adjust.
815
816 2008-09-22  Pedro Alves  <pedro@codesourcery.com>
817
818         Implement remote multi-process extensions.
819
820         * remote.c (struct remote_state): Add extended and
821         multi_process_aware fields.
822         (remote_multi_process_p): New.
823         (PACKET_vKill): New.
824         (record_currthread): Use thread_change_ptid.  Notice new
825         inferiors.
826         (set_thread, remote_thread_alive): Use write_ptid.
827         (write_ptid, read_ptid): New.
828         (remote_current_thread, remote_threads_extra_info): Use them.
829         (remote_threads_info): Likewise.  Detect new inferiors.
830         (remote_start_remote): Add inferior to inferior list.
831         (remote_multi_process_feature): New.
832         (remote_protocol_features): Add "multiprocess" feature.
833         (remote_query_supported): Pass "multiprocess+" as supported
834         features.
835         (remote_open_1): Clear multi_process_aware.  Set extended
836         accordingly.
837         (remote_detach_1): Detach current process.  Use extended packet
838         format for extended-remote multi-process.  Detach process from the
839         inferior list.  Only mourn after printing output.
840         (extended_remote_attach_1): Add process to the inferior list.
841         (remote_vcont_resume): Use write_ptid to pass the thread ids.
842         (remote_wait): Use read_ptid.  Implement the extended
843         multi-process extension format of the 'W' and 'X' reply packets.
844         Remove exited inferiors from inferior list.
845         (remote_xfer_memory): Set general thread.
846         (remote_vkill): New.
847         (extended_remote_kill): New.
848         (remote_mourn_1): Discard all inferiors.
849         (select_new_thread_callback): New.
850         (extended_remote_mourn_1): If there are more processes to debug,
851         switch to a thread in another process, and don't pop the target.
852         (extended_remote_create_inferior_1): Add the new process to the
853         inferior list.
854         (remote_stopped_by_watchpoint): Indenting.
855         (remote_xfer_partial): Set the general thread.
856         (remote_pid_to_str): If the remote is multi-process aware, print
857         the process id as well as the thread id.
858         (remote_get_thread_local_address): Use write_ptid.
859         (init_extended_remote_ops): Register extended_remote_kill.
860         (_initialize_remote): Register new packets.  Change
861         magic_null_ptid's, not_sent_ptid's and any_thread_ptid's pid
862         member to 42000.
863
864         * thread.c (thread_change_ptid): Also account for the inferior pid
865         changing.
866
867         * inferior.h (discard_all_inferiors): Declare.
868         * inferior.c (discard_all_inferiors): New.
869
870 2008-09-22  Pedro Alves  <pedro@codesourcery.com>
871
872         * gnu-nat.c (gnu_attach): Add process to inferiors table.
873         (gnu_detach): Remove it.
874         * go32-nat.c (go32_create_inferior): Add process to gdb's inferior
875         table.
876         * inf-ptrace.c (inf_ptrace_follow_fork): Delete and add inferiors
877         to inferior table accordingly.
878         (inf_ptrace_attach): Add new process to inferior table.
879         (inf_ptrace_detach): Remove it.
880         * inf-ttrace.c (inf_ttrace_follow_fork): Delete and add inferiors
881         to inferior table accordingly.
882         (inf_ttrace_attach): Add process to inferior table.
883         (inf_ttrace_detach): Remove it.
884         * linux-fork.c (init_fork_list): Delete any left over inferior.
885         (linux_fork_mourn_inferior, detach_fork_command): Also delete
886         processes from inferior list.
887         * monitor.c (monitor_open): Add process to inferior list.
888         (monitor_close): Remove it.
889         * nto-procfs.c (procfs_attach): Add process to inferior list.
890         Find threads after pushing the target.
891         (procfs_detach): Remove process from inferior list.
892         (procfs_create_inferior): Add process to inferior list.
893         * procfs.c (procfs_detach): Remove process from inferior list.
894         (do_attach): Add process to inferior list.
895         * remote-sim.c (sim_create_inferior): Add process to inferior list.
896         (gdbsim_close): Remove it.
897         * target.c (generic_mourn_inferior): If inferior_ptid is not
898         null_ptid, remove the corresponding inferior from inferior list.
899         * win32-nat.c (do_initial_win32_stuff): Add process to inferior list.
900         (win32_detach): Remove it.
901         * linux-nat.c (linux_child_follow_fork): Delete and add inferiors
902         to inferior list accordingly.
903         * fork-child.c (fork_inferior): Add process to inferior list.
904         * corelow.c (CORELOW_PID): Define.
905         (core_close): Remove core from inferior list.
906         (core_open): Add it.
907
908 2008-09-22  Pedro Alves  <pedro@codesourcery.com>
909
910         * inferior.h: Forward declare struct ui_out.
911         Forward declare struct private_inferior.
912         (struct inferior): New.
913         (init_inferior_list, add_inferior, add_inferior_silent)
914         (delete_inferior, delete_inferior_silent, detach_inferior)
915         (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
916         (valid_inferior_id, find_inferior_pid): New functions.
917         (inferior_callback_func): New typedef.
918         (iterate_over_inferiors, print_inferior, have_inferiors)
919         (current_inferior): New functions.
920         * inferior.c: New file.
921
922         * Makefile.in (SFILES): Add inferior.c.
923         (COMMON_OBS): Add inferior.o.
924
925 2008-09-22  Jonathan Larmour  <jifl@eCosCentric.com>
926
927         * arm-tdep.c (arm_skip_prologue): Call skip_prologue_using_sal
928         instead of determining symbol and line info directly.
929         * MAINTAINERS: Update my email address.
930
931 2008-09-22  Daniel Jacobowitz  <dan@codesourcery.com>
932
933         * symtab.c (skip_prologue_using_sal): Treat two consecutive lines
934         at the same address as a prologue marker.  Do not skip an entire
935         function.
936
937 2008-09-22  Andrew Stubbs  <ams@codesourcery.com>
938
939         * frame.c (get_frame_register_bytes): Comment improvments.
940
941 2008-09-22  Pedro Alves  <pedro@codesourcery.com>
942
943         * linux-nat.c (linux_nat_wait): Only use set_ignore_sigint in
944         all-stop mode.
945
946 2008-09-19  Andrew Stubbs  <ams@codesourcery.com>
947
948         * MAINTAINERS: Update my email address.
949
950 2008-09-19  Andrew Stubbs  <ams@codesourcery.com>
951
952         * frame.c (get_frame_register_bytes): Detect bad debug info.
953
954 2008-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
955
956         Fix a crash on uninitialized ECS->EVENT_THREAD for a newly found thread.
957         * infrun.c (wait_for_inferior): Move this ECS->EVENT_THREAD
958         initialization ...
959         (fetch_inferior_event): ... and this ECS->EVENT_THREAD initialization
960         ...
961         (handle_inferior_event): ... here after the add_thread call together
962         with the local adjust_pc_after_break and reinit_frame_cache calls.
963
964 2008-09-16  David Daney  <ddaney@avtrex.com>
965
966         * breakpoint.c (bpstat_stop_status): Clear breakpoint_at for
967         all hardware bpstats.
968
969 2008-09-16  Joel Brobecker  <brobecker@adacore.com>
970
971         * gstdint.h: Delete.
972
973 2008-09-15  Mark Kettenis  <kettenis@gnu.org>
974
975         * infcall.c (generic_push_dummy_code): Remove.
976         (push_dummy_code): Unconditionally call gdbarch_push_dummy_code.
977
978 2008-09-15  Doug Evans  <dje@google.com>
979
980         * dwarf2read.c (struct abbrev_info): Make members name, form 16 bits.
981         (struct attribute): Ditto.
982
983 2008-09-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
984
985         * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Record
986         HPPA_IPSW_REGNUM and HPPA_SAR_REGNUM values.
987
988         * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Remove surrounding
989         "#if 0" "#endif".  Fix mapping of DWARF DBX registers to GDB registers.
990         Correct arguments and improve comments.
991         (hppa_linux_init_abi): Call set_gdbarch_dwarf2_reg_to_regnum.  Delete
992         disabled code.
993         * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Fix check for floating
994         point DBX register, change error to warning, and improve comments.
995
996 2008-09-14  Doug Evans  <dje@google.com>
997
998         * dwarf2read.c (struct die_info): Make members tag, num_attrs 16 bits.
999
1000 2008-09-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1001
1002         * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration.
1003
1004 2008-09-13  Joel Brobecker  <brobecker@adacore.com>
1005
1006         * defs.h (GCC_GENERATED_STDINT_H): Define.
1007
1008 2008-09-13  Tom Tromey  <tromey@redhat.com>
1009
1010         * varobj.c (varobj_set_display_format): Use xfree.
1011         * tracepoint.c (stringify_collection_list): Use xfree.
1012         * remote-fileio.c (remote_fileio_reset): Use xfree.
1013         * mipsread.c (read_alphacoff_dynamic_symtab): Use xfree.
1014         * dfp.c (decimal_from_floating): Use xfree, xstrprintf.  Don't use
1015         asprintf.
1016         * cp-support.c (mangled_name_to_comp): Use xfree.
1017
1018 2008-09-13  Joel Brobecker  <brobecker@adacore.com>
1019
1020         * ada-lang.c (remove_extra_symbols): Remove stub symbols if
1021         the associated complete symbol is also in the list.
1022         (ada_add_local_symbols, ada_add_non_local_symbols): New functions,
1023         extracted out from ada_lookup_symbol_list.
1024         (ada_lookup_symbol_list): Use them.  Remove the search through
1025         the minimal symbols.
1026
1027 2008-09-13  Joel Brobecker  <brobecker@adacore.com>
1028
1029         * dwarf2read.c (add_partial_subprogram): New procedure.
1030         (scan_partial_symbols): Use it.
1031         (load_partial_dies): Read in children of subprogram and lexical
1032         blocks for Ada compilation units.
1033
1034 2008-09-13  Tom Tromey  <tromey@redhat.com>
1035
1036         * symfile.c (build_id_verify): Free 'found'.
1037         (find_separate_debug_file): Use xfree, not free.
1038
1039 2008-09-12  Doug Evans  <dje@google.com>
1040
1041         * corefile.c (write_memory): Remove unnecessary copying.
1042
1043         * sol-thread.c (_initialize_sol_thread): Add FIXME regarding
1044         order of _initialize_* fns.
1045
1046         * dwarf2read.c (comp_unit_head): Rename first_die_ptr to
1047         first_die_offset.  All uses updated.
1048         Delete unused members cu_head_ptr, next.
1049         Move members base_known, base_address to ...
1050         (dwarf2_cu) ... here.  All uses updated.
1051
1052 2008-09-12  Pedro Alves  <pedro@codesourcery.com>
1053
1054         * Makefile.in (generated_files): Add $(NAT_GENERATED_FILES).
1055         * config/i386/i386gnu.mh (NAT_GENERATED_FILES): New.
1056
1057 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1058
1059         * fork-child.c (startup_inferior): Use target_wait and target_resume
1060         directly instead of calling wait_for_inferior / resume.
1061
1062         * infcmd.c (kill_if_already_running): Do not call no_shared_libraries
1063         or init_wait_for_inferior.
1064         (run_command_1): Call init_wait_for_inferior.
1065
1066 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1067
1068         * gdbtypes.h (builtin_type_void_data_ptr, builtin_type_void_func_ptr,
1069         builtin_type_CORE_ADDR, builtin_type_char, builtin_type_short,
1070         builtin_type_int, builtin_type_long, builtin_type_signed_char,
1071         builtin_type_unsigned_char, builtin_type_unsigned_short,
1072         builtin_type_unsigned_int, builtin_type_unsigned_long,
1073         builtin_type_float, builtin_type_double, builtin_type_long_double,
1074         builtin_type_complex, builtin_type_double_complex, builtin_type_string,
1075         builtin_type_bool, builtin_type_long_long,
1076         builtin_type_unsigned_long_long): Remove macros.
1077
1078         (builtin_type_f_character, builtin_type_f_integer,
1079         builtin_type_f_integer_s2, builtin_type_f_logical,
1080         builtin_type_f_logical_s1, builtin_type_f_logical_s2,
1081         builtin_type_f_real, builtin_type_f_real_s8, builtin_type_f_real_s16,
1082         builtin_type_f_complex_s8, builtin_type_f_complex_s16,
1083         builtin_type_f_complex_s32): Likewise.
1084
1085         (builtin_type_m2_char, builtin_type_m2_int, builtin_type_m2_card,
1086         builtin_type_m2_real, builtin_type_m2_bool): Likewise.
1087
1088         (struct builtin_f_type, builtin_f_type): Move to f-lang.h.
1089         (struct builtin_m2_type, builtin_m2_type): Move to m2-lang.h.
1090
1091         * f-lang.h (struct builtin_f_type, builtin_f_type): Move here.
1092         * m2-lang.h (struct builtin_m2_type, builtin_m2_type): Move here.
1093
1094 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1095
1096         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use builtin types of
1097         target_gdbarch instead of builtin_type_void_data_ptr.
1098         (LM_DYNAMIC_FROM_LINK_MAP, LM_NEXT, LM_NAME,
1099         IGNORE_FIRST_LINK_MAP_ENTRY, scan_dyntag, elf_locate_base,
1100         solib_svr4_r_map, solib_svr4_r_brk, solib_svr4_r_ldsomap,
1101         open_symbol_file_object): Likewise.
1102         * nto-tdep.c (LM_ADDR): Likewise.
1103
1104 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1105
1106         * bsd-uthread.c (bsd_uthread_read_memory_address): New function.
1107         (bsd_uthread_fetch_registers, bsd_uthread_store_registers,
1108         bsd_uthread_wait, bsd_uthread_find_new_threads): Use it.
1109
1110 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1111
1112         * procfs.c (procfs_address_to_host_pointer): Use target_gdbarch
1113         and its associated types to perform pointer conversion.
1114         (procfs_can_use_hw_breakpoint): Likewise.
1115         (procfs_auxv_parse): Remove unused variable.
1116
1117 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1118
1119         * auxv.c (default_auxv_parse): Use gdbarch_ptr_bit (target_gdbarch)
1120         instead of builtin_type_void_data_ptr.
1121         * target.c (default_region_ok_for_hw_watchpoint): Likewise.
1122
1123 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1124
1125         * expprint.c (print_subexp_standard): Compare against builtin type
1126         associated with exp->gdbarch instead of builtin_type_char.
1127
1128         * f-valprint.c (f_val_print): Use extract_unsigned_integer to
1129         extract values of arbitrary logical type.  Handle arbitrary
1130         complex types.
1131
1132         * printcmd.c (float_type_from_length): New function.
1133         (print_scalar_formatted, printf_command): Use it.
1134
1135 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1136
1137         * valops.c: Include "objfiles.h" and "symtab.h".
1138         (find_function_in_inferior): New argument OBJF_P.  Use it to return
1139         objfile where function is defined.  Use per-objfile arch types
1140         instead of builtin_type_ to define default return type.
1141
1142         * linux-fork.c (checkpoint_command): Update calls.  Use per-objfile
1143         architecture to define inferior call argument types.
1144         * gcore.c (derive_heap_segment): Likewise.
1145         * objc-lang.c (value_nsstring): Likewise.
1146         * scm-lang.c (scm_lookup_name): Likewise.
1147         * scm-valprint.c (scm_inferior_print): Likewise.
1148         * valops.c (value_allocate_space_in_inferior): Likewise.
1149
1150         * eval.c (evaluate_subexp_standard): Update calls.
1151         * objc-lang.c (lookup_objc_class, print_object_command): Likewise.
1152
1153         * linux-fork.c: Include "objfiles.h".
1154         * scm-lang.c: Include "objfiles.h".
1155         * scm-valprint.c: Include "objfiles.h".
1156
1157 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1158
1159         * gdbarch.sh (name_of_malloc): Remove.
1160         * gdbarch.c, gdbarch.h: Re-generate.
1161         * valops.c (value_allocate_space_in_inferior): Do not call
1162         gdbarch_name_of_malloc.
1163
1164 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1165
1166         * valarith.c (value_x_unop): Use builtin_type_int8 as type for
1167         UNOP_POSTINCREMENT/UNOP_POSTDECREMENT constant 0 argument.
1168         (value_bit_index): Use extract_unsigned_integer
1169         instead of unpack_long to read single byte.
1170
1171 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1172
1173         * infcall.c (value_arg_coerce): Add GDBARCH parameter.  Use its
1174         associates types instead of builtin_type_ macros.
1175         (find_function_addr): Leave output VALUE_TYPE NULL if unknown.
1176         (call_function_by_hand): Use per-architecture "int" type as
1177         fall-back if find_function_addr returns NULL VALUE_TYPE.
1178         Update call to value_arg_coerce.
1179
1180 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1181
1182         * cp-abi.h (cplus_method_ptr_size): Add TO_TYPE parameter.
1183         (cplus_make_method_ptr): Add TYPE parameter.
1184         * cp-abi.c (cplus_method_ptr_size): Add TO_TYPE parameter.  Pass it
1185         on to current_cp_abi.method_ptr_size callback.
1186         (cplus_make_method_ptr): Add TYPE parameter.  Pass it on to
1187         current_cp_abi.make_method_ptr callback.
1188
1189         * gdbtypes.c (lookup_methodptr_type): Pass target type
1190         argument to cplus_method_ptr_size.
1191         * valops.c (value_cast): Pass type argument to cplus_make_method_ptr.
1192         (value_struct_elt_for_reference): Likewise.
1193
1194         * gnu-v3-abi.c (get_class_arch): New function.
1195         (vtable_address_point_offset): Add GDBARCH parameter.  Use it
1196         instead of current_gdbarch.  Update all callers.
1197         (gnuv3_get_vtable): Likewise.
1198         (gnuv3_get_virtual_fn): Likewise.
1199         (gnuv3_decode_method_ptr): Likewise.
1200         (gnuv3_rtti_type): Call get_class_arch to determine architecture.
1201         Use it instead of current_gdbarch.
1202         (gnuv3_virtual_fn_field): Likewise.
1203         (gnuv3_baseclass_offset): Likewise.
1204         (gnuv3_print_method_ptr): Likewise.
1205         (gnuv3_method_ptr_to_value): Likewise.
1206         (gnuv3_method_ptr_size): Add TYPE parameter.  Use it to determine
1207         class architecture.  Use architecture types instead of builtin types.
1208         (gnuv3_make_method_ptr): Likewise.
1209
1210         * cp-valprint.c (cp_print_class_member): Expect pointer type
1211         instead of class type.  Use its length when extracting value.
1212         * c-valprint.c (c_val_print): Update call to cp_print_class_member.
1213
1214 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1215
1216         * stack.c (return_command): Use frame architecture to determine
1217         default integer return type.
1218
1219         * f-valprint.c (f77_get_dynamic_lowerbound): Use frame architecture
1220         to determine pointer types.
1221         (f77_get_dynamic_upperbound): Likewise.
1222
1223         * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Remove.
1224         (resolve_msgsend): Use architecture of current frame to determine
1225         pointer types.  Inline OBJC_FETCH_POINTER_ARGUMENT.
1226         (resolve_msgsend_stret, resolve_msgsend_super,
1227         resolve_msgsend_super_stret): Likewise.
1228
1229 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1230
1231         * alpha-tdep.c (alpha_register_type): Use builtin_type (gdbarch)
1232         instead of builtin_type_ macros.
1233         * amd64-tdep.c (amd64_register_type): Likewise.
1234         (amd64_get_longjmp_target): Likewise.
1235         * arm-tdep.c (arm_register_type): Likewise.
1236         * avr-tdep.c (avr_register_type): Likewise.
1237         * cris-tdep.c (cris_register_type, crisv32_register_type): Likewise.
1238         * frv-tdep.c (frv_register_type): Likewise.
1239         * h8300-tdep.c (h8300_register_type): Likewise.
1240         * hppa-tdep.c (hppa32_convert_from_func_ptr_addr, 
1241         hppa_skip_trampoline_code): Likewise.
1242         * i386-tdep.c (i386_register_type): Likewise.
1243         (i386_unwind_pc, i386_sse_type): Likewise.
1244         * ia64-tdep.c (ia64_register_type): Likewise.
1245         * m32r-tdep.c (m32r_register_type): Likewise.
1246         * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
1247         * m88k-tdep.c (m88k_register_type): Likewise.
1248         * mep-tdep.c (mep_register_type): Likewise.
1249         * mips-tdep.c (mips_pseudo_register_type): Likewise.
1250         * mn10300-tdep.c (mn10300_register_type): Likewise.
1251         * mt-tdep.c (mt_copro_register_type): Likewise.
1252         * rs6000-tdep.c (rs6000_builtin_type_vec64): Likewise.
1253         (rs6000_convert_register_p, rs6000_register_to_value,
1254         rs6000_value_to_register): Likewise.
1255         * s390-tdep.c (s390_register_type): Likewise.
1256         * sh64-tdep.c (sh64_register_type): Likewise.
1257         (sh64_build_float_register_type, sh64_do_fp_register): Likewise.
1258         * sh-tdep.c (sh_sh2a_register_type, sh_sh3e_register_type,
1259         sh_sh4_build_float_register_type, sh_sh4_register_type,
1260         sh_default_register_type): Likewise.
1261         * sparc64-tdep.c (sparc64_register_type): Likewise.
1262         * sparc-tdep.c (sparc32_register_type): Likewise.
1263         * spu-tdep.c (spu_builtin_type_vec128, spu_register_type): Likewise.
1264         * v850-tdep.c (v850_register_type): Likewise.
1265         * vax-tdep.c (vax_register_type): Likewise.
1266         * xtensa-tdep.c (xtensa_register_type, xtensa_unwind_pc,
1267         xtensa_push_dummy_call): Likewise.
1268
1269         * std-regs.c (value_of_builtin_frame_fp_reg,
1270         value_of_builtin_frame_pc_reg): Likewise.
1271         * target-descriptions.c (tdesc_register_type): Likewise.
1272
1273 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1274
1275         * ada-lang.c (ada_coerce_to_simple_array_type): Use builtin_type_int32
1276         instead of builtin_type_int as default unspecified integral type.
1277         (ada_index_type, ada_array_bound_from_type, ada_variant_discrim_type,
1278         assign_component, to_fixed_range_type): Likewise.
1279         * ada-typeprint.c (print_range, print_range_bound,
1280         print_range_type_named): Likewise.
1281         * ada-valprint.c (print_optional_low_bound, ada_val_print_1): Likewise.
1282         * eval.c (evaluate_subexp_standard): Likewise.
1283         * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
1284         * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset,
1285         build_gdb_vtable_type): Likewise.
1286         * jv-lang.c (java_array_type): Likewise.
1287         * m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Likewise.
1288         * m2-valprint.c (m2_print_long_set): Likewise.
1289         * parse.c (follow_types): Likewise.
1290         * p-typeprint.c (pascal_type_print_base): Likewise.
1291         * valops.c (value_one, value_array, value_string,
1292         value_bitstring): Likewise.
1293         * value.c (allocate_repeat_value, value_from_string): Likewise.
1294         * varobj.c (c_describe_child): Likewise.
1295         * mt-tdep.c (mt_register_type): Likewise.
1296         * sh-tdep.c (sh_sh4_build_float_register_type): Likewise.
1297         * sh64-tdep.c (sh64_build_float_register_type): Likewise.
1298
1299 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1300
1301         * defs.h (struct gdbarch): Add forward declaration.
1302         (set_next_address): Add GDBARCH argument.
1303         * printcmd.c (set_next_address): Use it to find pointer type.
1304         * breakpoint.c (breakpoint_1): Update call.
1305         * source.c (line_info): Likewise.
1306         * findcmd.c (find_command): Use current_gdbarch to find pointer type.
1307
1308         * breakpoint.c (set_breakpoint_count): Use platform-neutral
1309         types for internal variable values.
1310         * infrun.c (handle_inferior_event): Likewise.
1311         * source.c (forward_search_command, reverse_search_command): Likewise.
1312         * tracepoint.c (set_tracepoint_count, set_traceframe_num,
1313         set_tracepoint_num, set_traceframe_context): Likewise.
1314
1315 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1316
1317         * gdbtypes.h (struct builtin_type): Remove builtin_true_char
1318         and builtin_true_unsigned_char.
1319         (builtin_type_true_char): Remove macro, add extern declaration.
1320         (builtin_type_true_unsigned_char): Add extern declaration.
1321         * gdbtypes.c (builtin_type_true_char): New global variable.
1322         (builtin_type_true_unsigned_char): Likewise.
1323         (_initialize_gdbtypes): Initialize them.
1324         (gdbtypes_post_init): Do not initialize builtin_true_char
1325         and builtin_true_unsigned_char members of struct builtin_type.
1326
1327         * printcmd.c (print_scalar_formatted): Do not use builtin_type;
1328         use builtin_type_true_unsigned_char instead.
1329
1330         * ada-valprint.c (ada_val_print_1): Use builtin_type_true_char
1331         instead of builtin_type_char for internal string.
1332
1333 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1334
1335         * gdbtypes.h (builtin_type_void): Remove macro, add declaration.
1336         (builtin_type_f_void): Remove macro.
1337         * gdbtypes.c (builtin_type_void): New global variable.
1338         (_initialize_gdbtypes): Initialize it.
1339
1340         * gnu-v3-abi.c (build_gdb_vtable_type): Do not call
1341         lookup_pointer_type or lookup_function_type on builtin_type_void.
1342         * printcmd.c (set_next_address): Likewise.
1343         * objc-lang.c (value_nsstring): Likewise.
1344         * mt-tdep.c (mt_copro_register_type): Likewise.
1345         * xtensa-tdep.c (xtensa_register_type): Likewise.
1346
1347         * symfile.c (syms_from_objfile): Remove special handling
1348         of builtin_type_void and builtin_type_char.
1349
1350 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1351
1352         * eval.c (evaluate_subexp_standard): Use exp->gdbarch types instead
1353         of builtin_type_ macros when handling OP_OBJC_ operations.
1354         * objc-lang.c (print_object_command): Likewise.
1355
1356 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1357
1358         * ada-valprint.c: Include "objfiles.h".
1359         (ada_val_print_1): Use the gdbarch associated with the objfile whether
1360         a System.Address type is defined to retrieve the proper pointer type
1361         to use to print it.
1362
1363 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1364
1365         * ada-lang.c (value_pos_atr): Add TYPE argument.  Use it as
1366         result type instead of builtin_type_int.
1367         (value_subscript_packed): Use pos_atr instead of value_pos_atr.
1368         (ada_value_subscript): Update call to value_pos_atr.
1369         (ada_value_ptr_subscript): Likewise.
1370         (ada_evaluate_subexp): Likewise.
1371
1372 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1373
1374         * ada-lang.c (cast_to_fixed): Do not cast to builtin_type_double.
1375         (cast_from_fixed_to_double): Rename to ...
1376         (cast_from_fixed): ... this.  Add TYPE parameter.  Use it instead
1377         of builtin_type_double.
1378         (ada_value_cast): Use cast_from_fixed instead of casting result
1379         of cast_from_fixed_to_double.
1380         (ada_evaluate_subexp): Update calls to cast_from_fixed_to_double. 
1381
1382 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1383
1384         * valops.c (value_ind): No longer allow dereferencing an
1385         integer type.
1386         * eval.c (evaluate_subexp_standard): Handle deferencing an
1387         integer type here.
1388         * ada-lang.c (ada_evaluate_subexp): Likewise.
1389
1390 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1391
1392         * ada-valprint.c (ada_val_print_1): When implicitly dereferencing
1393         a reference type, pass the reference type directly to unpack_pointer.
1394         * c-valprint.c (c_val_print): Likewise.
1395         * f-valprint.c (f_val_print): Likewise.
1396         * m2-valprint.c (print_variable_at_address, m2_val_print): Likewise.
1397         * p-valprint.c (pascal_val_print): Likewise.
1398
1399 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1400
1401         * eval.c (evaluate_subexp_standard): Use builtin_type_int8
1402         to construct the EVAL_SKIP dummy return value.
1403         * ada-lang.c (ada_evaluate_subexp): Likewise.
1404         * jv-lang.c (evaluate_subexp_java): Likewise.
1405         * m2-lang.c (evaluate_subexp_modula2): Likewise.
1406         * scm-lang.c (evaluate_exp): Likewise.
1407
1408 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1409
1410         * value.h (coerce_enum, coerce_number): Remove prototypes.
1411         * value.c (coerce_enum, coerce_number): Remove.
1412         * valarith.c (value_x_binop): Do not call coerce_enum.
1413         (value_x_unop): Likewise.
1414         (value_logical_not): Call coerce_array instead of coerce_number.
1415
1416 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1417
1418         * ax-gdb.c: Include "language.h".
1419         (gen_frame_args_address): Add GDBARCH parameter; use it
1420         instead of current_gdbarch.
1421         (gen_frame_locals_address): Likewise.
1422         (gen_var_ref): Add GDBARCH parameter.  Update calls to
1423         gen_frame_args_address and gen_frame_locals_address.  Use
1424         pointer type from gdbarch.
1425         (gen_usual_unary): Add EXP parameter.  Use integer type
1426         from exp->gdbarch.
1427         (gen_usual_arithmetic): Likewise.
1428         (gen_integral_promotions): Likewise.
1429         (gen_add, gen_sub): Remove.
1430         (gen_ptradd, gen_ptrsub, gen_ptrdiff): New functions.
1431         (gen_logical_not): Use passed-in boolean result type
1432         instead of builtin_type_int.
1433         (gen_complement): Do not call gen_usual_unary or
1434         gen_integral_promotions.
1435         (gen_struct_ref): Call require_rvalue instead of gen_usual_unary.
1436         (gen_repeat): Add EXP parameter.  Update call to gen_expr.
1437         Use builtin_type_int32 as internal range type.
1438         (gen_sizeof): Add EXP and SIZE_TYPE parameters.  Use SIZE_TYPE
1439         as result type.  Update call to gen_expr.
1440         (gen_expr): Add EXP parameter.  Update calls to gen_expr,
1441         gen_repeat, gen_var_ref, gen_usual_unary, gen_usual_arithmetic,
1442         and gen_integral_promotions.  Call gen_ptradd, gen_ptrsub,
1443         gen_ptrdiff, or gen_binop instead of gen_add or gen_sub.
1444         Use exp->gdbarch instead of current_gdbarch.
1445         Call language_bool_type to determine result type of UNOP_LOGICAL_NOT.
1446
1447 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1448
1449         * eval.c (evaluate_subexp_standard): Add calls to binop_promote
1450         and unop_promote before calling value_binop et. al.
1451         * ada-lang.c (ada_evaluate_subexp): Add calls to binop_promote
1452         and unop_promote before calling value_binop et. al.
1453
1454         * valarith.c (value_binop): Do not call binop_promote or unop_promote.
1455         (value_pos): Do not call unop_promote.
1456         (value_neg, value_complement): Likewise.
1457
1458 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1459
1460         * value.h (unop_promote, binop_promote): Add prototypes.
1461         * eval.c (unop_promote, binop_promote): New functions.
1462         * valarith.c (unop_result_type, binop_result_type): Remove.
1463         (value_binop): Call binop_promote or unop_promote.
1464         Inline remaining parts of binop_result_type.  Remove special
1465         code to truncate integer values for unsigned operations.
1466         (value_pos): Call unop_promote.  Inline remaining parts of
1467         unop_result_type.
1468         (value_neg, value_complement): Likewise.
1469
1470 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1471
1472         * value.h (value_add, value_sub): Remove.
1473         (value_ptradd, value_ptrsub, value_ptrdiff): Add prototypes.
1474         * valarith.c (value_add, value_sub): Remove.
1475         (value_ptradd, value_ptrsub, value_ptrdiff): New functions.
1476         (find_size_for_pointer_math): Add assertion.  Update comment.
1477         (value_binop): Update comment.
1478
1479         * eval.c (ptrmath_type_p): New function.
1480         (evaluate_subexp_standard): Replace value_add and value_sub
1481         by value_ptradd, value_ptrsub, value_ptrdiff or value_binop.
1482         Use builtin_type_uint8 instead of builtin_type_char to hold
1483         the increment for BINOP_{PRE,POST}{IN,DE}CREMENT operations.
1484         * valarith.c (value_subscript): Replace value_add by
1485         value_ptradd.  Replace value_sub by value_binop.
1486         * ada-lang.c (ada_value_ptr_subscript): Likewise.
1487         (ada_tag_name_2): Replace value_add by value_ptradd.
1488         (ada_evaluate_subexp): Replace value_add and value_sub by
1489         value_binop.
1490         * m2-lang.c (evaluate_subexp_modula2): Replace value_add
1491         by value_ptradd.
1492         * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
1493         * gnu-v3-abi.c (gnuv3_method_ptr_to_value): Likewise.
1494
1495 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1496
1497         * eval.c (evaluate_subexp_for_sizeof): Use builtin_int type of
1498         the expression architecture instead of builtin_type_int as the
1499         sizeof return type.
1500
1501 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1502
1503         * expression.h (enum exp_opcode): Document OP_COMPLEX to take
1504         a type parameter as expression element.
1505         * eval.c (evaluate_subexp_standard) [OP_COMPLEX]: Retrieve result
1506         type as expression element.
1507         * f-exp.y: Pass in type when buildin OP_COMPLEX expression.
1508         * parse.c (operator_length_standard): Update length of OP_COMPLEX.
1509
1510 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1511
1512         * language.h (struct language_arch_info): New members
1513         bool_type_default and bool_type_symbol.
1514         (lang_bool_type): Remove prototype.
1515         (LA_BOOL_TYPE): Remove macro.
1516         (language_bool_type): Add prototype.
1517         * language.c (lang_bool_type): Remove.
1518         (language_bool_type): New function.
1519
1520         * value.h (value_in): Change return value to int.
1521         * value.c (value_in): Return int instead of struct value *.
1522
1523         * eval.c (evaluate_subexp_standard): Call language_bool_type instead
1524         of using LA_BOOL_TYPE.  Update call to value_in.
1525         * ada-lang.c (ada_evaluate_subexp): Call language_bool_type instead
1526         of using LA_BOOL_TYPE or builtin_type_int for boolean values.
1527
1528         * language.c (unknown_language_arch_info): Set bool_type_default member
1529         of struct language_arch_info.
1530         * ada-lang.c (ada_language_arch_info): Set bool_type_symbol and
1531         bool_type_default members of struct language_arch_info.
1532         * c-lang.c (c_language_arch_info): Set bool_type_default member
1533         of struct language_arch_info.
1534         (cplus_language_arch_info): Set bool_type_symbol and bool_type_default
1535         members of struct language_arch_info.
1536         * f-lang.c (f_language_arch_info): Set bool_type_symbol and
1537         bool_type_default members of struct language_arch_info.
1538         * jv-lang.c (java_language_arch_info): Set bool_type_symbol and
1539         bool_type_default members of struct language_arch_info.
1540         * m2-lang.c (m2_language_arch_info): Set bool_type_symbol and
1541         bool_type_default members of struct language_arch_info.
1542         * p-lang.c (p_language_arch_info): Set bool_type_symbol and
1543         bool_type_default members of struct language_arch_info.
1544
1545 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1546
1547         * jv-lang.c (enum java_primitive_types): New type.
1548         (java_language_arch_info): New function.
1549         (java_language): Use it instead of c_language_arch_info.
1550
1551 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1552
1553         * value.h (value_bitstring_subscript): New prototype.
1554         * valarith.h (value_bitstring_subscript): New function.
1555         (value_subscript): No longer handle TYPE_CODE_BITSTRING.
1556         * eval.c (evaluate_subexp_standard): Call value_bitstring_subscript
1557         instead of value_subscript to handle TYPE_CODE_BITSTRING.
1558
1559 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1560
1561         * expression.h (struct expression): New member GDBARCH.
1562         * parse.c (parse_exp_in_context): Initialize it.
1563         * parser-def.h (parse_gdbarch, parse_language): New macros.
1564
1565         * ada-exp.y (parse_type): New macro.
1566         Replace builtin_type_ macros by using parse_type.
1567         Replace current_language by parse_language.
1568         * ada-lex.l (processInt): Replace current_gdbarch by parse_gdbarch.
1569         Replace builtin_type_ macros.
1570
1571         * c-exp.y (parse_type): New macro.
1572         Replace builtin_type_ macros by using parse_type.
1573         (parse_number): Replace current_gdbarch by parse_gdbarch.
1574         (yylex): Replace current_language by parse_language.
1575
1576         * f-exp.y (parse_type, parse_f_type): New macros.
1577         Replace builtin_type_ macros by using parse_{f_,}type.
1578         (parse_number): Replace current_gdbarch by parse_gdbarch.
1579         (yylex): Replace current_language by parse_language.
1580
1581         * jv-exp.y (parse_type): New macro.
1582         (parse_number): Replace builtin_type_ macros by using parse_type.
1583
1584         * m2-exp.y (parse_type, parse_m2_type): New macros.
1585         Replace builtin_type_ macros by using parse_{m2_,}type.
1586
1587         * objc-exp.y (parse_type): New macro.
1588         Replace builtin_type_ macros by using parse_type.
1589         (parse_number): Replace current_gdbarch by parse_gdbarch.
1590         (yylex): Replace current_language by parse_language.
1591
1592         * p-exp.y (parse_type): New macro.
1593         Replace builtin_type_ macros by using parse_type.
1594         (parse_number): Replace current_gdbarch by parse_gdbarch.
1595         (yylex): Replace current_language by parse_language.
1596
1597 2008-09-11  Ulrich Weigand  <uweigand@de.ibm.com>
1598
1599         * parser-defs.h (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE
1600         and DATA_SYMBOL_TYPE arguments.
1601         * parse.c (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE and
1602         DATA_SYMBOL_TYPE arguments.  Replace use of builtin_type_CORE_ADDR.
1603         (write_dollar_variable): Update call.
1604
1605         * ada-exp.y (write_var_or_type): Update call.
1606         * c-exp.y: Likewise.
1607         * f-exp.y: Likewise.
1608         * jv-exp.y: Likewise.
1609         * m2-exp.y: Likewise.
1610         * objc-exp.y: Likewise.
1611         * p-exp.y: Likewise.
1612
1613 2008-09-10  Joel Brobecker  <brobecker@adacore.com>
1614
1615         * ada-lang.c (ada_parent_type): Add handling of the case where
1616         the _parent field is a pointer and/or has a parallel XVS type.
1617         (ada_evaluate_subexp) [OP_VAR_VALUE]: When doing an
1618         EVAL_AVOID_SIDE_EFFECTS evaluation of a tagged type, return
1619         the type of the tag instead of doing forcing an EVAL_NORMAL
1620         expression evaluation.
1621
1622 2008-09-10  Paul N. Hilfinger  <hilfinger@adacore.com> 
1623             Joel Brobecker  <brobecker@adacore.com>
1624
1625         * ada-lang.c (is_digits_suffix): New function.
1626         (is_dot_digits_suffix): Remove.
1627         (ada_lookup_symbol_list): Remove digits suffix from minimal symbols
1628         before looking up in symbol table, and do not use wild matches on them.
1629         (wild_match): Reimplement for speed and to allow matching of operator
1630         symbols.
1631         (is_valid_name_for_wild_match): Return zero for names that do not
1632         follow the GNAT encoding.
1633
1634         (is_name_suffix): Fix typo in comment.
1635         (to_record_with_fixed_variant_part): Ditto.
1636
1637 2008-09-10  Pedro Alves  <pedro@codesourcery.com>
1638
1639         * Makefile.in (gnu-nat.o): New rule.
1640
1641 2008-09-10  Joel Brobecker  <brobecker@adacore.com>
1642
1643         * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use
1644         archecture-neutral builtin_type_int32 instead of builtin_type_int.
1645
1646 2008-09-10  Joel Brobecker  <brobecker@adacore.com>
1647
1648         * ada-lang.c (ada_evaluate_subexp) [BINOP_ADD, BINOP_SUB]:
1649         Add special handling for pointer types.
1650
1651 2008-09-10  Pedro Alves  <pedro@codesourcery.com>
1652
1653         * inf-ttrace.c (inf_ttrace_follow_fork): Declare locals at the
1654         right scope level.
1655         (inf_ttrace_resume, inf_ttrace_wait): Typos.
1656
1657 2008-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
1658
1659         * ada-lang.c (ada_array_length): Use builtin_type_int32 instead
1660         of builtin_type_int.
1661         (ada_evaluate_subexp) [UNOP_IN_RANGE]: Use operand range type
1662         instead of builtin_type_int.
1663
1664 2008-09-09  Pedro Alves  <pedro@codesourcery.com>
1665
1666         * infrun.c (normal_stop): Run hook-stop last.
1667
1668 2008-09-09  Pedro Alves  <pedro@codesourcery.com>
1669
1670         * gnu-nat.c (gnu_pid_to_exec_file): Delete.
1671         (init_gnu_ops): Don't register it.
1672
1673 2008-09-09  Pedro Alves  <pedro@codesourcery.com>
1674
1675         * gnu-nat.c (gnu_attach): Push target before fetching the list of
1676         threads.
1677
1678 2008-09-08  Daniel Jacobowitz  <dan@codesourcery.com>
1679
1680         * valops.c (value_cast_structs): Return NULL for failure.
1681         (value_cast): Handle NULL from value_cast_structs.
1682         (value_fetch_lazy): Call check_typedef.  Remove unused variable.
1683
1684 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1685
1686         * inferior.h (context_switch_to): Delete.
1687         * infrun.c (context_switch): Don't save and load infrun state.
1688         (context_switch_to): Delete.
1689
1690         * infcmd.c (proceed_thread_callback): Replace context_switch_to
1691         calls by switch_to_thread calls.
1692
1693         * gdbthread.h (save_infrun_state, load_infrun_state): Delete.
1694         * thread.c (main_thread_state, main_thread_executing): Delete.
1695         (inferior_thread): Delete references to them.
1696         (add_thread_silent): Fix case where we're adding a thread with the
1697         same ptid as an exited thread.  Remove references to
1698         context-switching.
1699         (load_infrun_state, save_infrun_state): Delete.
1700         (thread_alive, is_thread_state, any_running, is_executing)
1701         (set_executing): Remove the special handling for targets that
1702         don't register any thread.
1703         (restore_current_thread, thread_apply_all_command)
1704         (do_captured_thread_select): Unconditionally call
1705         switch_to_thread.
1706
1707         * mi/mi-main.c (mi_cmd_execute): Check for exited threads.
1708         Call switch_to_thread instead of context_switch_to.
1709
1710 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1711
1712         Remove global continuations in favour of a per-thread
1713         continuations.
1714
1715         * gdbthread.h (struct thread_info): Add comments around
1716         continuations and intermediate_continuations.
1717         (save_infrun_state, load_infrun_state): Delete continuations and
1718         intermediate_continuations arguments.
1719         * infrun.c (context_switch): Don't context-switch the continuations.
1720         * thread.c (clear_thread_inferior_resources): Discard all
1721         continuations of the thread we're clearing.
1722         (save_infrun_state, load_infrun_state): Delete continuations and
1723         intermediate_continuations arguments, and the code referencing
1724         them.
1725         * utils.c: Include "gdbthread.h".
1726         (cmd_continuation, intermediate_continuation): Delete.
1727         (add_continuation): Add thread_info* argument.  Install the
1728         continuation on it.
1729         (restore_thread_cleanup): New.
1730         (do_all_continuations_ptid, do_all_continuations_thread_callback):
1731         New.
1732         (do_all_continuations): Reimplement.
1733         (discard_all_continuations_thread_callback,
1734         discard_all_continuations_thread): New.
1735         (discard_all_continuations): Reimplement.
1736         (add_intermediate_continuation): Add thread_info* argument.
1737         Install the continuation on it.
1738         (do_all_intermediate_continuations_thread_callback)
1739         (do_all_intermediate_continuations_thread): New.
1740         (do_all_intermediate_continuations): Reimplement.
1741         (discard_all_intermediate_continuations_thread_callback): New.
1742         (discard_all_intermediate_continuations_thread): New.
1743         (discard_all_intermediate_continuations): Reimplement.
1744
1745         * breakpoint.c (until_break_command): Install the continuation on
1746         the current thread.
1747
1748         * defs.h (cmd_continuation, intermediate_continuation): Delete.
1749         (struct thread_info): Forward declare.
1750         (add_continuation, add_intermediate_continuation): Add
1751         thread_info* argument.
1752         (do_all_continuations_thread, discard_all_continuations_thread)
1753         (do_all_intermediate_continuations_thread)
1754         (discard_all_intermediate_continuations_thread): Declare.
1755         * inf-loop.c (inferior_event_handler): In non-stop only run
1756         continuations on the thread that stopped.  In all-stop, run
1757         continuations on all threads.
1758         * infcmd.c (step_once, finish_command): Adjust.
1759
1760 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1761
1762         Remove the global stop_step in favour of a per-thread
1763         stop_step.
1764
1765         * inferior.h (stop_step): Delete.
1766
1767         * gdbthread.h (struct thread_info): Add comments to stop_step.
1768         (save_infrun_state, load_infrun_state): Remove stop_step argument.
1769         * thread.c (load_infrun_state, save_infrun_state): Remove
1770         stop_step argument, and references to it.
1771
1772         * infrun.c (clear_proceed_status): Clear stop_step.
1773         (fetch_inferior_event): Adjust.
1774         (context_switch): Don't context-switch stop_step.
1775         (handle_inferior_event): Adjust.
1776         (normal_stop): Adjust.
1777         (save_inferior_status, restore_inferior_status): Adjust.
1778
1779         * infcmd.c (stop_step): Delete.
1780         (step_1, step_1_continuation, step_once, until_next_command):
1781         Adjust.
1782
1783 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1784
1785         Remove the global step_multi in favour of a per-thread
1786         step_multi.
1787
1788         * inferior.h (step_multi): Delete.
1789         * gdbthread.h (struct thread_info): Add comments around
1790         step_multi.
1791         (save_infrun_state, load_infrun_state): Remove step_multi
1792         parameter.
1793         * thread.c (load_infrun_state, save_infrun_state): Remove
1794         step_multi argument, and references to it.
1795         * infcmd.c (step_multi): Delete.
1796         (step_1): Adjust.
1797         (step_1_continuation, until_next_command): Adjust.
1798         * infrun.c (fetch_inferior_event): Adjust.
1799         (context_switch): Don't context-switch step_multi.
1800         (print_stop_reason, normal_stop): Adjust.
1801
1802 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1803
1804         Remove the global stop_signal in favour of a per-thread
1805         stop_signal.
1806
1807         * inferior.h (stop_signal): Delete.
1808         * gdbthread.h (save_infrun_state, load_infrun_state): Remove
1809         stop_signal argument.
1810         * thread.c (load_infrun_state, save_infrun_state): Remove
1811         stop_signal argument.  Don't reference it.
1812
1813         * infcmd.c (stop_signal): Delete.
1814         (program_info): Adjust.
1815         * infrun.c (resume): Clear stop_signal.
1816         (proceed): Adjust.  Pass the last stop_signal to the thread we're
1817         resuming.
1818         (context_switch): Don't context-switch stop_signal.
1819         (handle_inferior_event, keep_going): Adjust.
1820         (save_inferior_status, restore_inferior_status): Adjust.
1821
1822         * fbsd-nat.c: Include "gdbthread.h".
1823         (find_signalled_thread, find_stop_signal): New.
1824         (fbsd_make_corefile_notes): Use it.
1825         * fork-child.c (startup_inferior): Adjust.
1826
1827         * linux-nat.c (get_pending_status): Adjust.
1828         (linux_nat_do_thread_registers): Adjust.
1829         (find_signalled_thread, find_stop_signal): New.
1830         (linux_nat_do_thread_registers): Add stop_signal parameter.
1831         (struct linux_nat_corefile_thread_data): Add stop_signal member.
1832         (linux_nat_corefile_thread_callback): Pass stop_signal.
1833         (linux_nat_do_registers): Delete.
1834         (linux_nat_make_corefile_notes): Use find_stop_signal.  Assume
1835         there's always a thread.
1836
1837         * procfs.c (find_signalled_thread, find_stop_signal): New.
1838         (find_stop_signal): New.
1839         (procfs_do_thread_registers): Add stop_signal parameter.
1840         (struct procfs_corefile_thread_data): Add stop_signal member.
1841         (procfs_corefile_thread_callback): Pass args->stop_signal.
1842         (procfs_make_note_section): Find the last stop_signal.
1843
1844         * solib-irix.c: Include gdbthread.h.
1845         (irix_solib_create_inferior_hook): Adjust.
1846         * solib-osf.c: Include gdbthread.h.
1847         (osf_solib_create_inferior_hook): Adjust.
1848         * solib-sunos.c: Include gdbthread.h.
1849         (sunos_solib_create_inferior_hook): Adjust.
1850         * solib-svr4.c: Include gdbthread.h.
1851         (svr4_solib_create_inferior_hook): Adjust.
1852
1853         * win32-nat.c (do_initial_win32_stuff): Adjust.
1854
1855 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1856
1857         * gdbthread.h (struct thread_info): Add comments around
1858         proceed_to_finish.
1859         (save_infrun_state, load_infrun_state): Remove proceed_to_finish
1860         argument.
1861         * thread.c (load_infrun_state, save_infrun_state): Delete
1862         proceed_to_finish argument and references to it.
1863
1864         * infcall.c (call_function_by_hand): Adjust.
1865         * infcmd.c (finish_command): Adjust.
1866         * infrun.c (proceed_to_finish): Delete.
1867         (clear_proceed_status): Adjust.
1868         (context_switch): Don't context-switch proceed_to_finish.
1869         (normal_stop, save_inferior_status, restore_inferior_status):
1870         Adjust.
1871
1872 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1873
1874         * inferior.h (stop_bpstat): Delete.
1875
1876         * breakpoint.h (bpstat_do_actions): Remove bpstat* argument.
1877         
1878         * breakpoint.c (bpstat_do_actions): Rename to ...
1879         (bpstat_do_actions_1): ... this.  Make static.  Change return type
1880         to int.  Return true if a breakpoint proceeded.
1881         (bpstat_do_actions): New, as wrapper around bpstat_do_actions_1.
1882         (delete_breakpoint): Don't reference the global stop_bpstat; it's
1883         gone.
1884
1885         * gdbthread.h (struct thread_info): Add stop_bpstat.
1886         (save_infrun_state, load_infrun_state): Remove stop_bpstat
1887         argument.
1888         * thread.c (load_infrun_state, save_infrun_state): Remove
1889         stop_bpstat argument, and the code referencing it.
1890
1891         * infcall.c: Include "gdbthread.h".
1892         (call_function_by_hand): Adjust.
1893         * exceptions.c: Include "gdbthread.h".
1894         (throw_exception): Adjust.
1895         * infcmd.c (stop_bpstat): Delete.
1896         (continue_command): In all-stop, set the ignore count on the
1897         thread that reported the stop.  In non-stop, set it on the current
1898         thread.
1899         (finish_command_continuation): Adjust.
1900         (program_info): Adjust.
1901         * infrun.c (clear_proceed_status): Adjust.
1902         (context_switch): Don't context-switch stop_bpstat.
1903         (handle_inferior_event): Adjust.
1904         (normal_stop): Adjust.
1905         (save_inferior_status, restore_inferior_status): Adjust.
1906
1907         * inf-loop.c (inferior_event_handler): Remove parameter to
1908         bpstat_do_actions call.
1909         * top.c (command_loop): Remove parameter to bpstat_do_actions
1910         call.  Call it unconditionally.
1911         * event-top.c (command_handler): Ditto.
1912         * python/python.c (execute_gdb_command): Ditto.
1913
1914 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1915
1916         * inferior.h (step_over_calls): Delete.
1917
1918         * gdbthread.h (save_infrun_state, load_infrun_state): Remove
1919         step_over_calls argument.
1920         * thread.c (save_infrun_state, load_infrun_state): Remove
1921         step_over_calls argument.  Adjust.
1922
1923         * infcmd.c (step_over_calls): Delete.
1924         (step_1): Adjust.
1925         * infrun.c (clear_proceed_status): Adjust.
1926         (context_switch): Don't context-switch step_over_calls.
1927         (handle_inferior_event, save_inferior_status)
1928         (restore_inferior_status): Adjust.
1929
1930 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
1931
1932         Remove context switching in favour of accessing thread_info fields
1933         directly.
1934
1935         * infrun.c (stepping_over_breakpoint, step_resume_breakpoint):
1936         Delete.
1937         (struct thread_stepping_state): Delete.
1938         (gtss, tss): Delete.
1939         (follow_inferior_reset_breakpoints, follow_exec)
1940         (resume, clear_proceed_status): Adjust.
1941         (prev_pc): Delete.
1942         (proceed, start_remote, init_wait_for_inferior): Adjust.
1943         (struct execution_control_state): Add event_thread member.
1944         (delete_step_resume_breakpoint_callback)
1945         (delete_step_thread_step_resume_breakpoint)
1946         (delete_step_thread_step_resume_breakpoint_cleanup)
1947         (delete_step_thread_step_resume_breakpoint): New.
1948         (wait_for_inferior, init_execution_control_state): Use
1949         delete_step_thread_step_resume_breakpoint_cleanup.
1950         (wait_for_inferior): Set the event_thread.
1951         (fetch_inferior_event): Ditto.  Delete the step-resume breakpoint
1952         with delete_step_thread_step_resume_breakpoint.
1953         (init_thread_stepping_state): Change parameter type to
1954         thread_info.  Adjust.
1955         (context_switch): Don't context switch prev_pc,
1956         stepping_over_breakpoint, step_resume_breakpoint,
1957         step_range_start, step_range_end, step_frame_id,
1958         tss->stepping_over_breakpoint,
1959         tss->stepping_through_solib_after_catch,
1960         tss->stepping_through_solib_catchpoints, tss->current_line, or
1961         tss->current_symtab.
1962         (adjust_pc_after_break, handle_inferior_event)
1963         (currently_stepping, step_into_function)
1964         (insert_step_resume_breakpoint_at_sal)
1965         (insert_longjmp_resume_breakpoint, keep_going): Adjust.
1966         (clear_stepping_state): New.
1967         (normal_stop): Adjust.
1968         (save_inferior_status, restore_inferior_status): Adjust.
1969
1970         * gdbthread.h (struct thread_info): Comments describing the
1971         members moved here.  Add step_after_step_resume_breakpoint.
1972         (delete_step_resume_breakpoint): Add thread_info argument.
1973         (save_infrun_state, load_infrun_state): Remove prev_pc,
1974         trap_expected, step_resume_breakpoint, step_range_start,
1975         step_range_end, step_frame_id, another_trap,
1976         stepping_through_solib_after_catch,
1977         stepping_through_solib_catchpoints, current_line and
1978         current_symtab function arguments.
1979         (inferior_thread): Declare.
1980
1981         * thread.c (inferior_thread): New.
1982         (delete_step_resume_breakpoint): Add a thread_info parameter and
1983         rewrite.
1984         (load_infrun_state, save_infrun_state): Remove prev_pc,
1985         trap_expected, step_resume_breakpoint, step_range_start,
1986         step_range_end, step_frame_id, stepping_over_breakpoint,
1987         stepping_through_solib_after_catch,
1988         stepping_through_solib_catchpoints, current_line and
1989         current_symtab args.  Remove code referencing them.
1990
1991         * infcmd.c (step_range_start, step_range_end, step_frame_id):
1992         Delete.
1993         (step_1, step_once, until_next_command): Adjust.
1994
1995         * inferior.h (step_range_start, step_range_end, step_frame_id):
1996         Delete.
1997
1998         * linux-nat.c (linux_child_follow_fork): If following the child,
1999         move the step state to it.  Adjust.
2000         * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
2001         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2002
2003 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
2004
2005         * bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main
2006         thread.
2007
2008 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
2009
2010         * corelow.c (add_to_thread_list): If this is the first time we
2011         hear about thread info, update inferior_ptid.
2012         (core_open): Clear the thread list and set inferior_ptid before
2013         acknowledging a new inferior.  Find threads before fetching
2014         register info.  Give an upper target layer a chance to find and
2015         claim new threads.  Print core generation and stop signal info
2016         after finding new threads.
2017         (get_core_register_section): Look at the lwp member of
2018         inferior_ptid for detecting if we have threads info, instead of
2019         the pid member.
2020         (core_pid_to_str): New.
2021         (init_core_ops): Register core_pid_to_str.
2022
2023 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
2024
2025         * spu-linux-nat.c (spu_child_post_startup_inferior)
2026         (spu_child_post_attach): Don't add the main thread here.
2027
2028 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
2029
2030         Use ptid_t.tid to store thread ids instead of ptid_t.pid.
2031
2032         * gnu-nat.c (inf_validate_procs): If this is the first time we're
2033         seeing a thread id, extend the main thread's ptid.  If we still
2034         have pending execs, don't be verbose about new threads.
2035         (gnu_wait, gnu_resume, gnu_attach, gnu_thread_alive)
2036         (gnu_pid_to_str, cur_thread, sig_thread_cmd): Adjust.
2037         * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers):
2038         Adjust.
2039
2040 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
2041
2042         * procfs.c (to_attach): Create a procinfo for the current lwp.
2043         Add it to gdb's thread list.
2044         (procfs_fetch_registers, procfs_store_registers): Assume there's
2045         always an lwp.
2046         (procfs_wait): Don't add the main thread here.
2047         (procfs_init_inferior): Create a procinfo for the main lwp here.
2048         Change main thread's ptid with thread_change_ptid.
2049         (procfs_notice_thread): Check for exited threads.
2050         (procfs_corefile_thread_callback): Remove check for the main
2051         process.
2052         (procfs_make_note_section): Assume there is always a thread.
2053
2054         * sol-thread.c (sol_thread_attach): Clear sol_thread_active before
2055         attaching.  Change the main thread ptid with thread_change_ptid.
2056         (sol_thread_detach): Clear sol_thread_active.
2057         (sol_thread_wait): Check for exited threads.
2058         (sol_thread_create_inferior): Clear sol_thread_active before
2059         creating a new inferior.  Change the main thread ptid with
2060         thread_change_ptid.
2061         (sol_thread_mourn_inferior): Clear sol_thread_active.
2062         (sol_find_new_threads_callback): Check for exited threads.
2063
2064 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
2065
2066         * inf-ttrace.c (inf_ttrace_wait): On TTEVT_LWP_CREATE and
2067         LWP_TERMINATE, resume the caller thread.  On TTEVT_LWP_CREATE,
2068         TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE, don't stop the whole
2069         process, and return TARGET_WAITKIND_IGNORE.
2070
2071 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
2072
2073         * inf-ttrace.c: Include <signal.h>
2074         (inf_ttrace_delete_dead_threads_callback): New.
2075         (inf_ttrace_resume_lwp): New.
2076         (inf_ttrace_resume_callback, inf_ttrace_resume): Rewrite.  Don't
2077         delete dying threads until they are really dead.
2078         (inf_ttrace_wait): After stopping the whole process, delete any
2079         dying thread that is really dead by now.
2080         (inf_ttrace_thread_alive): Return 1.
2081         (inf_ttrace_extra_thread_info): New.
2082         (inf_ttrace_target): Register inf_ttrace_extra_thread_info.
2083
2084 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
2085
2086         * inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread
2087         of the child fork.
2088         (inf_ttrace_attach): Add the main thread.
2089         (inf_ttrace_resume_callback): Check for exited threads.  Adjust
2090         for always a thread.
2091         (inf_ttrace_wait): Decorate the main thread's ptid with lwp info
2092         using thread_change_ptid, and set its private data.  Don't add the
2093         main thread here.
2094         (inf_ttrace_pid_to_str): Adjust.
2095
2096 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
2097
2098         * bsd-uthread.c (bsd_uthread_wait): Decorate the main thread with
2099         thread_change_ptid.  Check for exited threads.
2100         (bsd_uthread_find_new_threads): Check for exited threads.
2101
2102 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
2103
2104         * inf-ptrace.c: Include "gdbthread.h".
2105         (inf_ptrace_attach): Add the main thread here.
2106         * linux-nat.c (linux_nat_attach): Don't add the main thread here.
2107         Decorate the main thread id with the lwp id.
2108
2109 2008-09-08  Pedro Alves  <pedro@codesourcery.com>
2110
2111         * linux-nat.c (linux_nat_wait): Update inferior_ptid's ptid with
2112         thread_change_ptid.  Don't add or mark the main thread as running
2113         and executing here.
2114         * fork-child.c (fork_inferior): Add the main thread here.
2115
2116 2008-09-08  Jerome Guitton  <guitton@adacore.com>
2117
2118         * rs6000-tdep.c (rs6000_fetch_instruction)
2119         (rs6000_skip_stack_check): New functions.
2120         (skip_prologue): Skip stack check sequence.
2121         
2122 2008-09-08  David Daney  <ddaney@avtrex.com>
2123
2124         * dummy-frame.h (frame.h): Include it.
2125         (struct frame_id): Remove declaration.
2126
2127 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
2128
2129         * spu-tdep.c (spu_push_dummy_code): New function.
2130         (spu_gdbarch_init): Install it.
2131
2132 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
2133
2134         * gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz
2135         instead of paddr_nz.
2136         * gdbarch.c: Regenerate.
2137
2138         * target.c (target_xfer_partial, debug_print_register): Use
2139         core_addr_to_string_nz instead of paddr_nz.
2140
2141 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
2142
2143         * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping
2144         *before* calling gdbarch_init_osabi.
2145         (rs6000_aix_init_osabi): Disable displaced stepping.
2146
2147 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
2148
2149         * target.c (update_current_target): Do not inherit to_open
2150         or to_close.
2151         (pop_target): Call target_close on target_stack instead
2152         of current_target.
2153         (pop_all_targets_above): Likewise.
2154
2155 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
2156
2157         * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function.
2158         (gnuv3_print_method_ptr): Use it.
2159         (gnuv3_method_ptr_to_value): Likewise.
2160
2161 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
2162
2163         * nto-tdep.h (struct nto_target_ops): Add gdbarch parameter to
2164         register_area callback function.
2165         * i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter.
2166         Use it instead of current_gdbarch.
2167         * nto-procfs.c (procfs_store_registers): Update call.
2168
2169 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
2170
2171         * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use
2172         regcache architecture instead of current_gdbarch.
2173
2174 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
2175
2176         * mep-tdep.c (struct mep_prologue): Add gdbarch member.
2177         (check_for_saved): Use it instead of current_gdbarch.
2178         (is_arg_spill): Add gdbarch paramter.  Use it instead
2179         of current_gdbarch.
2180         (mep_analyze_prologue): Add gdbarch parameter.  Pass it
2181         to is_arg_spill and check_for_saved.
2182         (mep_skip_prologue, mep_analyze_frame_prologue): Update calls.
2183
2184 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
2185
2186         * hppa-tdep.c (internalize_unwinds): Use objfile architecture
2187         instead of current_gdbarch.
2188
2189 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
2190
2191         * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter.
2192         * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Add gdbarch paramter.
2193         Use it instead of current_gdbarch.
2194         (m68kbsd_supply_fpregset): Update call.
2195         * m68kbsd-nat.c (m68kbsd_supply_fpregset): Likewise.
2196         (m68kbsd_collect_fpregset): Likewise.
2197
2198 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
2199
2200         * cris-tdep.c (cris_version, cris_mode): Remove.
2201         (crisv32_single_step_through_delay): Use tdep->cris_mode.
2202         (cris_breakpoint_from_pc): Likewise.
2203         (cris_frame_unwind_cache): Use tdep->cris_version.
2204         (crisv32_scan_prologue): Likewise.
2205         (cris_spec_reg_applicable): Add gdbarch argument.
2206         Use tdep->cris_version.
2207         (cris_register_size, cris_special_register_name): Update calls.
2208         (cris_special_register_name): Add gdbarch argument.
2209         (cris_register_name, crisv32_register_name): Update calls.
2210
2211 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
2212
2213         * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->arch
2214         instead of current_gdbarch.
2215
2216         * sh64-tdep.c (gdb_print_insn_sh64): Remove.
2217         (sh64_gdbarch_init): Install print_insn_sh64 directly.
2218         * sh-tdep.c (gdb_print_insn_sh): Remove.
2219         (sh_gdbarch_init): Install print_insn_sh directly.
2220
2221         * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi
2222         from current_gdbarch.
2223         (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions.
2224         (mips_gdbarch_init): Install them instead of gdb_print_insn_mips
2225         depending on mips_abi.
2226
2227 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
2228
2229         * gdbarch.sh (addr_bits_remove): Change type to 'm'.
2230         (smash_text_address): Likewise.
2231         * gdbarch.c, gdbarch.h: Regenerate.
2232
2233         * arch-utils.c (core_addr_identity): Add gdbarch parameter.
2234         * arch-utils.h (core_addr_identity): Likewise.
2235         * arm-tdep.c (arm_addr_bits_remove): Likewise.
2236         (arm_smash_text_address): Likewise.
2237         * hppa-tdep.c (hppa_smash_text_address): Likewise.
2238         * m88k-tdep.c (m88k_addr_bits_remove): Likewise.
2239         * s390-tdep.c (s390_addr_bits_remove): Likewise.
2240
2241         * mips-tdep.c (mips_addr_bits_remove): Add gdbarch parameter.
2242         Use it instead of current_gdbarch.
2243
2244         * arm-tdep.c (arm_prologue_prev_register, arm_unwind_pc,
2245         arm_dwarf2_prev_register): Update calls.
2246         * m88k-tdep.c (m88k_unwind_pc): Update call.
2247
2248 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
2249
2250         * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument.
2251         * dwarf2expr.c (dwarf2_read_address): Add gdbarch argument.
2252         Call gdbarch_integer_to_address directly instead of converting
2253         to value and back.  Update comment.
2254         (execute_stack_op): Update call site.
2255         * dwarf2loc.c (find_location_expression): Likewise.
2256         (locexpr_describe_location): Update
2257
2258         * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member.
2259         * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch.
2260         * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise.
2261         (dwarf2_loc_desc_needs_frame): Likewise.
2262
2263 2008-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
2264
2265         * breakpoint.h (struct bp_location): Change type of section
2266         member to "struct obj_section *".
2267         * tracepoint.h (struct tracepoint): Likewise.
2268         * symtab.h (struct general_symbol_info): Replace bfd_section
2269         member with obj_section.
2270         (struct symtab_and_line): Change type of section member to
2271         "struct obj_section *".
2272         (SYMBOL_BFD_SECTION): Remove macro, replace by ...
2273         (SYMBOL_OBJ_SECTION): ... this.
2274
2275         * minsym.c (prim_record_minimal_symbol_and_info): Record symbol
2276         section as obj_section instead of bfd_section.
2277
2278         * ada-lang.c (ada_decode_symbol): Use gsymbol->obj_section
2279         directly instead of looking of obj_section from bfd_section.
2280
2281         * objfiles.h (find_pc_sect_section): Remove.
2282         * objfiles.c (find_pc_sect_section): Remove.
2283         (find_pc_section): Inline find_pc_sect_section code.
2284
2285         * symfile.h (find_pc_overlay): Return struct obj_section *.
2286         (find_pc_mapped_section): Likewise.
2287         (section_is_overlay, section_is_mapped): Change type of section
2288         argument to struct obj_section *.
2289         (pc_in_mapped_range, pc_in_unmapped_range): Likewise.
2290         (overlay_mapped_address, overlay_unmapped_address): Likewise.
2291         (symbol_overlayed_address): Likewise.
2292         * symtab.h (symbol_overlayed_address): Likewise.
2293         * symfile.c (overlay_is_mapped): Remove.
2294         (section_is_mapped): Inline overlay_is_mapped code.  Update.
2295         (overlay_invalidate_all): Update.
2296         (section_is_overlay): Change section argument to type
2297         "struct obj_section *".  Use bfd_ methods.
2298         (pc_in_unmapped_range): Likewise.  Handle relocated sections.
2299         (pc_in_mapped_range): Likewise.  Handle relocated sections.
2300         (sections_overlap): Likewise.
2301         (overlay_unmapped_address): Likewise.
2302         (overlay_mapped_address): Likewise.
2303         (symbol_overlayed_address): Likewise.
2304         (find_pc_overlay): Return struct obj_section *.
2305         (find_pc_mapped_section): Likewise.
2306         (list_overlays_command): Update.
2307         (map_overlay_command, unmap_overlay_command): Update.
2308         (simple_overlay_update): Update.
2309
2310         * block.h (blockvector_for_pc_sect): Change section argument
2311         to type "struct obj_section *".
2312         (block_for_pc_sect): Likewise.
2313         * block.c (blockvector_for_pc_sect): Change section argument
2314         to type "struct obj_section *".
2315         (block_for_pc_sect): Likewise.
2316         * symtab.h (find_pc_sect_function, find_pc_sect_psymtab,
2317         find_pc_sect_symtab, find_pc_sect_psymbol, find_pc_sect_line,
2318         lookup_minimal_symbol_by_pc_section, find_function_start_pc): Likewise.
2319         (matching_bfd_sections): Rename to ...
2320         (matching_obj_sections): ... this.  Update argument types.
2321         * blockframe.c (find_pc_sect_function): Likewise.
2322         * breakpoint.c (describe_other_breakpoints): Likewise.
2323         (breakpoint_has_pc, check_duplicates_for): Likewise.
2324         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
2325         (lookup_minimal_symbol_by_pc_section): Likewise.
2326         * symtab.c (find_pc_sect_psymtab_closer): Likewise.
2327         (find_pc_sect_psymtab, find_pc_sect_psymbol, find_pc_sect_symtab,
2328         find_pc_sect_line, find_function_start_pc): Likewise.
2329         (matching_bfd_sections): Rename to ...
2330         (matching_obj_sections): ... this.  Update argument types.
2331
2332         * blockframe.c (find_pc_partial_function): Update to section
2333         type changes.  No longer call find_pc_sect_section.
2334         (cache_pc_function_section): Change to type "struct obj_section *".
2335         * breakpoint.c (resolve_sal_pc): Update to section type changes.
2336         * exec.c (xfer_memory): Likewise.
2337         * findvar.c (read_var_value): Likewise.
2338         * infcmd.c (jump_command): Likewise.
2339         * linespec.c (minsym_found): Likewise.
2340         * maint.c (maintenance_translate_address): Likewise.
2341         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
2342         (lookup_solib_trampoline_symbol_by_pc): Likewise.
2343         * parse.c (write_exp_msymbol): Likewise.
2344         * printcmd.c (build_address_symbolic): Likewise.
2345         (address_info, sym_info): Likewise.
2346         * symmisc.c (dump_msymbols, print_symbol): Likewise.
2347         * symtab.c (fixup_section): Likewise.
2348         (fixup_symbol_section, fixup_psymbol_section): Likewise.
2349         (find_pc_line, find_function_start_sal): Likewise.
2350         * target.c (memory_xfer_partial): Likewise.
2351         * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline): Likewise.
2352         * spu-tdep.c (spu_overlay_update): Likewise.
2353
2354 2008-09-04  Doug Evans  <dje@google.com>
2355
2356         * defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d.
2357         Change argument of pulongest from CORE_ADDR to ULONGEST.
2358         All callers updated.
2359         * utils.c (plongest): Renamed from paddr_d.
2360         (pulongest): Renamed from paddr_u, change arg type to ULONGEST.
2361         * remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in
2362         `CORE_ADDR addr' arg of error message.
2363
2364 2008-09-03  Angela Marie Thomas <angela@releasedominatrix.com>
2365
2366         * ser-tcp.c (ser_tcp_send_break): New function.
2367         (_initialize_ser_tcp): Use ser_tcp_send_break.
2368         * ser-tcp.h (ser_tcp_send_break): New prototype.
2369
2370 2008-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
2371
2372         * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slots
2373         when allocating stack frame for inferior call.
2374
2375 2008-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
2376
2377         * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind
2378         SP or return address if we failed to find a valid frame.
2379
2380 2008-09-03  Aleksandar Ristovski  <aristovski@qnx.com>
2381
2382         * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
2383         non-permanent breakpoints.
2384         (bpstat_stop_status): Change enable_state to bp_disabled only for
2385         non-permanent breakpoints.
2386         (bp_loc_is_permanent): New function.
2387         (create_breakpoint): Check if the location points to a permanent
2388         breakpoint and if it does, make breakpoint permanent.
2389         (update_breakpoint_locations): Make sure new locations of permanent
2390         breakpoints are properly initialized.
2391         * i386-tdep.c (i386_skip_permanent_breakpoint): New function.
2392         (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint.
2393
2394 2008-09-02  Pedro Alves  <pedro@codesourcery.com>
2395
2396         * breakpoint.c (insert_breakpoints, update_global_location_list):
2397         Check breakpoints_always_inserted_mode instead of
2398         always_inserted_mode directly.
2399
2400 2008-09-02  Andreas Schwab  <schwab@suse.de>
2401
2402         * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr.
2403
2404 2008-09-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
2405
2406         Stay compatible after the GCC PR fortran/29635 fix.
2407         * dwarf2read.c (process_die <DW_TAG_imported_module>)
2408         (process_die <DW_TAG_imported_module>): Do not assert anything about
2409         these unsupported tags.
2410
2411 2008-08-29  Tom Tromey  <tromey@redhat.com>
2412
2413         * maint.c (_initialize_maint_cmds): Fix typo.
2414
2415 2008-08-29  Tom Tromey  <tromey@redhat.com>
2416
2417         * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
2418         obstack.
2419
2420 2008-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
2421
2422         * remote.c: Include "gdb_stat.h".
2423
2424 2008-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
2425
2426         * dummy-frame.h (dummy_frame_pop): Add prototype.
2427         * dummy-frame.c: Include "observer.h".
2428         (dummy_frame_push): Do not check for stale frames.
2429         (dummy_frame_pop): New function.
2430         (cleanup_dummy_frames): New function.
2431         (_initialize_dummy_frame): Install it as inferior_created observer.
2432
2433         * frame.h (struct frame_id): Update comments.
2434         (frame_id_inner): Remove prototype.
2435         * frame.c (frame_id_inner): Make static.  Add comments.
2436         (frame_find_by_id): Update frame_id_inner safety net check to avoid
2437         false positives for targets using non-contiguous stack ranges.
2438         (get_prev_frame_1): Update frame_id_inner safety net check.
2439         (frame_pop): Call dummy_frame_pop when popping a dummy frame.
2440
2441         * stack.c (return_command): Directly pop the selected frame.
2442         * infrun.c (handle_inferior_event): Remove dead code.
2443         * i386-tdep.c (i386_push_dummy_call): Update comment.
2444
2445 2008-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
2446
2447         * breakpoint.c (remove_breakpoint): Do not fail if unable to remove
2448         breakpoint from shared library.
2449
2450 2008-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
2451
2452         * solib-svr4.c (read_program_header): New function.
2453         (scan_dyntag_auxv): New function.
2454         (elf_locate_base): Use it if scan_dyntag fails.
2455         (find_program_interpreter): New function.
2456         (enable_break): Use it instead of .interp section.
2457
2458 2008-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
2459
2460         * remote.h (remote_filename_p, remote_bfd_open): Add prototypes.
2461         * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close,
2462         remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p,
2463         remote_bfd_open): New functions.
2464         (remote_hostio_send_command): Fail safely if remote connection
2465         is not set up.
2466
2467         * solist.h (solib_open): Remove prototype.
2468         (solib_bfd_open): Add prototype.
2469         * solib.c: Include "remote.h".
2470         (solib_open): Remove, replace by ...
2471         (solib_bfd_open): ... this new function.  Handle remote BFDs.
2472         (solib_map_sections): Replace solib_open by solib_bfd_open.
2473         * solib-frv.c: Include "exceptions.h".
2474         (enable_break2): Replace solib_open by solib_bfd_open.
2475         * solib-svr4.c: Include "exceptions.h".
2476         (enable_break): Replace solib_open by solib_bfd_open.
2477
2478         * symfile.c: Include "remote.h".
2479         (build_id_verify): Handle remote BFDs.
2480         (separate_debug_file_exists): Use BFD to access file.  Handle
2481         remote BFDs.
2482         (symfile_bfd_open): Handle remote BFDs.
2483         (reread_symbols): Handle remote BFDs.
2484
2485         * NEWS: Mention "remote:" argument prefix to "set sysroot".
2486
2487 2008-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
2488
2489         * gdbarch.sh (target_gdbarch): New global variable.
2490         (deprecated_current_gdbarch_select_hack): Set it.
2491         * gdbarch.c, gdbarch.h: Regenerate.
2492
2493         * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead
2494         of current_gdbarch.
2495         * target-descriptions.c (target_find_description): Likewise.
2496         * arm-tdep.c (arm_update_current_architecture): Likewise.
2497         (show_fp_model, arm_show_abi, arm_show_fallback_mode, 
2498         arm_show_force_mode): Likewise.
2499         * mips-tdep.c (show_mask_address, show_mipsfpu_command,
2500         show_mips_abi): Likewise.
2501         * mep-tdep.c (me_module_register_set, current_me_module): Likewise.
2502
2503         * target.c (target_translate_tls_address): Use target_gdbarch
2504         instead of current_gdbarch.
2505         * remote.c (struct packet_reg): Likewise.
2506         (get_remote_arch_state, packet_reg_from_regnum,
2507         packet_reg_from_pnum, remote_check_symbols, remote_wait,
2508         remote_address_masked, remote_insert_breakpoint,
2509         remote_insert_hw_breakpoint, remote_read_description): Likewise.
2510         * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
2511         * remote-mips.c (mips_open, mips_common_breakpoint): Likewise.
2512         * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise.
2513
2514         * solib.c (solib_open, solib_map_sections, solib_read_symbols,
2515         solib_add, info_sharedlibrary_command, solib_address, 
2516         solib_create_inferior_hook, in_solib_dynsym_resolve_code,
2517         solib_global_lookup): Likewise.
2518         * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise.
2519         * solib-irix.c (irix_current_sos, irix_open_symbol_file_object):
2520         Likewise.
2521         * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
2522         * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so,
2523         set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets):
2524         Likewise.
2525         * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix,
2526         nto_truncate_ptr): Likewise.
2527         * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.
2528
2529 2008-08-26  Luis Machado  <luisgpm@br.ibm.com>
2530
2531         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
2532         (ppc_linux_vmx_regset_sections): New structure.
2533         (ppc_linux_fp_regset_sections): New structure.
2534         (ppc_linux_init_abi): Select core-file regset  based on target
2535         features.
2536
2537 2008-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
2538
2539         * target.c (debug_print_register): Use regcache_raw_collect
2540         instead of regcache_cooked_read.  Only handle raw registers.
2541
2542 2008-08-25  Pedro Alves  <pedro@codesourcery.com>
2543
2544         * cp-name-parser.y: Include config.h before system headers.
2545
2546 2008-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
2547
2548         * m88k-tdep.c: Update for unwinder changes.
2549
2550 2008-08-24  Tom Tromey  <tromey@redhat.com>
2551
2552         * s390-tdep.c (s390_address_class_type_flags): Use
2553         TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
2554         (s390_address_class_type_flags_to_name): Likewise.
2555         (s390_address_class_name_to_type_flags): Likewise.
2556
2557 2008-08-24  Tom Tromey  <tromey@redhat.com>
2558
2559         * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
2560         TYPE_FLAGS.
2561         * features/rs6000/powerpc-vsx32l.c
2562         (initialize_tdesc_powerpc_vsx32l): Update.
2563         * features/rs6000/powerpc-vsx32.c
2564         (initialize_tdesc_powerpc_vsx32): Update.
2565         * features/rs6000/powerpc-vsx64.c
2566         (initialize_tdesc_powerpc_vsx64): Update.
2567         * features/rs6000/powerpc-vsx64l.c
2568         (initialize_tdesc_powerpc_vsx64l): Update.
2569         * target-descriptions.c (maint_print_c_tdesc_cmd): Emit
2570         TYPE_VECTOR, not TYPE_FLAGS.
2571
2572 2008-08-24  Tom Tromey  <tromey@redhat.com>
2573
2574         * xml-tdesc.c (tdesc_end_union): Update.
2575         * stabsread.c (define_symbol): Update.
2576         (read_type): Update.
2577         (read_struct_type): Update.
2578         (read_enum_type): Update.
2579         * spu-tdep.c (spu_builtin_type_vec128): Update.
2580         * sh-tdep.c (sh_push_dummy_call_fpu): Update.
2581         (sh_push_dummy_call_nofpu): Update.
2582         * mdebugread.c (parse_symbol): Update.
2583         (parse_symbol): Update.
2584         (parse_symbol): Update.
2585         (upgrade_type): Update.
2586         * jv-lang.c (java_lookup_class): Update.
2587         * iq2000-tdep.c (iq2000_pointer_to_address): Update.
2588         * i386-tdep.c (i386_mmx_type): Update.
2589         (i386_sse_type): Update.
2590         * gdbtypes.h (enum type_flag_value): New enum.
2591         (enum type_instance_flag_value): New enum.
2592         (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB,
2593         TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED,
2594         TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR,
2595         TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED,
2596         TYPE_FLAG_NOTTEXT): Now enum constants.
2597         (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE,
2598         TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1,
2599         TYPE_FLAG_ADDRESS_CLASS_2): Remove.
2600         (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE,
2601         TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE,
2602         TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1,
2603         TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants.
2604         (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB,
2605         TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS,
2606         TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED,
2607         TYPE_NOTTEXT): Update.
2608         (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove.
2609         (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define.
2610         (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE,
2611         TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2,
2612         TYPE_ADDRESS_CLASS_ALL): Update.
2613         (struct main_type) <flags>: Remove.
2614         <flag_unsigned, flag_nosign, flag_stub, flag_target_stub,
2615         flag_static, flag_prototyped, flag_incomplete, flag_varargs,
2616         flag_vector, flag_stub_supported, flag_nottext,
2617         flag_fixed_instance>: New fields.
2618         <nfields, vptr_fieldno>: Move earlier.
2619         (TYPE_FLAGS): Remove.
2620         * gdbtypes.c (make_pointer_type): Update.
2621         (address_space_name_to_int): Update.
2622         (address_space_int_to_name): Update.
2623         (make_type_with_address_space): Update.
2624         (make_cv_type): Update.
2625         (create_range_type): Update.
2626         (get_discrete_bounds): Update.
2627         (create_set_type): Update.
2628         (make_vector_type): Update.
2629         (smash_to_method_type): Update.
2630         (check_typedef): Update.
2631         (check_stub_method): Update.
2632         (init_type): Individually assign flag fields.
2633         (recursive_dump_type): Don't print entire TYPE_FLAGS field.  Do
2634         print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT.
2635         (copy_type_recursive): Copy the entire main type.  Don't use
2636         TYPE_FLAGS.
2637         * features/rs6000/powerpc-altivec64l.c
2638         (initialize_tdesc_powerpc_altivec64l): Update.
2639         * features/rs6000/powerpc-altivec64.c
2640         (initialize_tdesc_powerpc_altivec64): Update.
2641         * features/rs6000/powerpc-altivec32l.c
2642         (initialize_tdesc_powerpc_altivec32l): Update.
2643         * features/rs6000/powerpc-altivec32.c
2644         (initialize_tdesc_powerpc_altivec32): Update.
2645         * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400):
2646         Update.
2647         * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt):
2648         Update.
2649         * dwarf2read.c (read_structure_type): Update.
2650         (read_enumeration_type): Likewise.
2651         (process_enumeration_scope): Likewise.
2652         (read_tag_pointer_type): Likewise.
2653         (read_subroutine_type): Likewise.
2654         (read_subroutine_type): Likewise.
2655         (read_base_type): Likewise.
2656         * coffread.c (coff_read_enum_type): Update.
2657         * ada-valprint.c (adjust_type_signedness): Update.
2658         * ada-typeprint.c (print_record_field_types): Update.
2659         * ada-lang.c (packed_array_type): Update.
2660         (empty_record): Don't reset TYPE_FLAGS.
2661         (ada_template_to_fixed_record_type_1): Update.
2662         (ada_template_to_fixed_record_type_1): Likewise.
2663         (template_to_static_fixed_type): Likewise.
2664         (to_record_with_fixed_variant_part): Likewise.
2665         (to_fixed_record_type): Likewise.
2666         (to_fixed_array_type): Likewise.
2667         (to_static_fixed_type): Likewise.
2668
2669 2008-08-23  Jim Blandy  <jimb@redhat.com>
2670
2671         PR macros/607:
2672         * symmisc.c (print_symbol_bcache_statistics): Include statistics
2673         for the macro bcache.
2674
2675 2008-08-23  Tom Tromey  <tromey@redhat.com>
2676
2677         * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
2678         (argc): Now 31 bits.
2679
2680 2008-08-22  Tom Tromey  <tromey@redhat.com>
2681
2682         * NEWS: Move macro entries back under "New commands".
2683
2684 2008-08-22  Ulrich Weigand  <uweigand@de.ibm.com>
2685
2686         * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
2687         (create_overlay_event_breakpoint_1): ... this.  Add OBJFILE parameter.
2688         (create_overlay_event_breakpoint): Loop over all objfiles to install
2689         multiple instances of the overlay event breakpoint if present.
2690
2691 2008-08-22  Ulrich Weigand  <uweigand@de.ibm.com>
2692
2693         * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
2694         (info_spu_event_command): Command only supported on SPU architecture.
2695         (info_spu_signal_command): Likewise.
2696         (info_spu_mailbox_command): Likewise.
2697         (info_spu_dma_command): Likewise.
2698         (info_spu_proxydma_command): Likewise.
2699
2700 2008-08-22  Ulrich Weigand  <uweigand@de.ibm.com>
2701
2702         * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
2703         if the thread has already exited.
2704
2705 2008-08-22  Pedro Alves  <pedro@codesourcery.com>
2706
2707         * infrun.c (proceed): Move back setting previous_inferior_ptid
2708         from here ...
2709         (wait_for_inferior): ... to here.
2710         (fetch_inferior_event): ... and here.
2711
2712 2008-08-21  Ulrich Weigand  <uweigand@de.ibm.com>
2713
2714         * gdbarch.sh: Include "regcache.h" into gdbarch.c.
2715         (deprecated_current_gdbarch_select_hack): Call registers_changed
2716         instead of reinit_frame_cache.
2717         * gdbarch.c: Regenerate.
2718
2719 2008-08-21  Ulrich Weigand  <uweigand@de.ibm.com>
2720
2721         * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
2722
2723 2008-08-21  Daniel Jacobowitz  <dan@codesourcery.com>
2724
2725         * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
2726
2727 2008-08-21  Ulrich Weigand  <uweigand@de.ibm.com>
2728
2729         * findvar.c (locate_var_value): Do not call get_frame_arch
2730         with a NULL frame argument.
2731
2732 2008-08-21  Ulrich Weigand  <uweigand@de.ibm.com>
2733
2734         * frame.h (frame_map_regnum_to_name): Remove prototype.
2735         (frame_map_name_to_regnum): Remove prototype.
2736         * frame.c (frame_map_regnum_to_name): Remove.
2737         (frame_map_name_to_regnum): Remove.
2738         (frame_unwind_register_value): Use user_reg_map_regnum_to_name
2739         instead of frame_map_regnum_to_name.
2740         * ax-gdb.c: Include "user-regs.h".
2741         (gen_expr): Use user_reg_map_name_to_regnum instead of
2742         frame_map_name_to_regnum.
2743         * eval.c:  Include "user-regs.h".
2744         (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
2745         instead of frame_map_name_to_regnum.
2746         * infcmd.c (registers_info): Likewise.
2747         * parse.c: Include "user-regs.h".
2748         (write_dollar_variable): Use user_reg_map_name_to_regnum
2749         instead of frame_map_name_to_regnum.
2750         * tracepoint.c: Include "user-regs.h".
2751         (encode_actions): Use user_reg_map_name_to_regnum
2752         instead of frame_map_name_to_regnum.
2753         * valops.c: Include "user-regs.h".
2754         (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
2755         of frame_map_regnum_to_name.
2756
2757 2008-08-21  Ulrich Weigand  <uweigand@de.ibm.com>
2758
2759         * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
2760         and manually relocate .opd contents from BFD instead of reading
2761         them from target memory.
2762
2763 2008-08-21  Daniel Jacobowitz  <dan@codesourcery.com>
2764
2765         * dwarf2read.c (processing_current_prefix): Delete static
2766         variable.
2767         (process_full_comp_unit): Do not set processing_current_prefix.
2768         (dwarf2_full_name): New function.
2769         (read_func_scope): Do not set processing_current_prefix.  Use
2770         determine_prefix.
2771         (read_structure_type): Do not set processing_current_prefix.  Remove
2772         unused inner cleanup.
2773         (process_structure_scope): Do not set processing_current_prefix.
2774         (read_enumeration_type): Use dwarf2_full_name.
2775         (determine_class_name): Return a const char *.  Put the result
2776         on the objfile obstack.  Use dwarf2_full_name.
2777         (read_namespace_type): New function.
2778         (read_namespace): Do not create the type here.  Use
2779         determine_prefix.
2780         (read_typedef): Use dwarf2_full_name.  Do not pass the name
2781         to init_type.
2782         (read_base_type): Do not pass the name to init_type.  Handle
2783         TYPE_FLAG_NOSIGN.
2784         (read_unspecified_type): Do not pass the name to init_type.
2785         (new_symbol): Use dwarf2_full_name instead of
2786         processing_current_prefix.
2787         (read_type_die): Do not set processing_current_prefix.  Handle
2788         DW_TAG_namespace.
2789         (determine_prefix): Handle specifications.  Return the result
2790         on the objfile obstack.  Handle unions correctly.
2791
2792 2008-08-21  Daniel Jacobowitz  <dan@codesourcery.com>
2793
2794         * buildsym.c (add_symbol_to_list): Do not call
2795         cp_scan_for_anonymous_namespaces here.
2796         (finish_block): Do not call cp_set_block_scope here.
2797         * cp-namespace.c (processing_has_namespace_info)
2798         (processing_current_prefix): Delete.
2799         (cp_initialize_namespace): Do not initialize
2800         processing_has_namespace_info.
2801         (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME.  Do
2802         not check processing_has_namespace_info.
2803         (cp_set_block_scope): Take prefix and namespace info flag as
2804         arguments.  Honor namespaces regardless of a demangled name.
2805         * cp-support.h (processing_has_namespace_info)
2806         (processing_current_prefix): Delete declarations.
2807         (cp_set_block_scope): Update prototype.
2808         * dwarf2read.c (processing_has_namespace_info)
2809         (processing_current_prefix): New static variables.
2810         (read_file_scope): Initialize processing_has_namespace_info.
2811         (read_func_scope): Call cp_set_block_scope for C++.
2812         (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
2813         * symtab.c (symbol_demangled_name): Accept a const argument.
2814         * symtab.h (symbol_demangled_name): Update prototype.
2815
2816 2008-08-21  Daniel Jacobowitz  <dan@codesourcery.com>
2817
2818         * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
2819         * blockframe.c (find_pc_partial_function): Likewise.
2820         * buildsym.c (find_symbol_in_list): Likewise.
2821         * c-valprint.c (c_val_print): Likewise.
2822         * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
2823         (coff_read_enum_type): Likewise.  Use SYMBOL_SET_LINKAGE_NAME.
2824         * cp-support.c (cp_remove_params): Renamed from remove_params and
2825         made global.
2826         (overload_list_add_symbol): Update call to remove_params.
2827         * cp-support.h (cp_remove_params): Declare.
2828         * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
2829         (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
2830         * expprint.c (dump_subexp_body_standard): Likewise.
2831         * f-valprint.c (info_common_command, there_is_a_visible_common_named):
2832         Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
2833         for messages.
2834         * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
2835         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
2836         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2837         (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
2838         symbols and SYMBOL_PRINT_NAME for messages.
2839         * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
2840         * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
2841         * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
2842         SYMBOL_SET_LINKAGE_NAME.
2843         (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
2844         * minsyms.c (add_minsym_to_demangled_hash_table): Use
2845         SYMBOL_SEARCH_NAME.
2846         (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
2847         SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
2848         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
2849         * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
2850         (address_info): Use SYMBOL_PRINT_NAME for messages and
2851         SYMBOL_LINKAGE_NAME for lookups.
2852         * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
2853         * stabsread.c (patch_block_stabs, define_symbol)
2854         (read_type, read_enum_type, common_block_end)
2855         (cleanup_undefined_types_1, scan_file_globals): Use
2856         SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
2857         and SYMBOL_PRINT_NAME.
2858         * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
2859         (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output.  Use
2860         cp_remove_params instead of cplus_demangle.
2861         (print_block_frame_labels, print_frame_arg_vars): Use
2862         SYMBOL_LINKAGE_NAME.
2863         * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
2864         SYMBOL_LINKAGE_NAME.
2865         (dump_symtab_1, print_symbol, print_partial_symbols)
2866         (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
2867         * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
2868         (SYMBOL_SET_LINKAGE_NAME): New.
2869         (SYMBOL_SET_NAMES): Add a comment.
2870         * tracepoint.c (set_traceframe_context, validate_actionline)
2871         (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
2872         lookups and SYMBOL_PRINT_NAME for output.
2873         * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
2874         * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
2875
2876 2008-08-21  Pedro Alves  <pedro@codesourcery.com>
2877
2878         * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
2879         * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
2880         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
2881         obj_section_addr and obj_section_endaddr.
2882         * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
2883         * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
2884         * ia64-tdep.c (ia64_find_global_pointer): Likewise.
2885         (find_extant_func_descr): Likewise.
2886         * solib-frv.c (frv_relocate_main_executable): Use
2887         obj_section_addr.
2888         * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
2889         obj_section_addr and obj_section_endaddr.
2890
2891 2008-08-21  Paul N. Hilfinger  <hilfinger@adacore.com>
2892
2893         * NEWS: Amplify last entry on boolean types in Ada.
2894
2895 2008-08-20  Daniel Jacobowitz  <dan@codesourcery.com>
2896
2897         * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
2898         Make the dwarf2_cu * parameter output as well as input.  Update it if
2899         we follow a reference to another CU.
2900         (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
2901         (die_type, die_containing_type): Update calls to changed functions.
2902         Use the returned CU along with the returned DIE.
2903         (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
2904
2905 2008-08-20  Daniel Jacobowitz  <dan@codesourcery.com>
2906
2907         * dwarf2read.c (queue_comp_unit): Take an objfile argument.  Read
2908         in the DIEs here.
2909         (process_queue): Do not read in the DIEs here.
2910         (psymtab_to_symtab_1): Update call to queue_comp_unit.
2911         (read_full_die): Do not call queue_comp_unit from here.
2912         (maybe_queue_comp_unit): New function.
2913         (follow_die_ref): Use it.
2914
2915 2008-08-20  Daniel Jacobowitz  <dan@codesourcery.com>
2916
2917         * dwarf2read.c (struct attribute): Move earlier.
2918         (struct die_info): Change attrs to a trailing array.
2919         (dwarf_alloc_die): Take the number of attributes.  Allocate space
2920         for them.
2921         (read_full_die): Update call to dwarf_alloc_die.  Do not manually
2922         allocate attributes.
2923
2924 2008-08-20  Daniel Jacobowitz  <dan@codesourcery.com>
2925
2926         * dwarf2read.c (REF_HASH_SIZE): Delete.
2927         (struct dwarf2_cu): Replace die_ref_table with die_hash.
2928         (struct die_info): Remove next_ref.
2929         (store_in_ref_table): Remove offset argument.  Rewrite to use
2930         htab_find_slot_with_hash.
2931         (die_hash, die_eq): New.
2932         (read_comp_unit): Allocate the die_hash.
2933         (read_die_and_children): Update call to store_die_ref.
2934         (follow_die_ref): Rewrite to use htab_find_with_hash.
2935
2936 2008-08-20  Daniel Jacobowitz  <dan@codesourcery.com>
2937
2938         * dwarf2read.c (free_die_list, copy_die): Delete.
2939         (dwarf_alloc_die): Take a CU argument.  Allocate the new DIE
2940         on the obstack.
2941         (read_full_die): Update call to dwarf_alloc_die.  Allocate
2942         attributes on the CU obstack.
2943         (free_one_comp_unit): Do not call free_die_list.
2944
2945 2008-08-20  Daniel Jacobowitz  <dan@codesourcery.com>
2946
2947         * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
2948         (read_die_and_siblings): Likewise.  Do not add padding DIEs to the
2949         sibling list.
2950         (read_full_die): Do not allocate DIEs for abbrev 0.
2951         (follow_die_ref): Correct error message.
2952
2953 2008-08-20  Pedro Alves  <pedro@codesourcery.com>
2954
2955         * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
2956         there are no symbols loaded, instead of throwing a generic error.
2957         (decode_variable): Likewise.
2958
2959 2008-08-20  Pedro Alves  <pedro@codesourcery.com>
2960
2961         * objfiles.h (struct obj_section): Remove addr and endaddr fields.
2962         (obj_section_offset, obj_section_addr, obj_section_endaddr): New
2963         macros.
2964         * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
2965         and offset.  Use size_t instead of unsigned long.
2966         (build_objfile_section_table): Use size_t instead of unsigned
2967         long.
2968         (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
2969         gone.
2970         (find_pc_sect_section): Use obj_section_addr and
2971         obj_section_endaddr.
2972         * symfile.c (symfile.c): Remove code that maps sections
2973         offsets in "addr" to the object's sections.
2974         * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
2975         * gcore.c (gcore_create_callback): Use obj_section_addr and
2976         obj_section_endaddr.
2977         * maint.c (print_objfile_section_info): Likewise.
2978         * printcmd.c (sym_info): Use obj_section_addr and
2979         obj_section_endaddr.
2980         * symtab.c (fixup_section): Likewise.
2981
2982 2008-08-20  Mark Kettenis  <kettenis@gnu.org>
2983
2984         * sparc-tdep.c: Make some comments catch up with reality.
2985
2986 2008-08-20  Vladimir Prus  <vladimir@codesourcery.com>
2987
2988         * NEWS: Mention 'set target-async'
2989
2990 2008-08-19  Vladimir Prus  <vladimir@codesourcery.com>
2991
2992         * infrun.c (resume): If the thread is placed to the deferred step
2993         queue, mark it as running.
2994
2995 2008-08-19  Vladimir Prus  <vladimir@codesourcery.com>
2996
2997         Make sure target supports non-stop.
2998         * infcmd.c (run_command_1, attach_command): If non-stop mode
2999         is requested, verify the target supports it.
3000         * linux-nat.c (linux_nat_supports_non_stop): New.
3001         (linux_nat_add_target): Register the above.
3002         * target.c (find_default_supports_non_stop)
3003         (target_supports_non_stop): New.
3004         (init_dummy_target): Register find_default_supports_non_stop.
3005         * target.h (struct target_ops): New field to_supports_non_stop.
3006         (target_supports_non_stop): New.
3007
3008 2008-08-19  Pedro Alves  <pedro@codesourcery.com>
3009             Vladimir Prus  <vladimir@codesourcery.com>
3010
3011         * target.c (target_async_permitted, target_async_permitted_1)
3012         (set_maintenance_target_async_permitted)
3013         (show_maintenance_target_async_permitted): New.
3014         (initialize_targets): Register 'set target-async'.
3015         * target.h (target_async_permitted): Declare.
3016         * linux-nat.c (linux_nat_async_enabled)
3017         (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
3018         (show_maintenance_linux_async_permitted): Remove.
3019         (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
3020         (get_pending_events, linux_nat_async): Use target_async_permitted.
3021         (linux_nat_set_async_mode): Remove, moving the only used bits
3022         into...
3023         (linux_nat_setup_async): This.
3024         (_initialize_linux_nat): Do not register 'maint set linux-async'.
3025         Use linux_nat_setup_async.
3026         * remote.c (remote_async_permitted, remote_async_permitted_set)
3027         (set_maintenance_remote_async_permitted)
3028         (show_maintenance_remote_async_permitted): Remove.
3029         (remote_open_1, remote_terminal_inferior, remote_can_async_p)
3030         (remote_is_async_p): Use target_async_permitted.
3031         (_initialize_remote): Don't register 'main set remote-async'.
3032         * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
3033         * mi/mi-cmds.h (mi_cmd_list_target_features): New.
3034         * mi/mi-main.c (mi_cmd_list_target_features): New.
3035
3036 2008-08-19  Vladimir Prus  <vladimir@codesourcery.com>
3037
3038         * target.c (maybe_kill_then_attach)
3039         (maybe_kill_then_create_inferior): Remove.
3040         (update_current_target): Do not default to_attach,
3041         to_create_inferiour, to_is_async_p.
3042
3043 2008-08-19  Paul N. Hilfinger  <hilfinger@adacore.com>
3044         
3045         Changes for supporting boolean types in debugging data.
3046         * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change 
3047         API to return LONGEST values rather than struct values.
3048         (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
3049         and discrete_type_high_bound.
3050         (to_fixed_range_type): Create a range type in cases where 
3051         argument is base type and its limits are representable as ints.
3052         (ada_is_modular_type): Correct so that base type must be integral.
3053         * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false' 
3054         keywords when they appear alone, since we are phasing out 
3055         direct representation of these identifiers in debugging data.
3056         * ada-exp.y: Define 'true' and 'false' as primaries.
3057         (type_boolean): New function.
3058         (type_int,type_long,type_long_long,type_floattype_double)
3059         (type_long_double): Remove uses of current_gdbarch for consistency
3060         with type_boolean.
3061         (write_int): Change comment to indicate that it might write boolean 
3062         constant as well.
3063         * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
3064         type, since will no longer be represented as enumerated type in 
3065         debugging data.
3066         * ada-valprint.c (print_optional_low_bound): Handle boolean case
3067         as well.
3068         * NEWS: Note support boolean types.
3069         
3070 2008-08-18  Pedro Alves  <pedro@codesourcery.com>
3071
3072         * bsd-uthread.c (bsd_uthread_close): New.
3073         (bsd_uthread_deactivate): Don't cleanup here, just unpush the
3074         target.
3075         (bsd_uthread_solib_loaded): Fix typo.
3076         (bsd_uthread_target): Register bsd_uthread_close.
3077
3078 2008-08-18  Pedro Alves  <pedro@codesourcery.com>
3079
3080         * corelow.c (core_open): Assume there was no upper layer left
3081         behind from a previous inferior.
3082         * target.c (pop_all_targets): Rename to ...
3083         (pop_all_targets_above): ... this.  Add a target stratum
3084         parameter.  Use it instead of hardcoding the dummy_stratum.
3085         (pop_all_targets): New, defer to pop_all_targets_above.
3086         (target_preopen): Use pop_all_targets_above.
3087         * target.h (pop_all_targets_above): Declare.
3088
3089 2008-08-18  Pedro Alves  <pedro@codesourcery.com>
3090
3091         * gdbthread.h (thread_change_ptid): Declare.
3092         * infrun.c (infrun_thread_ptid_changed): New.
3093         (_initialize_infrun): Attach infrun_thread_ptid_changed to the
3094         thread_ptid_changed observer.
3095         * regcache.c (regcache_thread_ptid_changed): New.
3096         (_initialize_regcache): Attach regcache_thread_ptid_changed to the
3097         thread_ptid_changed observer.
3098         * thread.c (thread_change_ptid): New.
3099
3100 2008-08-18  Tom Tromey  <tromey@redhat.com>
3101
3102         * symfile.c (reread_symbols): Update.
3103         * solib-sunos.c (allocate_rt_common_objfile): Update.
3104         * objfiles.c (allocate_objfile): Update.
3105         * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
3106         Remove.
3107
3108 2008-08-18  Tom Tromey  <tromey@redhat.com>
3109
3110         * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
3111         obstack.
3112
3113 2008-08-18  Daniel Jacobowitz  <dan@codesourcery.com>
3114
3115         * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
3116         lr_register.
3117         (rs6000_in_function_epilogue_p): Check for bctr.
3118         (skip_prologue): Initialize lr_register.  Set lr_reg to a register
3119         number.  Set gpr_mask and used_bl.  Continue scanning while some
3120         expected registers are not saved.  Set lr_register if LR is not
3121         stored.
3122         (rs6000_frame_cache): Handle gpr_mask and lr_register.
3123
3124 2008-08-17  Tom Tromey  <tromey@redhat.com>
3125
3126         PR gdb/1535:
3127         * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
3128         (ep_find_event_name_end): Remove.
3129         (catch_fork_temporary, catch_vfork_temporary,
3130         catch_fork_permanent, catch_vfork_permanent): New constants.
3131         (catch_vfork, catch_fork): Remove.
3132         (catch_fork_command_1): Add 'command' argument.  Remove
3133         'fork_kind' and 'tempflag'.  Handle NULL 'arg'.  Update switch for
3134         all cases.
3135         (catch_exec_command_1): Add 'command' argument; remove
3136         'tempflag'.  Handle NULL 'arg'.
3137         (catch_load_command_1): Likewise.
3138         (catch_unload_command_1): Likewise.
3139         (catch_ada_exception_command): Likewise.
3140         (catch_assert_command): Likewise.
3141         (catch_catch_command): New function.
3142         (catch_throw_command): Likewise.
3143         (catch_command_1): Remove.
3144         (catch_command): Just call error.
3145         (tcatch_command): Likewise.
3146         (catch_cmdlist): New global.
3147         (tcatch_cmdlist): Likewise.
3148         (add_catch_command): New function.
3149         (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
3150         commands.  Create all catch sub-commands.
3151
3152 2008-08-17  Pedro Alves  <pedro@codesourcery.com>
3153
3154         * gdbthread.h: Add comments.
3155         * stack.c (get_selected_block): Return 0 on an exited thread.
3156         * top.c (execute_command): Check for is_stopped, not !is_running.
3157         * event-top.c (command_handler): Likewise.
3158
3159 2008-08-16  Pedro Alves  <pedro@codesourcery.com>
3160
3161         * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
3162         (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
3163         (mi_cmd_exec_finish): Remove "return".
3164
3165 2008-08-16  Pedro Alves  <pedro@codesourcery.com>
3166
3167         * target.h (pop_all_targets): Declare.
3168         * target.c (pop_all_targets): New.
3169         * top.c (quit_target): Pop all targets instead of just closing the
3170         current.
3171
3172 2008-08-16  Vladimir Prus  <vladimir@codesourcery.com>
3173             Thiago Jung Bauermann  <bauerman@br.ibm.com>
3174
3175         * cli-script.c (read_next_line): Add parse_commands argument.
3176         (recurse_read_control_structure): Adapt to new read_next_line
3177         signature.
3178         (read_command_lines): Add parse_commands argument.
3179         (define_command): Adapt to new read_command_lines signature.
3180         (document_command): Likewise.
3181         * breakpoint.c (commands_command): Likewise.
3182         * defs.h (read_command_lines): Adjust function prototype.
3183
3184 2008-08-16  Paul N. Hilfinger  <hilfinger@adacore.com>
3185
3186         * ada-lang.c (pos_atr): Account for the possibility that the 
3187         argument may be a reference.
3188
3189 2008-08-16  Paul N. Hilfinger  <hilfingr@adacore.com>
3190
3191         * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
3192         ('F' format) for @FIX names generated by the loader, retaining only
3193         the minimal symbols (and no partial symbol tables) for these names.
3194         Fixes warning messages about symbols that are found in partial 
3195         symbol tables, but not full symbol tables.
3196
3197 2008-08-16  Pedro Alves  <pedro@codesourcery.com>
3198
3199         * infrun.c (fetch_inferior_event): Only call normal_stop if not
3200         stopping quietly.
3201
3202 2008-08-15  Luis Machado  <luisgpm@br.ibm.com>
3203
3204         * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
3205         Include "features/rs6000/powerpc-vsx64.c".
3206         (ppc_supply_vsxregset): New function.
3207         (ppc_collect_vsxregset): New function.
3208         (IS_VSX_PSEUDOREG): New macro.
3209         (IS_EFP_PSEUDOREG): New macro.
3210         (vsx_register_p): New function.
3211         (ppc_vsx_support_p): New function.
3212         (rs6000_builtin_type_vec128): New function.
3213         (rs6000_register_name): Hide upper halves of vs0~vs31.  Return
3214         correct names for VSX registers and EFPR registers.
3215         (rs6000_pseudo_register_type): Return correct types for VSX
3216         and EFPR registers.
3217         (rs6000_pseudo_register_reggroup_p): Return correct group for
3218         VSX and EFPR registers.
3219         (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
3220         (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
3221         (vsx_pseudo_register_read): New function.
3222         (vsx_pseudo_register_write): New function.
3223         (efpr_pseudo_register_read): New function.
3224         (efpr_pseudo_register_write): New function.
3225         (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
3226         (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
3227         (rs6000_gdbarch_init): Declare have_vsx.
3228         Initialize new upper half VSX registers.
3229         Initialize VSX-related and EFPR-related pseudo-registers variables.
3230         Adjust the number of pseudo registers accordingly.
3231
3232         * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
3233         and SIZEOF_VSRREGS.
3234         (gdb_vsxregset_t): New type.
3235         (have_ptrace_getsetvsxregs): New variable.
3236         (fetch_vsx_register): New function.
3237         (fetch_register): Handle VSX registers.
3238         (fetch_vsx_registers): New function.
3239         (fetch_ppc_registers): Handle VSX registers.
3240         (store_ppc_registers): Handle VSX registers.
3241         (store_vsx_register): New function.
3242         (store_register): Handle VSX registers.
3243         (store_vsx_registers): New function.
3244         (ppc_linux_read_description): Handle VSX-enabled inferiors.
3245         (gdb_vsxregset_t): New type.
3246         (supply_vsxregset): New function.
3247         (fill_vsxregset): New function.
3248
3249         * ppc-tdep.h (vsx_register_p): New prototype.
3250         (vsx_support_p): New prototype.
3251         (ppc_vsr0_regnum): New variable.
3252         (ppc_vsr0_upper_regnum): Likewise.
3253         (ppc_efpr0_regnum): Likewise.
3254         (ppc_builtin_type_vec128): New type.
3255         (ppc_num_vsrs): New constant.
3256         (ppc_num_vshrs): New constant.
3257         (ppc_num_efprs): Likewise.
3258         Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
3259         (ppc_supply_vsxregset): New prototype.
3260         (ppc_collect_vsxregset): New prototype.
3261
3262         * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
3263         Include "features/rs6000/powerpc-vsx64l.c".
3264         (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
3265         (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
3266         (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
3267         (ppc_linux_regset_from_core_section): Handle VSX core section.
3268         (ppc_linux_core_read_description): Support VSX-enabled core files.
3269
3270         * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
3271         Declare tdesc_powerpc_vsx64l
3272
3273         * corelow.c (get_core_register_section): Support VSX-enabled
3274         core files.
3275
3276         * features/rs6000/power-vsx.xml: New VSX descriptions.
3277         * features/rs6000/powerpc-vsx32.xml: New file.
3278         * features/rs6000/powerpc-vsx32l.xml: New file.
3279         * features/rs6000/powerpc-vsx64.xml: New file.
3280         * features/rs6000/powerpc-vsx64l.xml: New file.
3281         * features/rs6000/powerpc-vsx32.c: New file (generated).
3282         * features/rs6000/powerpc-vsx32l.c: New file (generated).
3283         * features/rs6000/powerpc-vsx64.c: New file (generated).
3284         * features/rs6000/powerpc-vsx64l.c: New file (generated).
3285         * features/Makefile: Updated with new descriptions.
3286         * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
3287         * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
3288
3289 2008-08-15  Vladimir Prus  <vladimir@codesourcery.com>
3290
3291         * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
3292         call linux_target twice.
3293
3294 2008-08-14  Aleksandar Ristovski  <aristovski@qnx.com>
3295
3296         * nto-tdep.c (lm_info): Updated struct lm_info definition from
3297         solib-svr4.c
3298         (LM_ADDR): Use l_addr if available; if not, use link map and set 
3299         l_addr.
3300
3301 2008-08-14  Tom Tromey  <tromey@redhat.com>
3302
3303         * macrocmd.c (macro_define_command): Check for NULL argument.
3304         (macro_undef_command): Likewise.
3305
3306 2008-08-14  Pedro Alves  <pedro@codesourcery.com>
3307
3308         * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
3309
3310 2008-08-13  Pedro Alves  <pedro@codesourcery.com>
3311
3312         * breakpoint.c (always_inserted_auto, always_inserted_on)
3313         (always_inserted_off, always_inserted_enums): New.
3314         (always_inserted_mode): Change type to char* and point to
3315         always_inserted_auto.
3316         (show_always_inserted_mode): In auto mode, also show the current
3317         effect of the option.
3318         (breakpoints_always_inserted_mode): Adjust for the new auto mode.
3319         (_initialize_breakpoint): Make the "set breakpoints
3320         always-inserted" command an enum command.  Extend help to describe
3321         the auto mode.
3322
3323 2008-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
3324
3325         * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
3326         query valid) bit.  Ignore bits outside the condition field.
3327         (info_spu_proxydma_command): Ignore bits outside the field.
3328
3329 2008-08-12  Michael Snyder  <msnyder@vmware.com>
3330
3331         * MAINTAINERS: Update my email address.
3332
3333 2008-08-12  Ulrich Weigand  <uweigand@de.ibm.com>
3334
3335         * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
3336
3337 2008-08-12  Pedro Alves  <pedro@codesourcery.com>
3338
3339         Add no-ack mode to the remote protocol --- optionally stop ACKing
3340         packets and responses when we have a reliable communication
3341         medium.
3342
3343         Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
3344
3345         * remote.c (struct remote_state): Add noack_mode field.
3346         (PACKET_QStartNoAckMode): New.
3347         (remote_start_remote): Don't any outstanding packet here.
3348         (remote_open_1): Clear noack_mode.  Ack any outstanding packet
3349         here.  Activate noack mode if requested.
3350         (remote_protocol_features): Add QStartNoAckMode.
3351         (remote_open_1):
3352         (putpkt_binary): Don't send ack in noack mode.
3353         (read_frame): Don't recompute the checksum in noack mode.
3354         (getpkt_sane): Skip sending ack if in noack mode.
3355         (_initialize_remote): Add set/show remote noack mode.
3356         * NEWS:  Note the new features.
3357
3358 2008-08-11  Kevin Buettner  <kevinb@redhat.com>
3359
3360         * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
3361         New macros.
3362         (rs6000_skip_main_prologue): New function.
3363         (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
3364
3365 2008-08-11  Sandra Loosemore  <sandra@codesourcery.com>
3366
3367         * MAINTAINERS (Write After Approval):  Add self.
3368
3369 2008-08-11  Stan Shebs  <stan@codesourcery.com>
3370
3371         ARM BE8 support.
3372         * disasm.c (gdb_disassemble_info): Set endian_code.
3373         * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
3374         * gdbarch.h, gdbarch.c: Regenerate.
3375         * arch-utils.c (initialize_current_architecture): Set the
3376         default byte_order_for_code.
3377         (gdbarch_info_init): Ditto.
3378         (gdbarch_info_fill): Ditto.
3379         * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
3380         (thumb_analyze_prologue): Swap halfword if code endianness is
3381         different from general endianness.
3382         (arm_skip_prologue): Similarly.
3383         (arm_scan_prologue): Ditto.
3384         (thumb_get_next_pc): Ditto.
3385         (arm_get_next_pc): Ditto.
3386         (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
3387         choose correct endianness for breakpoints.
3388
3389 2008-08-10  Pedro Alves  <pedro@codesourcery.com>
3390
3391         * bsd-kvm.c: Include "gdbthread.h".
3392         (bsd_kvm_ptid): New.
3393         (bsd_kvm_open): Add a main thread.
3394         (bsd_kvm_close): Delete it.
3395         (bsd_kvm_thread_alive): New.
3396         (bsd_kvm_pid_to_str): New.
3397         (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
3398         bsd_kvm_pid_to_str.
3399         (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
3400
3401 2008-08-09  Pedro Alves  <pedro@codesourcery.com>
3402
3403         * buildsym.c (start_subfile): Properly cast sentinel in concat
3404         call.
3405         * cp-name-parser.y: Include "config.h".
3406         * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
3407         concat call.
3408         * gdb_select.h: Include sys/time.h if sys/select.h is not
3409         available.
3410
3411 2008-08-09  Pedro Alves  <pedro@codesourcery.com>
3412
3413         * go32-nat.c: Include "gdbthread.h".
3414         (go32_stop, go32_kill_inferior): Delete the main thread.
3415         (go32_create_inferior): Add it.
3416         (go32_thread_alive, go32_pid_to_str): New.
3417         (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
3418
3419 2008-08-09  Pedro Alves  <pedro@codesourcery.com>
3420
3421         * go32-nat.c (fetch_register, store_register): Pass the regcache
3422         gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
3423         (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
3424         (struct seg_descr, struct seg_descr): pack the whole struct
3425         instead of each member individually.
3426
3427 2008-08-09  Andreas Schwab  <schwab@suse.de>
3428
3429         * python/python.c (_initialize_python): Use unabbreviated commands
3430         in prefix name.
3431
3432 2008-08-09  Daniel Jacobowitz  <dan@codesourcery.com>
3433
3434         * Makefile.in (stamp-h): Also create .deps.
3435
3436 2008-08-09  Tom Tromey  <tromey@redhat.com>
3437
3438         * Makefile.in (generated_files): Add GNULIB_H.
3439
3440 2008-08-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3441
3442         * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
3443         DT_HP_DEBUG_PRIVATE.  Add warning if DT_HP_DEBUG_PRIVATE is not set.
3444         Revise comment.
3445         (pa64_current_sos): Remove map private warning warning.
3446         * solib-som.c: Include string.h and sys/utsname.h.
3447         (get_hpux_major_release): New function.
3448         (som_solib_create_inferior_hook): Read dynamic linker header.  Warn
3449         about shared library private mapping on HP-UX 11 and later.  Only force
3450         private mapping of shared libraries on HP-UX 10 and earlier.
3451         (link_map_start): Delete warning.
3452
3453 2008-08-09  Xuepeng Guo  <xuepeng.guo@intel.com>
3454             H.J. Lu  <hongjiu.lu@intel.com>
3455             Mark Kettenis <kettenis@gnu.org>
3456
3457         * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
3458         (amd64_init_frame_cache): Initialize saved_sp_reg.
3459         (amd64_analyze_stack_align): New.
3460         (amd64_analyze_prologue): Call it.
3461         (amd64_frame_cache): Use saved_sp_reg if it is invalid.  Don't set
3462         %rip to 8 when halfway aligning the stack.
3463
3464         * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
3465         AMD64_R14_REGNUM.
3466
3467         * i386-tdep.c (i386_frame_cache): Remove stack_align.  Add
3468         saved_sp_reg.
3469         (i386_alloc_frame_cache): Remove stack_align.  Initialize
3470         saved_sp_reg to -1.
3471         (i386_analyze_stack_align): Rewrite.
3472         (i386_frame_cache): Use saved_sp_reg if it is valid.
3473
3474 2008-08-09  Ulrich Weigand  <uweigand@de.ibm.com>
3475
3476         * target.c: Include "solib.h".
3477         (target_pre_inferior): Call no_shared_libraries.
3478         * infcmd.c (run_command_1): Do not call objfile_purge_solibs
3479         or clear_solib.
3480         (attach_command): Do not call clear_solib.
3481
3482 2008-08-09  Mark Kettenis  <kettenis@gnu.org>
3483
3484         * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
3485         the %eip register.
3486
3487 2008-08-08  Tom Tromey  <tromey@redhat.com>
3488
3489         * Makefile.in (python.o): Remove dependencies.  Use COMPILE and
3490         POSTCOMPILE.
3491         (python-utils.o): Likewise.
3492
3493 2008-08-08  Andreas Schwab  <schwab@suse.de>
3494
3495         * corefile.c (_initialize_core): Remove spurious paren from set
3496         gnutarget doc string.
3497
3498 2008-08-08  Luis Machado  <luisgpm@br.ibm.com>
3499
3500         * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
3501         Define PPC_FEATURE_BOOKE.
3502         (ppc_linux_get_hwcap): New function.
3503         (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
3504         4-bytes alignment restrictions.
3505         (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
3506         positioning of the read/write flags.
3507         (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
3508         4-bytes alignment.
3509
3510 2008-08-08  Pedro Alves  <pedro@codesourcery.com>
3511
3512         Use ptid_t.tid to store thread ids instead of ptid_t.pid.
3513
3514         * win32-nat.c (win32_add_thread): Change thread argument type to
3515         ptid_t.  Adjust.
3516         (win32_add_thread): Adjust.
3517         (win32_delete_thread): Change thread argument type to ptid_t.
3518         Adjust.
3519         (win32_fetch_inferior_registers, win32_store_inferior_registers)
3520         (win32_resume, get_win32_debug_event, get_win32_debug_event)
3521         (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
3522         (init_win32_ops): Put to_magic last.
3523         (win32_win32_thread_alive): Adjust.
3524
3525 2008-08-08  Pedro Alves  <pedro@codesourcery.com>
3526
3527         * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
3528         (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
3529
3530 2008-08-08  Pedro Alves  <pedro@codesourcery.com>
3531
3532         * remote-m32r-sdi.c: Include "gdbthread.h".
3533         (remote_m32r_ptid): New.
3534         (m32r_close): Delete the main thread.
3535         (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
3536         main thread.
3537         (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
3538         (_initialize_remote_m32r): Initialize remote_m32r_ptid.
3539
3540 2008-08-07  Tom Tromey  <tromey@redhat.com>
3541             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3542
3543         * aclocal.m4, configure: Rebuild.
3544         * configure.in: Call ZW_CREATE_DEPDIR,
3545         ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
3546         (MAKE, GMAKE): New substs.
3547         * acinclude.m4: Include depstand.m4.
3548         * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
3549         COMPILE, POSTCOMPILE, depcomp): New variables.
3550         Remove all _h variables.
3551         Remove many .o targets.
3552         ($(srcdir)/copying.c): avoid backslash-newline after comment
3553         sign (@maintainer_mode_true@).
3554         (HFILES_NO_SRCDIR): Regenerate.
3555         (generated_files): New variable.
3556         (all_gdbtk_cflags): Likewise.
3557         (.c.o): Rewrote.
3558         (init.o, version.o, copying.o): Remove.
3559         (distclean): Remove DEPDIR.
3560         (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
3561         printcmd.o, procfs.o, v850ice.o): Rewrite.
3562         (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
3563         cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
3564         (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
3565         gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
3566         gdbtk-wrapper.o): Likewise.
3567         (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
3568         mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
3569         mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
3570         mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
3571         tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
3572         tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
3573         tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
3574         tui-wingeneral.o, tui-winsource.o): Likewise.
3575         (all_object_files): New variable.
3576         ($(all_object_files)): New target.
3577         Include dependency files, when using GNU Make.
3578
3579 2008-08-07  Ulrich Weigand  <uweigand@de.ibm.com>
3580
3581         * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
3582         the valid bit set.  Ensure display order respects partial
3583         order defined by dependency bits.
3584
3585 2008-08-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3586
3587         * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
3588         setup.
3589
3590 2008-08-06  Mark Kettenis  <kettenis@gnu.org>
3591
3592         * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
3593         OpenBSD 4.3.
3594
3595 2008-08-06  Vladimir Prus  <vladimir@codesourcery.com>
3596             Tom Tromey  <tromey@redhat.com>
3597             Thiago Jung Bauermann  <bauerman@br.ibm.com>
3598             Doug Evans  <dje@google.com>
3599
3600         * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
3601         SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
3602         PYTHON_CFLAGS): New.
3603         (python_h, python_internal_h): New.
3604         (cli-script.o): Depend on python.h
3605         (python.o, python-utils.o): New.
3606         * cli/cli-script.c (print_command_lines): Handle python_control.
3607         (execute_control_command): Handle python_control.
3608         (execute_control_command_untraced): New function.
3609         (while_command): Call execute_control_command_untraced.
3610         (if_command): Likewise.
3611         (get_command_line): Remove static attribute.
3612         (read_next_line): Handle "python".
3613         (recurse_read_control_structure): Handle python_control.
3614         (read_command_lines): Handle python_control.
3615         Include python.h.
3616         * cli/cli-script.h (get_command_line): Add prototype.
3617         (execute_control_command_untraced): Likewise.
3618         * configure.ac: Add --with-python.
3619         * defs.h (enum command_control_type) <python_control>: New
3620         constant.
3621         * python/python-internal.h: New file.
3622         * python/python.c: New file.
3623         * python/python.h: New file.
3624         * python/python-utils.c: New file.
3625         * NEWS: Mention Python scripting support and its new commands.
3626
3627 2008-08-06  Ulrich Weigand  <uweigand@de.ibm.com>
3628
3629         * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
3630
3631 2008-08-06  Phil Muldoon  <pmuldoon@redhat.com>
3632
3633         * MAINTAINERS (Write After Approval): Add self.
3634
3635 2008-08-06  Phil Muldoon  <pmuldoon@redhat.com>
3636
3637         * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
3638         (insert_breakpoint_locations): Likewise.
3639
3640 2008-08-05  Phil Muldoon  <pmuldoon@redhat.com>
3641
3642         * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
3643         breakpoint.
3644         (set_longjmp_breakpoint): Likewise.
3645
3646 2008-08-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3647
3648         PR build/2490
3649         * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
3650         defined.
3651
3652 2008-08-05  Tom Tromey  <tromey@redhat.com>
3653
3654         * bcache.c (deprecated_bcache_added): Initialize obstack.
3655         (bcache_xmalloc): Don't initialize obstack.
3656         (bcache_xfree): Conditionally free obstack.
3657         (bcache_memory_used): Update.
3658
3659 2008-08-05  Tom Tromey  <tromey@redhat.com>
3660
3661         * symfile.c (add_psymbol_to_bcache): Return a const pointer.  Use
3662         bcache_full.
3663         (append_psymbol_to_list): Accept a const pointer.
3664         (add_psymbol_to_list): Fix const correctness.
3665         * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
3666         (bcache_full): Declare.
3667         * bcache.c (bcache_data, deprecated_bcache): Remove.
3668         (bcache): Use bcache_full.
3669         (bcache_full): Rename from deprecated_bcache_added.  Change return
3670         type.
3671
3672 2008-08-04  Stan Shebs  <stan@codesourcery.com>
3673
3674         * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
3675         (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
3676         (enable_break): Remove test of BKPT_AT_SYMBOL.
3677
3678 2008-08-02  Keith Seitz  <keiths@redhat.com>
3679
3680         * acinclude.m4: Include ../config/tcl.m4 to pick up
3681         standard Tcl configury bits.
3682         Remove all Tcl, Tk, Itcl, Itk, etc definitions.
3683         * configure.ac: Don't check if ../itcl exists when building
3684         gdbtk. It could be installed.
3685         Rewrite gdbtk configury to allow for using system-supplied
3686         Tcl and Tk. Gdbtk no longer requires build-time access to
3687         itcl and itk.
3688         * Makefile.in: Remove everything related to itcl and itk.
3689         Rewrite the Tcl bits for gdbtk to correspond to rewrite of
3690         configure.ac.
3691         Remove v850ice.o build rule.
3692         (ALL_TCL_CFLAGS): New convenience defintion. Change all
3693         gdbtk sources to use it.
3694         * configure: Regenerate.
3695
3696 2008-07-31  Stan Shebs  <stan@codesourcery.com>
3697
3698         * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
3699
3700 2008-07-30  Stan Shebs  <stan@codesourcery.com>
3701
3702         * objfiles.c (TARGET_KEEP_SECTION): Remove.
3703         (add_to_objfile_sections): Remove use.
3704
3705 2008-07-29  Tom Tromey  <tromey@redhat.com>
3706
3707         * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
3708         (lookup_cmd_composition): Likewise.
3709
3710 2008-07-29  Tom Tromey  <tromey@redhat.com>
3711
3712         * cli/cli-cmds.c (edit_command): Remove unused variables.  Delete
3713         dead code.  Fix indentation.
3714
3715 2008-07-29  Stan Shebs  <stan@codesourcery.com>
3716
3717         * main.c (captured_main): Remove long-unused #if 0 blocks.
3718
3719 2008-07-28  Tom Tromey  <tromey@redhat.com>
3720
3721         * annotate.h (deprecated_annotate_starting_hook): Remove.
3722         (deprecated_annotate_stopped_hook): Remove.
3723         (deprecated_annotate_exited_hook): Remove.
3724         * Makefile.in (annotate.o): Depend on observer_h.
3725         * top.c (deprecated_delete_breakpoint_hook): Remove.
3726         (deprecated_create_breakpoint_hook): Likewise.
3727         (deprecated_modify_breakpoint_hook): Likewise.
3728         * interps.c (clear_interpreter_hooks): Update for removed hooks.
3729         * breakpoint.c (mention): Don't call removed hook.
3730         (delete_breakpoint): Likewise.
3731         (disable_breakpoint): Likewise.
3732         (do_enable_breakpoint): Likewise.
3733         * annotate.c: Include observer.h.
3734         (breakpoint_changed): Change type of argument.
3735         (_initialize_annotate): Register observers.
3736         (deprecated_annotate_starting_hook): Remove.
3737         (deprecated_annotate_stopped_hook): Remove.
3738         (deprecated_annotate_exited_hook): Remove.
3739         (annotate_starting): Update for hook removal.
3740         (annotate_stopped): Likewise.
3741         (annotate_exited): Likewise.
3742         * defs.h (deprecated_delete_breakpoint_hook): Remove.
3743         (deprecated_create_breakpoint_hook): Likewise.
3744         (deprecated_modify_breakpoint_hook): Likewise.
3745
3746 2008-07-28  Tom Tromey  <tromey@redhat.com>
3747
3748         * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
3749
3750 2008-07-27  Daniel Jacobowitz  <dan@codesourcery.com>
3751
3752         * configure.ac: Check for the GNU/Linux ptrace signature.
3753         * configure: Regenerated.
3754
3755 2008-07-27  Daniel Jacobowitz  <dan@codesourcery.com>
3756
3757         * linux-nat.c (resume_callback): Add more debugging output.
3758         (linux_nat_has_pending_sigint): New function, based on
3759         linux_nat_has_pending.
3760         (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
3761         (stop_wait_callback): Remove flush_mask handling.  Honor
3762         ignore_sigint.  Call maybe_clear_ignore_sigint.  Pass NULL
3763         to recursive calls.
3764         (linux_nat_has_pending, flush_callback): Remove.
3765         (linux_nat_filter_event): Check for ignore_sigint.
3766         (linux_nat_wait): Remove flush_mask support and call to
3767         flush_callback.  Use set_ignore_sigint and maybe_clear_ignore_sigint.
3768         * linux-nat.h (struct lwp_info): Add ignore_sigint field.
3769
3770 2008-07-27  Daniel Jacobowitz  <dan@codesourcery.com>
3771
3772         * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
3773         report events from resumed threads.
3774
3775 2008-07-27  Daniel Jacobowitz  <dan@codesourcery.com>
3776
3777         * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
3778         (mips_linux_init_abi): Set tdep->syscall_next_pc.
3779         * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
3780         mips-tdep.h.
3781         (mips32_next_pc): Handle the syscall instruction.
3782         * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
3783         from mips-tdep.c.  Add syscall_next_pc to gdbarch_tdep.
3784
3785 2008-07-26  Tom Tromey  <tromey@redhat.com>
3786
3787         PR gdb/1158:
3788         * valops.c (value_struct_elt): Treat function-valued field as a
3789         static method.
3790
3791 2008-07-26  Tom Tromey  <tromey@redhat.com>
3792
3793         PR gdb/1136:
3794         * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
3795         longer tokens first.
3796
3797 2008-07-26  Vladimir Prus  <vladimir@codesourcery.com>
3798
3799         Kill cmd_async_ok.
3800         * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
3801         (get_cmd_async_ok): Remove.
3802         * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
3803         * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
3804         * infcmd.c (_initialize_infcmd): Likewise.
3805         * thread.c (_initialize_thread): Likewise.
3806
3807 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
3808
3809         * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
3810         128-bit long doubles in even-odd pairs of FPRs.  Do not
3811         right-align float arguments for big-endian.
3812         (mips_n32n64_return_value): Apply return value convention for
3813         structs containing one or two floating-point values to soft-float
3814         as well as hard-float.  Handle 128-bit long doubles in such
3815         structs.
3816         (mips_o32_push_dummy_call): Only skip one integer register for a
3817         float argument passed in an FPR.
3818
3819 2008-07-25  Tom Tromey  <tromey@redhat.com>
3820
3821         * tui/tui-hooks.c: Include observer.h.
3822         (tui_event_default, tui_old_event_hooks, tui_event_hooks):
3823         Remove.
3824         (tui_bp_created_observer, tui_bp_deleted_observer,
3825         tui_bp_modified_observer): New globals.
3826         (tui_install_hooks): Use observers, not events.
3827         (tui_remove_hooks): Likewise.
3828         * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
3829         (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
3830         globals.
3831         (breakpoint_notify): Check mi_can_breakpoint_notify.
3832         (breakpoint_hooks): Remove.
3833         (mi_cmd_break_insert): Attach observers.  Don't use events.
3834         * tracepoint.c: Include observer.h, not gdb-events.h.
3835         (tracepoint_operation, trace_pass_command): Notify observer.
3836         * interps.c: Don't include gdb-events.h.
3837         (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
3838         * gdbarch.c: Rebuild.
3839         * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
3840         (deprecated_current_gdbarch_select_hack): Notify observer.
3841         * breakpoint.h: Don't include gdb-events.h.
3842         * breakpoint.c: Don't include gdb-events.h.
3843         (condition_command): Notify observer.
3844         (commands_command): Likewise.
3845         (commands_from_control_command): Likewise.
3846         (mention, delete_breakpoint, set_ignore_count): Likewise.
3847         (disable_breakpoint, do_enable_breakpoint): Likewise.
3848         * Makefile.in (gdb_events_h): Remove.
3849         (breakpoint_h): Update.
3850         (COMMON_OBS): Remove gdb-events.o.
3851         (gdb-events.o): Remove.
3852         (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
3853         gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
3854         * gdb-events.c: Remove.
3855         * gdb-events.h: Remove.
3856         * gdb-events.sh: Remove.
3857
3858 2008-07-24  Pedro Alves  <pedro@codesourcery.com>
3859
3860         * remote.c (remote_threads_extra_info): Don't query the remote
3861         server about info on the internally added main thread.
3862
3863 2008-07-24  Aleksandar Ristovski  <aristovski@qnx.com>
3864
3865         * nto-procfs.c (procfs_attach): Populate initial thread list.
3866         (procfs_wait): Return new pid, built from the inferior status.
3867
3868 2008-07-23  Thiago Jung Bauermann  <bauerman@br.ibm.com>
3869
3870         * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
3871         * configure: Regenerate.
3872
3873 2008-07-23  Aleksandar Ristovski  <aristovski@qnx.com>
3874
3875         * nto-procfs.c (procfs_xfer_memory): Changed signature.
3876         (procfs_resume): Workaround for dereferencing type-punned pointer
3877         warning.
3878         * nto-tdep.c (nto_parse_redirection): Change signature to be const
3879         correct.
3880         * nto-tdep.h (nto_parse_redirection): Likewise.
3881
3882 2008-07-21  Stan Shebs  <stan@codesourcery.com>
3883
3884         Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
3885         * gdbarch.sh: Adjust comment to refer to
3886         in_solib_dynsym_resolve_code().
3887         * gdbarch.h, gdbarch.c: Update.
3888         * solib-osf.c: Ditto.
3889         * infrun.c: Ditto.
3890         (handle_inferior_event): Use in_solib_dynsym_resolve_code
3891         unconditionally.
3892         * config/mips/nm-irix5.h: Remove undef of
3893         IN_SOLIB_DYNSYM_RESOLVE_CODE.
3894
3895 2008-07-21  Tom Tromey  <tromey@redhat.com>
3896
3897         * symfile.c (reread_symbols): Don't pass argument to observer.
3898         * exec.c (exec_file_attach): Don't pass argument to observer.
3899         * ada-lang.c (ada_executable_changed_observer): Remove argument.
3900         * symtab.c (symtab_observer_executable_changed): Remove argument.
3901         * observer.sh: Handle functions with no arguments.
3902
3903 2008-07-20  Sergei Poselenov  <sposelenov@emcraft.com>
3904             Chris Demetriou  <cgd@google.com>
3905
3906         * elfread.c (elf_symfile_segments): Fix the check that each loadable
3907         section fits within an ELF segment to handle ELF segments that hit
3908         the end of the address space.
3909
3910 2008-07-20  Chris Demetriou  <cgd@google.com>
3911
3912         * MAINTAINERS (Write After Approval): Add self.
3913
3914 2008-07-18  Tom Tromey  <tromey@redhat.com>
3915
3916         PR gdb/855:
3917         * NEWS: Add entry for macro commands.
3918         * Makefile.in (macrocmd.o): Add gdb_string.h.
3919         * macroscope.h (user_macro_scope): Declare.
3920         (default_macro_scope): Update documentation.
3921         (macro_user_macros): Declare.
3922         * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
3923         Use user_macro_scope.
3924         (null_macro_lookup): Remove.
3925         * macrotab.h (macro_callback_fn): Declare.
3926         (macro_for_each): Likewise.
3927         (macro_allow_redefinitions): Likewise.
3928         * macrotab.c (foreach_macro): New function
3929         (macro_for_each): Likewise.
3930         (struct macro_table) <redef_ok>: New field.
3931         (macro_allow_redefinitions): New function.
3932         (new_macro_table): Update.
3933         (macro_define_function): Likewise.
3934         (macro_define_object): Likewise.
3935         * macroscope.c (user_macro_scope): New function.
3936         (default_macro_scope): Use it.
3937         (macro_user_macros): New global.
3938         (standard_macro_lookup): Look in macro_user_macros.
3939         (_initialize_macroscope): New function.
3940         * macroexp.h (macro_is_whitespace, macro_is_digit,
3941         macro_is_identifier_nondigit): Declare.
3942         * macroexp.c (macro_is_whitespace): Rename.  No longer static.
3943         (macro_is_digit): Likewise.
3944         (macro_is_identifier_nondigit): Likewise.
3945         (get_identifier): Update.
3946         (get_pp_number): Likewise.
3947         (get_token): Likewise.
3948         * macrocmd.c (skip_ws): New function.
3949         (extract_identifier): Likewise.
3950         (free_macro_definition_ptr): Likewise.
3951         (user_macros): Remove.
3952         (macro_define_command): Implement.
3953         (_initialize_macrocmd): Update.
3954         (macro_undef_command): Implement.
3955         (print_one_macro): New function.
3956         (macro_list_command): Implement.
3957
3958 2008-07-18  Joseph Myers  <joseph@codesourcery.com>
3959
3960         * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
3961         in BFD ELF check.
3962         * configure: Regenerate.
3963
3964 2008-07-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
3965
3966         * auxv.c (fprint_target_auxv): Stop at AT_NULL.
3967
3968 2008-07-15  Andreas Schwab  <schwab@suse.de>
3969
3970         * valops.c (value_cast_pointers): Follow typedefs when checking
3971         result of coercion.
3972
3973 2008-07-15  Daniel Jacobowitz  <dan@codesourcery.com>
3974
3975         * block.c (block_function): Renamed to ...
3976         (block_linkage_function): ... this.  All callers changed.
3977         * block.h (block_function): Renamed to ...
3978         (block_linkage_function): ... this.
3979
3980 2008-07-15  Daniel Jacobowitz  <dan@codesourcery.com>
3981
3982         * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
3983
3984 2008-07-15  Daniel Jacobowitz  <dan@codesourcery.com>
3985
3986         * frame.c (frame_sp_unwind): Delete.
3987         (get_frame_sp): Do not use it.
3988         * frame.h (frame_sp_unwind): Delete prototype.
3989
3990 2008-07-15  Daniel Jacobowitz  <dan@codesourcery.com>
3991
3992         * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
3993
3994 2008-07-15  Daniel Jacobowitz  <dan@codesourcery.com>
3995
3996         * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
3997         * frame.c (frame_unwind_address_in_block): Delete.
3998         (get_frame_address_in_block): Do not use it.  Check the type
3999         of the next frame first.
4000         (frame_cleanup_after_sniffer): Update comment.
4001         * frame.h (frame_unwind_address_in_block): Delete prototype.
4002         * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
4003
4004 2008-07-15  Daniel Jacobowitz  <dan@codesourcery.com>
4005
4006         * frame.c (frame_func_unwind): Delete.
4007         (get_frame_func): Do not use it.
4008         * frame.h (frame_func_unwind): Delete prototype.
4009         * hppa-tdep.c (hppa_frame_cache): Update comment.
4010         * rs6000-tdep.c (rs6000_frame_cache): Update comment.
4011
4012 2008-07-14  Stan Shebs  <stan@codesourcery.com>
4013
4014         * remote-sim.c (init_gdbsim_ops): Remove
4015         TARGET_REDEFINE_DEFAULT_OPS.
4016
4017 2008-07-15  Daniel Jacobowitz  <dan@codesourcery.com>
4018
4019         * findvar.c (read_var_value): Remove unused variable.
4020
4021 2008-07-15  Luis Machado  <luisgpm@br.ibm.com>
4022
4023         * infrun.c (handle_inferior_event): Tag threads as stopped
4024         before inserting breakpoints.
4025
4026 2008-07-15  Hui Zhu  <teawater@gmail.com>
4027
4028         * MAINTAINERS: Added myself to section Write After Approval.
4029
4030 2008-07-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
4031
4032         PR gdb/2477
4033         * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
4034
4035 2008-07-14  Pedro Alves  <pedro@codesourcery.com>
4036
4037         * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
4038         (i386_dicos_push_dummy_code): New.
4039         (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
4040         Register i386_dicos_push_dummy_code.
4041
4042 2008-07-14  Markus Deuling  <deuling@de.ibm.com>
4043
4044         * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
4045         (mips_n32n64_push_dummy_call, mips_o64_return_value)
4046         (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
4047
4048         (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
4049         (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
4050         (mips_n32n64_fp_arg_chunk_p): Update caller.
4051
4052         (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
4053         (mips_n32n64_push_dummy_call): Update caller.
4054
4055         (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
4056         current_gdbarch.
4057         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4058         (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
4059
4060
4061         (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
4062         current_gdbarch.
4063         (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
4064         (mips_o64_push_dummy_call): Update caller.
4065
4066         (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
4067         (fp_register_arg_p, mips_dump_tdep): Update caller.
4068
4069         (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
4070         (mips16_scan_prologue, mips32_scan_prologue): Update caller.
4071
4072         (reset_saved_regs): Make static.  Add gdbarch as parameter.  Replace
4073         current_gdbarch.
4074         (mips32_scan_prologue): Update caller.
4075
4076         (heuristic_proc_start): Add gdbarch as parameter. Replace
4077         current_gdbarch.
4078         (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
4079
4080         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
4081         (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
4082         the current architecture. Update call to getregs_supplies.
4083         (getregs_supplies): Add gdbarch as parameter and replace
4084         current_gdbarch.
4085
4086         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
4087         get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
4088         NBSD_MIPS_JB_ELEMENT_SIZE.
4089         (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
4090         replace current_gdbarch.
4091
4092         * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
4093         current_gdbarch.
4094         (mips_fetch_registers, mips_store_registers): Update call
4095         to mips_map_regno.
4096         (mips_load): Use get_regcache_arch to get at the current_architecture
4097         and replace current_gdbarch.
4098
4099 2008-07-13  Pedro Alves  <pedro@codesourcery.com>
4100
4101         * thread.c (restore_selected_frame): On fail to restore, select
4102         the innermost frame, and don't crash when warning the user.
4103
4104 2008-07-13  Hui Zhu  <teawater@gmail.com>
4105
4106         * symtab.c (expand_line_sal): Fix a memory leak.
4107
4108 2008-07-13  Pedro Alves  <pedro@codesourcery.com>
4109
4110         * utils.c (struct continuation): Define as inheriting struct
4111         cleanup.
4112         (add_continuation, do_all_continuations)
4113         (discard_all_continuations, add_intermediate_continuation)
4114         (do_all_intermediate_continuations)
4115         (discard_all_intermediate_continuations): Adjust.
4116
4117 2008-07-13  Vladimir Prus  <vladimir@codesourcery.com>
4118
4119         Skip varobj in running threads.
4120         * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
4121         thread is not stopped, skip the varobj.
4122         * Makefile.in: Update dependencies.
4123
4124 2008-07-13  Vladimir Prus  <vladimir@codesourcery.com>
4125
4126         Enable all commands while inferiour is running
4127         * mi/mi-main.c (mi_cmd_execute): Don't check if
4128         inferiour is executing.
4129
4130 2008-07-13  Vladimir Prus  <vladimir@codesourcery.com>
4131
4132         Allow all CLI command even if target is executing.
4133         * gdb/top.c (execute_command_1): Don't check if the inferiour
4134         is running.
4135
4136 2008-07-13  Vladimir Prus  <vladimir@codesourcery.com>
4137
4138         * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
4139         Fix printing of frame, when frame is wrong.
4140
4141 2008-07-12  Ulrich Weigand  <uweigand@de.ibm.com>
4142
4143         * spu-tdep.c (spu_frame_unwind_cache): Do not error if
4144         backchain is unreadable.
4145
4146 2008-07-12  Ulrich Weigand  <uweigand@de.ibm.com>
4147
4148         * spu-linux-nat.c: Include "gdbthread.h".
4149         (spu_child_post_startup_inferior): Register main thread.
4150         (spu_child_post_attach): Likewise.
4151         * Makefile.in (spu-linux-nat.o): Update dependencies.
4152
4153 2008-07-12  Pedro Alves  <pedro@codesourcery.com>
4154
4155         Rewrite continuations internals on top of cleanups and plug
4156         continuation arguments leaks.
4157
4158         * defs.h (struct continuation): Make it opaque.
4159         (add_continuation, add_intermediate_continuation): Drop the int
4160         argument of the continuation hook argument.  Add
4161         continuation_free_args argument.
4162         (do_all_continuations, do_all_intermediate_continuations): Drop
4163         the error_p argument.
4164
4165         * utils.c (add_continuation): Drop the int argument of the
4166         continuation hook argument.  Add continuation_free_args argument.
4167         Reimplement on top of cleanups.
4168         (do_all_continuations): Drop error argument.  Reimplement on top
4169         of cleanups.
4170         (discard_all_continuations): Reimplement on top of cleanups.
4171         (add_intermediate_continuation): Drop the int argument of the
4172         continuation hook argument.  Add continuation_free_args argument.
4173         Reimplement on top of cleanups.
4174         (do_all_intermediate_continuations): Drop error argument.
4175         Reimplement on top of cleanups.
4176         (discard_all_intermediate_continuations): Reimplement on top of
4177         cleanups.
4178
4179         * breakpoint.c (until_break_command_continuation): Drop error
4180         argument.  Add xfree as continuation argument deleter.
4181
4182         * inf-loop.c (inferior_event_handler): On error, discard all
4183         continuations.  Adjust to new do_all_intermediate_continuations
4184         and do_all_continuations interfaces.
4185
4186         * infcmd.c (step_1_continuation): Drop error_p argument.  Adjust.
4187         Pass xfree as continuation argument deleter.
4188         (finish_command_continuation): Drop error_p argument.  Adjust.
4189         (finish_command_continuation_free_arg): New.
4190         (finish_command): Pass finish_command_continuation_free_arg as
4191         continuation argument deleter.  Adjust to new do_all_continuations
4192         interfaces.
4193         (attach_command_continuation): Drop error_p argument.
4194         (attach_command_continuation_free_args): New.
4195         (attach_command): Pass attach_command_continuation_free_args as
4196         continuation argument deleter.
4197
4198         * interps.c (interp_set): Adjust to new do_all_continuations
4199         interfaces.
4200
4201         * event-top.c (stdin_event_handler): In error, also discard the
4202         intermediate continuations.
4203
4204 2008-07-12  Pedro Alves  <pedro@codesourcery.com>
4205
4206         Replace struct continuation_args by void* and per command structs.
4207
4208         * top.c (execute_command): Remove unused arg1 and arg2 locals.
4209
4210         * breakpoint.c (struct until_break_command_continuation_args):
4211         New.
4212         (until_break_command_continuation): Take a void* instead of a
4213         continuations_arg.  Adjust.
4214         (until_break_command): Adjust to use struct
4215         until_break_command_continuation_args instead of struct
4216         continuation_arg.
4217
4218         * infcmd.c (struct step_1_continuation_args): New.
4219         (step_1_continuation): Take a void* instead of a
4220         continuations_arg.  Adjust to use struct step_1_continuation_args.
4221         (step_once): Adjust to use struct step_1_continuation_args.
4222
4223         (struct finish_command_continuation_args): New.
4224         (finish_command_continuation): Take a void* instead of a
4225         continuations_arg.  Adjust to use struct
4226         finish_command_continuation_args.
4227         (finish_command): Adjust to use struct
4228         finish_command_continuation_args.
4229         (struct attach_command_continuation_args): New.
4230         (attach_command_continuation): Take a void* instead of a
4231         continuations_arg.  Adjust to use struct
4232         attach_command_continuation_args.
4233         (attach_command): Adjust to use struct
4234         attach_command_continuation_args.
4235
4236         * defs.h (struct continuation_arg): Delete.
4237         (struct continuation): Replace the struct continuation_arg*
4238         parameter of continuation_hook by a void*.  Replace "arg_list"
4239         member by a new "args" member with void* type.
4240         (add_continuation, add_intermediate_continuation): Replace struct
4241         continuation_arg type usages by void* usages.
4242
4243         * utils.c (add_continuation, do_all_continuations)
4244         (add_intermediate_continuation)
4245         (do_all_intermediate_continuations): Replace struct
4246         continuation_arg type usages by void* usages.  Pass "args" instead
4247         of "arg_list".
4248
4249 2008-07-12  Pedro Alves  <pedro@codesourcery.com>
4250
4251         * infrun.c (struct thread_stepping_state): Delete sal member.
4252         (init_thread_stepping_state): Add local sal.  Use it instead of
4253         tss->sal.
4254         (handle_inferior_event): New local stop_pc_sal.  Use it instead of
4255         tss->sal.
4256         (step_into_function): Add local stop_func_sal.  Use it instead of
4257         tss->sal.
4258
4259 2008-07-12  Vladimir Prus  <vladimir@codesourcery.com>
4260
4261         Implement -exec-continue/-exec-interrupt --all.
4262         * infcmd.c (continue_1): New, extracted from
4263         (continue_command): ...here.
4264         (interrupt_target_1): New, extracted from
4265         (interrupt_target_command): ...here.
4266         * inferior.h (continue_1, interrupt_target_1): New.
4267         * mi/mi-main.c (mi_cmd_exec_continue)
4268         (mi_cmd_exec_interrupt): Handle --all.
4269
4270 2008-07-12  Vladimir Prus  <vladimir@codesourcery.com>
4271
4272         Implement --thread and --frame.
4273         * gdbthread.h (find_thread_id): Declare.
4274         * thread.c (find_thread_id): Make non-static.
4275         * mi/mi-main.c (mi_cmd_execute): Switch to the right
4276         thread and frame, if necessary.
4277         * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
4278         * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
4279
4280 2008-07-12  Vladimir Prus  <vladimir@codesourcery.com>
4281
4282         * infrun.c (resume): Discard cleanups on early exit path.
4283
4284 2008-07-12  Vladimir Prus  <vladimir@codesourcery.com>
4285
4286         * infrun.c (normal_stop): For MI, report which threads
4287         were stopped.
4288
4289 2008-07-12  Vladimir Prus  <vladimir@codesourcery.com>
4290
4291         Report thread state in -thread-info output.
4292         * thread.c (print_thread_info): Add new field "state".
4293
4294 2008-07-11  Pedro Alves  <pedro@codesourcery.com>
4295
4296         * infrun.c (handle_inferior_event): Also ignore a
4297         TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
4298
4299 2008-07-11  Tom Tromey  <tromey@redhat.com>
4300
4301         * completer.c (complete_line_internal): New function, from
4302         complete_line.  Add 'for_help' parameter.
4303         (complete_line): Use it.
4304         (command_completer): Move later.  Rewrite.
4305
4306 2008-07-11  Pedro Alves  <pedro@codesourcery.com>
4307
4308         * thread.c (thread_apply_command): Move making the cleanup out of
4309         the loop.
4310
4311 2008-07-11  Pedro Alves  <pedro@codesourcery.com>
4312
4313         Exited threads.
4314
4315         * thread.c (enum thread_state): New.
4316         (thread_state main_thread_running): Delete, in favor of...
4317         (thread_state main_thread_state): ... this.  Update throughout.
4318         (clear_thread_inferior_resources): New, split from free_thread.
4319         (free_thread): Call clear_thread_inferior_resources.
4320         (init_thread_list): Set main thread to stopped state.
4321         (add_thread_silent): Take care of PTID reuses.
4322         (delete_thread): If deleting inferior_ptid or a thread with
4323         refcount > 0, mark it as exited, but still keep it in the list.
4324         Only notify of thread exits, if we haven't done so yet.
4325         (iterate_over_threads): Make it safe to delete threads while
4326         iterating over them.
4327         (do_captured_list_thread_ids): Don't account for exited threads.
4328         (thread_alive): Check for the THREAD_EXITED state, and don't set
4329         ptid to -1 on exited threads.
4330         (set_running): Update to account for extra possible states.
4331         (is_thread_state): New.
4332         (is_stopped, is_exited): New.
4333         (is_running): Implement in terms of is_thread_state.
4334         (any_running): Update.
4335         (print_thread_info): Update.  Account for exited threads.  Don't
4336         warn about missed frame restoring here, its done in the cleanup.
4337         (switch_to_thread): Don't read from a thread that has gone.
4338         (restore_current_thread): In non-stop mode, do a full context
4339         switch.
4340         (restore_selected_frame): Add a frame_level argument.  Rewrite.
4341         (struct current_thread_cleanup): Add selected_frame_level and
4342         was_stopped members.
4343         (do_restore_current_thread_cleanup): Check if thread was stopped
4344         and still is, and if the target has registers, stack and memory
4345         before restoring the selected frame.  Don't delete the cleanup
4346         argument here.
4347         (restore_current_thread_cleanup_dtor): New.
4348         (make_cleanup_restore_current_thread): Remove all arguments.
4349         Rewrite.
4350         (thread_apply_all_command): Update.  Prune threads.
4351         (thread_apply_command): Update.
4352         (thread_command): Account for currently selected exited thread.
4353         (do_captured_thread_select): Check for a running thread.  Prune
4354         threads.
4355         (_initialize_thread): Make "info threads", "thread", "thread
4356         apply", and "thread apply all" appliable without a selected thread.
4357         * gdbthread.h (struct thread_info): Replace running_ by state_.
4358         Add refcount.
4359         (is_exited, is_stopped): Declare.
4360         (make_cleanup_restore_current_thread): Remove all arguments.
4361         * infrun.c: Include "event-top.h".
4362         (fetch_inferior_event): In non-stop mode, restore selected thread
4363         and frame after handling the event and running breakpoint
4364         commands.  Display GDB prompt if needed.
4365         (normal_stop): In non-stop mode, don't print thread switching
4366         notice.
4367         * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
4368         (get_cmd_no_selected_thread_ok): New.
4369         * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
4370         (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
4371         Declare.
4372         * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
4373         no-selected-thread ok.
4374         * top.c (execute_command): Check for non no-selected-thread-ok
4375         commands.
4376         * linux-nat.c (struct saved_ptids, threads_to_delete)
4377         (record_dead_thread, prune_lwps): Delete.
4378         (exit_lwp): Unconditionally delete thread.
4379         (linux_nat_resume): Remove prune_lwps call.
4380         * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
4381         of is_running.  Adjust to make_cleanup_restore_current_thread
4382         interface change.
4383         * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
4384         selected thread has exited.
4385         * inf-loop.c (inferior_event_handler): Don't display the prompt
4386         here.
4387         * varobj.c (c_value_of_root): Update.
4388         * defs.h (make_cleanup_dtor): Declare.
4389         * utils.c (make_cleanup_dtor): New.
4390
4391         * Makefile.in (infrun.o): Depend on $(event_top_h).
4392
4393 2008-07-11  Pedro Alves  <pedro@codesourcery.com>
4394
4395         Add "continue -a" and "interrupt -a" options for non-stop mode.
4396
4397         * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
4398         (continue_command): Add "-a" option.
4399         (interrupt_target_command): Add "-a" option.
4400         (_initialize_infcmd): Add extend help of continue and interrupt
4401         command to mention the new "-a" option.  Mark "continue" async ok.
4402
4403 2008-07-10  Doug Evans  <dje@google.com>
4404
4405         Add "set print symbol-loading on|off".
4406         * NEWS: Document new option.
4407         * symfile.h (print_symbol_loading): Declare.
4408         * symfile.c (print_symbol_loading): New global.
4409         (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
4410         from ..." if print_symbol_loading.
4411         (_initialize_symfile): Add set/show print symbol-loading.
4412         * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
4413         if print_symbol_loading.
4414
4415 2008-07-10  Pedro Alves  <pedro@codesourcery.com>
4416
4417         Non-stop linux native.
4418
4419         * linux-nat.c (linux_test_for_tracefork): Block events while we're
4420         here.
4421         (get_pending_status): Implement non-stop mode.
4422         (linux_nat_detach): Stop threads before detaching.
4423         (linux_nat_resume): In non-stop mode, always resume only a single
4424         PTID.
4425         (linux_handle_extended_wait): On a clone event, in non-stop mode,
4426         add new lwp to GDB's thread table, and mark as running, executing
4427         and stopped appropriately.
4428         (linux_nat_filter_event): Don't assume there are other running
4429         threads when a thread exits.
4430         (linux_nat_wait): Mark the main thread as running and executing.
4431         In non-stop mode, don't stop all lwps.
4432         (linux_nat_kill): Stop lwps before killing them.
4433         (linux_nat_thread_alive): Use signal 0 to detect if a thread is
4434         alive.
4435         (send_sigint_callback): New.
4436         (linux_nat_stop): New.
4437         (linux_nat_add_target): Set to_stop to linux_nat_stop.
4438
4439         * linux-nat.h (thread_db_attach_lwp): Declare.
4440
4441         * linux-thread-db.c (thread_get_info_callback): Check for new
4442         threads if we have none.
4443         (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
4444         stopped lwp.  Check for new threads if we have none.
4445         (thread_db_attach_lwp): New.
4446         (thread_db_init): Set proc_handle.pid to inferior_ptid.
4447         (check_event): Set proc_handle.pid to the stopped lwp.
4448         (thread_db_find_new_threads): Set proc_handle.pid to any stopped
4449         lwp available, bail out if there is none.
4450
4451         * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
4452         PTRACE_KILL.
4453
4454 2008-07-10  Kevin Buettner  <kevinb@redhat.com>
4455
4456         * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
4457         `current_pc' from CORE_ADDR to ULONGEST.
4458
4459         * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
4460         gdbsim_stop().
4461
4462 2008-07-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
4463
4464         * NEWS (New commands): Mention "set disable-randomization".
4465         * configure.ac: Add check for HAVE_PERSONALITY and
4466         HAVE_DECL_ADDR_NO_RANDOMIZE.
4467         * configure, config.in: Regenerate.
4468         * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
4469         [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
4470         ADDR_NO_RANDOMIZE.
4471         (disable_randomization, show_disable_randomization)
4472         (set_disable_randomization): New.
4473         (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
4474         PERSONALITY_ORIG and PERSONALITY_SET.  Disable randomization upon the
4475         variable DISABLE_RANDOMIZATION.
4476         (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
4477         DISABLE_RANDOMIZATION.
4478
4479 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
4480
4481         Adjust all targets to new target_stop interface.
4482
4483         * gnu-nat.c (gnu_stop): Add ptid argument.
4484         * go32-nat.c (go32_stop): Add ptid argument.
4485         (go32_create_inferior): Pass inferior_ptid to go32_stop.
4486         * hpux-thread.c (hpux_thread_stop): Add ptid argument.
4487         * monitor.c (monitor_stop): Add ptid argument.
4488         (monitor_open): Pass inferior_ptid to monitor_stop.
4489         (monitor_interrupt): Pass inferior_ptid to target_stop.
4490         (monitor_stop): Add ptid argument.
4491         * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
4492         (procfs_create_inferior): Add ptid argument.
4493         * procfs.c (procfs_stop): Add ptid argument.
4494         * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
4495         * remote-sim.c (gdbsim_stop): Add ptid argument.
4496         * sol-thread.c (sol_thread_stop): Add ptid argument.
4497         * win32-nat.c (win32_stop): Add ptid argument.
4498
4499 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
4500
4501         Non-stop inferior control.
4502
4503         * infrun.c (resume): In non-stop mode, always resume just one
4504         thread.
4505         (proceed): Don't call prepare_to_proceed in non-stop mode.
4506         (fetch_inferior_event): In non-stop mode, switch context before
4507         handling the event.
4508         (error_is_running, ensure_not_running): New.
4509         (handle_inferior_event): In non-stop mode: Mark only the event
4510         thread as stopped.  Require that the target module manages adding
4511         threads to the thread list.  Assert that there isn't a
4512         deferred_step_ptid set.  Don't switch to infwait_thread_hop_state.
4513         (normal_stop): Only mark not-running if inferior hasn't exited.
4514         In non-stop mode, only mark the event thread.
4515
4516         * thread.c:Include "cli/cli-decode.h".
4517         (print_thread_info): Don't read from a running thread.
4518         Output "(running)" if thread is running.
4519         (switch_to_thread): Don't read stop_pc if thread is executing.
4520         (do_restore_current_thread_cleanup): Don't write to a running
4521         thread.
4522         (thread_apply_all_command): Don't read from a running thread.  In
4523         non-stop mode, do a full context-switch instead of just switching
4524         threads.
4525         (thread_apply_command): In non-stop mode, do a full context-switch
4526         instead of just switching threads.
4527         (do_captured_thread_select): Likewise.  Inform user if selected
4528         thread is running.
4529         (_initialize_thread): Mark "info threads" and "thread" and
4530         async_ok.
4531
4532         * inf-loop.c (inferior_event_handler): In non-stop mode, don't
4533         unregister the target from the event loop.
4534
4535         * infcmd.c (continue_command, step_1, jump_command)
4536         (signal_command): Ensure the selected thread isn't running.
4537         (interrupt_target_command): In non-stop mode, interrupt only the
4538         selected thread.
4539
4540         * inferior.h (error_is_running, ensure_not_running): Declare.
4541
4542         * target.h (struct target_ops): Add ptid argument to the to_stop
4543         member.
4544         (target_stop): Add ptid_t argument.
4545
4546         * target.c (update_current_target): Add ptid argument to to_stop's
4547         type.
4548         (debug_to_stop): Add ptid_t argument.
4549         (debug_to_rcmd): Set to_stop_ptid.
4550
4551         * remote.c (remote_stop): Add ptid_t argument.
4552         (async_remote_interrupt): Add inferior_ptid to target_stop.
4553         * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
4554
4555         * Makefile.in (thread.o): Depend on $(cli_decode_h).
4556
4557 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
4558
4559         Don't rely on ecs->wait_for_more.
4560
4561         * infrun.c (proceed): Clear the stepping state, set
4562         previous_inferior_ptid and clear infwait state.
4563         (wait_for_inferior): Don't clear the stepping state, set
4564         previous_inferior_ptid, or clear the infwait state here.
4565         (fetch_inferior_event): Don't clear the stepping state, set
4566         previous_inferior_ptid, or clear the infwait state here.  Don't
4567         condition on wait_for_more.
4568
4569 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
4570
4571         Refactor infrun a bit.
4572
4573         * infrun.c (currently_stepping): Take a struct
4574         thread_stepping_state instead of an execution_control_state.
4575         (struct thread_stepping_state): New, split from
4576         execution_control_state.
4577         (gtss, tss): New globals.
4578         (proceed): Clear the stepping state, set previous_inferior_ptid
4579         and clear infwait state.
4580         (init_wait_for_inferior): Clear the stepping state,
4581         previous_inferior_ptid and infwait state.
4582         (waiton_ptid, infwait_state): New, split from
4583         execution_control_state.
4584         (struct execution_control_state): Members that persist through
4585         events moved out to either struct thred_stepping_state or made
4586         global.  Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
4587         (wait_for_inferior, fetch_inferior_event): Use local
4588         execution_control_state.  Update to execution_control_state split.
4589         (init_execution_control_state): Adjust.
4590         (init_thread_stepping_state): New, extracted from
4591         init_execution_control_state.
4592         (context_switch): Take a ptid instead of an
4593         execution_control_state.
4594         (context_switch_to): Adjust.
4595         (adjust_pc_after_break): Adjust.
4596         (init_infwait_state): New.
4597         (handle_inferior_event): Adjust.
4598
4599 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
4600             Vladimir Prus  <vladimir@codesourcery.com>
4601
4602         Per-thread commands.
4603
4604         * gdbthread.h: Remove unneeded forward declarations.
4605         Include "inferior.h".
4606         (struct thread_info): Add continuations,
4607         intermediate_continuations, proceed_to_finish, step_over_calls,
4608         stop_step, step_multi and stop_signal members.
4609         (save_infrun_state): Add continuations,
4610         intermediate_continuations, proceed_to_finish, step_over_calls,
4611         stop_step, step_multi, stop_signal and stop_bpstat parameters.
4612         (load_infrun_state): Add continuations,
4613         intermediate_continuations, proceed_to_finish, step_over_calls,
4614         stop_step, step_multi, stop_signal and stop_bpstat parameters.
4615
4616         * thread.c (load_infrun_state): In non-stop mode, load
4617         continuations, intermediate_continuations, proceed_to_finish,
4618         step_over_calls, stop_step, step_multi and stop_signal.
4619         (save_infrun_state): Store continuations,
4620         intermediate_continuations, proceed_to_finish, step_over_calls,
4621         stop_step, step_multi, stop_signal and stop_bpstat.
4622         (save_infrun_state): Store continuations,
4623         intermediate_continuations, proceed_to_finish, step_over_calls,
4624         stop_step, step_multi, stop_signal and stop_bpstat.
4625         (free_thread): Clear The thread's stop_bpstat.
4626
4627         * inferior.h (context_switch_to): Declare.
4628
4629         * infrun.c (ecss): New global.
4630         (context_switch): Context switch continuations,
4631         intermediate_continuations, proceed_to_finish, step_over_calls,
4632         stop_step, step_multi, stop_signal and stop_bpstat.
4633         (wait_for_inferior): Use global ecss.
4634         (async_ecss, async_ecs): Delete.
4635         (fetch_inferior_event): Use global ecss.
4636         (context_switch_to): New.
4637
4638         * top.c (execute_command): In non-stop, only check if the current
4639         thread is running, in all-stop, check if there's any thread
4640         running.
4641
4642         * breakpoint.c (bpstat_remove_breakpoint): New.
4643         (bpstat_remove_breakpoint_callback): New.
4644         (delete_breakpoint): Clear the stop_bpstats of all threads.
4645
4646         * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
4647         current thread is running, in all-stop, check if there's any
4648         thread running.
4649
4650         * Makefile.in (gdbthread_h): Depend on $(inferior_h).
4651
4652 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
4653
4654         Add non_stop global.
4655
4656         * inferior.h (non_stop): Declare.
4657         * infrun.c (non_stop, non_stop_1): New.
4658         (set_non_stop, show_non_stop): New.
4659         (_initialize_infrun): Add "set/show non-stop" command.
4660
4661 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
4662
4663         Adjust fork/vfork/exec to pass ptids around.
4664
4665         * target.h (struct target_waitstatus): Store related_pid as a ptid.
4666         (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
4667         Take a ptid_t.
4668         * breakpoint.h (struct breakpoint): Change forked_inferior_pid
4669         type to ptid.
4670         * breakpoint.c (print_it_typical, bpstat_check_location)
4671         (print_one_breakpoint_location, set_raw_breakpoint_without_location)
4672         (create_fork_vfork_event_catchpoint): Adjust.
4673         * infrun.c (fork_event): Change parent_pid and child_pid types to
4674         ptid.
4675         (follow_exec, inferior_has_forked, inferior_has_vforked)
4676         (inferior_has_execd): Take a ptid_t and don't trim it.
4677         * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
4678         * linux-nat.c (linux_child_follow_fork): Adjust.
4679         * inf-ptrace.c (inf_ptrace_wait): Adjust.
4680         * inf-ttrace.c (inf_ttrace_wait): Adjust.
4681         * win32-nat.c (get_win32_debug_event): Don't set related_pid.
4682
4683 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
4684
4685         Add "executing" property to threads.
4686
4687         * inferior.h (target_executing): Delete.
4688         * gdbthread.h (struct thread_info): Add executing_ field.
4689         (set_executing, is_executing): New.
4690         * thread.c (main_thread_executing): New.
4691         (init_thread_list): Clear it and also main_thread_running.
4692         (is_running): Return false if target has no execution.
4693         (any_running, is_executing, set_executing): New.
4694
4695         * top.c: Include "gdbthread.h".
4696         (target_executing): Delete.
4697         (execute_command): Replace target_executing check by any_running.
4698         * event-top.c: Include "gdbthread.h".
4699         (display_gdb_prompt, command_handler): Replace target_executing by
4700         is_running.
4701         * inf-loop.c: Include "gdbthread.h".  Don't mark as not executing
4702         here.  Replace target_executing by is_running.
4703         * infrun.c (handle_inferior_event): Mark all threads as
4704         not-executing.
4705         * linux-nat.c (linux_nat_resume): Don't mark thread as executing
4706         here.
4707         * stack.c (get_selected_block): Return null if inferior is
4708         executing.
4709         * target.c (target_resume): Mark resumed ptid as executing.
4710         * breakpoint.c (until_break_command): Replace target_executing
4711         check by is_executing.
4712         * remote.c (remote_async_resume): Don't mark inferior as executing
4713         here.
4714         * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
4715         by any_running.
4716
4717         * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
4718         (mi_execute_async_cli_command): Replace target_executing by
4719         is_running.
4720
4721         * frame.c (get_current_frame): Error out if the current thread is
4722         executing.
4723         (has_stack_frames): New.
4724         (get_selected_frame, deprecated_safe_get_selected_frame): Check
4725         has_stack_frames.
4726
4727         * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
4728         $(gdbthread_h).
4729
4730 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
4731
4732         * symfile.c (load_command): Reopen the exec file and reread
4733         symbols before anything else.
4734
4735 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
4736
4737         * remote-sim.c: Include gdbthread.h.
4738         (remote_sim_ptid): New global.
4739         (gdbsim_create_inferior): Silently add the main task to GDB's
4740         thread list.
4741         (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
4742         task from GDB's thread list.
4743         (gdbsim_resume): Adjust to use remote_sim_ptid.
4744         (gdbsim_thread_alive, gdbsim_pid_to_str): New.
4745         (init_gdbsim_ops): Register gdbsim_thread_alive and
4746         gdbsim_pid_to_str.
4747         (_initialize_remote_sim): Initialize remote_sim_ptid.
4748         * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
4749
4750 2008-07-09  Pedro Alves  <pedro@codesourcery.com>
4751
4752         * monitor (monitor_ptid): New global.
4753         (monitor_open): Silently add the main task to GDB's thread list.
4754         (monitor_close, monitor_mourn_inferior): Silently delete the main
4755         task from GDB's thread list.
4756         (monitor_thread_alive, monitor_pid_to_str): New.
4757         (init_base_monitor_ops): Register monitor_thread_alive and
4758         monitor_pid_to_str.
4759         (_initialize_remote_monitors): Initialize monitor_ptid.
4760
4761         * gdbthread.h (delete_thread_silent): Declare.
4762         * thread.c (delete_thread): Rename to ...
4763         (delete_thread_1): ... this.  Add "silent" parameter.  If silent,
4764         don't do exit notifications.
4765         (delete_thread, delete_thread_silent): New, as wrappers to
4766         delete_thread_1.
4767
4768 2008-07-08  Pedro Alves  <pedro@codesourcery.com>
4769
4770         * breakpoint.c (update_global_location_list): Add boolean
4771         "should_insert" argument.  Only insert locations if caller told it
4772         too.
4773         (update_global_location_list_nothrow): Add boolean "should_insert"
4774         argument.  Pass it to update_global_location_list.
4775         (insert_breakpoints, create_longjmp_breakpoint)
4776         (create_overlay_event_breakpoint, enable_overlay_breakpoints)
4777         (create_thread_event_breakpoint, create_solib_event_breakpoint)
4778         (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
4779         (enable_watchpoints_after_interactive_call_stop)
4780         (set_momentary_breakpoint, create_breakpoints)
4781         (break_command_really, watch_command_1)
4782         (create_ada_exception_breakpoint, update_breakpoint_locations)
4783         (do_enable_breakpoint, enable_command): Pass true to
4784         update_global_location_list.
4785         (bpstat_stop_status, disable_overlay_breakpoints)
4786         (disable_watchpoints_before_interactive_call_start)
4787         (delete_breakpoint, disable_breakpoint, disable_command): Pass
4788         false to update_global_location_list.
4789         (update_breakpoints_after_exec): Don't temporarily disable
4790         always-inserted mode.
4791
4792 2008-07-08  Pedro Alves  <pedro@codesourcery.com>
4793
4794         * breakpoint.c (mark_breakpoints_out): Make public.
4795         (update_breakpoints_after_exec): Don't call mark_breakpoints_out
4796         here.  Update comment.
4797         * breakpoint.h (mark_breakpoints_out): Declare.
4798
4799         * linux-nat.c (linux_handle_extended_wait): On
4800         TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
4801         * inf-ttrace.c (inf_ttrace_wait): Likewise.
4802
4803 2008-07-08  Pedro Alves  <pedro@codesourcery.com>
4804
4805         * infrun.c (follow_exec): Reset shared libraries before adding the
4806         main exec file.
4807
4808 2008-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4809
4810         * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
4811
4812 2008-07-07  Pedro Alves  <pedro@codesourcery.com>
4813
4814         * i386-dicos-tdep.c: Include "inferior.h".
4815         (i386_dicos_frame_align): New.
4816         (i386_dicos_init_abi): Register i386_dicos_frame_align.  Set call
4817         dummy location ON_STACK.
4818         * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
4819
4820 2008-07-07  Joel Brobecker  <brobecker@adacore.com>
4821
4822         * gstdint.h: New file.
4823
4824 2008-07-05  Vladimir Prus  <vladimir@codesourcery.com>
4825
4826         * mi/mi-interp.c (mi_on_resume): Don't try to report
4827         resumed thread it the thread list is empty.
4828
4829 2008-07-05  Pierre Muller  <muller@ics.u-strasbg.fr>
4830
4831         * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
4832         completer for set to filename_completer.
4833
4834         NEWS: Mention it.
4835
4836 2008-07-04  Vladimir Prus  <vladimir@codesourcery.com>
4837
4838         Implement -target-attach.
4839         * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
4840
4841 2008-06-21  Hui Zhu  <teawater@gmail.com>
4842
4843         * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
4844
4845 2008-07-03  Pedro Alves  <pedro@codesourcery.com>
4846
4847         * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
4848         * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
4849
4850         * target.h (struct target_ops): Add to_attach_no_wait member.
4851         (target_attach_no_wait): New.
4852         * target.c (update_current_target): Inherit to_attach_no_wait.
4853
4854         * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
4855         target_attach_no_wait runtime check.
4856
4857         * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
4858         * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
4859         win32_ops.
4860
4861 2008-07-03  Pedro Alves  <pedro@codesourcery.com>
4862
4863         * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
4864         on debug_displaced being set.
4865
4866 2008-06-30  Daniel Jacobowitz  <dan@codesourcery.com>
4867
4868         * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
4869         directly instead of get_frame_id.
4870
4871 2008-06-30  Luis Machado  <luisgpm@br.ibm.com>
4872
4873         * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
4874         (deal_with_atomic_sequence): Update BC masks.
4875         (rs6000_gdbarch_init): Init displaced stepping infra-structure.
4876         Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
4877
4878 2008-06-30  Daniel Jacobowitz  <dan@codesourcery.com>
4879
4880         * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
4881         register, not the previous frame's.
4882
4883 2008-06-30  Luis Machado  <luisgpm@br.ibm.com>
4884
4885         * source.c (select_source_symtab): Make sure we skip namespace
4886         symtabs when showing cpp source code.
4887
4888 2008-06-30  Hans-Peter Nilsson  <hp@axis.com>
4889
4890         * MAINTAINERS (Authorized committers): Fix my email address.
4891
4892 2008-06-28  Vladimir Prus  <vladimir@codesourcery.com>
4893
4894         * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
4895         -target-download and -target-select via CLI, so that
4896         the quoting rules are the same as they were (unfortunately)
4897         in all prior gdb releases.
4898         * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
4899         (mi_cmd_target_download, mi_cmd_target_select): Remove.
4900         * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
4901         (mi_cmd_target_download, mi_cmd_target_select): Remove.
4902         (mi_cmd_execute): Set current_token even for commands
4903         routed via CLI.
4904
4905 2008-06-28  Ulrich Weigand  <uweigand@de.ibm.com>
4906
4907         * alphafbsd-tdep.c: Update for unwinder changes.
4908         * alpha-linux-tdep.c: Likewise.
4909         * alphanbsd-tdep.c: Likewise.
4910         * alphaobsd-tdep.c: Likewise.
4911         * avr-tdep.c: Likewise.
4912         * cris-tdep.c: Likewise.
4913         * frv-linux-tdep.c: Likewise.
4914         * frv-tdep.c: Likewise.
4915         * h8300-tdep.c: Likewise.
4916         * hppa-linux-tdep.c: Likewise.
4917         * iq2000-tdep.c: Likewise.
4918         * m32c-tdep.c: Likewise.
4919         * m32r-linux-tdep.c: Likewise.
4920         * m32r-tdep.c: Likewise.
4921         * m68hc11-tdep.c: Likewise.
4922         * mep-tdep.c: Likewise.
4923         * mn10300-tdep.c: Likewise.
4924         * mt-tdep.c: Likewise.
4925         * score-tdep.c: Likewise.
4926         * sh64-tdep.c: Likewise.
4927         * sh-tdep.c: Likewise.
4928         * sparc64fbsd-tdep.c: Likewise.
4929         * sparc64nbsd-tdep.c: Likewise.
4930         * sparc64obsd-tdep.c: Likewise.
4931         * v850-tdep.c: Likewise.
4932         * vaxobsd-tdep.c: Likewise.
4933         * vax-tdep.c: Likewise.
4934         * xstormy16-tdep.c: Likewise.
4935
4936 2008-06-28  Vladimir Prus  <vladimir@codesourcery.com>
4937
4938         * mi/mi-main.c (enum captured_mi_execute_command_actions)
4939         (captured_mi_execute_command_args): Remove.
4940         (captured_mi_execute_command): Cast the closure to mi_parse
4941         pointer, not to captured_mi_execute_command_args, and don't
4942         set the action field thereof.
4943         (mi_execute_command): Pass struct mi_parse, not
4944         captured_mi_execute_command_args to captured_mi_execute_command.
4945         (mi_execute_command): Remove (dead) code for suppressing
4946         printing prompt.
4947
4948 2008-06-28  Pedro Alves  <pedro@codesourcery.com>
4949
4950         * linux-nat.c (enum sigchld_state): New.
4951         (linux_nat_async_events_state): Renamed from
4952         linux_nat_async_events_enabled.
4953         (linux_nat_event_pipe_push, my_waitpid): Adjust.
4954         (sigchld_default_action): New.
4955         (lin_lwp_attach_lwp): Adjust.  Call linux_nat_async_events
4956         unconditionally.
4957         (linux_nat_create_inferior): Set events state to sigchld_default
4958         state.
4959         (linux_nat_resume): Adjust.
4960         (linux_nat_wait): Call linux_nat_async_events unconditionally.
4961         (sigchld_handler): Adjust.
4962         (linux_nat_async_mask): Don't set SIGCHLD actions here.
4963         (get_pending_events): Adjust.
4964         (linux_nat_async_events): Rewrite to handle enum sigchld_state
4965         instead of a boolean.
4966         (linux_nat_async): Adjust.
4967         (_initialize_linux_nat): Capture default SIGCHLD action into
4968         sigchld_default_action.
4969
4970 2008-06-28  Vladimir Prus  <vladimir@codesourcery.com>
4971
4972         * breakpoint.c (moribund_locations): New.
4973         (bpstat_stop_status): Process moribund locations.
4974         (update_global_location_list): Add removed
4975         locations to moribund_locations.
4976         (breakpoint_retire_moribund): New.
4977         * breakpoint.h (struct bp_location): New field
4978         events_till_retirement.
4979         (breakpoint_retire_moribund): Declare.
4980         * thread.c (thread_count): New.
4981         * infrun.c (handle_inferior_event): Call
4982         breakpoint_retire_moribund.
4983         * gdbthread.h (thread_count): Declare.
4984
4985 2008-06-27  Joseph Myers  <joseph@codesourcery.com>
4986
4987         * dfp.c (decimal_convert): Call match_endianness before and after
4988         conversion.
4989
4990 2008-06-27  Jonathan Larmour  <jifl@eCosCentric.com>
4991
4992         * remote.c (remote_insert_breakpoint): Ensure that if Z0
4993         unsupported and we fall back to memory_insert_breakpoint, we
4994         use the unmodified requested address.
4995
4996 2008-06-27  Joel Brobecker  <brobecker@adacore.com>
4997
4998         * dwarf2read.c (read_attribute_value): Issue a complaint when
4999         adjusting size attribute values of 0xffffffff as zero.
5000
5001 2008-06-27  Joseph Myers  <joseph@codesourcery.com>
5002
5003         * i386-tdep.c (i386_16_byte_align_p): New.
5004         (i386_push_dummy_call): Determine stack space required for
5005         arguments going forwards allowing for 16-byte alignment, then push
5006         arguments going forwards.
5007
5008 2008-06-27  Pedro Alves  <pedro@codesourcery.com>
5009
5010         * infrun.c (start_remote): Don't clear thread list here.
5011         * monitor.c (monitor_open): Include "gdbthread.h".  Clear thread
5012         list here.
5013         * remote.c (record_currthread): Upgrade the main thread and its
5014         entry in the thread list if this is the first time we hear about
5015         threads.
5016         (remote_thread_alive): Consider magic_null_ptid or a ptid without
5017         a tid member always alive.
5018         (remote_find_new_threads): Don't update the main thread here.
5019         (remote_start_remote): Clear thread list here.  Always add the
5020         main thread.
5021         (extended_remote_attach_1): Add the main thread here.
5022         (extended_remote_mourn_1): Re-add the main thread here.
5023         (extended_remote_create_inferior_1): Add a main thread.
5024
5025         * Makefile.in (monitor.o): Depend on $(gdbthread_h).
5026
5027 2008-06-27  Pedro Alves  <pedro@codesourcery.com>
5028
5029         Use ptid_t.tid to store thread ids instead of ptid_t.pid.
5030
5031         * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
5032         globals.
5033         (general_thread, continue_thread): Change type to ptid_t.
5034         (record_currthread): Take a ptid_t parameter instead of an
5035         integer.
5036         (MAGIC_NULL_PID): Delete.
5037         (set_thread): Take a ptid_t parameter and adjust.
5038         (set_general_thread, set_continue_thread): New.
5039         (remote_thread_alive, remote_newthread_step)
5040         (remote_current_thread, remote_find_new_threads)
5041         (remote_threads_info, remote_start_remote, remote_vcont_resume)
5042         (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
5043         (threadalive_test, remote_pid_to_str)
5044         (remote_get_thread_local_address): Adjust.
5045         (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
5046         and any_thread_ptid.
5047
5048 2008-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
5049
5050         * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
5051         * configure: Regenerated.
5052
5053 2008-06-26  Joel Brobecker  <brobecker@adacore.com>
5054
5055         * dwarf2read.c (read_attribute_value): Treat size attribute
5056         values of 0xffffffff as if the attribute value was zero.
5057
5058 2008-06-26  Vladimir Prus  <vladimir@codesourcery.com>
5059
5060         * linux-nat.c: Add description of overall logic.
5061
5062 2008-06-26  Daniel Jacobowitz  <dan@codesourcery.com>
5063
5064         * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
5065         (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete.  Remove
5066         all dependencies on $(gdb_stdint_h).
5067         (distclean): Do not delete gdb_stdint.h.
5068         * acinclude.m4: Do not use stdint.m4.
5069         * configure.ac: Set GNULIB_STDINT_H.  Remove tests for stdint.h,
5070         uintptr_t, and gdb_stdint.h.
5071         * defs.h: Include <stdint.h>.
5072         * gdb_thread_db.h: Assume stdint.h is already included.
5073         * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
5074         rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
5075         include gdb_stdint.h.
5076         * configure, config.in: Regenerate.
5077
5078 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
5079
5080         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
5081         decimal floating-point values in GPRs for soft-float.
5082         (do_ppc_sysv_return_value): Handle returning decimal
5083         floating-point values in GPRs for soft-float.
5084
5085 2008-06-26  Vladimir Prus  <vladimir@codesourcery.com>
5086
5087         * target.c (target_read_until_error): New.
5088         * target.h (target_read_until_error): Declare.
5089         * mi/mi-main.c (mi_cmd_data_read_memory): Use
5090         target_read_until_error.
5091
5092 2008-06-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
5093
5094         Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
5095         * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
5096         after the DECFLOAT detection to fix a memory leak.  Remove the
5097         redundant NUM initialization.  Protect the DECFLOAT detection memory
5098         access before the P block.  Restore the P memory content for the
5099         DECFLOAT detection.
5100
5101 2008-06-25  Vladimir Prus  <vladimir@codesourcery.com>
5102
5103         Kill the return value for all MI command functions.
5104         * mi/mi-cmds.h (enum mi_cmd_result): Remove.
5105         (mi_cmd_argv_ftype): Change return type to void.
5106
5107         * mi/mi-main.c: Adjust all function that implement
5108         MI commands to return nothing.
5109         (struct captured_mi_execute_command_actions):
5110         Remove the rc field.
5111         (mi_cmd_execute): Return nothing.
5112         (mi_execute_async_cli_command): Return nothing.
5113         (mi_cmd_exec_interrupt): Don't print ^done here.
5114         (mi_cmd_target_select): Don't print ^connected here.
5115         (captured_mi_execute_command): Don't check for MI_CMD_DONE.
5116         Special-case -target-select and output ^connected, not ^done.
5117
5118         * mi/mi-cmd-break.c: Adjust.
5119         * mi/mi-cmd-disas.c: Adjust.
5120         * mi/mi-cmd-env.c: Adjust.
5121         * mi/mi-cmd-file.c: Adjust.
5122         * mi/mi-cmd-stack.c: Adjust.
5123         * mi/mi-cmd-target.c: Adjust.
5124         * mi/mi-cmd-var.c: Adjust.
5125         * mi/mi-interp.c: Adjust.
5126         * mi/mi-symbol-cmds.c: Adjust.
5127
5128 2008-06-25  Vladimir Prus  <vladimir@codesourcery.com>
5129
5130         Emit ^running via observer.
5131         * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
5132         ^running here.
5133         (mi_on_resume): Print ^running if not previously output.
5134         * mi/mi-main.c (running_result_record_printed): New.
5135         (captured_mi_execute_command): Reset
5136         running_result_record_printed.  Use running_result_record_printed
5137         to decide if we should skip ^done.
5138         (mi_execute_async_cli_command): Don't print ^running here.
5139         * mi/mi-main.h (current_token, running_result_record_printed):
5140         Declare.
5141
5142 2008-06-24  Michael Snyder  <msnyder@specifix.com>
5143
5144         * infrun.c (_initialize_infrun): White space and typo fix.
5145
5146 2008-06-23  Christopher Faylor  <me.gdb.changelog@cgf.cx>
5147
5148         * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
5149         (do_initial_win32_stuff): Fix problem with inability to set breakpoints
5150         when first loading DLL with "dll" command.
5151
5152 2008-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5153
5154         * gnu-nat.c (proc_string): Use capital T for "Thread".
5155
5156 2008-06-19  Pierre Muller  <muller@ics.u-strasbg.fr>
5157
5158         * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
5159
5160 2008-06-18  Joel Brobecker  <brobecker@adacore.com>
5161
5162         * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
5163         the target cannot run.
5164
5165 2008-06-18  Joel Brobecker  <brobecker@adacore.com>
5166
5167         * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
5168         we're attaching to a running process.
5169
5170 2008-06-18  Pierre Muller  <muller@ics.u-strasbg.fr>
5171
5172         * win32-nat.c (handle_load_dll): Give dll name and load address
5173         if debug_events is on.
5174         (handle_unload_dll): Likewise.
5175
5176 2008-06-14  Vladimir Prus  <vladimir@codesourcery.com>
5177
5178         Don't suppress *running when doing finish.
5179         * infcall.c (call_function_by_hand): Set both
5180         suppress_resume_observer and suppress_stop_observer.
5181         * infcmd.c (suppress_run_stop_observers): Split into...
5182         (suppress_resume_observer, suppress_stop_observer): ...those.
5183         (finish_command_continuation): Clear suppress_stop_observer.
5184         (finish_command): Set suppress_stop_observer.
5185         * inferior.h (suppress_run_stop_observers): Split into...
5186         (suppress_resume_observer, suppress_stop_observer): ...those.
5187         * infrun.c (normal_stop): Check for suppress_stop_observer.
5188         * thread.c (set_running): Check for suppress_resume_observer.
5189
5190 2008-06-12  Pedro Alves  <pedro_alves@portugalmail.pt>
5191             Pierre Muller  <muller@ics.u-strasbg.fr>
5192
5193         * gdbarch.sh (gdbarch_skip_main_prologue): New.
5194         * gdbarch.h, gdbarch.c: Regenerate.
5195         * i386-tdep.h (i386_skip_main_prologue): Declare.
5196         * i386-tdep.c (i386_skip_main_prologue): New.
5197         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
5198         i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
5199         * symtab.c (find_function_start_sal): When pc points at the "main"
5200         function, call gdbarch_skip_main_prologue.
5201
5202 2008-06-11  Daniel Jacobowitz  <dan@codesourcery.com>
5203
5204         * value.c (value_primitive_field): Fetch lazy register values.
5205
5206 2008-06-11  Pedro Alves  <pedro@codesourcery.com>
5207
5208         * NEWS: Mention support removal of undocumented S AA p PID stop
5209         reply packet.
5210
5211         * remote.c (remote_wait): Remove undocumented S AA p PID support.
5212
5213 2008-06-10  Stan Shebs  <stan@codesourcery.com>
5214
5215         * MAINTAINERS: Update my affiliation and address.
5216
5217 2008-06-10  Andreas Schwab  <schwab@suse.de>
5218
5219         * top.c (print_gdb_version): Don't print final newline.
5220
5221 2008-06-10  Vladimir Prus  <vladimir@codesourcery.com>
5222
5223         Implement *running.
5224         * Makefile.in: Update dependencies.
5225         * gdbthread.h (struct thread_info): New field
5226         running_.
5227         (set_running, is_running): New.
5228         * thread.c (set_running, is_running): New.
5229         * inferior.h (suppress_normal_stop_observer): Rename to...
5230         (suppress_run_stop_observers): ..this.
5231         * infcmd.c (suppress_normal_stop_observer): Rename to...
5232         (suppress_run_stop_observers): ..this.
5233         (finish_command_continuation, finish_command): Adjust.
5234         * infcall.c (call_function_by_hand): Adjust.
5235         * infrun.c (normal_stop): Call set_running.
5236         * target.c (target_resume): New.  Call set_running.
5237         * target.h (target_resume): Convert from macro to
5238         a function.
5239
5240         * mi/mi-interp.c (mi_on_resume): New.
5241         (mi_interpreter_init): Register mi_on_resume.
5242
5243 2008-06-10  Vladimir Prus  <vladimir@codesourcery.com>
5244
5245         Use observers to report stop events in MI.
5246         * mi/mi-interp.c (mi_on_normal_stop): New.
5247         (mi_interpreter_init): Register mi_on_normal_stop.
5248         (mi_interpreter_exec_continuation): Remove.
5249         (mi_cmd_interpreter_exec): Don't register the above.
5250         * mi/mi-main.c (captured_mi_execute_command): Don't care
5251         about sync_execution.
5252         (mi_execute_async_cli_command): Don't install continuation.  Don't
5253         print *stopped.
5254         (mi_exec_async_cli_cmd_continuation): Remove.
5255
5256 2008-06-10  Vladimir Prus  <vladimir@codesourcery.com>
5257
5258         Suppress normal stop observer when it's problematic.
5259         * inferior.h (suppress_normal_stop_observer): New.
5260         * infcall.c (call_function_by_hand): Disable stop events when
5261         doing function calls.
5262         * infmcd.c (suppress_normal_stop_observer): New.
5263         (finish_command_continuation): Call normal_stop observer
5264         explicitly.
5265         (finish_command): Disable stop events inside proceed.
5266         * infrun.c (normal_stop): Don't call normal stop observer if
5267         suppressed of if multi-step is in progress.
5268
5269 2008-06-10  Vladimir Prus  <vladimir@codesourcery.com>
5270
5271         Remove stale code.
5272         * infrun.c (finish_command): Don't pass cleanup
5273         to continuation.
5274         (finish_command_continuation): Don't grab cleanup from
5275         the passed data, as we don't use, and cannot, use it anyway.
5276
5277 2008-06-10  Vladimir Prus  <vladimir@codesourcery.com>
5278
5279         Introduce common cleanup for restoring integers.
5280         * defs.h (make_cleanup_restore_integer): New declaration.
5281         (struct cleanup): New field free_arg.
5282         (make_my_cleanup_2): New.
5283         * utils.c (restore_integer_closure, restore_integer)
5284         (make_cleanup_restore_integer): New.
5285         (make_my_cleanup): Initialize the free_arg field and
5286         renamed to make_my_cleanup_2.
5287         (do_my_cleanups): Call free_arg.
5288         (discard_cleanups): Call free_arg.
5289         * breakpoint.c (restore_always_inserted_mode): Remove.
5290         (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
5291
5292 2008-06-09  Doug Evans  <dje@google.com>
5293
5294         * remote.c (remote_wait): Include beginning of malformed packet
5295         in error output.
5296
5297 2008-06-09  Tom Tromey  <tromey@redhat.com>
5298
5299         * completer.c (complete_line): Don't special-case
5300         expression_completer.
5301         (expression_completer): Only pass last word to
5302         location_completer.
5303         * c-exp.y (yylex): Check 'token', not 'operator'.
5304
5305 2008-06-09  Daniel Jacobowitz  <dan@codesourcery.com>
5306
5307         * configure.ac (build_warnings): Add -Wno-format for mingw.
5308         * configure: Regenerated.
5309
5310 2008-06-07  Daniel Jacobowitz  <dan@codesourcery.com>
5311
5312         * NEWS: Make indentation consistent.  Move exec tracing entry out
5313         of remote packet list.
5314
5315 2008-06-06  Tom Tromey  <tromey@redhat.com>
5316
5317         * value.h (evaluate_subexpression_type, extract_field_op):
5318         Declare.
5319         * printcmd.c (_initialize_printcmd): Use expression_completer for
5320         'p', 'inspect', 'call'.
5321         * parser-defs.h (parse_field_expression): Declare.
5322         * parse.c: Include exceptions.h.
5323         (in_parse_field, expout_last_struct): New globals.
5324         (mark_struct_expression): New function.
5325         (prefixify_expression): Return int.
5326         (prefixify_subexp): Return int.  Use expout_last_struct.
5327         (parse_exp_1): Update.
5328         (parse_exp_in_context): Add 'out_subexp' argument.  Handle
5329         in_parse_field.
5330         (parse_field_expression): New function.
5331         * expression.h (parse_field_expression): Declare.
5332         (in_parse_field): Likewise.
5333         * eval.c (evaluate_subexpression_type): New function.
5334         (extract_field_op): Likewise.
5335         * completer.h (expression_completer): Declare.
5336         * completer.c (expression_completer): New function.
5337         (count_struct_fields, add_struct_fields): New functions.
5338         * c-exp.y (yyparse): Redefine.
5339         (COMPLETE): New token.
5340         (exp): New productions.
5341         (saw_name_at_eof, last_was_structop): New globals.
5342         (yylex): Return COMPLETE when needed.  Recognize in_parse_field.
5343         (c_parse): New function.
5344         * breakpoint.c (_initialize_breakpoint): Use expression_completer
5345         for watch, awatch, and rwatch.
5346         * Makefile.in (parse.o): Depend on exceptions_h.
5347
5348 2008-06-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
5349
5350         PR gdb/1147
5351         * gdb/valopts.c (find_overload_match): Handle references
5352         to pointers.
5353
5354 2008-06-06  Paul N. Hilfinger  <hilfinger@adacore.com>
5355
5356         * ada-lang.c (ada_value_assign): Correct big-endian case to take into
5357         account the bitsize of the 'from' operand.
5358
5359 2008-06-06  Pedro Alves  <pedro@codesourcery.com>
5360
5361         * annotate.h (annotate_thread_changed): Declare.
5362
5363 2008-06-06  Nick Roberts  <nickrob@snap.net.nz>
5364
5365         * annotate.c (annotate_thread_changed): New function.
5366         * thread.c (thread_command) : Use it.
5367         * infrun.c (normal_stop): Use it.
5368
5369 2008-06-05  Vladimir Prus  <vladimir@codesourcery.com>
5370             Nathan Sidwell  <nathan@codesourcery.com>
5371             Joseph Myers  <joseph@codesourcery.com>
5372
5373         * acinclude.m4: Include ../config/acx.m4.
5374         * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
5375         * configure, config.in: Regenerate.
5376         * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
5377         address.
5378         * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
5379
5380 2008-06-05  Pedro Alves  <pedro@codesourcery.com>
5381
5382         Replace 'target async' by 'maintenance set remote-async' and
5383         'target remote' combination.
5384
5385         * remote.c (remote_async_wait): Merge into remote_wait, and
5386         remove.
5387         (remote_async_permitted, remote_async_permitted_set): New
5388         variables.
5389         (set_maintenance_remote_async_permitted)
5390         (show_maintenance_remote_async_permitted): New functions.
5391         (remote_async_ops, extended_async_remote_ops): Delete.
5392         (remote_async_open, extended_remote_async_open): Delete.
5393         (remote_open_1): Drop async_p parameter.  Update callers.  Replace
5394         async_p with remote_async_permitted checks.
5395         (extended_async_remote_attach): Delete.
5396         (remote_resume, remote_async_resume): Merge and leave remote_resume.
5397         (remote_async_terminal_inferior): Rename to...
5398         (remote_terminal_inferior): ... this, and add
5399         remote_async_termitted check.
5400         (remote_async_terminal_ours): Rename to...
5401         (remote_terminal_ours): ... this, and add remote_async_termitted
5402         check.
5403         (remote_wait, remote_async_wait): Merge and leave remote_wait
5404         only.
5405         (remote_kill, remote_async_kill): Merge and leave remote_kill
5406         only.
5407         (remote_async_mourn, extended_async_remote_mourn): Delete.
5408         (extended_remote_create_inferior_1): Drop async_p parameter.
5409         Update callers.  Always use extended_remote_ops.
5410         (extended_remote_async_create_inferior): Delete.
5411         (remote_return_zero): Delete.
5412         (init_remote_ops): Register remote_can_async_p, remote_async,
5413         remote_async_mask, remote_terminal_inferior and
5414         remote_terminal_ours.
5415         (remote_can_async_p, remote_is_async_p): Check for
5416         remote_async_permitted.
5417         (init_remote_async_ops, init_extended_async_remote_ops): Remove.
5418         (set_remote_cmd): Don't add async and extended-async targets.
5419         (_initialize_remote): Add set/show remote-async maintenance
5420         commands.
5421
5422 2008-06-05  Pedro Alves  <pedro@codesourcery.com>
5423
5424         * remote.c (kill_kludge): Delete.
5425         (remote_wait, remote_async_wait): Don't set it.
5426         (remote_kill, remote_async_kill): Don't do anything with it.
5427
5428 2008-06-05  Pedro Alves  <pedro@codesourcery.com>
5429
5430         * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
5431
5432 2008-06-05  Aleksandar Ristovski  <aristovski@qnx.com>
5433
5434         * bcache.c (bcache_data): Call deprecated_bcache_added function.
5435         (deprecated_bcache_added): New function name. Body of function
5436         bcache_data is used here with the addition of 'added' argument.
5437         * bcache.h (deprecated_bcache_added): New function.
5438         * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
5439         work from add_psymbol_to_list - initialises partial symbol and stashes
5440         it in objfile's cache.
5441         (append_psymbol_to_list): New helper function, takes other part of
5442         work from add_psymbol_to_list - adds partial symbol to the given list.
5443         (add_psymbol_to_list): Call helper functions instead of doing work
5444         here. If adding to global list, do not duplicate partial symbols in the
5445         partial symtab.
5446
5447 2008-06-05  Aleksandar Ristovski  <aristovski@qnx.com>
5448
5449         * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
5450         'exception caught|thrown' message.
5451
5452 2008-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
5453
5454         * Makefile.in: Update dependencies.
5455         * dwarf2expr.c: New include "gdb_assert.h".
5456         (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
5457         (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
5458         (execute_stack_op): Error out on too large RECURSION_DEPTH.
5459         Increase/decrease RECURSION_DEPTH around the function.
5460
5461 2008-06-05  Daniel Jacobowitz  <dan@codesourcery.com>
5462
5463         * remote.c (get_offsets): Handle a single segment.
5464         * symfile.c (symfile_map_offsets_to_segments): Allow more bases
5465         than segments.
5466
5467 2008-06-03  Daniel Jacobowitz  <dan@codesourcery.com>
5468
5469         * solib-svr4.c (struct lm_info): Add lm_addr.
5470         (main_lm_addr): New.
5471         (svr4_default_sos): Set lm_addr.
5472         (svr4_current_sos): Set lm_addr and main_lm_addr.
5473         (svr4_fetch_objfile_link_map): Rewrite.
5474         (svr4_clear_solib): Clear main_lm_addr.
5475
5476 2008-06-03  Michael Snyder  <msnyder@redhat.com>
5477             Joseph Myers  <joseph@codesourcery.com>
5478
5479         * mips-tdep.c (mips_eabi_return_value): Replace stub that always
5480         returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
5481
5482 2008-06-02  Roman Zippel <zippel@linux-m68k.org>
5483
5484         * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
5485
5486 2008-06-02  Roman Zippel <zippel@linux-m68k.org>
5487
5488         * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
5489
5490 2008-06-01  Joel Brobecker  <brobecker@adacore.com>
5491
5492         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
5493         treat pointers in data space as function descriptors if the
5494         target address is also in the data space.
5495
5496 2008-05-30  Joel Brobecker  <brobecker@adacore.com>
5497
5498         * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
5499         the trad-frame register value for the SP register.
5500
5501 2008-05-29  Mark Kettenis  <kettenis@gnu.org>
5502
5503         * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
5504
5505 2008-05-28  Joel Brobecker  <brobecker@adacore.com>
5506
5507         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
5508         that identifies function descriptors outside of the .opd section.
5509
5510 2008-05-28  Aleksandar Ristovski  <aristovski@qnx.com>
5511
5512         * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
5513         temporary catchpoints.  In MI add missing fields 'reason', 'disp',
5514         'bkptno'.
5515         (print_mention_exception_catchpoint): Add 'Temporary' for temporary
5516         catchpoints.
5517         (handle_gnu_v3_exceptions): Use tempflag.
5518
5519 2008-05-28  Vladimir Prus  <vladimir@codesourcery.com>
5520
5521         Refactor varobj_update interface.
5522         * varobj.c (varobj_update): Report changes as vector.  Also
5523         return not just a list of varobj, but a list of special structures
5524         that tell what exactly has changed.
5525         * varobj.h (enum varobj_update_error): Rename to
5526         varobj_scope_status.
5527         (struct varobj_update_result_t): New.
5528         (varobj_update): Adjust prototype.
5529         * mi/mi-cmd-var.c: Adjust for changes.
5530
5531 2008-05-28  Vladimir Prus  <vladimir@codesourcery.com>
5532
5533         * varobj.c (varobj_update): Fix comment typo.
5534         Fix indentation.
5535
5536 2008-05-26  Joel Brobecker  <brobecker@adacore.com>
5537
5538         Set the symtab field of symbols read from ECOFF debugging entries.
5539         * mdebugread.c (add_symbol): Add new parameter symtab.
5540         (parse_symbol): Update calls to add_symbol throughout.
5541
5542 2008-05-27  Andreas Schwab  <schwab@suse.de>
5543
5544         * symtab.h (enum address_class): Remove LOC_REGPARM and
5545         LOC_COMPUTED_ARG.
5546         (struct symbol): Add is_argument.
5547         (SYMBOL_IS_ARGUMENT): Define.
5548
5549         * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
5550         * buildsym.c (finish_block): Likewise.
5551         * stack.c (print_frame_args, print_block_frame_locals)
5552         (print_frame_arg_vars): Likewise.
5553         * symtab.c (lookup_block_symbol): Likewise.
5554         * tracepoint.c (add_local_symbols): Likewise.
5555         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5556
5557         * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
5558         * dwarf2read.c (new_symbol): Likewise.
5559         * mdebugread.c (parse_symbol): Likewise.
5560         * stabsread.c (define_symbol): Likewise.
5561
5562         * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
5563         and LOC_COMPUTED_ARG.
5564         * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
5565         * ax-gdb.c (gen_var_ref): Likewise.
5566         * eval.c (evaluate_subexp_for_address): Likewise.
5567         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
5568         * m2-exp.y (yylex): Likewise.
5569         * printcmd.c (address_info): Likewise.
5570         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
5571         * tracepoint.c (collect_symbol, scope_info): Likewise.
5572
5573 2008-05-24  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5574
5575         * gdbarch.sh: Added new gdbarch struct
5576         core_regset_sections.
5577         * gdbarch.c: Refreshed.
5578         * gdbarch.h: Refreshed.
5579         * regset.h (core_regset_section): Declared.
5580         * linux-nat.c (linux_nat_do_thread_registers): Added
5581         support for the new gdbarch struct core_regset_sections.
5582         * utils.c (host_address_to_string): New function.
5583         * defs.h (host_address_to_string): New prototype.
5584         * i386-linux-tdep.c (i386_regset_rections): New register
5585         sections list for i386.
5586           (i386_linux_init_abi): Initialized new gdbarch struct
5587           core_regset_sections.
5588         * Makefile.in: Updated to reflect dependency changes.
5589         * ppc-linux-tdep.c (ppc_regset_sections): Register
5590         sections list for ppc.
5591           (ppc_linux_init_abi): Initialized new gdbarch struct
5592           core_regset_sections
5593
5594 2008-05-24  Andreas Schwab  <schwab@suse.de>
5595
5596         * linespec.c (decode_objc): Save current language around call to
5597         get_selected_block.
5598
5599 2008-05-23  Joel Brobecker  <brobecker@adacore.com>
5600
5601         * valprint.h (get_array_bounds): Renames get_array_low_bound.
5602         * valprint.c (get_array_bounds): Renames get_array_low_bound.
5603         Return the proper bound value if the array index type is an
5604         enumerated type. Compute the high bound if requested.
5605         (val_print_array_elements): Handle the case when the array
5606         element has a null size.
5607         * ada-valprint.c (print_optional_low_bound): Add handling
5608         for empty arrays or arrays of zero-size elements.
5609         (ada_val_print_array): New function, extracted out from
5610         ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
5611         handle empty arrays and arrays of zero-size elements.
5612         (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
5613         code by call to ada_val_print_array.
5614         (ada_value_print): Remove handling of null array.  The handling
5615         was incomplete and is now better handled by ada_val_print_array.
5616
5617 2008-05-23 Markus Deuling  <deuling@de.ibm.com>
5618
5619         * annotate.c (annotate_source, annotate_frame_begin): Replace
5620         deprecated_print_address_numeric with paddress.
5621         * cli/cli-cmds.c (list_command, edit_command): Likewise.
5622         * tui/tui-stack.c (tui_make_status_line): Likewise.
5623
5624         * defs.h (deprecated_print_address_numeric): Remove.
5625         * printcmd.c (deprecated_print_address_numeric): Remove.
5626         * maint.c (maint_print_section_info): Fix comment.
5627
5628 2008-05-23 Markus Deuling  <deuling@de.ibm.com>
5629
5630         * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
5631         print_binary_chars, print_char_chars): Add byte_order parameter and
5632         replace gdbarch_byte_order.
5633         (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
5634         expressions and remove them.  Remove unused TWO_TO_FOURTH.
5635         (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
5636         endianness.  Update call to print_hex_chars.
5637         * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
5638         print_binary_chars, print_char_chars): Add byte_order parameter.
5639         * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
5640         get at the endianness.  Update print_*_char calls to use byte_order.
5641
5642 2008-05-22  Ulrich Weigand  <uweigand@de.ibm.com>
5643
5644         * symtab.h (struct symbol): Make "aux_value" member a void pointer
5645         instead of a union.
5646         (SYMBOL_LOCATION_BATON): Update.
5647
5648 2008-05-22  Ulrich Weigand  <uweigand@de.ibm.com>
5649
5650         * symtab.h (enum address_class): Remove LOC_BASEREG and
5651         LOC_BASEREG_ARG.
5652         (struct symbol): Remove "basereg" member of "aux_value" union.
5653         (SYMBOL_BASEREG): Remove.
5654
5655         * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
5656         or LOC_BASEREG_ARG.
5657         * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
5658         (ada_add_block_symbols): Likewise.
5659         * ax-gdb.c (gen_var_ref): Likewise.
5660         * buildsym.c (finish_block): Likewise.
5661         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
5662         * m2-exp.y (yylex): Likewise.
5663         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5664         * printcmd.c (address_info): Likewise.
5665         * stack.c (print_frame_args, print_block_frame_locals): Likewise.
5666         (print_frame_arg_vars): Likewise.
5667         * symmisc.c (print_symbol): Likewise.
5668         * symtab.c (lookup_block_symbol): Likewise.
5669         * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
5670         (scope_info): Likewise.
5671
5672 2008-05-22  Ulrich Weigand  <uweigand@de.ibm.com>
5673
5674         * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
5675
5676         * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
5677         * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
5678         (ada_add_block_symbols): Likewise.
5679         * ax-gdb.c (gen_var_ref): Likewise.
5680         * buildsyms.c (finish_block): Likewise.
5681         * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
5682         * m2-exp.y (yylex): Likewise.
5683         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5684         * printcmd.c (address_info): Likewise.
5685         * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
5686         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
5687         * symtab.c (lookup_block_symbol): Likewise.
5688         * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
5689         (scope_info): Likewise.
5690
5691 2008-05-22  Ulrich Weigand  <uweigand@de.ibm.com>
5692
5693         * symtab.h (enum address_class): Remove LOC_INDIRECT and
5694         LOC_HP_THREAD_LOCAL_STATIC.
5695
5696         * findvar.c (symbol_read_needs_frame, read_var_value): Do not
5697         handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
5698         (read_var_value): Likewise.
5699         * buildsym.c (finish_block): Likewise.
5700         * objfiles.c (objfile_relocate): Likewise.
5701         * printcmd.c (address_info): Likewise.
5702         * symmisc.c (print_symbol, print_partial_symbols): Likewise.
5703         * tracepoint.c (scope_info): Likewise.
5704
5705 2008-05-21 Markus Deuling  <deuling@de.ibm.com>
5706            Maxim Grigoriev  <maxim2405@gmail.com>
5707
5708         * xtensa-tdep.c (xtensa_read_register): Remove.
5709         (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
5710         argument litbase to call0_frame_cache().
5711         (call0_track_op, call0_analyze_prologue)
5712         (call0_frame_cache): Use extra argument litbase.
5713
5714 2008-05-21  Joel Brobecker  <brobecker@adacore.com>
5715
5716         * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
5717
5718 2008-05-21  Ulrich Weigand  <uweigand@de.ibm.com>
5719
5720         * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
5721
5722 2008-05-21  Ulrich Weigand  <uweigand@de.ibm.com>
5723
5724         * alpha-mdebug-tdep.c: Include "trad-frame.h".
5725         (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
5726         struct trad_frame_saved_reg *.
5727         (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
5728         trad_frame_alloc_saved_regs.  Update accesses.  Record previous
5729         value of SP as being vfp.
5730         (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
5731         * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
5732
5733 2008-05-21  Markus Deuling  <deuling@de.ibm.com>
5734
5735         * score-tdep.c (score_print_insn): Get the current endianess from
5736         disassemble_info instead of gdbarch_byte_order.
5737
5738 2008-05-21  Pedro Alves  <pedro@codesourcery.com>
5739
5740         * frame.c (get_prev_frame_1): Build frame id before setting
5741         this_frame->prev_p, not after.
5742
5743 2008-05-21  Nick Roberts  <nickrob@snap.net.nz>
5744
5745         * annotate.c (annotate_new_thread): New function for new-thread
5746         annotation.
5747         * annotate.h: (annotate_new_thread): New extern.
5748         * thread.c (add_thread_with_info): Use it.
5749         * Makefile.in (thread.o): Add dependency on annotate.h.
5750
5751 2008-05-20  Joel Brobecker  <brobecker@adacore.com>
5752
5753         * win32-nat.c (win32_wait): Block the control-c event while
5754         waiting for a debug event.
5755
5756 2008-05-19  Pedro Alves  <pedro@codesourcery.com>
5757
5758         * symtab.h (lookup_symbol_in_language): Update comment.
5759         * symtab.c (lookup_symbol_aux_block): Update comment.
5760         * ada-lang.c (ada_lookup_symbol_list): Update comment.
5761
5762 2008-05-19  Ulrich Weigand  <uweigand@de.ibm.com>
5763
5764         * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
5765         (lookup_symbol): Likewise.
5766         * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
5767         (lookup_symbol): Likewise.
5768         (search_symbols): Update.
5769
5770         * linespec.c (find_methods, collect_methods): Update.
5771         (add_matching_methods, add_constructors): Update.
5772         (decode_compound, decode_dollar, decode_variable): Update.
5773         (lookup_prefix_sym): Update.
5774
5775         (symbol_found): Remove SYM_SYMTAB parameter.
5776         Use SYMBOL_SYMTAB (sym) instead.
5777
5778         * gdbtypes.c (lookup_typename): Update.
5779         (lookup_struct, lookup_union, lookup_enum): Update.
5780         (lookup_template_type): Update.
5781         (check_typedef): Update.
5782         * language.c (lang_bool_type): Update.
5783         * mdebugread.c (parse_procedure): Update.
5784         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5785         * parse.c (write_dollar_variable): Update.
5786         * printcmd.c (address_info): Update.
5787         * source.c (select_source_symtab): Update.
5788         * stack.c (print_frame_args, print_frame_arg_vars): Update.
5789         * valops.c (find_function_in_inferior): Update.
5790         (value_struct_elt_for_reference): Update.
5791         * value.c (value_static_field, value_fn_field): Update.
5792
5793         * alpha-mdebug-tdep.c (find_proc_desc): Update.
5794         * arm-tdep.c (arm_skip_prologue): Update.
5795         * mt-tdep.c (mt_skip_prologue): Update.
5796         * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
5797
5798         * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
5799         * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
5800         (add_defn_to_vec): Likewise.
5801         (ada_add_block_symbols): Likewise.
5802         (lookup_cached_symbol, cache_symbol): Likewise.
5803         (standard_lookup): Update.
5804         (ada_lookup_symbol_list): Update.
5805
5806         * c-valprint.c (c_val_print): Update.
5807         * cp-support.c (cp_lookup_rtti_type): Update.
5808         * jv-lang.c (java_lookup_class, get_java_object_type): Update.
5809         * objc-lang.c (lookup_struct_typedef, find_imps): Update.
5810         * p-valprint.c (pascal_val_print): Update.
5811         * scm-lang.c (scm_lookup_name): Update.
5812
5813         * c-exp.y: Update.
5814         * f-exp.y: Update.
5815         * jv-exp.y: Update.
5816         * m2-exp.y: Update.
5817         * objc-exp.y: Update.
5818         * p-exp.y: Update.
5819
5820 2008-05-19  Ulrich Weigand  <uweigand@de.ibm.com>
5821
5822         * language.h (struct language_defn): Remove SYMTAB parameter from
5823         la_lookup_symbol_nonlocal callback function pointer.
5824
5825         * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
5826         (ada_lookup_encoded_symbol): Likewise.
5827         * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
5828         Always call fixup_symbol_section.
5829         (ada_lookup_symbol): Remove SYMTAB parameter.
5830         (ada_lookup_symbol_nonlocal): Likewise.
5831         * ada-exp.y (write_object_renaming): Update.
5832         (find_primitive_type): Likewise.
5833
5834         * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
5835         (cp_lookup_symbol_namespace): Likewise.
5836         * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
5837         (lookup_symbol_file): Likewise.
5838         (lookup_possible_namespace_symbol): Likewise.
5839         (cp_lookup_symbol_nonlocal): Likewise.
5840         (cp_lookup_symbol_namespace): Likewise.
5841         (cp_lookup_nested_type): Update.
5842
5843         * scm-valprint.c (scm_inferior_print): Update.
5844         * valops.c (value_maybe_namespace_elt): Update.
5845
5846         * solist.h (struct target_so_ops): Remove SYMTAB parameter from
5847         lookup_lib_global_symbol callback function pointer.
5848         (solib_global_lookup): Remove SYMTAB parameter.
5849         * solib.c (solib_global_lookup): Remove SYMTAB parameter.
5850         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5851
5852         * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
5853         (lookup_symbol_static): Likewise.
5854         (lookup_symbol_global): Likewise.
5855         (lookup_symbol_aux_block): Likewise.
5856         (lookup_global_symbol_from_objfile): Likewise.
5857         * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
5858         (lookup_symbol_aux_local): Likewise.
5859         (lookup_symbol_aux_block): Likewise.
5860         (lookup_symbol_aux_symtabs): Likewise.
5861         (lookup_symbol_aux_psymtabs): Likewise.
5862         (lookup_global_symbol_from_objfile): Likewise.
5863         (basic_lookup_symbol_nonlocal): Likewise.
5864         (lookup_symbol_static): Likewise.
5865         (lookup_symbol_global): Likewise.
5866
5867         (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
5868
5869 2008-05-17  Pedro Alves  <pedro@codesourcery.com>
5870
5871         * remote.c (init_extended_remote_ops): Fix typo.
5872
5873 2008-05-16  Pedro Alves  <pedro@codesourcery.com>
5874
5875         * NEWS: Mention new DICOS x86 target configuration.
5876
5877 2008-05-16  Pedro Alves  <pedro@codesourcery.com>
5878             Ulrich Weigand  <uweigand@de.ibm.com>
5879
5880         * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
5881         * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
5882
5883         * symtab.c (fixup_section): Remove prototype.  Add ADDR parameter;
5884         use it instead of ginfo->value.address.  Look up minimal symbol by
5885         address and name.  Assume OBJFILE is non-NULL.
5886         (fixup_symbol_section): Ensure we always have an objfile to look
5887         into.  Extract and pass to fixup_section the symbol's address that
5888         will match the minimal symbol's address.
5889         (fixup_psymbol_section): Likewise.
5890
5891         (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
5892         overlays and the addrmap returned the wrong section.
5893
5894         * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
5895         calling fixup_symbol_section.
5896
5897 2008-05-16  Ulrich Weigand  <uweigand@de.ibm.com>
5898
5899         * minsyms.c: Include "target.h".
5900         (find_solib_trampoline_target): Handle minimal symbols pointing
5901         to function descriptors as well.
5902         * Makefile.in (minsyms.o): Update dependencies.
5903
5904         * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
5905         (ppc64_standard_linkage1): ... this.  Fix optional instructions.
5906         (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
5907         (PPC64_STANDARD_LINKAGE1_LEN): ... this.
5908         (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
5909         (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
5910         (ppc64_standard_linkage_target): Rename to ...
5911         (ppc64_standard_linkage1_target): ... this.
5912         (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
5913         (ppc64_skip_trampoline_code): Support three variants of standard
5914         linkage stubs.  Call find_solib_trampoline_target to handle
5915         glink stubs.
5916
5917 2008-05-16  Ulrich Weigand  <uweigand@de.ibm.com>
5918
5919         * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
5920         ppc64_sysv_abi_adjust_breakpoint_address.
5921         * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
5922         * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
5923
5924 2008-05-16  Ulrich Weigand  <uweigand@de.ibm.com>
5925
5926         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
5927         (ppc_linux_init_abi): Install find_solib_trampoline_target instead
5928         of ppc_linux_skip_trampoline_code.
5929
5930 2008-05-15  Daniel Jacobowitz  <dan@codesourcery.com>
5931
5932         * gdbarch.sh: Delete dwarf_reg_to_regnum.
5933         * gdbarch.c, gdbarch.h: Regenerated.
5934         * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
5935         hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
5936         s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
5937
5938 2008-05-15  Pedro Alves  <pedro@codesourcery.com>
5939
5940         * linux-nat.c (trap_ptid): Delete.
5941         (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
5942         Adjust.
5943         * linux-thread-db.c (thread_db_wait): Adjust.
5944
5945 2008-05-15  Joel Brobecker  <brobecker@adacore.com>
5946
5947         * linespec.c (decode_line_1): Fix a couple of comments.
5948
5949 2008-05-15  Alan Modra  <amodra@bigpond.net.au>
5950
5951         * dbxread.c: Formatting.
5952         (INTERNALIZE_SYMBOL): Init n_other.
5953         (set_namestring): Take pointer to nlist arg rather than struct
5954         copy.  Update all callers.
5955
5956 2008-05-15  Andreas Schwab  <schwab@suse.de>
5957
5958         * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
5959         (dwarf2read.o): Add $(addrmap_h).
5960
5961 2008-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
5962
5963         * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
5964         (ppc64_linux_convert_from_func_ptr_addr): ... to this.  No longer try
5965         to handle ppc32 PLT entries.
5966         (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
5967         only on ppc64.
5968
5969 2008-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
5970
5971         * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
5972         * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
5973         lookup_minimal_symbol_by_pc_section.  Prefer trampolines if requested.
5974         (lookup_minimal_symbol_by_pc_section): Use
5975         lookup_minimal_symbol_by_pc_section_1.
5976         (lookup_solib_trampoline_symbol_by_pc): Likewise.
5977
5978 2008-05-13  Joel Brobecker  <brobecker@adacore.com>
5979
5980         * findcmd.c: Add #include "gdb_stdint.h".
5981         * Makefile.in (findcmd.o): Update dependencies.
5982
5983 2008-05-11  David S. Miller  <davem@davemloft.net>
5984
5985         * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
5986         long double size override, Linux does use 128-bit now.
5987
5988         * sparc-linux-tdep.c (PSR_SYSCALL): Define.
5989         (sparc_linux_write_pc): New function.
5990         (sparc32_linux_init_abi): Register it.
5991         * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
5992         (sparc64_linux_write_pc): New function.
5993         (sparc64_linux_init_abi): Register it.
5994
5995         * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
5996         dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
5997
5998 2008-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
5999
6000         * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
6001         and info.tdep_info before calling gdbarch_init_osabi.
6002
6003 2008-05-09  Joel Brobecker  <brobecker@adacore.com>
6004
6005         * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
6006         the type of the right hand side of the assignment to the type
6007         of the left hand side if the left hand side is a convenience
6008         variable.
6009
6010 2008-05-09  Ulrich Weigand  <uweigand@de.ibm.com>
6011
6012         * NEWS: Mention gdbserver bi-arch capability.
6013
6014 2008-05-09  Doug Evans  <dje@google.com>
6015
6016         New "find" command.
6017         * NEWS: Document find command and qSearch:memory packet.
6018         * Makefile.in (SFILES): Add findcmd.c.
6019         (COMMON_OBJS): Add findcmd.o.
6020         (findcmd.o): New rule.
6021         * findcmd.c: New file.
6022         * target.h (target_ops): New member to_search_memory.
6023         (simple_search_memory): Declare.
6024         (target_search_memory): Declare.
6025         * target.c (simple_search_memory): New fn.
6026         (target_search_memory): New fn.
6027         * remote.c (PACKET_qSearch_memory): New packet kind.
6028         (remote_search_memory): New fn.
6029         (init_remote_ops): Init to_search_memory.
6030         (init_extended_remote_ops): Ditto.
6031         (_initialize_remote): Add qSearch:memory packet config command.
6032
6033 2008-05-09  Eli Zaretskii  <eliz@gnu.org>
6034
6035         * thread.c (_initialize_thread): Don't use commas and periods in
6036         first line of doc string of "set/show print thread-events".
6037
6038 2008-05-08  Joel Brobecker  <brobecker@adacore.com>
6039
6040         * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
6041         Update for unwinder changes.
6042
6043 2008-05-08  Joel Brobecker  <brobecker@adacore.com>
6044
6045         * frame.c (get_frame_base_address, get_frame_locals_address)
6046         (get_frame_args_address): Pass the correct frame when calling
6047         frame_base_find_by_frame.
6048
6049 2008-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
6050
6051         * remote.c (extended_remote_attach_1): Call target_find_description.
6052
6053 2008-05-08  Daniel Jacobowitz  <dan@codesourcery.com>
6054
6055         * remote.c (extended_remote_create_inferior_1): Clean up
6056         before marking the target running.
6057
6058 2008-05-08  Joel Brobecker  <brobecker@adacore.com>
6059
6060         * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
6061         changes.
6062
6063 2008-05-07  Joel Brobecker  <brobecker@adacore.com>
6064
6065         * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
6066         sparc64-sol2-tdep.c: Update for unwinder changes.
6067
6068 2008-05-07  Daniel Jacobowitz  <dan@codesourcery.com>
6069
6070         * cp-support.c (mangled_name_to_comp): Initialize storage.
6071         (unqualified_name_from_comp): Likewise.
6072
6073 2008-05-07  Jie Zhang  <jie.zhang@analog.com>
6074
6075         * remote.c (remote_insert_breakpoint): Call get_remote_state
6076         after gdbarch_breakpoint_from_pc is called.
6077         (remote_insert_hw_breakpoint): Likewise.
6078
6079 2008-05-06  Joel Brobecker  <brobecker@adacore.com>
6080
6081         * valprint.c (val_print): Add new language parameter and use it
6082         instead of using the current_language. Update calls to val_print
6083         throughout.
6084         (common_val_print): Add new langauge parameter and pass it to
6085         val_print.
6086         * value.h (struct language_defn): Add opaque declaration.
6087         (val_print, common_val_print): Update declarations.
6088         * stack.c (print_frame_args): Update call to common_val_print
6089         using the appropriate language.
6090         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6091         * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
6092         mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
6093         scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
6094         #include "language.h" if necessary.
6095         Update calls to val_print and common_val_print.
6096         * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
6097         Update dependencies.
6098
6099 2008-05-06  Joel Brobecker  <brobecker@adacore.com>
6100
6101         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
6102         pointing inside a non-executable section as function descriptors.
6103
6104 2008-05-06  Pedro Alves  <pedro@codesourcery.com>
6105
6106         * inf-loop.c (inferior_event_handler): Run all continuations and
6107         print any language change before running the breakpoint commands.
6108
6109 2008-05-06  Joel Brobecker  <brobecker@adacore.com>
6110
6111         * frame-unwind.c (frame_unwind_got_bytes): New function.
6112         * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
6113         * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
6114         for unwinder changes.
6115
6116 2008-05-05  Doug Evans  <dje@google.com>
6117
6118         * NEWS: Mention new /m modifier for disassemble command.
6119         * cli/cli-cmds.c (print_disassembly): New function.
6120         (disassemble_current_function): New function
6121         (disassemble_command): Recognize /m modifier, print mixed
6122         source+assembly.
6123         (init_cli_cmds): Update disassemble help text.
6124
6125 2008-05-05  Maxim Grigoriev  <maxim2405@gmail.com>
6126
6127         * xtensa-tdep.c: Update for unwinder changes.
6128
6129 2008-05-05  Andreas Schwab  <schwab@suse.de>
6130
6131         Update m68k port for unwinder changes.
6132         * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
6133         (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
6134         (m68k_frame_unwind): Use default_frame_sniffer.
6135         (m68k_frame_sniffer): Remove.
6136         (m68k_frame_base_address): Expect this_frame.
6137         (m68k_dummy_id): Renamed from m68k_unwind_dummy_id.  Expect
6138         this_frame.
6139         (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
6140         dwarf2_append_unwinders, and frame_unwind_append_unwinder.
6141         * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
6142         parameter instead of pc value.
6143         (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
6144         Expect this_frame.
6145         (m68k_linux_sigtramp_frame_this_id)
6146         (m68k_linux_sigtramp_frame_prev_register)
6147         (m68k_linux_sigtramp_frame_sniffer): Update signature.
6148         (m68k_linux_sigtramp_frame_unwind): Use
6149         m68k_linux_sigtramp_frame_sniffer.
6150         (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
6151
6152         * m68klinux-nat.c (store_register): Fix typo.
6153
6154 2008-05-05  Pedro Alves  <pedro@codesourcery.com>
6155
6156         * infcmd.c (step_1): Put thread id on the stack to avoid possible
6157         NULL dereferencing.
6158
6159 2008-05-05  Luis Machado  <luisgpm@br.ibm.com>
6160
6161         * symfile.c (reread_symbols): Update objfile's entry point.
6162
6163 2008-05-05  Aleksandar Ristovski  <aristovski@qnx.com>
6164             Joel Brobecker  <brobecker@adacore.com>
6165
6166         * ada-lang.c: Update throughout to use symbol_matches_domain
6167         instead of matching the symbol domain explictly.
6168         * dwarf2read.c (add_partial_symbol): Do not add new psym for
6169         STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
6170         class as typedefs. See lookup_partial_symbol function.
6171         (new_symbol): Similar to add_partial_symbol, do not create
6172         symbol for the typedef. See lookup_block_symbol.
6173         * symtab.c (symbol_matches_domain): New function, takes care
6174         of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
6175         (lookup_partial_symbol): Use symbol_matches_domain to see if the
6176         found psym domain matches the given domain.
6177         (lookup_block_symbol): Likewise.
6178
6179 2008-05-05  Vladimir Prus  <vladimir@codesourcery.com>
6180
6181         * top.c (command_line_handler_continuation): Remove.
6182         (execute_command): Do not install the above.
6183
6184 2008-05-05  Vladimir Prus  <vladimir@codesourcery.com>
6185
6186         * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
6187         and catch all exceptions from it.
6188         * top.c (command_line_handler_continuation): Don't
6189         call bpstat_do_action here.
6190
6191 2008-05-04  Daniel Jacobowitz  <dan@codesourcery.com>
6192
6193         * dwarf2read.c (struct dwarf2_cu): Add type_hash.
6194         (struct die_info): Remove type.
6195         (read_type_die, read_typedef, read_base_type, read_subrange_type)
6196         (read_structure_type, read_enumeration_type, read_array_type)
6197         (read_tag_pointer_type, read_tag_ptr_to_member_type)
6198         (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
6199         (read_tag_string_type, read_subroutine_type, read_set_type)
6200         (read_unspecified_type): Delete prototypes.  Remove check for
6201         already-loaded type.  Return the new type.
6202         (set_die_type): Return the new type.
6203         (reset_die_and_siblings_types): Delete.
6204         (load_comp_unit, load_full_comp_unit): Set type_hash.
6205         (process_queue): Remove call to reset_die_and_siblings_types.
6206         (process_die): Do not read most types here.  Use read_type_die
6207         for others.
6208         (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
6209         (quirk_gcc_member_function_pointer): Return the new type.
6210         (process_structure_scope, process_enumeration_scope): Use
6211         get_die_type and read the DIE's type.
6212         (read_full_die): Do not initialize die->type.
6213         (tag_type_to_type): Use read_type_die.
6214         (read_type_die): Check for already defined types.  Return the
6215         type.
6216         (determine_prefix): Use get_die_type.
6217         (set_die_type): Return the type.
6218         (get_die_type): Take a CU argument.  Check for no type_hash.
6219
6220 2008-05-04  Daniel Jacobowitz  <dan@codesourcery.com>
6221
6222         * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
6223         locals.
6224
6225 2008-05-04  Pedro Alves  <pedro@codesourcery.com>
6226
6227         * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
6228         and bp_longjmp_resume breakpoints.
6229         (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
6230         meaningful.
6231         (create_longjmp_breakpoint): Don't create bp_longjmp_resume
6232         breakpoints.  Create bp_longjmp breakpoints as momentary
6233         breakpoints.
6234         (enable_longjmp_breakpoint): Delete.
6235         (set_longjmp_breakpoint): New.
6236         (disable_longjmp_breakpoint): Delete.
6237         (delete_longjmp_breakpoint): New.
6238         (set_longjmp_resume_breakpoint): Delete.
6239         (set_momentary_breakpoint_at_pc): New.
6240         (breakpoint_re_set_one): Don't delete bp_longjmp and
6241         bp_longjmp_resume breakpoints.
6242         (breakpoint_re_set): Don't create longjmp and longjmp-resume
6243         breakpoints.
6244
6245         * infrun.c (step_resume_breakpoint): Add comment.
6246         (struct execution_control_state): Delete handling_longjmp member.
6247         (init_execution_control_state). Don't clear handling_longjmp.
6248         (context_switch): Don't context switch handling_longjmp.
6249         (handle_inferior_event): If handling a bp_longjmp breakpoint,
6250         create a bp_longjmp_resume breakpoint, and set it as current
6251         step_resume_breakpoint, then step over the longjmp breakpoint.  If
6252         handling a bp_longjmp_resume breakpoint, don't delete the longjmp
6253         breakpoint, delete the longjmp-resume breakpoint, and stop
6254         stepping.
6255         (currently_stepping): Remove handling_longjmp from expression.
6256         (insert_step_resume_breakpoint_at_sal): Update comment.
6257         (insert_longjmp_resume_breakpoint): New.
6258
6259         * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
6260         (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
6261         declarations.
6262         (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
6263         (set_longjmp_resume_breakpoint): Delete declaration.
6264
6265         * gdbthread.h (save_infrun_state): Remove handling_longjmp
6266         parameter.
6267         (load_infrun_state): Delete *handling_longjmp parameter.
6268         * thread.c (save_infrun_state): Remove handling_longjmp parameter.
6269         Update body.
6270         (load_infrun_state): Delete *handling_longjmp parameter.  Update
6271         body.
6272
6273         * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
6274         (delete_longjmp_breakpoint_cleanup): New.
6275         (step_1): Call set_longjmp_breakpoint instead of
6276         enable_longjmp_breakpoint.  Use delete_longjmp_breakpoint_cleanup
6277         instead of disable_longjmp_breakpoint_cleanup when making cleanup.
6278         (step_1_continuation): Pass thread id in the continuation args to
6279         step_once.
6280         (step_once): Add thread parameter.  Pass thread id the the
6281         continuation.
6282
6283 2008-05-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
6284
6285         Set CU BASE_ADDRESS already from partial DIEs.
6286         * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
6287         BASE_ADDRESS_TYPE.  Set these variables from DW_AT_LOW_PC and
6288         DW_AT_ENTRY_PC.  Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
6289         from these variables if it was still unset.
6290
6291         * Makefile.in: Update dependencies.
6292         * dwarf2read.c: Include "addrmap.h"
6293         (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
6294         (dwarf2_ranges_read): New prototype.
6295         (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
6296         Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
6297         HAS_RANGES_OFFSET, otherwise add there the contiguous range.
6298         (dwarf2_ranges_read): New parameter RANGES_PST, update the function
6299         comment for it.  Add the found ranges to RANGES_PST.  New variable
6300         BASEADDR, initialize it the common way.
6301         (dwarf2_get_pc_bounds): Update the caller for the new parameter.
6302         (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
6303         HAS_RANGES_OFFSET for the later processing.
6304         * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
6305         * symtab.c: Include "addrmap.h"
6306         (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
6307         Move the psymtab locator into ...
6308         (find_pc_sect_psymtab_closer): ... a new function.
6309
6310 2008-05-04  Ulrich Weigand  <uweigand@de.ibm.com>
6311
6312         * arch-utils.c (gdbarch_update_p): Use default values for
6313         info.abfd and info.target_desc if they are NULL.
6314         (gdbarch_from_bfd): Remove assertion.
6315         (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
6316         using the current target description.
6317         (gdbarch_info_fill): Do not use default values for info->abfd
6318         and info->target_desc.
6319
6320 2008-05-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
6321
6322         * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
6323
6324 2008-05-04  Ulrich Weigand  <uweigand@de.ibm.com>
6325
6326         * inferior.h (read_pc_pid, write_pc_pid): Remove.
6327         * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
6328
6329         * regcache.c (read_pc_pid): Remove, replace by ...
6330         (regcache_read_pc): ... this function.
6331         (write_pc_pid): Remove, replace by ...
6332         (regcache_write_pc): ... this function.
6333         (read_pc, write_pc): Update.
6334
6335         * infrun.c (displaced_step_prepare): Replace read_pc_pid and
6336         write_pc_pid by regcache_read_pc and regcache_write_pc.
6337         (displaced_step_fixup): Likewise.
6338         (resume): Likewise.  Use regcache arch instead of current_gdbarch.
6339         (prepare_to_proceed): Likewise.
6340         (proceed): Likewise.
6341         (adjust_pc_after_break): Likewise.
6342         (handle_inferior_event): Likewise.
6343
6344         * linux-nat.c (cancel_breakpoint): Likewise.
6345         * linux-thread-db.c (check_event): Likewise.
6346         * aix-thread.c (aix_thread_wait): Likewise.
6347         * tracepoint.c (trace_dump_command): Likewise.
6348
6349 2008-05-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
6350
6351         * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
6352         SYMBOL_LOCATION_BATON.
6353
6354 2008-05-04  Vladimir Prus  <vladimir@codesourcery.com>
6355
6356         * target.h (struct target_ops): New field to_auxv_parse.
6357         * auxv.c (default_auxv_parse): New, renamed from previous
6358         target_auxv_parse.
6359         (target_auxv_parse): Try to call target method.  Fallback to
6360         default_auxv_parse if not found.
6361         * procfs.c (procfs_auxv_parse): New.
6362         (init_procfs_ops): On Solaris, in 64-bit mode, install
6363         procfs_auxv_parse.
6364
6365 2008-05-03  Adam Nemet  <anemet@caviumnetworks.com>
6366
6367         * symfile.c (add_symbol_file_command):  Use paddress rather than
6368         hex_string to print the address.
6369
6370 2008-05-03  Ulrich Weigand  <uweigand@de.ibm.com>
6371
6372         * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
6373         return the null frame ID to terminate the backtrace.
6374
6375 2008-05-03  Ulrich Weigand  <uweigand@de.ibm.com>
6376
6377         * rs6000-tdep.c: Do not include "rs6000-tdep.h".
6378         (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
6379         (SIG_FRAME_PC_OFFSET): Likewise.
6380         (SIG_FRAME_LR_OFFSET): Likewise.
6381         (SIG_FRAME_FP_OFFSET): Likewise.
6382         (rs6000_push_dummy_call): Likewise.
6383         (rs6000_return_value): Likewise.
6384         (rs6000_convert_from_func_ptr_addr): Likewise.
6385         (branch_dest, rs6000_software_single_step): Likewise.
6386         (deal_with_atomic_sequence): Rename to ...
6387         (ppc_deal_with_atomic_sequence): ... this.  Adapt all callers.
6388         Do not call branch_dest; inline required parts of that function.
6389         (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
6390         with SYMBOL_LINKAGE_NAME.
6391         (struct reg, regsize): Delete.
6392         (read_memory_addr): Delete; inline into callers.
6393         (rs6000_skip_prologue): Move after skip_prologue.
6394         (skip_prologue): Remove prototype.
6395         (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
6396         initialization as if this variable were true.  Do not install
6397         ppc64_sysv_abi_adjust_breakpoint_address.
6398
6399         * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
6400         "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
6401         and "breakpoint.h".
6402         (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
6403         (SIG_FRAME_PC_OFFSET): Likewise.
6404         (SIG_FRAME_LR_OFFSET): Likewise.
6405         (SIG_FRAME_FP_OFFSET): Likewise.
6406         (rs6000_push_dummy_call): Likewise.
6407         (rs6000_return_value): Likewise.
6408         (rs6000_convert_from_func_ptr_addr): Likewise.
6409         (branch_dest, rs6000_software_single_step): Likewise.  Replace
6410         tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
6411         (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
6412         rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
6413         Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
6414         Set tdep->lr_frame_offset.  Do not set tdep->text_segment_base.
6415
6416         * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
6417         (AIX_TEXT_SEGMENT_BASE): New macro.
6418         * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
6419         by AIX_TEXT_SEGMENT_BASE.
6420
6421         * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
6422         (struct gdbarch_tdep): Remove text_segment_base member.
6423         * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
6424         ppc64_sysv_abi_adjust_breakpoint_address.
6425
6426         * Makefile.in (rs6000-tdep.o): Update dependencies.
6427         (rs6000-aix-tdep.o): Likewise.
6428
6429 2008-05-03  Luis Machado  <luisgpm@br.ibm.com>
6430             Thiago Jung Bauermann  <bauerman@br.ibm.com>
6431
6432         * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
6433         * doublest.c (convert_typed_floating): Fix typo in comment.
6434         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
6435         * frame-unwind.h (frame_sniffer_ftype): Likewise.
6436         * frame.c (frame_unwind_address_in_block): Likewise.
6437         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
6438         * symtab.h (struct symbol): Likewise.
6439         * tramp-frame.h (struct trad_frame_cache): Likewise.
6440         * value.c (allocate_repeat_value): Likewise.
6441
6442 2008-05-03  Ulrich Weigand  <uweigand@de.ibm.com>
6443
6444         * infrun.c (handle_inferior_event): Do not insert breakpoints at
6445         TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
6446
6447 2008-05-03  Pedro Alves  <pedro@codesourcery.com>
6448
6449         * parse.c (parse_exp_in_context): Don't override
6450         expression_context_pc if get_selected_block returned a valid
6451         block.
6452
6453 2008-05-03  Daniel Jacobowitz  <dan@codesourcery.com>
6454
6455         * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
6456         * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
6457         * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
6458         Delete.
6459         * c-typeprint.c (c_type_print_base): Delete handling of template
6460         instantiations.
6461         * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
6462         (METHOD_PTR_TO_VOFFSET): Delete.
6463         * defs.h (QUIT_FIXME): Delete.
6464         * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
6465         (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
6466         * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
6467         ninstantiations, and instantiations.
6468         (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
6469         (TYPE_FN_FIELD_INLINED): Delete.
6470         * srec.h (SREC_BINARY): Delete.
6471         * symtab.c (symbol_init_demangled_name): Delete.
6472         * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
6473         (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
6474         (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
6475         (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
6476         (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
6477         (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
6478         * target.h (enum thread_control_capabilities): Delete tc_switch.
6479         (target_can_switch_threads): Delete.
6480
6481 2008-05-03  Daniel Jacobowitz  <dan@codesourcery.com>
6482
6483         * Makefile.in (objfiles.o): Update.
6484         * exec.c (exec_set_section_address): Support p->addr != 0.
6485         * objfiles.c (objfile_relocate): Update exec_ops section
6486         addresses.
6487         * symfile.c (place_section): Move exec_set_section_address call...
6488         (default_symfile_offsets): ...to here.
6489
6490 2008-05-03  Ulrich Weigand  <uweigand@de.ibm.com>
6491
6492         * Makefile.in (ppc_linux_tdep_h): New macro.
6493         (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
6494         (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
6495         (powerpc_e500l_c): Likewise.
6496         (ppc-linux-nat.o): Update dependencies.
6497         (ppc-linux-tdep.o): Update dependencies.
6498         (rs6000-tdep.o): Update dependencies.
6499
6500         * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
6501         (ppc_linux_svr4_fetch_link_map_offsets): Remove.
6502         (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
6503         (ppc_supply_reg, ppc_collect_reg): Add prototypes.
6504         (tdesc_powerpc_e500): Remove.
6505
6506         * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
6507         and "features/rs6000/powerpc-altivec64.c".
6508         (ppc_supply_reg, ppc_collect_reg): Make global.
6509         (variants): Use tdesc_powerpc_32 for "powerpc" and
6510         tdesc_powerpc_altivec64 for "powerpc64".
6511         (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
6512
6513         * ppc-linux-tdep.h: New file.
6514
6515         * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
6516         Include "features/rs6000/powerpc-32l.c".
6517         Include "features/rs6000/powerpc-altivec32l.c".
6518         Include "features/rs6000/powerpc-64l.c".
6519         Include "features/rs6000/powerpc-altivec64l.c".
6520         Include "features/rs6000/powerpc-e500l.c".
6521         (ppc_linux_supply_gregset): New function.
6522         (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
6523         (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
6524         (ppc64_linux_gregset): Likewise.
6525         (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
6526         (ppc_linux_trap_reg_p): New function.
6527         (ppc_linux_write_pc): New function.
6528         (ppc_linux_core_read_description): New function.
6529         (ppc_linux_init_abi): Install ppc_linux_write_pc and
6530         ppc_linux_core_read_description.  Install orig_r3 and trap
6531         registers if present in the target description.
6532         (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
6533
6534         * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
6535         (PT_ORIG_R3, PT_TRAP): Define if necessary.
6536         (ppc_register_u_addr): Handle orig_r3 and trap registers.
6537         (fetch_ppc_registers): Likewise.
6538         (store_ppc_registers): Likewise.
6539         (store_register): Likewise.
6540         (ppc_linux_read_description): Check whether AltiVec is supported.
6541         Check whether inferior is 32-bit or 64-bit.  Return the appropriate
6542         Linux target description.
6543
6544         * features/Makefile (WHICH): Use rs6000/powerpc-32l and
6545         rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
6546         Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
6547         of rs6000/powerpc-64.  Use rs6000/powerpc-e500l instead of
6548         rs6000/powerpc-e500.  Update -expedite variables accordingly.
6549
6550         * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
6551         * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
6552         * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
6553         * features/rs6000/powerpc-e500.c: Regenerate.
6554         * features/rs6000/powerpc-32.c: Regenerate.
6555         * features/rs6000/powerpc-64.c: Regenerate.
6556
6557         * features/rs6000/power-linux.xml: New file.
6558         * features/rs6000/power64-linux.xml: New file.
6559         * features/rs6000/powerpc-32l.xml: New file.
6560         * features/rs6000/powerpc-altivec32l.xml: New file.
6561         * features/rs6000/powerpc-64l.xml: New file.
6562         * features/rs6000/powerpc-altivec64l.xml: New file.
6563         * features/rs6000/powerpc-e500l.xml: New file.
6564         * features/rs6000/powerpc-32l.c: New (generated) file.
6565         * features/rs6000/powerpc-altivec32l.c: New (generated) file.
6566         * features/rs6000/powerpc-64l.c: New (generated) file.
6567         * features/rs6000/powerpc-altivec64l.c: New (generated) file.
6568         * features/rs6000/powerpc-e500l.xml: New (generated) file.
6569
6570         * regformats/reg-ppc.dat: Remove.
6571         * regformats/reg-ppc64.dat: Remove.
6572         * regformats/rs6000/powerpc-32.dat: Remove.
6573         * regformats/rs6000/powerpc-64.dat: Remove.
6574         * regformats/rs6000/powerpc-e500.dat: Remove.
6575         * regformats/rs6000/powerpc-32l.dat: New (generated) file.
6576         * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
6577         * regformats/rs6000/powerpc-64l.dat: New (generated) file.
6578         * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
6579         * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
6580
6581 2008-05-03  Pedro Alves  <pedro@codesourcery.com>
6582
6583         * thread.c (delete_thread): Call observer_notify_thread_exit.
6584         * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
6585         thread_exit observer.
6586         (mi_thread_exit): New.
6587
6588 2008-05-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6589
6590         * breakpoint.c (create_exception_catchpoint): Remove prototype
6591         for already deleted function.
6592         * breakpoint.h (ep_is_exception_catchpoint): Likewise.
6593         * frame.h (show_stack_frame): Remove prototype.
6594         * stack.c (show_stack_frame): Remove empty, unused function.
6595         * source.c (symtab_to_fullname, print_source_lines): Small fix
6596         in comment.
6597         * value.c (show_values): Update comments to mention "show values"
6598         command instead of "info history".
6599
6600 2008-05-02  Ulrich Weigand  <uweigand@de.ibm.com>
6601
6602         * linespec.c: Include "target.h".
6603         (minsym_found): Handle minimal symbols pointing to function
6604         descriptors.  Use find_function_start_pc.
6605         * minsyms.c (msymbol_objfile): New function.
6606         * parse.c (write_exp_msymbol): Handle minimal symbols pointing
6607         to function descriptors.
6608         * symtab.c (fixup_section): Only use minimal symbol at the same
6609         address to determine section of a symbol.
6610         (find_function_start_pc): New function.
6611         (find_function_start_sal): Use it.
6612         * symtab.h (msymbol_objfile): Add prototype.
6613         (find_function_start_pc): Likewise.
6614         * value.c: Include "objfiles.h".
6615         (value_fn_field): Handle minimal symbols pointing to function
6616         descriptors.
6617         * Makefile.in (linespec.o): Update dependencies.
6618         (value.o): Likewise.
6619
6620 2008-05-02  Joel Brobecker  <brobecker@adacore.com>
6621
6622         * ada-lang.c (unwrap_value): Handle the case where the "F" field
6623         inside a PAD type is a bitfield.
6624
6625 2008-05-02  Ulrich Weigand  <uweigand@de.ibm.com>
6626
6627         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
6628         TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
6629         Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
6630         Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
6631         Allow typedefs when checking for function pointer arguments.
6632         Right-align small structs passed on the stack.
6633         (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
6634         TYPE_CODE_CHAR the same as TYPE_CODE_INT.
6635         Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
6636
6637 2008-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
6638
6639         * Makefile.in (arm-tdep.o): Update.
6640         * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
6641         (struct arm_per_objfile, arm_compare_mapping_symbols): New.
6642         (arm_pc_is_thumb): Use mapping symbols.
6643         (arm_objfile_data_cleanup, arm_record_special_symbol): New.
6644         (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
6645         (_initialize_arm_tdep): Initialize arm_objfile_data_key.
6646         * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
6647         * gdbarch.sh: Add record_special_symbol.
6648         * gdbarch.c, gdbarch.h: Regenerated.
6649         * objfiles.c (struct objfile_data): Add cleanup member.
6650         (register_objfile_data_with_cleanup): New function, from
6651         register_objfile_data.
6652         (register_objfile_data): Use it.
6653         (objfile_free_data): Call clear_objfile_data.
6654         (clear_objfile_data): Call cleanup functions.
6655         * objfiles.h (register_objfile_data_with_cleanup): Declare.
6656
6657 2008-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
6658
6659         * objfiles.c (init_entry_point_info): Handle shared libraries.
6660
6661 2008-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
6662
6663         * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
6664         lowest_pc.
6665
6666 2008-05-02  Jim Blandy  <jimb@codesourcery.com>
6667             Pedro Alves  <pedro@codesourcery.com>
6668
6669         Implement displaced stepping.
6670
6671         * gdbarch.sh (max_insn_length): New 'variable'.
6672         (displaced_step_copy, displaced_step_fixup)
6673         (displaced_step_free_closure, displaced_step_location): New
6674         functions.
6675         (struct displaced_step_closure): Add forward declaration.
6676         * gdbarch.c, gdbarch.h: Regenerated.
6677
6678         * arch-utils.c: #include "objfiles.h".
6679         (simple_displaced_step_copy_insn)
6680         (simple_displaced_step_free_closure)
6681         (displaced_step_at_entry_point): New functions.
6682         * arch-utils.h (simple_displaced_step_copy_insn)
6683         (simple_displaced_step_free_closure)
6684         (displaced_step_at_entry_point): New prototypes.
6685
6686         * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
6687         (I386_MAX_MATCHED_INSN_LEN): ... this.
6688         (i386_absolute_jmp_p, i386_absolute_call_p)
6689         (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
6690         (i386_displaced_step_fixup): New functions.
6691         (struct i386_insn, i386_match_insn): Update.
6692         (i386_gdbarch_init): Set gdbarch_max_insn_length.
6693         * i386-tdep.h (I386_MAX_INSN_LEN): New.
6694         (i386_displaced_step_fixup): New prototype.
6695         * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
6696         Register gdbarch_displaced_step_copy,
6697         gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
6698         and gdbarch_displaced_step_location functions.
6699
6700         * infrun.c (debug_displaced): New variable.
6701         (show_debug_displaced): New function.
6702         (struct displaced_step_request): New struct.
6703         (displaced_step_request_queue, displaced_step_ptid)
6704         (displaced_step_gdbarch, displaced_step_closure)
6705         (displaced_step_original, displaced_step_copy)
6706         (displaced_step_saved_copy, can_use_displaced_stepping): New
6707         variables.
6708         (show_can_use_displaced_stepping, use_displaced_stepping)
6709         (displaced_step_clear, cleanup_displaced_step_closure)
6710         (displaced_step_dump_bytes, displaced_step_prepare)
6711         (displaced_step_clear_cleanup, write_memory_ptid)
6712         (displaced_step_fixup): New functions.
6713         (resume): Call displaced_step_prepare.
6714         (proceed): Call read_pc once, and remember the value.  If using
6715         displaced stepping, don't remove breakpoints.
6716         (handle_inferior_event): Call displaced_step_fixup.  Add some
6717         debugging output.  When we try to step over a breakpoint, but get
6718         a signal to deliver to the thread instead, ensure the step-resume
6719         breakpoint is actually inserted.  If a thread hop is needed, and
6720         displaced stepping is enabled, don't remove breakpoints.
6721         (init_wait_for_inferior): Call displaced_step_clear.
6722         (_initialize_infrun): Add "set debug displaced" command.  Add
6723         "maint set can-use-displaced-stepping" command.  Clear
6724         displaced_step_ptid.
6725         * inferior.h (debug_displaced): Declare variable.
6726         (displaced_step_dump_bytes): Declare function.
6727
6728         * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
6729         dependencies.
6730
6731 2008-05-02  Daniel Jacobowitz  <dan@codesourcery.com>
6732
6733         * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
6734         (arm_force_mode_string, arm_show_fallback_mode)
6735         (arm_show_force_mode): New.
6736         (arm_pc_is_thumb): Honor fallback-mode and force-mode.  Use
6737         arm_frame_is_thumb.
6738         (_initialize_arm_tdep): Add "set arm fallback-mode"
6739         and "set arm force-mode".
6740         * NEWS: Document new commands.
6741
6742 2008-05-02  Andrew Stubbs  <andrew.stubbs@st.com>
6743
6744         * main.h (batch_silent): Declare.
6745         * event-top.c: Include main.h.
6746         (gdb_setup_readline): Remove extern batch_silent declaration.
6747         * infrun.c (normal_stop): Don't print source location when running in
6748         --batch-silent mode.
6749         * Makefile.in (event-top.o): Add main.h dependency.
6750
6751 2008-05-02  Andreas Schwab  <schwab@suse.de>
6752
6753         * target.h (struct target_ops): Add
6754         to_watchpoint_addr_within_range.
6755         (target_watchpoint_addr_within_range): New function.
6756         * target.c (update_current_target): Inherit
6757         to_watchpoint_addr_within_range, defaulting to
6758         default_watchpoint_addr_within_range.
6759         (default_watchpoint_addr_within_range): New function.
6760         (debug_to_watchpoint_addr_within_range): New function.
6761         (setup_target_debug): Set to_watchpoint_addr_within_range.
6762         * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
6763         New function.
6764         (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
6765         * breakpoint.c (watchpoints_triggered): Use
6766         target_watchpoint_addr_within_range.
6767
6768 2008-05-01  Pedro Alves  <pedro@codesourcery.com>
6769
6770         * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
6771         (i[34567]86-*-dicos*, x86_64-*-dicos*):
6772         Set gdb_osabi to GDB_OSABI_DICOS.
6773
6774         * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
6775         * osabi.c (gdb_osabi_name): Add "DICOS".
6776
6777         * i386-dicos-tdep.c: New file.
6778
6779         * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
6780         (ALLDEPFILES): Add i386-dicos-tdep.c.
6781         (i386-dicos-tdep.o): New rule.
6782
6783 2008-05-01  Pedro Alves  <pedro@codesourcery.com>
6784
6785         * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
6786         and register the fork's PTID as a thread.
6787
6788 2008-05-01  Aleksandar Ristovski  <aristovski@qnx.com>
6789
6790         PR gdb/1665
6791         * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
6792         assign its value to the breakpoint created.
6793         (create_breakpoints): Add breakpoint_ops argument and pass it
6794         to create_breakpoint call.
6795         (break_command_really): Add breakpoint_ops argument and pass/assign
6796         appropriately.
6797         (break_command_1): Pass NULL as ops argument.
6798         (set_breakpoint): Pass NULL as ops argument.
6799         (print_one_exception_catchpoint): Print <PENDING> if no loc available.
6800         (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
6801         catch and throw catchpoints.
6802
6803 2008-05-01  Aleksandar Ristovski  <aristovski@qnx.com>
6804
6805         PR gdb/2343
6806         * corelow.c (core_open): Use gdbarch_target_signal_from_host to
6807         translate signal numeric value from the target to GDB's enum
6808         target_signal.
6809         * gdbarch.c, gdbarch.h: Regenerated.
6810         * gdbarch.sh: Added two new functions target_signal_from_host and
6811         target_signal_to_host.
6812         * target.h (default_target_signal_from_host,
6813         default_target_signal_to_host): New functions - declarations.
6814         * signals/signals.c (struct gdbarch): New declaration.
6815         (default_target_signal_to_host, default_target_signal_from_host): New
6816         functions.
6817
6818 2008-05-01  Daniel Jacobowitz  <dan@codesourcery.com>
6819             Pedro Alves  <pedro@codesourcery.com>
6820
6821         Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
6822         Johnston <jjohnstn@redhat.com>.
6823
6824         * NEWS: Mention attach to stopped process fix.
6825         * infcmd.c (detach_command, disconnect_command): Discard the thread
6826         list.
6827         * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
6828         attaching.  Use signal_stop_state.
6829         (signal_stop_state): Check stop_soon.
6830         * linux-nat.c (kill_lwp): Declare earlier.
6831         (pid_is_stopped, linux_nat_post_attach_wait): New.
6832         (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait.  Update
6833         comments.
6834         (linux_nat_attach): Use linux_nat_post_attach_wait.
6835         (detach_callback, linux_nat_detach): Improve handling for signalled
6836         processes.
6837         (linux_nat_pid_to_str): Always print out the LWP ID if it differs
6838         from the process ID.
6839         * Makefile.in (infcmd.o): Update.
6840
6841 2008-05-01  Daniel Jacobowitz  <dan@codesourcery.com>
6842
6843         * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
6844         * arm-tdep.c (arm_frame_is_thumb): New.
6845         (arm_pc_is_thumb): Clarify comment.
6846         (thumb_analyze_prologue): Remove PC special case.
6847         (thumb_scan_prologue): Take a block_addr argument.  Use it for
6848         find_pc_partial_function.  Remove unused variables.
6849         (arm_scan_prologue): Use arm_frame_is_thumb.  Use the block address
6850         for find_pc_partial_function.  Remove PC special case.
6851         (arm_prologue_prev_register): Add special handling for PC and CPSR.
6852         (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
6853         (arm_get_next_pc): Use arm_frame_is_thumb.
6854         (arm_write_pc): Use CPSR_T instead of 0x20.
6855         (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
6856         * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
6857         (CPSR_T): Define.
6858         * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
6859         DWARF2_FRAME_REG_FN.
6860         * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
6861         DWARF2_FRAME_REG_FN.
6862         (struct dwarf2_frame_state_reg): Add FN to loc union.
6863
6864 2008-05-01  Nick Roberts  <nickrob@snap.net.nz>
6865
6866         * exec.c (print_section_info): Add missing '\n'.
6867
6868 2008-05-01  Vladimir Prus  <vladimir@codesourcery.com>
6869
6870         * thread.c (add_thread): Move observer call to ...
6871         (add_thread_silent): ... here.
6872
6873 2008-04-30  Ulrich Weigand  <uweigand@de.ibm.com>
6874
6875         * rs6000-tdep.c: Update for unwinder changes.
6876         * ppcobsd-tdep.c: Likewise.
6877
6878 2008-04-30  Ulrich Weigand  <uweigand@de.ibm.com>
6879
6880         * s390-tdep.c: Update for unwinder changes.
6881
6882 2008-04-30  Ulrich Weigand  <uweigand@de.ibm.com>
6883
6884         * spu-tdep.c: Update for unwinder changes.
6885
6886 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
6887
6888         * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
6889         ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
6890         sparc64-linux-tdep.c: Update for unwinder changes.
6891
6892 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
6893
6894         * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
6895         for unwinder changes.
6896         * mips-tdep.c: Likewise.
6897         (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
6898         raw one.
6899
6900 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
6901
6902         * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
6903         unwinder changes.
6904
6905 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
6906
6907         Update i386 and amd64 ports for unwinder changes.
6908
6909         * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
6910         (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
6911         (amd64_frame_unwind): Use default_frame_sniffer.
6912         (amd64_frame_sniffer): Delete.
6913         (amd64_sigtramp_frame_cache): Expect this_frame.
6914         (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
6915         (amd64_sigtramp_frame_sniffer): Update signature.
6916         (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
6917         (amd64_frame_base_address): Expect this_frame.
6918         (amd64_dummy_id): Renamed from amd64_unwind_dummy_id.  Expect
6919         this_frame.
6920         (amd64_init_abi): Use set_gdbarch_dummy_id and
6921         frame_unwind_append_unwinder.
6922         * i386-tdep.c (i386_frame_cache): Expect this_frame.
6923         (i386_frame_this_id, i386_frame_prev_register): Update signature.
6924         (i386_frame_unwind): Use default_frame_sniffer.
6925         (i386_frame_sniffer): Delete.
6926         (i386_sigtramp_frame_cache): Expect this_frame.
6927         (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
6928         (i386_sigtramp_frame_sniffer): Update signature.
6929         (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
6930         (i386_frame_base_address): Update signature.
6931         (i386_dummy_id): Rename from i386_unwind_dummy_id.  Expect this_frame.
6932         (i386_push_dummy_call): Update comment.
6933         (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
6934         Expect this_frame.
6935         (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
6936         and frame_unwind_append_unwinder.
6937         * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
6938         amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
6939         i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
6940         i386nbsd-tdep.c: Update for unwinder changes.
6941
6942 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
6943
6944         * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
6945         (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
6946         this_frame.
6947         (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
6948         * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
6949         (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
6950         signature.
6951         * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
6952         this_frame.
6953         (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
6954         Update signature.
6955         * tramp-frame.h (struct tramp_frame): Update signature of init.
6956         * Makefile.in (trad-frame.o): Update.
6957
6958 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
6959
6960         * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
6961         (execute_stack_op): Put this_frame in the baton.
6962         (execute_cfa_program): Take this_frame.
6963         (struct dwarf2_frame_ops): Update comment for signal_frame_p.
6964         (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
6965         (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
6966         (dwarf2_frame_this_id): Adjust to work on this_frame.
6967         (dwarf2_signal_frame_this_id): Delete.
6968         (dwarf2_frame_prev_register): Update signature.  Use new frame
6969         unwind methods.
6970         (dwarf2_frame_sniffer): Update signature.  Expect this_frame.
6971         (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
6972         dwarf2_frame_sniffer.
6973         (dwarf2_append_unwinders): New.
6974         (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
6975         this_frame.
6976         * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
6977         (sparc32_dwarf2_frame_init_reg): Expect this_frame.
6978         * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
6979         * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
6980         * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
6981         * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
6982         * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
6983         * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
6984         (dwarf2_append_unwinders): Declare.
6985         (dwarf2_frame_base_sniffer): Update declaration.
6986         * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
6987         this_frame.
6988
6989 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
6990
6991         Convert frame unwinders to use the current frame and
6992         "struct value".
6993
6994         * frame.c (frame_debug): Make global.
6995         (get_frame_id): Pass this frame to unwinder routines.
6996         (frame_pc_unwind): Remove unused unwind->prev_pc support.
6997         (do_frame_register_read): Do not discard the return value of
6998         frame_register_read.
6999         (frame_register_unwind): Remove debug messages.  Use
7000         frame_unwind_register_value.
7001         (frame_unwind_register_value, get_frame_register_value): New
7002         functions.
7003         (create_new_frame, get_frame_base_address, get_frame_locals_address)
7004         (get_frame_args_address, get_frame_type): Pass this frame to
7005         unwinder routines.
7006         (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
7007         functions.
7008         * frame.h: Update comments.
7009         (frame_debug, frame_unwind_register_value, get_frame_register_value)
7010         (frame_prepare_for_sniffer): Declare.
7011         * frame-unwind.h: Update comments and parameter names.
7012         (default_frame_sniffer): Declare.
7013         (frame_prev_register_ftype): Return a struct value *.
7014         (struct frame_unwind): Remove prev_pc member.
7015         (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
7016         (frame_unwind_append_unwinder, frame_unwind_got_optimized)
7017         (frame_unwind_got_register, frame_unwind_got_memory)
7018         (frame_unwind_got_constant, frame_unwind_got_address): Declare.
7019         * frame-base.h: Update comments and parameter names.
7020         * valops.c (value_fetch_lazy): Use get_frame_register_value.  Iterate
7021         if necessary.  Add debugging output.
7022         * sentinel-frame.c (sentinel_frame_prev_register)
7023         (sentinel_frame_this_id): Update for new signature.
7024         (sentinel_frame_prev_pc): Delete.
7025         (sentinel_frame_unwinder): Remove prev_pc.
7026         * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
7027         prev_pc.
7028         * libunwind-frame.c (libunwind_frame_unwind): Likewise.
7029         * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
7030         (frame_unwind_append_sniffer): Delete.
7031         (frame_unwind_append_unwinder): New function.
7032         (frame_unwind_find_by_frame): Take this frame.  Only use sniffers
7033         from unwinders.  Use frame_prepare_for_sniffer.
7034         (default_frame_sniffer, frame_unwind_got_optimized)
7035         (frame_unwind_got_register, frame_unwind_got_memory)
7036         (frame_unwind_got_constant, frame_unwind_got_address): New functions.
7037         * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
7038         (dummy_frame_prev_register, dummy_frame_this_id): Update for new
7039         signature.
7040         * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
7041         * gdbarch.c, gdbarch.c: Regenerated.
7042         * frame-base.c (default_frame_base_address)
7043         (default_frame_locals_address, default_frame_args_address): Update
7044         for new signature.
7045         (frame_base_find_by_frame): Pass this frame to unwinder routines.
7046         * infcall.c (call_function_by_hand): Update comments.
7047         * Makefile.in (frame-unwind.o): Update dependencies.
7048
7049 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
7050
7051         * ada-lang.c (ada_value_primitive_packed_val): Only check
7052         value_lazy for memory lvals.
7053         * findvar.c (value_of_register_lazy): New function.
7054         (locate_var_value): Only check value_lazy for memory lvals.
7055         * valarith.c (value_subscripted_rvalue): Likewise.
7056         * valops.c (value_fetch_lazy): Handle both memory and register
7057         lvals.
7058         (search_struct_field, value_slice): Only check value_lazy for memory
7059         lvals.
7060         * value.c (struct value): Update comment for lazy.
7061         (value_primitive_field): Only check value_lazy for memory lvals.
7062         * value.h (value_lazy): Update comment.
7063         (value_of_register_lazy): Declare.
7064
7065 2008-04-30  Daniel Jacobowitz  <dan@codesourcery.com>
7066
7067         * corefile.c (reopen_exec_file): Close any open files.
7068
7069 2008-04-29  Joel Brobecker  <brobecker@adacore.com>
7070
7071         * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
7072         show_memory_breakpoints to 1 while reading the instruction bundle.
7073
7074 2008-04-29  Joel Brobecker  <brobecker@adacore.com>
7075
7076         * gdbarch.sh: Document the return_value method. Explain that
7077         the FUNCTYPE parameter might be NULL.
7078         * gdbarch.h: Regenerated.
7079         * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
7080         type when calling using_struct_return, as this is unnecessary
7081         on this target.
7082
7083 2008-04-28  Joel Brobecker  <brobecker@adacore.com>
7084
7085         * terminal.h (create_tty_session): Fix return type.
7086
7087 2008-04-26  Vladimir Prus  <vladimir@codesourcery.com>
7088
7089         * mi/mi-interp.c (mi_new_thread): Quote the thread id.
7090
7091 2008-04-26  Joel Brobecker  <brobecker@adacore.com>
7092
7093         * breakpoint.c (condition_command, commands_from_control_command)
7094         (break_command_really): Minor reformatting.
7095
7096 2008-04-25  Pedro Alves  <pedro@codesourcery.com>
7097
7098         * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
7099
7100 2008-04-25  Pedro Alves  <pedro@codesourcery.com>
7101
7102         * amd64-tdep.c (amd64_get_longjmp_target): New.
7103         (amd64_init_abi): Register amd64_get_longjmp_target as
7104         gdbarch_get_longjmp_target callback.
7105         * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
7106
7107 2008-04-25  Pedro Alves  <pedro@codesourcery.com>
7108
7109         * breakpoint.h (enum bpstat_what_main_action): Delete
7110         BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
7111
7112         * breakpoint.c (clrs): Delete.
7113         (bpstat_what): Update table.
7114
7115         * infrun.c (handle_inferior_event): Remove
7116         BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
7117
7118 2008-04-24  Vladimir Prus  <vladimir@codesourcery.com>
7119
7120         * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
7121         Adjust all prototypes using mi_cmd_args_ftype to use
7122         mi_cmd_argv_ftype.
7123         (struct mi_cmd): Remove the args_func field.
7124         * mi/mi-cmds.c: Don't provide value for the args_func field.
7125         * mi/mi-main.c (mi_execute_async_cli_command)
7126         (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
7127         (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
7128         (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
7129         (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
7130         (mi_cmd_target_download): Adjust.
7131         (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
7132         (mi_cmd_execute): Do not check for args_func.
7133         (mi_execute_async_cli_command): Adjust.
7134         * mi/mi-parse.c: Don't check for args_func.
7135
7136 2008-04-24  Vladimir Prus  <vladimir@codesourcery.com>
7137
7138         * breakpoint.c (bpstat_check_location)
7139         (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
7140         New, extracted from bpstat_stop_status.
7141         (bpstat_stop_status): Use the above.
7142
7143 2008-04-24  Vladimir Prus  <vladimir@codesourcery.com>
7144
7145         * mi/mi-main.c (last_async_command): Rename to current_token.
7146         (previous_async_command): Remove.
7147         (mi_cmd_gdb_exit): Adjust.
7148         (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
7149         (mi_cmd_target_select): Adjust.
7150         (mi_cmd_execute): Don't set previous_async_command.  Free token
7151         here even in async mode.
7152         (mi_execute_async_cli_command): Adjust.
7153         (mi_exec_async_cli_cmd_continuation): Adjust.  Do not free the
7154         token.
7155         (mi_load_progress): Adjust.
7156
7157 2008-04-24  Vladimir Prus  <vladimir@codesourcery.com>
7158
7159         * infcmd.c (step_1_continuation): Always disable longjmp
7160         breakpoint if we're not going to do another step.
7161
7162 2008-04-24  Vladimir Prus  <vladimir@codesourcery.com>
7163
7164         exec_cleanup murder.
7165         * breakpoint.c (until_break_command_continuation): Add
7166         the 'error' parameter.  Directly delete the breakoint as
7167         opposed to running cleanups.
7168         (until_break_command): Install continuation only
7169         after starting the target.  Don't use exec cleanups,
7170         use ordinary cleanups.  Discard cleanups is successfully
7171         started the target in async mode.
7172         (make_cleanup_delete_breakpoint): Remove.
7173         * breakpoint.h (make_cleanup_delete_breakpoint): Remove
7174         declaration.
7175         * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
7176         declarations.
7177         (struct continations): Add the 'error' parameter to the
7178         continuation_hook field.
7179         (add_continuation, do_all_continuations)
7180         (add_intermediate_continuation)
7181         (do_all_intermediate_continuations): Add the 'error' parameter.
7182         * exceptions.c (throw_exception): Don't call do_exec_cleanups.
7183         * inf-loop.c (inferior_event_handler): Instead of calling
7184         discard_all_continuations, use do_all_continuations with 1 as
7185         'error' parameter.  Pass 0 as 'error' parameter in existing uses
7186         of discard_all_continuations.
7187         * infcmd.c (step_1): Do not use exec cleanup.  For async case, discard
7188         cleanups.
7189         (step_once): Install continuation only after resuming the target.
7190         (step_1_continuation): Disable longjmp breakpoint on error.
7191         (finish_command_continuation): Add the error parameter.  Delete
7192         the finish breakpoint directly, do not use cleanups.
7193         (finish_command): Do not use exec_cleanups. Always setup
7194         continuation.  For sync case, immediately run them.
7195         (attach_command_continuation): Add the error parameter.
7196         * infrun.c (fetch_inferior_event): Do not use exec cleanups to
7197         remove step_resume_breakpoint -- adjust delete it directly.
7198         * interps.c (interp_set): Adjust call to do_all_continations.
7199         * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
7200         do exec cleanups.
7201         * mi/mi-main.c (mi_cmd_target_select): Do not do exec
7202         cleanups.
7203         (mi_cmd_execute): Do not use exec_cleanup.
7204         (mi_execute_async_cli_command): Simplify the string concatenation
7205         logic.  Do no use exec cleanup.
7206         (mi_exec_async_cli_cmd_continuation): New parameter error.
7207         Free last_async_command.
7208         * top.c (command_line_handler_continuation): New parameter error.
7209         * utils.c (exec_cleanup_chain, make_exec_cleanup)
7210         (do_exec_cleanups): Remove.
7211         (add_continuation, do_all_continations)
7212         (add_intermediate_continuation)
7213         (do_all_intermediate_continuations): New parameter error.
7214
7215 2008-04-24  Vladimir Prus  <vladimir@codesourcery.com>
7216
7217         * breakpoint.h (bp_location_p): New typedef.
7218         Register a vector of bp_location_p.
7219         * breakpoint.c (always_inserted_mode)
7220         (show_always_inserted_mode): New.
7221         (unlink_locations_from_global_list): Remove.
7222         (update_global_location_list)
7223         (update_global_location_list_nothrow): New.
7224         (update_watchpoint): Don't free locations.
7225         (should_insert_location): New.
7226         (insert_bp_location): Use should_insert_location.
7227         (insert_breakpoint_locations): Copied from
7228         insert_breakpoints.
7229         (insert_breakpoint): Use insert_breakpoint_locations.
7230         (bpstat_stop_status): Call update_global_location_list
7231         when disabling breakpoint.
7232         (allocate_bp_location): Don't add to bp_location_chain.
7233         (set_raw_breakpoint)
7234         (create_longjmp_breakpoint, enable_longjmp_breakpoint)
7235         (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
7236         (enable_overlay_breakpoints, disable_overlay_breakpoints)
7237         (set_longjmp_resume_breakpoint)
7238         (enable_watchpoints_after_interactive_call_stop)
7239         (disable_watchpoints_before_interactive_call_start)
7240         (create_internal_breakpoint)
7241         (create_fork_vfork_event_catchpoint)
7242         (create_exec_event_catchpoint, set_momentary_breakpoint)
7243         (create_breakpoints, break_command_1, watch_command_1)
7244         (create_exception_catchpoint)
7245         (handle_gnu_v3_exceptions)
7246         (disable_breakpoint, breakpoint_re_set_one)
7247         (create_thread_event_breakpoint, create_solib_event_breakpoint)
7248         (create_ada_exception_breakpoint): : Don't call check_duplicates.
7249         Call update_global_location_list.
7250         (delete_breakpoint): Don't remove locations and don't
7251         try to reinsert them. Call update_global_location_list.
7252         (update_breakpoint_locations): Likewise.
7253         (restore_always_inserted_mode): New.
7254         (update_breakpoints_after_exec): Temporary disable
7255         always inserted mode.
7256         * Makefile.in: Update dependencies.
7257
7258         * infrun.c (proceed): Remove breakpoints while stepping
7259         over breakpoint.
7260         (handle_inferior_event): Don't remove or insert
7261         breakpoints.
7262         * linux-fork.c (checkpoint_command): Remove breakpoints
7263         before fork and insert after.
7264         (linux_fork_context): Remove breakpoints before switch
7265         and insert after.
7266         * target.c (target_disconnect, target_detach): Remove
7267         breakpoints from target.
7268
7269
7270 2008-04-24  Vladimir Prus  <vladimir@codesourcery.com>
7271
7272         * breakpoint.c (print_one_breakpoint_location): In MI
7273         mode, report the location string the breakpoint was
7274         originally created with.
7275
7276 2008-04-23  Maxim Grigoriev  <maxim2405@gmail.com>
7277
7278         * Makefile.in (xtensa-tdep.o): Update dependencies.
7279         * configure.tgt (xtensa*): Update dependencies.
7280         * xtensa-tdep.c (arreg_number): Renamed from areg_number.
7281         Local variable areg renamed to arreg.
7282         (areg_number): New function.
7283         (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
7284         (xtensa_extract_return_value, xtensa_store_return_value): areg_number
7285         replaced by arreg_number.
7286         (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
7287         (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
7288         (xtensa_scan_prologue): New function.
7289         (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
7290         when ENTRY instraction hasn't been executed yet. Get the frame pointer
7291         value based on prologue analysis. Fix the bugs preventing WS and
7292         AR4-AR7/A11 registers from getting right values for intermediate frames,
7293         whose registers have been already spilled.
7294         (xtensa_frame_prev_register): Fix WS register value. Use are_number
7295         and arreg_number appropriately.
7296         (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
7297         svr4_ilp32_fetch_link_map_offsets.
7298
7299 2008-04-23  Andrew Stubbs  <andrew.stubbs@st.com>
7300
7301         * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
7302         (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
7303
7304 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
7305
7306         * acinclude.m4: Add override.m4.
7307         * configure: Regenerate.
7308
7309 2008-04-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
7310
7311         * ada-lang.c (get_selections): Variable PROMPT made non-const and
7312         initialized with a trailing space now.  Use PROMPT_ARG of
7313         COMMAND_LINE_INPUT instead of printing it ourselves.
7314
7315 2008-04-22  Joel Brobecker  <brobecker@adacore.com>
7316
7317         * NEWS: Document support for 64-bit core file.
7318
7319 2008-04-22  Corinna Vinschen  <vinschen@redhat.com>
7320
7321         * NEWS: Add information on calling convention and new SH CLI options.
7322
7323         * sh-tdep.c (sh_cc_gcc): New static string.
7324         (sh_cc_renesas): Ditto.
7325         (sh_cc_enum): New static string array.
7326         (sh_active_calling_convention): New static string pointer denoting
7327         active user chosen ABI.
7328         (sh_is_renesas_calling_convention): New function to return function
7329         specific ABI, or user choice if necessary.
7330         (sh_use_struct_convention): Rename first argument and turn around its
7331         meaning.  Check for renesas ABI and return accordingly.
7332         (sh_use_struct_convention_nofpu): New function.
7333         (sh_next_flt_argreg): Get function type as third parameter.  Check
7334         for renesas ABI and choose floating registers accordingly.
7335         (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
7336         struct return slot accordingly.
7337         (sh_push_dummy_call_nofpu): Ditto.
7338         (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
7339         Evaluate ABI and give to sh_use_struct_convention_nofpu.
7340         (sh_return_value_fpu):  Evaluate ABI and give to
7341         sh_use_struct_convention.
7342         (show_sh_command): New function.
7343         (set_sh_command): Ditto.
7344         (_initialize_sh_tdep): Initialize `set/show sh calling-convention
7345         CLI command.
7346
7347         * gdbarch.sh (return_value): Add func_type argument.
7348         * gdbarch.c: Regenerate.
7349         * gdbarch.h: Ditto.
7350         * eval.c (evaluate_subexp_standard): Rename local variable value_type to
7351         val_type so as not to collide with value_type function.  Call
7352         using_struct_return with additional function type argument.
7353         * infcall.c (call_function_by_hand): Call using_struct_return and
7354         gdbarch_return_value with additional function type argument.
7355         * infcmd.c (print_return_value): Take addition func_type argument.
7356         Call gdbarch_return_value with additional function type argument.
7357         (finish_command_continuation): Call print_return_value with additional
7358         function type argument.
7359         (finish_command): Ditto.
7360         * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
7361         additional function type argument.
7362         * stack.c (return_command): Call using_struct_return and
7363         gdbarch_return_value with additional function type argument.
7364         * value.c (using_struct_return): Take additional function type argument.
7365         * value.h (using_struct_return): Accommodate declaration.
7366         * alpha-tdep.c (alpha_return_value): Add func_type argument.
7367         * amd64-tdep.c (amd64_return_value): Ditto.
7368         * arm-tdep.c (arm_return_value): Ditto.
7369         * avr-tdep.c (avr_return_value): Ditto.
7370         * cris-tdep.c (cris_return_value): Ditto.
7371         * frv-tdep.c (frv_return_value): Ditto.
7372         * h8300-tdep.c (h8300_return_value): Ditto.
7373         (h8300h_return_value): Ditto.
7374         * hppa-tdep.c (hppa32_return_value): Ditto.
7375         (hppa64_return_value): Ditto.
7376         * i386-tdep.c (i386_return_value): Ditto.
7377         * ia64-tdep.c (ia64_return_value): Ditto.
7378         * iq2000-tdep.c (iq2000_return_value): Ditto.
7379         * m32c-tdep.c (m32c_return_value): Ditto.
7380         * m32r-tdep.c (m32r_return_value): Ditto.
7381         * m68hc11-tdep.c (m68hc11_return_value): Ditto.
7382         * m68k-tdep.c (m68k_return_value): Ditto.
7383         (m68k_svr4_return_value): Ditto.
7384         * m88k-tdep.c  (m88k_return_value): Ditto.
7385         * mep-tdep.c (mep_return_value): Ditto.
7386         * mips-tdep.c (mips_eabi_return_value): Ditto.
7387         (mips_n32n64_return_value): Ditto.
7388         (mips_o32_return_value): Ditto.
7389         (mips_o64_return_value): Ditto.
7390         * mn10300-tdep.c (mn10300_return_value): Ditto.
7391         * mt-tdep.c (mt_return_value): Ditto.
7392         * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
7393         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
7394         (ppc_sysv_abi_broken_return_value): Ditto.
7395         (ppc64_sysv_abi_return_value): Ditto.
7396         * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
7397         (ppc_sysv_abi_broken_return_value): Ditto.
7398         (ppc64_sysv_abi_return_value): Ditto.
7399         * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
7400         * rs6000-tdep.c (rs6000_return_value): Ditto.
7401         * s390-tdep.c (s390_return_value): Ditto.
7402         * score-tdep.c (score_return_value): Ditto.
7403         * sh-tdep.c (sh_return_value_nofpu): Ditto.
7404         (sh_return_value_fpu): Ditto.
7405         * sh64-tdep.c (sh64_return_value): Ditto.
7406         * sparc-tdep.c (sparc32_return_value): Ditto.
7407         * sparc64-tdep.c (sparc64_return_value): Ditto.
7408         * spu-tdep.c (spu_return_value): Ditto.
7409         * v850-tdep.c (v850_return_value): Ditto.
7410         * vax-tdep.c (vax_return_value): Ditto.
7411         * xstormy16-tdep.c (xstormy16_return_value): Ditto.
7412         * xtensa-tdep.c (xtensa_return_value): Ditto.
7413
7414         * gdbtypes.h (struct type): Add calling_convention member.
7415         * dwarf2read.c (read_subroutine_type): Add calling convention read
7416         from DW_AT_calling_convention attribute to function type.
7417
7418 2008-04-22  Markus Deuling  <deuling@de.ibm.com>
7419
7420         * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
7421         multi_f77_subscript to support values from registers.
7422         * valarith.c (value_subscripted_rvalue): Remove prototype and static.
7423         * value.h (value_subscripted_rvalue): Add prototype.
7424
7425         * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
7426         Fix output.
7427         * f-valprint.c (f_val_print): Likewise.
7428
7429 2008-04-21  Craig Silverstein  <csilvers@google.com>
7430
7431         * dwarf2read.c (zlib_decompress_section): Define abfd in the
7432         !HAVE_ZLIB_H case.
7433
7434 2008-04-21  Pedro Alves  <pedro@codesourcery.com>
7435
7436         * symfile.c (syms_from_objfile): Don't warn if lowest loadable
7437         section is not a code section.
7438
7439 2008-04-19  Craig Silverstein  <csilvers@google.com>
7440
7441         * NEWS: Add information on compressed debug sections.
7442
7443 2008-04-19  Vladimir Prus  <vladimir@codesourcery.com>
7444
7445         * mi/mi-cmd-var.c (varobj_update_one): Print new
7446         value for variable objects that changed type.
7447
7448 2008-04-19  Vladimir Prus  <vladimir@codesourcery.com>
7449
7450         * varobj.c (varobj_invalidate): Don't touch floating
7451         varobjs.
7452
7453 2008-04-19  Mark Kettenis  <kettenis@gnu.org>
7454
7455         * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
7456         (multiple_symbols_cancel): Remove extra const.
7457         * symtab.h: Likewise.
7458
7459 2008-04-19  Nick Roberts  <nickrob@snap.net.nz>
7460
7461         * interps.c (top_level_interpreter): Rename static variable...
7462         (top_level_interpreter_ptr): ...to this.
7463         (top_level_interpreter): New function.
7464
7465         * interps.h: New extern for top_level_interpreter.
7466
7467         * linespec.c: Include interps.h and mi/mi-cmds.h.
7468         (decode_line_2): When using MI, always set all breakpoints in menu.
7469
7470         * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
7471
7472 2008-04-18  Craig Silverstein  <csilvers@google.com>
7473
7474         * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
7475         * config.in, configure: Regenerate.
7476         * dwarf2read.c: Include zlib.h if present.
7477         Modified *_SECTION macros.
7478         (section_is_p): New.
7479         (dwarf2_locate_sections): Use section_is_p instead of strcmp
7480         (dwarf2_resize_section): New.
7481         to determine whether a given section has a given name.
7482         (zlib_decompress_section): New.
7483         (dwarf2_read_section): Read the compressed section if present
7484         in the binary.
7485         * MAINTAINERS: Added myself to section Write After Approval.
7486
7487 2008-04-18  Thiago Jung Bauermann  <bauerman@br.ibm.com>
7488
7489         * defs.h (exec_set_section_offsets): Remove prototype.
7490         * exec.c (exec_set_section_offsets): Remove function.
7491
7492 2008-04-18  Joel Brobecker  <brobecker@adacore.com>
7493
7494         * stabsread.c (cleanup_undefined_types_1): Add instance flags check
7495         in the search for the matching symbol.
7496
7497 2008-04-17  Marc Khouzam  <marc.khouzam@ericsson.com>
7498
7499         * breakpoint.c (update_watchpoint): Always reparse
7500         condition.
7501
7502 2008-04-17  Joel Brobecker  <brobecker@adacore.com>
7503
7504         * breakpoint.c (print_one_breakpoint_location): Make sure to print
7505         the breakpoint address only once.
7506
7507 2008-04-17  Dennis Roberts  <dennis.roberts@sunquestinfo.com>
7508
7509         * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
7510         rather than a hard-coded architecture, for xcoff executables.
7511
7512 2008-04-17  Doug Evans  <dje@google.com>
7513
7514         * buildsym.c (watch_main_source_file_lossage): New fn.
7515         (end_symtab): Call it.
7516
7517         * source.c (find_and_open_source): Add some comments clarifying
7518         handling of FULLNAME argument.  Make static.  Remove pointless
7519         xstrdup/xfree.
7520
7521 2008-04-17  Pedro Alves  <pedro@codesourcery.com>
7522
7523         * inf-loop.c (inferior_event_handler): Also run the intermediate
7524         continuations in the INF_EXEC_COMPLETE case.
7525
7526 2008-04-16  Tom Tromey  <tromey@redhat.com>
7527
7528         * cli/cli-decode.h (CMD_ASYNC_OK): New define.
7529         (set_cmd_async_ok, get_cmd_async_ok): Declare.
7530         * cli/cli-decode.c (set_cmd_async_ok): New function.
7531         (get_cmd_async_ok): New function.
7532         * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
7533         "show" as async-ok.
7534         * top.c (execute_command): Use get_cmd_async_ok.
7535         * infcmd.c: Include cli/cli-decode.h.
7536         (_initialize_infcmd): Mark "interrupt" as async-ok.
7537         * Makefile.in (infcmd.o): Depend on cli_decode_h.
7538
7539 2008-04-16  Daniel Jacobowitz  <dan@codesourcery.com>
7540
7541         PR gdb/2445
7542         * exec.c: Correct "arch-utils.h" include.
7543
7544 2008-04-15  Aleksandar Ristovski  <aristovski@qnx.com>
7545
7546         PR gdb/2424
7547         * infrun.c (normal_stop) Move breakpoint_auto_delete further down
7548         to allow printing to 'see' real reason of stop. This fixes PR 2424.
7549         * breakpoint.c (bpdisp_texst): New function. The function takes over
7550         the role of bpstats static array in print_one_breakpoint_location.
7551         (print_it_typical): Print "Temporary breakpoint" instead
7552         of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
7553         protocols, print disp field.
7554         (print_one_breakpoint_location): Removed bpdisps static definition.
7555         Call new bpstat_text function to get value for 'disp' field.
7556         (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
7557
7558 2008-04-15  Daniel Jacobowitz  <dan@codesourcery.com>
7559
7560         * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
7561         gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
7562         by rerunning gnulib-tool with --aux-dir=gnulib/extra.
7563         * gnulib/Makefile.in: Regenerate.
7564
7565 2008-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
7566
7567         * Makefile.in (GNULIB_H): New.  Trigger all-lib.
7568         (defs_h): Use $(GNULIB_H).
7569         (all-lib): Depend on gnulib/Makefile.
7570         (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
7571         * config.in, gnulib/Makefile.in: Regenerated.
7572
7573 2008-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
7574
7575         * Makefile.in (LIBGNU, INCGNU): Define.
7576         (INTERNAL_CFLAGS_BASE): Add INCGNU.
7577         (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
7578         (CLEANDIRS): New.
7579         ($(LIBGNU), all-lib): New rules.
7580         (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
7581         * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
7582         Simplify AC_CONFIG_AUX_DIR.  Generate gnulib/Makefile.
7583         * gnulib: New directory, from gnulib-tool.
7584         * configure, aclocal.m4: Regenerated.
7585
7586 2008-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
7587
7588         * linux-thread-db.c (have_threads_callback): Check thread->private.
7589
7590 2008-04-13  Nick Roberts  <nickrob@snap.net.nz>
7591             Vladimir Prus  <vladimir@codesourcery.com>
7592
7593         Fix @-varobjs.
7594         * varobj.c (value_of_root): Update the expression for
7595         floating varobjs.
7596         * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
7597         report that.
7598
7599 2008-04-09  Marc Khouzam  <marc.khouzam@ericsson.com>
7600
7601         * mi/mi-cmd-var.c: Include "mi-getopt.h".
7602         (mi_parse_format): New.  Factored out from mi_cmd_var_set_format.
7603         (mi_cmd_var_set_format): Use new mi_parse_format.
7604         (mi_cmd_var_evaluate_expression): Support for -f option to specify
7605         format.
7606         * Makefile.in (mi-cmd-var.o): Update dependencies.
7607
7608         * varobj.h (varobj_get_formatted_value): Declare.
7609         * varobj.c (my_value_of_variable): Added format parameter.
7610         (cplus_value_of_variable): Likewise.
7611         (java_value_of_variable): Likewise.
7612         (c_value_of_variable): Likewise.  Evaluate expression based
7613         on format parameter.
7614         (struct language_specific): Add format parameter to function member
7615         *value_of_variable.
7616         (varobj_get_formatted_value): New.
7617         (varobj_get_value): Added format parameter to method call.
7618
7619 2008-04-08  Joel Brobecker  <brobecker@adacore.com>
7620
7621         * stabsread.c (cleanup_undefined_types_noname): Manually set the
7622         instance flags of the undefined type before calling replace_type.
7623
7624 2008-04-08  Vladimir Prus  <vladimir@codesourcery.com>
7625
7626         * target.h (enum strata): Remove the download_stratum.
7627
7628 2008-04-07  Doug Evans  <dje@google.com>
7629
7630         * buildsym.h (last_source_file): Add dwarf info to comment.
7631         (last_source_start_addr): Ditto.
7632
7633 2008-04-07  Pedro Alves  <pedro@codesourcery.com>
7634
7635         * alphanbsd-tdep.c: Include "target.h".
7636         * mn10300-tdep.c: Include "target.h".
7637         * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
7638
7639 2008-04-06  Vladimir Prus  <vladimir@codesourcery.com>
7640
7641         Fix breakpoint condition that use member variables.
7642         * valops.c (check_field): Remove.
7643         (check_field_in): Rename to check_field.
7644         (value_of_this): Use la_name_of_this.
7645         * value.h (check_field): Adjust prototype.
7646
7647         * language.h (la_value_of_this): Rename to la_name_of_this.
7648         * language.c (unknown_language_defn): Specify "this" for
7649         name_of_this.
7650         (auto_language_defn): Likewise.
7651         (local_language_defn): Likewise.
7652         * ada-lang.c (ada_language_defn): Adjust comment.
7653         * c-lang.c (c_language_defn): Adjust comment.
7654         (cplus_language_defn): Specify "this" for name_of_this.
7655         (asm_language_defn): Adjust comment.
7656         (minimal_language_defn): Adjust comment.
7657         * f-lang.c (f_language_defn): Specify NULL for name_of_this.
7658         * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
7659         * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
7660         * objc-lang.c (objc_language_defn): Specify "self" for
7661         name_of_this.
7662         * p-lang.c (pascal_language_defn): Specify "this" for
7663         name_of_this.
7664         * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
7665
7666         * symtab.c (lookup_symbol_aux): Lookup "this" in the
7667         proper scope, and check for field in type of "this", without
7668         trying to create a value.
7669
7670 2008-04-04  Pedro Alves  <pedro@codesourcery.com>
7671
7672         * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
7673         (mi_error_message): Delete declaration.
7674         * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
7675         returning MI_CMD_ERROR.
7676         * mi/mi-main.c (mi_error_message): Delete.
7677         (mi_cmd_exec_interrupt):
7678         (mi_cmd_thread_select, mi_cmd_thread_list_ids)
7679         (mi_cmd_thread_info): Call error instead of returning
7680         MI_CMD_ERROR.
7681         (mi_cmd_data_list_register_values): Call error instead of
7682         returning MI_CMD_ERROR.  Adapt to new get_register interface.
7683         (get_register): Change return typo to void.  Call error instead of
7684         returning MI_CMD_ERROR.
7685         (mi_cmd_data_write_register_values): Call error instead of
7686         returning MI_CMD_ERROR.
7687         (mi_cmd_list_features): Return MI_CMD_DONE.
7688         (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
7689         (mi_execute_command): Always print exceptions with -error.
7690
7691 2008-04-04  Joel Brobecker  <brobecker@adacore.com>
7692
7693         * NEWS: Mention new commands set/show multiple-symbols.
7694
7695 2008-04-03  Joel Brobecker  <brobecker@adacore.com>
7696
7697         * symtab.c (multiple_symbols_ask, multiple_symbols_all)
7698         (multiple_symbols_cancel): New constants.
7699         (multiple_symbols_modes, multiple_symbols_mode): New static globals.
7700         (multiple_symbols_select_mode): New function.
7701         (_initialize_symtab): Add new set/show multiple-symbols commands.
7702         * symtab.h (multiple_symbols_ask, multiple_symbols_all)
7703         (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
7704         * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
7705         setting.
7706         * linespec.c (decode_line_2): Likewise.
7707
7708 2008-04-03  Doug Evans  <dje@sebabeach.org>
7709
7710         * symtab.h (enum free_code): Delete free_contents, unused.
7711         * symmisc.c (free_symtab_block): Delete.
7712         (free_symtab, case free_code): Delete.
7713
7714 2008-04-01  Aleksandar Ristovski  <aristovski@qnx.com>
7715
7716         * valops.c (value_cast_structs): New function. Cast related
7717         STRUCT types up/down and return cast value. The body of this
7718         function comes mostly from value_cast_pointers.
7719         (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
7720         to value_cast_structs. Now value_cast_pointers needs only create
7721         appropriate reference after using value_cast_structs for actual
7722         casting.
7723         (value_cast): Handle references.
7724
7725 2008-04-01  Marc Khouzam  <marc.khouzam@ericsson.com>
7726
7727         * MAINTAINERS: Added myself to section Write After Approval.
7728
7729 2008-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
7730
7731         * ia64-tdep.c (examine_prologue): Correct array access.
7732
7733 2008-03-28  Aleksandar Ristovski  <aristovski@qnx.com>
7734
7735         * cp-support.c (first_component_command): Return if no arguments.
7736
7737 2008-03-28  Carlos O'Donell  <carlos@codesourcery.com>
7738
7739         * ser-mingw.c (ser_windows_open): Open requested name.
7740
7741 2008-03-28  Aleksandar Ristovski  <aristovski@qnx.com>
7742
7743         * MAINTAINERS: Added myself.
7744
7745 2008-03-28  Pedro Alves  <pedro@codesourcery.com>
7746
7747         * target.c (find_default_run_target): Allow a NULL `do_mesg'
7748         parameter.  If it is NULL, don't call error.
7749         (find_default_can_async_p, find_default_is_async_p): Pass NULL as
7750         `do_mesg' parameter to find_default_run_target.  If no target was
7751         found, return 0.
7752
7753 2008-03-28  Daniel Jacobowitz  <dan@codesourcery.com>
7754
7755         * mips-linux-tdep.c: Update N32/N64 signal frame comments.
7756         (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
7757         (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
7758         Delete.
7759         (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
7760
7761 2008-03-27  Joel Brobecker  <brobecker@adacore.com>
7762
7763         GDB 6.8 released.
7764
7765 2008-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
7766
7767         * features/Makefile (%.dat): Set xmltarget to the base filename
7768         of the XML source, without subdirectory.
7769         * regformats/rs6000/powerpc-32.dat: Regenerate.
7770         * regformats/rs6000/powerpc-64.dat: Regenerate.
7771         * regformats/rs6000/powerpc-e500.dat: Regenerate.
7772
7773 2008-03-27  Markus Deuling  <deuling@de.ibm.com>
7774
7775         * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
7776         objfile arch.
7777
7778 2008-03-27  Nick Roberts  <nickrob@snap.net.nz>
7779
7780         * mi/mi-main.c (enum captured_mi_execute_command_actions):
7781         Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
7782
7783 2008-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
7784
7785         * objfiles.h (struct objfile): New GDBARCH member.
7786         (get_objfile_arch): Add prototype.
7787         * objfiles.c: Include "arch-utils.h".
7788         (allocate_objfile): Look up gdbarch associated with bfd.
7789         (get_objfile_arch): New function.
7790         * Makefile (objfiles.o): Update dependencies.
7791
7792         * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
7793         by objfile arch.
7794         * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
7795         by frame arch.
7796         (locexpr_describe_location): Replace current_gdbarch by
7797         objfile arch.
7798         * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
7799         (dwarf2_add_field): Likewise.
7800         (read_tag_pointer_type): Likewise.
7801         (read_base_type): Likewise.
7802         (new_symbol): Likewise.
7803
7804         * coffread.c (decode_type): Add OBJFILE argument.  Update callers.
7805         (decode_base_type, decode_function_type): Likewise.
7806         (coff_read_struct_type, coff_read_enum_type): Likewise.
7807         (coff_symtab_read): Replace current_gdbarch by objfile arch.
7808         (decode_base_type): Likewise.
7809         (coff_read_enum_type): Likewise.
7810         (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
7811         (coff_read_enum_type): Likewise.
7812
7813         * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
7814         (end_psymtab): Likewise.
7815         (process_one_symbol): Likewise.
7816
7817         * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
7818         (parse_procedure): Likewise.
7819         (parse_partial_symbols): Likewise.
7820
7821         * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
7822
7823         * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
7824         Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
7825         built-in types.
7826         (read_range_type): Replace current_gdbarch by objfile arch.  Replace
7827         static range_index_type by built-in type.
7828         (read_one_struct_field): Replace current_gdbarch by objfile arch.
7829         (read_enum_type): Likewise.
7830
7831         * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
7832         objfile arch.
7833
7834 2008-03-26  Vladimir Prus  <vladimir@codesourcery.com>
7835
7836         * varobj.h (varobj_floating_p): Declare.
7837         * varobj.c (varobj_floating_p): New.
7838         * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
7839         '@' as the name, update all floating varobjs.
7840
7841 2008-03-26  Vladimir Prus  <vladimir@codesourcery.com>
7842
7843         * varobj.c (struct varobj_root): Rename use_selected_frame to
7844         floating, and clarify the meaning.
7845         (varobj_create, varobj_update,  new_root_variable): Adjust.
7846         (value_of_root): Don't use type_changed as in variable,
7847         adjust comment.
7848         (c_value_of_root): Adjust.
7849
7850 2008-03-25  Pedro Alves  <pedro@codesourcery.com>
7851
7852         * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
7853         gdb's thread list.
7854         (linux_nat_wait): Add main lwp to gdb's thread list.
7855         * linux-thread-db.c (find_new_threads_callback): Also attach to
7856         already listed threads which thread_db didn't know about yet.
7857
7858 2008-03-25  Pedro Alves  <pedro@codesourcery.com>
7859
7860         * linux-nat.c (drain_queued_events): Fix comment typo.
7861         (linux_nat_attach): In async mode, don't rely on storing a pending
7862         status.  Instead place the wait status on the pipe.
7863         (linux_nat_resume): Remove unreacheable shortcut code in async
7864         mode.
7865         (stop_wait_callback): In async mode, don't store pending status.
7866         Instead, cancel breakpoints or resend the signal appropriatelly.
7867         (cancel_breakpoint): New, refactored from
7868         cancel_breakpoints_callback.
7869         (cancel_breakpoints_callback): Call cancel_breakpoint.
7870         (pipe_to_local_event_queue): Remove special token processing.
7871         (linux_nat_wait): Issue an internal error if a pending status is
7872         found in async mode.
7873
7874 2008-03-24  Daniel Jacobowitz  <dan@codesourcery.com>
7875
7876         * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
7877
7878 2008-03-24  Nick Roberts  <nickrob@snap.net.nz>
7879             Vladimir Prus  <vladimir@codesourcery.com>
7880
7881         * varobj.c  (struct varobj_root): New component thread_id.
7882         (varobj_get_thread_id, check_scope): New functions.
7883         (c_value_of_root): Use check_scope.  Switch to the
7884         proper thread if necessary.
7885
7886         * varobj.h (varobj_get_thread_id): New extern.
7887
7888         * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
7889
7890 2008-03-23  Daniel Jacobowitz  <dan@codesourcery.com>
7891
7892         PR gdb/544
7893         * top.c: Revert 2008-03-21 changes.
7894
7895 2008-03-23  Vladimir Prus  <vladimir@codesourcery.com>
7896
7897         * thread.c (make_cleanup_restore_current_thread): Make it
7898         globally visible.
7899         * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7900         * varobj.c (varobj_update): Don't save/restore frame.
7901         (c_value_of_root): Save/restore thread and frame here,
7902         using make_cleanup_restore_current_thread.
7903         * Makefile.in: Update dependecies.
7904
7905 2008-03-23  Vladimir Prus  <vladimir@codesourcery.com>
7906
7907         * varobj.c (struct varobj_root): Clarify
7908         comment on the frame field.
7909         (varobj_create): Don't set frame if we have no
7910         block.
7911
7912 2008-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
7913
7914         PR gdb/544
7915         Suggested by Jan Kratochvil:
7916         * top.c (gdb_rl_operate_and_get_next_completion): Call
7917         rl_redisplay_function.
7918         (gdb_rl_redisplay): New.
7919         (init_main): Set rl_redisplay_function.
7920
7921 2008-03-21  Thomas Mittelstaedt  <T.Mittelstaedt@cadenas.de>  (tiny change)
7922
7923         * aix-thread.c (pdc_read_regs): Fix compiler warning.
7924         (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
7925         (store_regs_kernel_thread): Likewise.
7926
7927 2008-03-21  Pedro Alves  <pedro@codesourcery.com>
7928
7929         Linux native async support.
7930
7931         * target.h (struct target_ops): Delete to_async_mask_value and add
7932         to_async_mask.
7933         (target_is_async_p, target_async): Formatting.
7934         (target_async_mask_value): Delete.
7935         (target_async_mask): Delete function declaration, and add new
7936         target macro with the same name.
7937
7938         * target.c (update_current_target): Replace to_async_mask_value by
7939         to_async_mask.  Default to_async_mask to return_one.
7940         (target_async_mask): Delete.
7941         (find_default_can_async_p, find_default_is_async_p): New.
7942         (init_dummy_target): register find_default_can_async_p and
7943         find_default_is_async_p on the dummy target.
7944
7945         * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
7946         (debug_linux_nat_async): New global.
7947         (show_debug_linux_nat_async): New function.
7948         (linux_nat_async_enabled, linux_nat_async_mask_value)
7949         (linux_nat_event_pipe, linux_nat_num_queued_events)
7950         (linux_nat_async_events_enabled): New globals.
7951         (struct waitpid_result): New struct.
7952         (waitpid_queue): New global.
7953         (queued_waitpid, push_waitpid, drain_queued_events): New.
7954         (my_waitpid): Call queued_waitpid.
7955         (linux_child_follow_fork): Disable async events during the call.
7956         (blocked_mask): Delete.
7957         (sync_sigchld_action, async_sigchld_action): New globals.
7958         (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD.  In
7959         async mode, block events during the call.
7960         (linux_nat_create_inferior): New.
7961         (linux_nat_attach): In sync mode, restore the mask states.  In
7962         async mode, wake the event loop immediatelly.
7963         (detach_callback): Drain all queued events of the lwp we're
7964         detaching from.
7965         (linux_nat_detach): Block async mode, and drain events of the main
7966         process.
7967         (linux_nat_resume): If in async mode, mask async events during the
7968         call.  If short circuiting, force event loop to wake up.  If
7969         resuming, set target_executing, and register target events in the
7970         event loop.
7971         (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
7972         (linux_nat_wait): In async mode, block events during the call.
7973         Only enable/disable passing SIGINT to the inferior in sync mode.
7974         Get events from local waitpid queue.  If no interesting events was
7975         found, return to events loop.  Reregister target events in the
7976         event loop on exit.  In sync mode, no need to reblock SIGCHLD.
7977         (linux_nat_kill): Disable events on entry.
7978         (linux_nat_mourn_inferior): In sync mode, don't restore the masks
7979         here.  Detach async mode from the event loop if there are no more
7980         forks available, otherwise leave it on.
7981         (sigchld_handler): Assure this is called only in sync mode.
7982         (linux_async_permitted, linux_async_permitted_1): New globals.
7983         (set_maintenance_linux_async_permitted)
7984         (show_maintenance_linux_async_permitted): New functions.
7985         (linux_nat_is_async_p, linux_nat_can_async_p)
7986         (linux_nat_async_mask): New.
7987         (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
7988         (get_pending_events, async_sigchld_handler): New.
7989         (linux_nat_async_events): New.
7990         (async_terminal_is_ours): New global.
7991         (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
7992         (async_client_callback, async_client_context): New.
7993         (linux_nat_async_file_handler, linux_nat_async)
7994         (linux_nat_disable_async, linux_nat_enable_async): New.
7995         (linux_nat_add_target): Register linux_nat_create_inferior,
7996         linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
7997         linux_nat_async_mask, linux_nat_terminal_inferior and
7998         linux_nat_terminal_ours.
7999         (_initialize_linux_nat): Remove local action variable, and update
8000         code that used it to use sync_sigchld_action.  Add new
8001         "lin-lwp-async" debug set/show command.  Put the "lin-lwp" debug
8002         set/show command in the maintenance class.  Add new "linux-async"
8003         maintenance set/show command.  Block SIGCHLD by default.  Setup
8004         async_sichld_action, and sync_sigchld_action.  Install the default
8005         async mode.
8006         (lin_thread_get_thread_signals): Use a local sigset_t for blocking
8007         the cancel signals.
8008
8009         * linux-thread-db.c (re_check_for_thread_db): New.
8010         (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
8011         (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
8012         (thread_db_async_mask): New.
8013         (init_thread_db_ops): Register thread_db_can_async_p,
8014         thread_db_is_async_p, thread_db_async and thread_db_async_mask.
8015
8016         * remote.c (remote_async_mask_value): New.
8017         (remote_return_zero): New.
8018         (init_remote_ops): Register remote_return_zero as callbacks of
8019         to_can_async_p and to_is_async_p.
8020         (remote_can_async_p, remote_is_async_p, remote_async): Update to
8021         use remote_async_mask_value.
8022         (remote_async_mask): New.
8023         (init_remote_async_ops): Remove to_async_mask_value setting and
8024         register remote_async_mask as to_async_mask callback in
8025         remote_async_ops.
8026
8027         * Makefile.in (linux-nat.o): Update.
8028
8029 2008-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
8030
8031         * gdbthread.h (add_thread_with_info): New.
8032         * linux-thread-db.c: Add some documentation.
8033         (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
8034         (struct private_thread_info): Remove th_valid and ti_valid.
8035         Replace ti with tid.
8036         (thread_get_info_callback): Do not add TID to the new ptid.  Do
8037         not cache th or ti.
8038         (thread_db_map_id2thr, lwp_from_thread): Delete functions.
8039         (thread_from_lwp): Assert that the LWP is set.  Do not add TID to the
8040         new PTID.
8041         (attach_thread): Handle an already-existing thread.  Use
8042         add_thread_with_info.  Cache the th and tid.
8043         (detach_thread): Verify that private was set.  Remove verbose
8044         argument and printing.  Update caller.
8045         (thread_db_detach): Do not adjust inferior_ptid.
8046         (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
8047         (check_event, find_new_threads_callback): Do not add TID to the new PTID.
8048         (thread_db_wait): Do not use lwp_from_thread.
8049         (thread_db_pid_to_str): Use the cached TID.
8050         (thread_db_extra_thread_info): Check that private is set.
8051         (same_ptid_callback): Delete.
8052         (thread_db_get_thread_local_address): Do not use it or check
8053         is_thread.  Check that private is set.  Assume that the thread
8054         handle is already cached.
8055         (init_thread_db_ops): Remove to_resume and to_kill.
8056         * thread.c (add_thread_with_info): New.
8057         (add_thread): Use it.
8058         * linux-nat.c (find_thread_from_lwp): Delete.
8059         (exit_lwp): Do not use it.  Check print_thread_events.  Print before
8060         deleting the thread.
8061         (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
8062         * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
8063         * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
8064         printf_unfiltered for thread exits.
8065         * procfs.c (procfs_wait): Likewise.
8066
8067 2008-03-21  Chris Demetriou  <cgd@google.com>
8068
8069         * symtab.c (rbreak_command): Quote symbol name before passing
8070         it to break_command.
8071
8072 2008-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
8073
8074         * eval.c (evaluate_subexp_for_address): Clarify error message.
8075         Use value_must_coerce_to_target.
8076         * infcall.c (value_arg_coerce): Call value_coerce_to_target.
8077         * valops.c (value_assign): Call value_coerce_to_target when
8078         assigning to anything but internalvars.  Leave GDB-side arrays
8079         as arrays when assigning to internalvars.
8080         (value_must_coerce_to_target, value_coerce_to_target): New.
8081         (value_coerce_array, value_addr): Call value_coerce_to_target.
8082         (value_array): Create the array in GDB's memory instead of
8083         the inferior's.
8084         * value.h (value_must_coerce_to_target, value_coerce_to_target):
8085         Declare.
8086
8087 2008-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
8088
8089         * top.c (quit_confirm): Warn that we will kill the program.
8090
8091 2008-03-19  Pedro Alves  <pedro@codesourcery.com>
8092
8093         * inflow.c (terminal_ours_1): Guard access to
8094         inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
8095
8096 2008-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
8097             Jim Blandy  <jimb@codesourcery.com>
8098             Daniel Jacobowitz  <drow@false.org>
8099
8100         * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
8101         (dwarf2_read_address): Update prototype.
8102
8103         * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
8104         (signed_address_type): Likewise.
8105         (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
8106         (execute_stack_op): Update calls to unsigned_address_type,
8107         signed_address_type and dwarf2_read_address.  Fix implementation
8108         of DW_OP_deref_size.
8109
8110         * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
8111         (dwarf2_per_cu_addr_size): Likewise.
8112         (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
8113         (struct dwarf2_loclist_baton): Likewise.
8114
8115         * dwarf2loc.c (find_location_expression): Update calls to
8116         dwarf2_read_address.  Use dwarf2_per_cu_objfile and
8117         dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
8118         (locexpr_describe_location): Likewise.
8119         (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
8120         Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
8121         (dwarf2_loc_desc_needs_frame): Add PER_CU parameter.  Set ctx->addr_size
8122         to dwarf2_per_cu_addr_size (per_cu).
8123         (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
8124         (loclist_read_variable): Likewise.
8125         (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
8126
8127         * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
8128         instead of baton->objfile.
8129         (dwarf2_per_cu_obfile): New function.
8130         (dwarf2_per_cu_addr_size): Likewise.
8131
8132         * dwarf2-frame.c (struct comp_unit): Move higher.
8133         (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
8134         (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
8135         (execute_cfa_program): Add FDE parameter.  Replace EH_FRAME_P
8136         parameter by using fde->eh_frame_p.  Use read_encoded_value
8137         to implement DW_CFA_set_loc.
8138         (struct dwarf2_frame_cache): Add ADDR_SIZE member.
8139         (dwarf2_frame_cache): Set cache->addr_size.  Update calls to
8140         execute_stack_op and execute_cfa_program.
8141         (dwarf2_frame_prev_register): Update calls to execute_stack_op.
8142         (size_of_encoded_value): Remove.
8143         (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
8144         Remove call to size_of_encoded_value.  Implement DW_EH_PE_funcrel.
8145         (add_cie): Set cie->unit backlink.
8146         (decode_frame_entry_1): Set cie->addr_size.  Update calls to
8147         read_encoded_value.
8148         (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
8149
8150 2008-03-17  Markus Deuling  <deuling@de.ibm.com>
8151
8152         * i386-tdep.c (i386_print_insn): Remove unnecessary call to
8153         gdbarch_bfd_arch_info.
8154
8155 2008-03-17  Joel Brobecker  <brobecker@adacore.com>
8156
8157         * aix-thread.c (pdc_read_regs): Minor reformatting.
8158
8159 2008-03-17  Vladimir Prus  <vladimir@codesourcery.com>
8160
8161         * thread.c (print_thread_info): Don't insist
8162         on having current thread if there are no
8163         threads at all.
8164
8165 2008-03-17  Pedro Alves  <pedro@codesourcery.com>
8166
8167         * infcmd.c (attach_command_post_wait)
8168         (attach_command_continuation): New.
8169         (attach_command): Support background async execution, and async
8170         execution in synchronous mode.
8171
8172 2008-03-17  Daniel Jacobowitz  <dan@codesourcery.com>
8173
8174         * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
8175         * symmisc.c (dump_symtab_1): Likewise.
8176         * wrapper.c (gdb_value_struct_elt): Likewise.
8177
8178 2008-03-17  Pedro Alves  <pedro@codesourcery.com>
8179
8180         * linux-nat.c (linux_nat_filter_event): Fix comment typo.
8181
8182 2008-03-17  Pedro Alves  <pedro@codesourcery.com>
8183
8184         * linux-nat.c (linux_nat_filter_event): New, refactored from
8185         linux_nat_wait.
8186         (linux_nat_wait): Call linux_nat_filter_event.
8187
8188 2008-03-17  Ulrich Weigand  <uweigand@de.ibm.com>
8189
8190         * top.c (execute_command): Fix uninitialized variable error.
8191
8192 2008-03-16  Nick Hudson  <nick.hudson@dsl.pipex.com>
8193
8194         * Makefile.in (amd64nbsd-nat.o): New dependency.
8195         * amd64nbsd-nat.c: Include "nbsd-nat.h".
8196         (_initialize_amd64nbsd_nat): Update target vector to use
8197         nbsd_pid_to_exec_file.
8198         * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
8199
8200 2008-03-15  Vladimir Prus  <vladimir@codesourcery.com>
8201
8202         Remove ignoring leading exec events code.
8203         * fork-child.c (startup_inferior): Do not set
8204         inferior_ignoring_leading_exec_events.
8205         * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
8206         (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
8207         * infrun.c (inferior_ignoring_leading_exec_events): Remove.
8208         (handle_inferior_event): Remove code for ignoring leading exec
8209         events.
8210         * target.c (update_current_target): Do not inherit, or default,
8211         to_reported_exec_events_per_exec_call.
8212         (debug_to_reported_exec_events_per_exec_call): Remove.
8213         (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
8214         * target.h (target_reported_exec_events_per_exec_call): Remove.
8215         (struct target): Remove the to_reported_exec_events_per_exec_call
8216         field.
8217
8218 2008-03-15  Vladimir Prus  <vladimir@codesourcery.com>
8219
8220         Implement -thread-info.
8221         * gdbthread.h (print_thread_info): Declare.
8222
8223         * thread.c (print_thread_info): New, extracted
8224         from info_threads_command and adjusted to
8225         work for CLI and MI.
8226         (info_threads_command): Use print_thread_info.
8227         * Makefile.in: Update dependencies.
8228
8229         * mi/mi-cmds.c (mi_cmds): Specify a handler
8230         for -thread-info.
8231         * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
8232         * mi/mi-main.c (mi_cmd_thread_info): New.
8233         (mi_cmd_list_features): Include 'thread-info'.
8234
8235 2008-03-14  Kevin Buettner  <kevinb@redhat.com>
8236
8237         * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
8238         to decide whether to match instruction patterns using "sw" and "sd".
8239
8240 2008-03-14  Pedro Alves  <pedro@codesourcery.com>
8241
8242         * infcmd.c (jump_command): Postpone disabling stdin until after
8243         the possible query.
8244
8245 2008-03-14  Pedro Alves  <pedro@codesourcery.com>
8246
8247         * inflow.c (gdb_getpgrp): New.
8248         (gdb_has_a_terminal): Use get_getpgrp.
8249         (terminal_ours_1): If attach_flag is set, don't refetch
8250         inferior_process_group.
8251
8252 2008-03-14  Pedro Alves  <pedro@codesourcery.com>
8253
8254         * features/library-list.dtd: Allow "section" elements as children
8255         of "library".  Add "section" element and describe its attributes.
8256
8257         * solib-target.c (struct lm_info): Add section_bases member.
8258         (library_list_start_segment): Error out if seen a section element.
8259         (library_list_start_section): New.
8260         (library_list_end_library): New.
8261         (solib_target_free_library_list): Free section_bases.
8262         (section_attributes): New.
8263         (library_children): Make "segment" optional.  Add "section" child.
8264         (library_list_children): Register library_list_end_library.
8265         (solib_target_relocate_section_addresses): Handle section bases.
8266
8267         * NEWS: Mention new qXfer:libraries:read section offsets support.
8268
8269 2008-03-14  Vladimir Prus  <vladimir@codesourcery.com>
8270
8271         * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
8272         (make_exec_error_cleanup): Remove declarations.
8273         * utils.c (exec_error_cleanup_chain): Remove.
8274         (do_exec_error_cleanups, discard_exec_error_cleanups)
8275         (make_exec_error_cleanup): Remove.
8276         * event-loop.c (start_event_loop): Adjust call to
8277         async_enable_stdin.
8278         * event-top.c (async_enable_stdin): Remove the paramater dummy.
8279         (async_disable_stdin): Don't register async_enable_stdin via
8280         cleanup.
8281         * inf-loop.c (inferior_event_handler): Don't
8282         call do_exec_error_cleanups.  Call async_enable_stdin instead.
8283         * event-loop.c (start_event_loop): Adjust call to
8284         async_enable_stdin.
8285         * tui/tui-interp.c (tui_command_loop): Adjust call to
8286         async_enable_stdin.
8287
8288 2008-03-14  Vladimir Prus  <vladimir@codesourcery.com>
8289
8290         Async mode fixes.
8291         * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
8292         * breakpoint.c (bpstat_do_actions): In async mode,
8293         don't jump to top expecting stop_bpstat to be already
8294         updated.
8295         * event-loop.c (start_event_loop): Call async_enable_stdin
8296         on exception.
8297         * event-top.c (async_enable_stdin): Do nothing if sync_execution
8298         is not set.
8299         (command_handler): Do not setup continuation here.
8300         (command_line_handler_continuation): Move to...
8301         * top.c (command_line_handler_continuation): ... here.
8302         (execute_command): In async mode, register continuation.
8303         Don't check frame's language in running in async mode.
8304         * exceptions.c (throw_exception): Don't do exec_error_cleanups.
8305         * inf-loop.c (complete_execution): Inline into...
8306         (inferior_event_handler): ... here.  Clear target_executing before
8307         doing any cleanups.  Don't try to show prompt if the target was
8308         resumed.
8309         * infcmd.c (signal_command): Add support for async mode.
8310         (finish_command): Only add continuation if the target was
8311         successfully resumed.
8312         * remote.c (init_async_opts): Register to_get_thread_local_address
8313         handler.
8314         * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
8315         with sync_execution.
8316         * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
8317         on exception.
8318
8319 2008-03-14  Daniel Jacobowitz  <dan@codesourcery.com>
8320
8321         * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
8322         * exec.c (exec_bfd_mtime): Define.
8323         (exec_close): Clear it.
8324         (exec_file_attach): Set it.
8325         * gdbcore.h (exec_bfd_mtime): Declare.
8326         * source.c (find_source_lines): Do not use bfd_get_mtime.
8327
8328 2008-03-14  Vladimir Prus  <vladimir@codesourcery.com>
8329
8330         * top.c (simplified_command_loop): Remove.
8331
8332 2008-03-14  Vladimir Prus  <vladimir@codesourcery.com>
8333
8334         Remove unused remote.c hooks.
8335         * remote.c (deprecated_target_resume_hook)
8336         (deprecated_target_wait_loop_hook): Remove.
8337         (remote_resume): Do not call deprecated_target_resume_hook.
8338         (remote_wait): Do not call deprecated_target_wait_loop_hook.
8339         (remote_async_wait): Likewise.
8340
8341 2008-03-14  Vladimir Prus  <vladimir@codesourcery.com>
8342
8343         Implement MI notification for new threads.
8344         * doc/observer.texi (new_thread): Document.
8345         * observer.sh: Forward declare struct thread_info.
8346         * thread.c (add_thread): Notify observer.
8347
8348         * interps.h (interp_init_ftype): New parameter
8349         top_level.
8350         (interp_set): Likewise.
8351         (top_level_interpreter_data): Declare.
8352         * interps.c (interp_set): New parameter top_level.
8353         Pass it to interpreter's init function.  Remember
8354         top level interpreter.
8355         (interpreter_exec_cmd): Adjust.
8356         (top_level_interpreter_data): New.
8357         * main.c (captured_main): Pass 1 for top_level
8358         parameter of interp_set.
8359         * cli/cli-interp.c (cli_interpreter_init): New
8360         parameter top_level.
8361         * tui/tui-interp.c (tui_init): New parameter top_level.
8362
8363         * mi/mi-interp.c (mi_new_thread): New.
8364         (mi_interpreter_init): If top level, register
8365         observer for new threads.
8366
8367         * Makefile.in (mi-interp.o, thread.o): Update dependencies.
8368
8369 2008-03-14  Pedro Alves  <pedro@codesourcery.com>
8370
8371         * top.c (execute_command): Disable break and stop
8372         commands in async mode.
8373
8374 2008-03-14  Pedro Alves  <pedro@codesourcery.com>
8375
8376         revert:
8377         2008-03-14  Pedro Alves  <pedro@codesourcery.com>
8378         * inf-loop.c (inferior_event_handler): Don't include remote.h.
8379         Call target_stop in the INF_QUIT_REQ case.
8380         * Makefile.in (inf-loop.o): Update.
8381
8382 2008-03-14  Pedro Alves  <pedro@codesourcery.com>
8383
8384         * inf-loop.c (inferior_event_handler): Don't include remote.h.
8385         Call target_stop in the INF_QUIT_REQ case.
8386         * Makefile.in (inf-loop.o): Update.
8387
8388 2008-03-14  Pedro Alves  <pedro@codesourcery.com>
8389
8390         * top.c (execute_command): Enable break, info and interrupt
8391         commands in async mode.
8392
8393 2008-03-13  Vladimir Prus  <vladimir@codesourcery.com>
8394             Daniel Jacobowitz  <dan@codesourcery.com>
8395
8396         * breakpoint.h (breakpoint_restore_shadows): New
8397         declaration.
8398         * breakpoint.c (breakpoint_restore_shadows): New.
8399         (read_memory_nobpt): Delete.
8400         * gdbcore.h (read_memory_nobpt): Delete declaration.
8401         * target.c (memory_xfer_partial): Call
8402         breakpoint_restore_shadows.
8403         (restore_show_memory_breakpoints)
8404         (make_show_memory_beakpoints_cleanup): New.
8405         (show_memory_breakpoints): New.
8406         * target.h (make_show_memory_beakpoints_cleanup): Declare.
8407         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
8408         Make sure we see memory breakpoints when checking if
8409         breakpoint is still there.
8410         * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
8411         hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
8412         m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
8413         sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
8414
8415 2008-03-12  Pedro Alves  <pedro@codesourcery.com>
8416
8417         * thread.c (add_thread): Use printf_unfiltered to print.
8418
8419 2008-03-12  Joel Brobecker  <brobecker@gnat.com>
8420
8421         * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
8422         that is true only on x86-solaris and x86_64-solaris.
8423         * procfs.c: Likewise. Move procfs_find_LDT_entry up together
8424         with proc_get_LDT_entry.
8425
8426 2008-03-12  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8427
8428         * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
8429         * config.in, configure: Regenerate.
8430         * fork-child.c (fork_inferior): Call create_tty_session.
8431         * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
8432         (create_tty_session): New function.
8433         * terminal.h: Declare create_tty_session.
8434
8435 2008-03-12  Alan Modra  <amodra@bigpond.net.au>
8436
8437         PR 5900
8438         * elfread.c (elf_symtab_read): Make shndx an unsigned int.
8439         * mipsread.c: Include elf/internal.h.
8440         (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
8441         to internal range.
8442
8443 2008-03-11  Markus Deuling  <deuling@de.ibm.com>
8444
8445         * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
8446         to get at the current architecture and at the target specific vector.
8447         Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
8448         remove define of I387_ST0_REGNUM.
8449
8450         * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
8451
8452         (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
8453         get at the current architecture
8454         (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
8455         parameter.
8456
8457         * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
8458         I387_NUM_XMM_REGS and I387_MM0_REGNUM.
8459
8460         (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
8461         I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
8462         (I387_FSTAT_REGNUM): Add target specific vector as parameter.
8463
8464         (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
8465         at the target specific vector.
8466
8467         (i386_get_longjmp_target): Use get_frame_arch to get at the current
8468         architecture. Use gdbarch_tdep to get at the target specific vector.
8469
8470         (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
8471         update caller. Use gdbarch_tdep to get at the target specific vector.
8472
8473         (i386_register_to_value: Use get_frame_arch to get at the current
8474         architecture.
8475
8476         * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
8477         parameter.
8478
8479         * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
8480         I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
8481         I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
8482         FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
8483
8484         (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
8485         undef's.
8486
8487         (i387_convert_register_p, i387_register_to_value,
8488         i387_value_to_register): Update call for i386_fp_regnum_p.
8489
8490         * i387-tdep.h: Remove comment.
8491         (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
8492         (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
8493         I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
8494         I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
8495         I387_MXCSR_REGNUM): Add target specific vector as parameter.
8496
8497 2008-03-10  Daniel Jacobowitz  <dan@codesourcery.com>
8498
8499         * Makefile.in (fork-child.o): Update.
8500         * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
8501         argument.  Gather all gdbserver features together.
8502         * fork-child.c (exec_wrapper): New variable.
8503         (fork_inferior): Use it.
8504         (startup_inferior): Skip an extra trap if using "set exec-wrapper".
8505         (unset_exec_wrapper_command, _initialize_fork_child): New.
8506
8507 2008-03-10  Hidetaka Takano  <hidetaka.takano@glb.toshiba.co.jp>
8508
8509         * source.c (directory_command): Modify the determination of
8510         condition of terminal "from_tty".
8511
8512 2008-03-10  Matt Rice  <ratmice@gmail.com>
8513
8514         * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
8515
8516 2008-03-10  Hidetaka Takano  <hidetaka.takano@glb.toshiba.co.jp>
8517
8518         * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
8519         of the data passing to strtoulst function.
8520         (info_spu_signal_command): Likewise.
8521
8522 2008-03-08  Vladimir Prus  <vladimir@codesourcery.com>
8523
8524         * mi/mi-interp.c (mi_command_loop): Remove
8525         commented-out code.
8526
8527 2008-03-07  Joel Brobecker  <brobecker@adacore.com>
8528
8529         * remote.c (extended_remote_attach_1): Make local variable pid an int
8530         instead of a pid_t.
8531
8532 2008-03-07  Joel Brobecker  <brobecker@adacore.com>
8533
8534         * solib-svr4.c (svr4_same_1): New function, originally extracted
8535         from svr4_same and expanded to handle the sparc64 case.
8536         (svr4_same): Move up and reimplement using svr4_same_1.
8537         (enable_break): Use svr4_same_1 to do shared library name comparisons.
8538
8539 2008-03-07  Ramana Radhakrishnan  <ramana.r@gmail.com>
8540
8541         * MAINTAINERS: Move self to Paper trail.
8542
8543 2008-03-05  Daniel Jacobowitz  <dan@codesourcery.com>
8544
8545         * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
8546         * event-loop.c (call_async_signal_handler): New.
8547         * event-loop.h (call_async_signal_handler)
8548         (gdb_call_async_signal_handler): Declare.
8549         (mark_async_signal_handler): Add comments.
8550         * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
8551         * mingw-hdep.c (sigint_event, sigint_handler): New.
8552         (gdb_select): Use them.  Wait for the readline signal handler
8553         to finish.
8554         (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
8555         * posix-hdep.c (gdb_call_async_signal_handler): New function.
8556         * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
8557         New.
8558         (remote_fileio_ctrl_c_signal_handler): Use
8559         gdb_call_async_signal_handler.
8560         (initialize_remote_fileio): Initialize sigint_fileio_token.
8561         * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
8562         not initialize tokens here.
8563         (handle_remote_sigint_twice): Likewise.  Reinstall
8564         handle_remote_sigint.
8565         (async_remote_interrupt_twice): Just call interrupt_query.
8566         (cleanup_sigint_signal_handler): Do not delete tokens.
8567         (remote_interrupt, remote_interrupt_twice): Use
8568         gdb_call_async_signal_handler.
8569         (interrupt_query): Reinstall the default signal handler.
8570         (_initialize_remote): Initialize tokens here.
8571
8572 2008-03-04  Joel Brobecker  <brobecker@adacore.com>
8573
8574         * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
8575         features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
8576         Change the type of the lr register to code_ptr.
8577         * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
8578         features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
8579         features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
8580         features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
8581         features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
8582         features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
8583         features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
8584
8585 2008-03-03  James E. Wilson  <wilson@tuliptree.org>
8586
8587         * MAINTAINERS: Update my email address.
8588
8589 2008-03-03  Keith Seitz  <keiths@redhat.com>
8590
8591         From Dave Murphy  <davem@devkitpro.org>:
8592         * configure.ac: Set tcl configdir to win under mingw.
8593         * configure: Regenerate.
8594
8595 2008-03-03  Daniel Jacobowitz  <dan@codesourcery.com>
8596
8597         * breakpoint.c (fetch_watchpoint_value): New function.
8598         (update_watchpoint): Set and clear val_valid.  Use
8599         fetch_watchpoint_value.  Handle unreadable values on the
8600         value chain.  Correct check for user-requested array watchpoints.
8601         (breakpoint_init_inferior): Clear val_valid.
8602         (watchpoint_value_print): New function.
8603         (print_it_typical): Use it.  Do not free or clear old_val.  Print
8604         watchpoints even if old_val == NULL.
8605         (watchpoint_check): Use fetch_watchpoint_value.  Check for values
8606         becoming readable or unreadable.
8607         (watch_command_1): Use fetch_watchpoint_value.  Set val_valid.
8608         (do_enable_watchpoint): Likewise.
8609         * breakpoint.h (struct breakpoint): Update comment for val.  Add
8610         val_valid.
8611         * NEWS: Mention watchpoints on inaccessible memory.
8612
8613 2007-02-29  Daniel Jacobowitz  <dan@codesourcery.com>
8614
8615         * Makefile.in (i386-nat.o): Update.
8616         * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
8617         i386_use_watchpoints.
8618         * i386-linux-nat.c (_initialize_i386_linux_nat): Call
8619         i386_use_watchpoints.
8620         * i386-nat.c (i386_stopped_data_address): Take two arguments.
8621         (i386_stopped_by_watchpoint): Update call.
8622         (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
8623         * config/i386/nm-i386.h: Conditionalize definitions on
8624         ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
8625         (i386_use_watchpoints): Declare.
8626         (i386_stopped_data_address): Update.
8627         * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
8628         * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
8629
8630 2008-02-29  Joel Brobecker  <brobecker@adacore.com>
8631
8632         GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
8633         * version.in: Bump version to 6.8.50.20080229-cvs.
8634
8635 2008-02-28  Markus Deuling  <deuling@de.ibm.com>
8636
8637         * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
8638         properly.
8639
8640 2008-02-28  Tom Tromey  <tromey@redhat.com>
8641
8642         * infcmd.c (notice_args_read): Print result of get_inferior_args.
8643
8644 2008-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
8645
8646         * infcmd.c (kill_if_already_running): Make static.  Use
8647         target_require_runnable.
8648         * target.c (target_require_runnable): New.
8649         * target.h (target_require_runnable): Declare.
8650
8651 2008-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
8652
8653         * frame.c (reinit_frame_cache): Only annotate if frames were
8654         previously valid.
8655
8656 2008-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
8657
8658         * regformats/reg-ppc.dat: Rename "ps" to "msr".
8659         * regformats/reg-ppc64.dat: Likewise.
8660
8661 2008-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
8662
8663         * features/Makefile (%.dat): Emit xmltarget statement.
8664
8665         * regformats/regdat.sh: Support xmltarget and xmlarch statments.
8666         Generate code to set gdbserver_xmltarget in init_registers_${name}.
8667
8668         * regformats/arm-with-iwmmxt.dat: Regenerate.
8669         * regformats/mips64-linux.dat: Regenerate.
8670         * regformats/mips-linux.dat: Regenerate.
8671         * regformats/rs6000/powerpc-32.dat: Regenerate.
8672         * regformats/rs6000/powerpc-64.dat: Regenerate.
8673         * regformats/rs6000/powerpc-e500.dat: Regenerate.
8674
8675         * regformats/reg-arm.dat: Add xmlarch statement.
8676         * regformats/reg-i386.dat: Likewise.
8677         * regformats/reg-i386-linux.dat: Likewise.
8678         * regformats/reg-x86-64-linux.dat: Likewise.
8679         * regformats/reg-spu.dat: Likewise.
8680
8681 2008-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
8682
8683         * remote.c (remote_wait, remote_async_wait): Stop if we receive
8684         an error.
8685
8686 2008-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
8687
8688         * utils.c (debug_timestamp): New.
8689         (vfprintf_unfiltered): Print timestamps if requested.
8690         (show_debug_timestamp): New.
8691         (initialize_utils): Register "set debug timestamp".
8692         * NEWS: Mention "set debug timestamp".  Add GDB 6.8 section.
8693
8694 2008-02-27  Joel Brobecker  <brobecker@adacore.com>
8695
8696         * breakpoint.c (skip_prologue_sal): New function.
8697         (resolve_sal_pc): Adjust SAL past prologue if the SAL was
8698         computed from a line number.
8699
8700 2008-02-27  Joel Brobecker  <brobecker@adacore.com>
8701
8702         * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
8703         features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
8704         Set PC register type to "code_ptr".
8705         * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
8706         features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
8707         features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
8708         features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
8709         features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
8710         features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
8711         features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
8712         Regenerate.
8713
8714 2008-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
8715
8716         * regformats/regdat.sh: Rename init_registers function in
8717         generated file to init_registers_${name}.
8718
8719         * regformats/reg-crisv32.dat: Set "name" to crisv32.
8720         * regformats/reg-ppc64.dat: Set "name" to ppc64.
8721         * regformats/reg-s390x.dat: Set "name" to s390x.
8722
8723 2008-02-26  Greg Law  <glaw@undo-software.com>
8724
8725         * regcache.c (registers_changed): Call reinit_frame_cache.
8726
8727 2008-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
8728
8729         * configure.tgt (sh-*-linux*): Match sh*.  Add glibc-tdep.o.
8730         * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
8731         and svr4_fetch_objfile_link_map.
8732         * Makefile.in (sh-linux-tdep.o): Update.
8733
8734 2008-02-26  Thiago Jung Bauermann  <bauerman@br.ibm.com>
8735
8736         * amd64-tdep.c (amd64_classify): Add support for decimal float
8737         types.
8738         * i386-tdep.c (i386_return_value): Make 128-bit decimal float
8739         use the struct return convention.
8740
8741 2008-02-26  Nick Roberts  <nickrob@snap.net.nz>
8742
8743         * breakpoint.c (print_one_breakpoint_location): Revert Enb field
8744         to old format.  Discard breakpoint address if shared library is
8745         unloaded.
8746         (breakpoint_1): Adjust formatting of table header accordingly.
8747
8748 2008-02-25  Vladimir Prus  <vladimir@codesourcery.com>
8749
8750        * remote.c (remote_get_threadlist): If the response
8751        is empty, don't try to parse it.
8752
8753 2008-02-23  Vladimir Prus  <vladimir@codesourcery.com>
8754
8755         Unbreak 'target async'.
8756         * serial.c (serial_async): Set the
8757         handler function before enabling async
8758         mode.
8759
8760 2008-02-22  Daniel Jacobowitz  <dan@codesourcery.com>
8761
8762         * solib-svr4.c (enable_break): Convert r_brk to a code address.
8763
8764 2008-02-21  Pedro Alves  <pedro@codesourcery.com>
8765
8766         * remote.c (extended_remote_attach_1): Set attach_flag.
8767         (extended_remote_create_inferior_1): Clear attach_flag.
8768
8769 2008-02-20  Daniel Jacobowitz  <dan@codesourcery.com>
8770
8771         * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
8772         r_brk_offset.
8773         (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
8774         * solib-svr4.c (solib_svr4_r_brk): New.
8775         (open_symbol_file_object, svr4_current_sos): Always check the
8776         debug base.
8777         (svr4_fetch_objfile_link_map): Do not set debug_base.
8778         (enable_break): Use r_brk if it is set.
8779         (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
8780         (svr4_lp64_fetch_link_map_offsets): Likewise.
8781         * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
8782
8783 2008-02-20  Markus Deuling  <deuling@de.ibm.com>
8784             Mark Kettenis  <kettenis@gnu.org>
8785
8786         * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
8787         trad_frame_saved_reg.
8788         (trad-frame.h): New include.
8789
8790         (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
8791         instead of frame_obstack_zalloc.
8792         (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
8793
8794         * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
8795
8796 2008-02-20  Markus Deuling  <deuling@de.ibm.com>
8797
8798         * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
8799         from disassemble_info instead of gdbarch_byte_order.
8800
8801         * mips-tdep.c (gdb_print_insn_mips): Likewise.
8802         * arm-tdep.c (gdb_print_insn_arm): Likewise.
8803
8804 2008-02-20  Markus Deuling  <deuling@de.ibm.com>
8805
8806         * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
8807         gdbarch as parameter.
8808
8809         * gdbarch.{c,h}: Regenerate.
8810
8811         * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
8812         parameter.
8813         * mem-break.c (default_memory_insert_breakpoint)
8814         (default_memory_remove_breakpoint): Likewise.
8815         * target.h (default_memory_remove_breakpoint)
8816         (default_memory_insert_breakpoint): Likewise.
8817
8818         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
8819         parameter. Replace current_gdbarch by gdbarch.
8820         * m32r-tdep.c (m32r_memory_insert_breakpoint)
8821         (m32r_memory_remove_breakpoint): Likewise.
8822
8823 2008-02-19  Daniel Jacobowitz  <dan@codesourcery.com>
8824
8825         * MAINTAINERS: Add Vladimir Prus as MI maintainer.
8826
8827 2008-02-19  Joel Brobecker  <brobecker@adacore.com>
8828
8829         * NEWS: Add entry describing Add support improvements.
8830
8831 2008-02-18  Markus Deuling  <deuling@de.ibm.com>
8832
8833         * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
8834         M68K_FP0_REGNUM.
8835
8836 2008-02-18  Markus Deuling  <deuling@de.ibm.com>
8837
8838         * sentinel-frame.c (sentinel_frame_prev_register): Do not call
8839         register_offset_hack anymore.
8840
8841         * regcache.{c,h} (register_offset_hack): Remove.
8842
8843 2008-02-18  Markus Deuling  <deuling@de.ibm.com>
8844
8845         * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
8846
8847         * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
8848         current_gdbarch by gdbarch.
8849         (hppa64_hpux_find_global_pointer): Likewise.
8850         * hppa-tdep.c (hppa_find_global_pointer): Likewise.
8851         (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
8852         find_global_pointer.
8853
8854         * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
8855         parameter.
8856         * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
8857
8858         * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
8859         of gdbarch_num_regs.
8860
8861         * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
8862         replace current_gdbarch by gdbarch.
8863         (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
8864
8865 2008-02-18  Markus Deuling  <deuling@de.ibm.com>
8866
8867         * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
8868         and replace current_gdbarch by gdbarch.
8869
8870         (store_register): Update call for exec_one_dummy_insn.
8871         (fetch_register, store_register): Update call of regmap.
8872
8873         * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
8874         parameter and replace current_gdbarch by gdbarch.
8875
8876         (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
8877         the current architecture. Update call for getregs_supplies and
8878         getfpregs_supplies.
8879         (ppcnbsd_fetch_inferior_registers): Likewise.
8880
8881         * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
8882         replace current_gdbarch by gdbarch.
8883         (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
8884         get_regcache_arch to get at the current architecture. Update call for
8885         getfpregs_supplies.
8886
8887 2008-02-18  Markus Deuling  <deuling@de.ibm.com>
8888
8889         * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
8890         variables.
8891
8892 2008-02-15  Markus Deuling  <deuling@de.ibm.com>
8893
8894         * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
8895
8896 2008-02-14  Vladimir Prus  <vladimir@codesourcery.com>
8897
8898         * NEWS: Mention pending breakpints in MI.
8899
8900 2008-02-14  Markus Deuling  <deuling@de.ibm.com>
8901
8902         * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
8903
8904 2008-02-13  Markus Deuling  <deuling@de.ibm.com>
8905
8906         Add script to build and test GDB using enable-targets=all.
8907
8908         * gdb_buildall.sh: New file.
8909
8910 2008-02-11  Maxim Grigoriev  <maxim2405@gmail.com>
8911
8912         * NEWS (New native configurations): Xtensa GNU/Linux.
8913         (New targets): Xtensa GNU/Linux.
8914         * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
8915         xtensa-linux-tdep.o
8916         (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
8917         (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
8918         * configure.tgt (xtensa*-*-linux*): New entry.
8919         * xtensa-config.c (xtensa_tdep): New variable.
8920         (xtensa_config_byte_order, xtensa_config_tdep): Removed.
8921         (rmap): Change format based on new macro XTREG.
8922         (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
8923         * xtensa-linux-nat.c: New.
8924         * xtensa-linux-tdep.c: New.
8925         * xtensa-xtregs.c: New.
8926         * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
8927         (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
8928         (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
8929         (xtensa_register_t): New field coprocessor.
8930         (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
8931         * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
8932         (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
8933         Update to handle privileged registers.
8934         (xtensa_supply_gregset) Remove exccause and excvaddr registers.
8935         (xtensa_push_dummy_call): Set windowstart register correctly.
8936         (call0_analyze_prologue): Initialize xtensa_default_isa.
8937         (xtensa_derive_tdep): New.
8938         (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
8939         xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
8940         Call xtensa_derive_tdep().
8941         * config/xtensa/linux.mh: New.
8942         * regformats/reg-xtensa.dat: New.
8943
8944 2008-02-09  Aleksandar Ristovski  <aristovski@qnx.com>  (tiny change)
8945
8946         * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
8947         (filenames.h): New include.
8948         * Makefile.in (corelow.o): Add dependency for filenames.h.
8949
8950 2008-02-08  Doug Evans  <dje@google.com>
8951
8952         * source.c (find_and_open_source): Always rewrite absolute filenames.
8953
8954 2008-02-07  Doug Evans  <dje@google.com>
8955
8956         * breakpoint.c: #include "hashtab.h".
8957         (ambiguous_names_p): New fn.
8958         (update_breakpoint_locations): When restoring bp enable status, don't
8959         compare function names if any functions have same name.
8960         * Makefile.in (breakpoint.o): Add hashtab.h dependency.
8961
8962 2008-02-07  Joel Brobecker  <brobecker@adacore.com>
8963
8964         * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
8965         instead of just a VEC*. Update use of SV.
8966         (ada_make_symbol_completion_list): Update symbol_completion_add calls.
8967
8968 2007-02-07  Joel Brobecker  <brobecker@adacore.com>
8969
8970         * NEWS: Put all new commands since gdb-6.7 together.
8971
8972 2007-02-07  Joel Brobecker  <brobecker@adacore.com>
8973
8974         * ada-lang.c: #include "vec.h".
8975         (struct string_vector, new_string_vector, string_vector_append):
8976         Delete.
8977         (char_ptr): New typedef.
8978         (DEF_VEC_P (char_ptr)): New VEC type.
8979         (symbol_completion_add): Update profile to take the new VEC type
8980         instead of the old string_vector structure. Update code accordingly.
8981         (ada_make_symbol_completion_list): Use the new VEC type instead of
8982         the old string_vector structure, and update the code accordingly.
8983         * Makefile.in (ada-lang.o): Add dependency on vec.h.
8984
8985 2008-02-06  Pierre Muller  <muller@ics.u-strasbg.fr>
8986
8987         * p-exp.y: Set current_type in missing places.
8988         (leftdiv_is_integer): New static variable.
8989         Typecast right operand of BINOP_DIV to long_double if both operands
8990         are integers.
8991
8992 2008-02-06  Maciej W. Rozycki  <macro@mips.com>
8993
8994         * remote-mips.c (set_breakpoint): Rename to...
8995         (mips_set_breakpoint): ... this.
8996         (clear_breakpoint): Rename to...
8997         (mips_clear_breakpoint): ... this.
8998         (common_breakpoint): Rename to...
8999         (mips_common_breakpoint): ... this.
9000         (check_lsi_error): Rename to...
9001         (mips_check_lsi_error): ... this.
9002
9003 2007-02-05  Joel Brobecker  <brobecker@adacore.com>
9004
9005         * language.h (struct language_defn): Add new field
9006         la_make_symbol_completion_list.
9007         * symtab.c (default_make_symbol_completion_list): Renames
9008         make_symbol_completion_list.
9009         (make_symbol_completion_list): New function.
9010         * symtab.h (default_make_symbol_completion_list): Add declaration.
9011         * langauge.c (unknown_language): Set la_make_symbol_completion_list.
9012         (auto_language, local_language): Likewise.
9013         * objc-lang.c (objc_language_defn): Likewise.
9014         * scm-lang.c (scm_language_defn): Likewise.
9015         * m2-lang.c (m2_language_defn): Likewise.
9016         * f-lang.c (f_language_defn): Likewise.
9017         * jv-lang.c (java_language_defn): Likewise.
9018         * p-lang.c (pascal_language_defn): Likewise.
9019         * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
9020         (minimal_language_defn): Likewise.
9021         * ada-lang.c (struct string_vector): New structure.
9022         (new_string_vector, string_vector_append, ada_unqualified_name)
9023         (add_angle_brackets, symbol_completion_match, symbol_completion_add)
9024         (ada_make_symbol_completion_list): New functions.
9025         (ada_language_defn): Set la_make_symbol_completion_list.
9026         * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
9027         this function is static.
9028
9029 2008-02-05  Kevin Buettner  <kevinb@redhat.com>
9030
9031         * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
9032         to account for call site optimizations.
9033
9034 2008-02-05  Andrzej Zaborowski  <balrogg@gmail.com>
9035
9036         * tracepoint.c (read_actions): Handle end-of-text indicator
9037         in action list properly.  (Committed by Jim Blandy)
9038
9039 2008-02-05  Jim Blandy  <jimb@red-bean.com>
9040
9041         * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
9042         pseudoregister, not an internal error.
9043         Reported by: Andrzej Zaborowski
9044
9045 2008-02-04  Vladimir Prus  <vladimir@codesourcery.com>
9046
9047         * varobj.c (c_value_of_variable): Use xstrdup.
9048
9049 2008-02-04  Vladimir Prus  <vladimir@codesourcery.com>
9050
9051         Update stored rendition of varobj value when format changes.
9052         * varobj.c (varobj_set_display_format): Recomputed
9053         print_value.
9054         (c_value_of_variable): Return print_value.
9055
9056 2008-02-03  Doug Evans  <dje@google.com>
9057
9058         * eval.c (evaluate_subexp_standard): Fix type of result of mixed
9059         integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
9060         * valops.c (value_one): New function.
9061         * value.h (value_one): Declare.
9062
9063         Fix argument promotion for binary arithmetic ops for C.
9064         * valarith.c (unop_result_type): New fn.
9065         (binop_result_type): New fn.
9066         (value_binop): Move result type computation to binop_result_type.
9067         (value_pos, value_neg, value_complement): Move result type
9068         computation to unop_result_type.
9069
9070         PR 2384
9071         * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
9072         Return basetype, fieldno if found.  All callers updated.
9073         Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
9074         objfile.
9075         * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
9076         * symfile.h (fill_in_vptr_fieldno): Delete.
9077
9078 2008-02-02  Doug Evans  <dje@google.com>
9079
9080         * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
9081
9082         * typeprint.c (*): Whitespace cleanup.
9083
9084 2008-02-02  Mark Kettenis  <kettenis@gnu.org>
9085             Luis Machado  <luisgpm@br.ibm.com>
9086             Thiago Jung Bauermann  <bauerman@br.ibm.com>
9087
9088         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
9089         don't fit into registerson the stack the way GCC does.
9090
9091 2008-02-01  Joel Brobecker  <brobecker@adacore.com>
9092
9093         * symtab.c (symbol_set_names): Do not add an entry in the demangling
9094         hash table for Ada symbols. Just store the linkage name as is,
9095         and leave the demangled_name as NULL.
9096
9097 2007-02-01  Joel Brobecker  <brobecker@adacore.com>
9098
9099         * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
9100         in the global scope.
9101         (new_symbol): Likewise.
9102
9103 2008-02-01  Vladimir Prus  <vladimir@codesourcery.com>
9104
9105         * breakpoint.c (break_command_1): Return void.
9106         (break_command_really): Return void.  Rethrow
9107         exceptions instead of returning.
9108         (gdb_breakpoint): Remove the error_message parameter.
9109         Return void.  Rename to set_breakpoint.
9110         * gdb.h (gdb_breakpoint): Rename and move to...
9111         * breakpoint.h (set_breakpoint): ...here.
9112         * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
9113         event hooks even if exception is thrown.  Adjust to
9114         gdb_breakpoint interface changes.
9115
9116
9117 2008-02-01  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9118
9119         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
9120         float in both first and second word in the doubleword, to support
9121         old and new ABIs.
9122
9123 2008-02-01  Vladimir Prus  <vladimir@codesourcery.com>
9124
9125         Properly rethrow exception.  This fixes errors
9126         about non-existent functions for -break-insert.
9127         * breakpoint.c (break_command_really): Use throw_exception
9128         for rethrowing.  If rethrowing, don't print the exception.
9129
9130 2008-01-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9131
9132         * NEWS: Mention Decimal Floating Point support.
9133
9134 2008-01-31  Joel Brobecker  <brobecker@adacore.com>
9135
9136         * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
9137         value type to builtin_type_void_func_ptr.
9138
9139 2008-01-31  Andreas Krebbel  <krebbel1@de.ibm.com>
9140
9141         * s390-tdep.c (is_float_singleton, is_float_like,
9142         alignment_of, s390_return_value): Make checks for
9143         TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
9144
9145 2008-01-31  Luis Machado  <luisgpm@br.ibm.com>
9146             Thiago Jung Bauermann  <bauerman@br.ibm.com>
9147
9148         * infcmd.c (default_print_registers_info): Also print hex
9149         raw contents for TYPE_CODE_DECFLOAT registers.
9150         * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
9151         * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
9152         (rs6000_register_name): Add support for DFP pseudo-registers.
9153         (rs6000_pseudo_register_type): Likewise.
9154         rs6000_pseudo_register_reggroup_p): Likewise.
9155         (ppc_pseudo_register_read): New function.
9156         (ppc_pseudo_register_write): Likewise.
9157         (rs6000_pseudo_register_read): Likewise.
9158         (rs6000_pseudo_register_write): Likewise.
9159         (e500_pseudo_register_read): Move checks to
9160         rs6000_pseudo_register_read.
9161         (e500_pseudo_register_write): Move checks to
9162         rs6000_pseudo_register_write.
9163         (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum.  Install
9164         rs6000_pseudo_register_read and rs6000_pseudo_register_write
9165         in gdbarch if SPE or DFP is available.  Adjust gdbarch's
9166         num_pseudo_regs to account for DFP pseudo regs.
9167
9168 2008-01-31  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9169
9170         * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
9171         * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
9172         (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
9173         rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
9174         e500_pseudo_register_read, e500_pseudo_register_write): Use
9175         IS_SPE_PSEUDOREG macro.
9176         (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
9177         (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
9178         Remove initialization of tdep->ppc_ev31_regnum.
9179
9180 2008-01-08  Paul Hilfinger  <hilfinger@adacore.com>
9181
9182         * printcmd.c (print_formatted): Handle references as for unformatted
9183         prints.
9184
9185 2008-01-30  Joel Brobecker  <brobecker@adacore.com>
9186
9187         * eval.c (evaluate_subexp_standard): Add handling of user
9188         registers when in EVAL_AVOID_SIDE_EFFECTS mode.
9189
9190 2008-01-30  Pierre Muller  <muller@ics.u-strasbg.fr>
9191
9192         * eval.c (evaluate_subexp_standard): Support
9193         BINOP_INTDIV opcode.
9194
9195 2008-01-30  Paul N. Hilfinger  <hilfinger@adacore.com>
9196
9197         * valarith.c (value_binop): Add floating-point BINOP_MIN and
9198         BINOP_MAX cases.
9199         For BINOP_EXP, use length and signedness of left operand only for
9200         result, as for shifts.
9201         For integral operands to BINOP_EXP, use new integer_pow and
9202         uinteger_pow functions so as to get full range of results.
9203         (integer_pow): New function.
9204         (uinteger_pow): New function.
9205
9206 2008-01-30  Vladimir Prus  <vladimir@codesourcery.com>
9207
9208         Use vector for varobj_list_children interface.
9209         * gdb/varobj.c (varobj_list_children): Return vector
9210         of varobjs.
9211         * gdb/varobj.h (varobj_list_children): Adjust
9212         prototype.
9213         (varobj_p): Declare.  Declare vector thereof.
9214         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
9215         for varobj_list_children change.
9216         * Makefile.in (varobj_h): Update dependencies.
9217
9218 2008-01-30  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9219
9220         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
9221         TYPE_CODE_DECFLOAT arguments.
9222         (ppc64_sysv_abi_push_dummy_call) Likewise.
9223         (get_decimal_float_return_value): New function.
9224         (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
9225         values by calling get_decimal_float_return_value.
9226         (ppc64_sysv_abi_return_value): Likewise.
9227
9228 2008-01-30  Nick Roberts  <nickrob@snap.net.nz>
9229
9230         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):  Add field
9231         for preprocessor macro information.  Formatting changes.
9232
9233 2008-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
9234
9235         * remote.c (struct remote_state): Add cached_wait_status.
9236         (remote_exec_file): New variable.
9237         (PACKET_vAttach, PACKET_vRun): New constants.
9238         (extended_remote_restart): Do not query for status.
9239         (struct start_remote_args): New.
9240         (remote_start_remote): Take it as a second argument.  Check
9241         whether the target is running.  Issue an error for non-running
9242         non-extended targets.  Cache the wait status.  Set inferior_ptid
9243         here.
9244         (remote_open_1): Prompt to disconnect non-running targets.  Make
9245         sure the target is marked running.  Do not set inferior_ptid here.
9246         Update call to remote_start_remote.  Do not call remote_check_symbols
9247         if the target is not running.
9248         (remote_detach_1): Rename from remote_detach.  Take an EXTENDED
9249         argument.  Handle a non-running target.
9250         (remote_detach): Use it.
9251         (extended_remote_detach): New.
9252         (remote_disconnect): Fix typo.  Use remoute_mourn_1.
9253         (extended_remote_attach_1, extended_remote_attach)
9254         (extended_async_remote_attach): New.
9255         (remote_vcont_resume): Remove unused variable.
9256         (remote_wait, remote_async_wait): Use any cached wait status.
9257         (putpkt_binary, getpkt): Clear any cached wait status.
9258         (extended_remoute_mourn_1): New.
9259         (extended_remote_mourn): Use it.
9260         (extended_async_remote_mourn, extended_remote_run): New.
9261         (extended_remote_create_inferior_1): New.
9262         (extended_remote_create_inferior): Use it.
9263         (extended_remote_async_create_inferior): Likewise.
9264         (remote_xfer_partial): Skip for non-executing targets.
9265         (init_extended_remote_ops): Set to_detach and to_attach.
9266         (init_extended_async_remote_ops): Likewise.  Use
9267         extended_async_remote_mourn.
9268         (_initialize_remote): Register vAttach, vRun, and
9269         set remote exec-file.
9270         * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
9271
9272 2008-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
9273
9274         * Makefile.in (symfile.o): Update.
9275         * NEWS: Mention exec tracing support.
9276         * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
9277         exec events.
9278         * infcmd.c (kill_if_already_running, detach_command)
9279         (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
9280         * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
9281         (follow_exec): Do not check may_follow_exec.  Do not mourn and push
9282         targets.  Apply the sysroot path to the loaded executable.  Use
9283         no_shared_libraries.
9284         * linux-nat.c (linux_child_follow_fork): Print fork following
9285         messages if verbose.
9286         (kill_wait_callback): Kill again before waiting a second time.
9287         * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
9288         no_shared_libraries.
9289
9290 2008-01-29  Joel Brobecker  <brobecker@adacore.com>
9291
9292         * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
9293
9294 2008-01-29  Joel Brobecker  <brobecker@adacore.com>
9295
9296         * nto-tdep.h: Remove #include "defs.h".
9297         * nto-tdep.c: Add #include "defs.h".
9298         * Makefile.in (nto_tdep_h): Update dependencies.
9299         (nto-tdep.o): Likewise.
9300
9301 2008-01-29  Joel Brobecker  <brobecker@adacore.com>
9302
9303         * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
9304         and use it.
9305         (proceed, start_remote): Update call to wait_for_inferior.
9306         * inferior.h (wait_for_inferior): Update declaration.
9307         * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
9308         solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
9309         * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
9310         TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
9311
9312 2008-01-29  Aleksandar Ristovski  <aristovski@qnx.com>
9313
9314         * varobj (adjust_value_for_child_access): Added checking for
9315         returned value from gdb_value_ind.
9316         (c_describe_child): Likewise.
9317         (cplus_describe_child): Fixed a typo.
9318
9319 2008-01-29  Jim Blandy  <jimb@red-bean.com>
9320
9321         * MAINTAINERS: Update my info.
9322
9323 2008-01-29  Vladimir Prus  <vladimir@codesourcery.com>
9324
9325         Use multiple locations for hardware watchpoints.
9326         This eliminates the need to traverse value chain, doing
9327         various checks, in three different places.
9328
9329         * breakpoint.h (struct bp_location): New fields
9330         lengths and watchpoint_type.
9331         (struct breakpoint): Remove the val_chain field.
9332         * breakpoint.c (is_hardware_watchpoint): New.
9333         (free_valchain): Remove.
9334         (update_watchpoint): New.
9335         (insert_bp_location): For hardware watchpoint, just
9336         directly insert it.
9337         (insert_breakpoints): Call update_watchpoint_locations
9338         on all watchpoints.  If we have failed to insert
9339         any location of a hardware watchpoint, remove all inserted
9340         locations.
9341         (remove_breakpoint): For hardware watchpoints, directly
9342         remove location.
9343         (watchpoints_triggered): Iterate over locations.
9344         (bpstat_stop_status): Use only first location of
9345         a resource watchpoint.
9346         (delete_breakpoint): Don't call free_valchain.
9347         (print_one_breakpoint): Don't print all
9348         locations for watchpoints.
9349         (breakpoint_re_set_one): Use update_watchpoint for
9350         watchpoints.
9351
9352 2008-01-29  Vladimir Prus  <vladimir@codesourcery.com>
9353
9354         Don't reset watchpoint block on solib load.
9355
9356         * breakpoint.c (insert_bp_location): For watchpoints,
9357         recompute condition.
9358         (breakpoint_re_set_one): Instead of recomputing value
9359         and condition for watchpoints, just reset value and
9360         let insert_breakpoints/insert_bp_location recompute it.
9361         Don't do anything about disabled watchpoint.
9362
9363 2008-01-29  Pierre Muller  <muller@ics.u-strasbg.fr>
9364
9365         * valarith.c (value_binop): Handle unsigned integer
9366         division by zero.
9367
9368 2008-01-28  Kevin Buettner  <kevinb@redhat.com>
9369
9370         * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
9371         instruction pattern that appears frequently in position
9372         independent code.  Fix bug in code which looks for "fmov" and
9373         backtracks if no "fmov" is found.
9374
9375 2008-01-28  Doug Evans  <dje@google.com>
9376
9377         * dbxread.c (read_dbx_symtab): Fix indentation.
9378         Reformat comments to 80 columns.
9379         Move local var def closer to only use.
9380
9381 2008-01-28  Daniel Jacobowitz  <dan@codesourcery.com>
9382
9383         * fork-child.c (SHELL_FILE): Remove #ifndef.
9384         (fork_inferior): Remove SHELL_COMMAND_CONCAT.
9385
9386 2008-01-25  Pierre Muller  <muller@ics.u-strasbg.fr>
9387
9388         * i386-tdep.c (i386_skip_noop): New function.
9389         (i386_analyze_prologue): Call i386_skip_noop function.
9390
9391 2008-01-24  Michael Snyder  <msnyder@specifix.com>
9392
9393         * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
9394         * win32-nat.c (win32_xfer_partial): Ditto.
9395         * target.c (default_xfer_partial): Minor whitespace adjustment.
9396
9397 2008-01-24  Pedro Alves  <pedro@codesourcery.com>
9398
9399         * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
9400         strip bit 1 even if pc doesn't point to thumb code.
9401
9402 2008-01-23  Daniel Jacobowitz  <dan@codesourcery.com>
9403
9404         * remote.c (remote_wait): Handle SIGINT between packets.
9405         (remote_async_wait): Likewise.
9406
9407 2008-01-23  Vladimir Prus  <vladimir@codesourcery.com>
9408             Chris Demetriou  <cgd@google.com>
9409
9410         * thread.c (add_thread_silent): Renamed
9411         from add_thread.
9412         (print_thread_events): New variable definition.
9413         (show_print_thread_events): New function.
9414         (_initialize_thread): Add "set print thread-events" and
9415         "show print thread-events" commands.
9416         (add_thread): Announce new thread.
9417         * gdbthread.h (add_thread_silent): Declare.
9418         (print_thread_events): New variable declaration.
9419         * inf-ttrace.c (inf_ttrace_wait): Don't
9420         inform about new thread, as add_thread is always
9421         called too, and will take care of that.
9422         * infrun.c (handle_inferior_event): Likewise.
9423         * procfs.c (procfs_wait): Likewise.
9424         * remote.c (remote_currthread): Likewise.
9425         * sol-thread.c (sol_thread_wait): Likewise.
9426         * win32-nat.c (get_win32_debug_event): Likewise.
9427         * linux-thread-db.c (attach_thread): Likewise.
9428         Remove the verbose parameter.
9429         (check_event): Make detach_thread be verbose
9430         only if print_thread_events is set.
9431         * linux-nat.c (lin_lwp_attach_lwp): Don't inform
9432         about new thread.  This is called only from
9433         linux-thread-db.c:attach_thread, which will take care.
9434         Remove the verbose parameter.
9435         * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
9436
9437 2008-01-23  Nick Roberts  <nickrob@snap.net.nz>
9438
9439         * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
9440
9441 2008-01-22  Vladimir Prus  <vladimir@codesourcery.com>
9442
9443         * breakpoint.c (break_command_really): New parameter
9444         ignore_count.
9445         (break_command_1): Pass 0 as
9446         ignore_count to break_command_really.
9447         (gdb_breakpoint): Pass ignore_count to
9448         break_command_really.
9449
9450 2008-01-21  Kevin Buettner  <kevinb@redhat.com>
9451
9452         * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
9453         sigcontext struct via pointer.
9454         (struct sigframe comment): Update to show new field `psc'.
9455
9456 2008-01-21  Vladimir Prus  <vladimir@codesourcery.com>
9457
9458         * infrun.c (handle_inferior_event): If
9459         we failed to remove breakpoints, error,
9460         don't try to increment PC by hand.
9461
9462 2008-01-18  Nick Hudson  <nick.hudson@dsl.pipex.com>
9463
9464         Add NetBSD/hppa target and host support.
9465
9466         * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
9467         (hppabsd_gregset): Move to ...
9468         (hppabsd_regset_from_core_section): Rename
9469         hppaobsd_regset_from_core_section and move to ...
9470         (hppabsd_find_global_pointer): Update comment.
9471         (hppabsd_init_abi): Make global. Do not register
9472         hppabsd_regset_from_core_section.
9473         (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
9474         move to ...
9475         (_initialize_hppabsd_tdep): Move to ...
9476         * hppaobsd-tdep.c: ... here. New file.
9477         * hppnbsd-tdep.c: New file.
9478         * hppnbsd-nat.c: New file.
9479         * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
9480         (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
9481         (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
9482         (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
9483         * configure.host (hppa*-*-netbsd*): New entry.
9484         * configure.tgt (hppa*-*-netbsd*): New entry.
9485         (hppa*-*-openbsd*): Update.
9486         * NEWS (New native configuration): Mention NetBSD/hppa.
9487         (New targets): Mention NetBSD/hppa.
9488
9489 2008-01-18  Markus Deuling  <deuling@de.ibm.com>
9490
9491         * gdbarch.sh (function_list): Add new property bits_big_endian to
9492         gdbarch structure.
9493         * gdbarch.{c,h}: Regenerate.
9494
9495         * value.c (struct value): Replace BITS_BIG_ENDIAN by
9496         gdbarch_bits_big_endian (comment).
9497         (unpack_field_as_long, modify_field): Likewise.
9498         * value.h: Likewise (comment).
9499         * valops.c (value_slice): Likewise.
9500         * valarith.c (value_subscript, value_bit_index): Likewise.
9501         * gdbtypes.h (field): Likewise (comment).
9502         * eval.c (evaluate_subexp_standard): Likewise.
9503         * dwarf2read.c (dwarf2_add_field): Likewise.
9504         * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
9505         (move_bits, ada_value_assign, value_assign_to_component): Likewise.
9506
9507         * defs.h (BITS_BIG_ENDIAN): Remove.
9508
9509 2008-01-18  Markus Deuling  <deuling@de.ibm.com>
9510
9511         * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
9512         function calls.
9513         * m2-exp.y (yylex): Likewise.
9514         * objc-exp.y (yylex): Likewise.
9515
9516         * defs.h (DEPRECATED_STREQN): Remove.
9517
9518 2008-01-17  H.J. Lu  <hjl.tools@gmail.com>
9519
9520         * MAINTAINERS: Update my email address.
9521
9522 2008-01-17  Jim Blandy  <jimb@codesourcery.com>
9523
9524         * README: Mention gdbserver/README.
9525
9526 2008-01-17  Pierre Muller  <muller@ics.u-strasbg.fr>
9527
9528         * valarith.c (value_binop): Handle BINOP_INTDIV
9529         for unsigned and signed integers.
9530
9531 2008-01-17  Ulrich Weigand  <uweigand@de.ibm.com>
9532
9533         * s390-tdep.c (s390_gdbarch_init): Set default long double
9534         type to 128-bit IEEE quad.
9535
9536 2008-01-17  Joel Brobecker  <brobecker@adacore.com>
9537
9538         * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
9539
9540 2008-01-16  Mark Kettenis  <kettenis@gnu.org>
9541
9542         * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
9543
9544         * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
9545         * value.c: All callers changed.
9546
9547 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
9548
9549         * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
9550         DEPRECATED_STREQ by its expression.
9551         * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
9552         * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
9553         (scan_xcoff_symtab): Likewise.
9554         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
9555         * f-lang.c (find_common_for_function): Likewise.
9556         * objc-exp.y (parse_number): Likewise.
9557
9558         * defs.h (DEPRECATED_STREQ): Remove.
9559
9560 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
9561
9562         * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
9563         * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
9564         get_frame_arch to get at the current_architecture. Update AM33_MODE
9565         call.
9566         (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
9567         (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
9568         architecture.
9569         (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
9570
9571 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
9572
9573         * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
9574         parameter.
9575         * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
9576
9577         (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
9578         current_gdbarch by gdbarch. Update caller.
9579
9580         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
9581         (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
9582         the current architecture. Update calls of
9583         amd64_native_gregset_supplies_p.
9584         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
9585         (amd64bsd_store_inferior_registers): Likewise.
9586
9587 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
9588
9589         * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
9590         Replace current_gdbarch by gdbarch. Update caller.
9591
9592 2008-01-16  Markus Deuling  <deuling@de.ibm.com>
9593
9594         * dbxread.c (repeated_header_complaint, dbx_symfile_init)
9595         (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
9596         (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
9597         (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
9598         (stabsect_build_psymtabs): Fix indentation.
9599
9600 2008-01-15  Michael Snyder  <msnyder@specifix.com>
9601
9602         * corelow.c (core_xfer_partial): Comment, cut/paste error.
9603
9604 2008-01-14  Pierre Muller  <muller@ics.u-strasbg.fr>
9605
9606         * win32-nat.c (win32_create_inferior): Restore code calling
9607         CloseHandle on ProcessInformation structure.
9608
9609 2008-01-13  Nick Hudson  <nick.hudson@dsl.pipex.com>
9610
9611         * configure.ac: Check for void * as 3 argument of ptrace.
9612         * configure: regenerate.
9613
9614 2008-01-11  Markus Deuling  <deuling@de.ibm.com>
9615
9616         * alpha-tdep.c (alpha_heuristic_proc_start)
9617         (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
9618         current_gdbarch by gdbarch.
9619
9620         (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
9621         current architecture by frame_info. Update alpha_heuristic_proc_start
9622         call.
9623
9624         (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
9625         get_frame_arch to get at the current architecture by frame_info. Update
9626         alpha_sigtramp_register_address call.
9627
9628         * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
9629         current_gdbarch by gdbarch. Update caller.
9630         (convert_to_extended, convert_from_extended): Add endianess parameter
9631         for comparison. Update caller.
9632         (arm_extract_return_value, arm_store_return_value): Use
9633         get_regcache_arch to get at the current architecture.
9634
9635         * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
9636         current_gdbarch by gdbarch. Update caller.
9637         (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
9638         gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
9639
9640         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
9641         gdbarch as parameter. Update caller.
9642         (h8300_init_frame_cache): Add gdbarch as parameter. Replace
9643         current_gdbarch by gdbarch. Update caller.
9644
9645         * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
9646         update caller. Replace current_gdbarch by gdbarch.
9647
9648         * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
9649         the current architecture. Replace current_gdbarch by gdbarch.
9650         * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
9651         (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
9652         expression. Add gdbarch as parameter and replace current_gdbarch with
9653         it. Update caller.
9654         (M6811_TDEP): Remove.
9655         (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
9656         architecture.
9657         (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
9658         current_gdbarch by gdbarch. Update caller.
9659
9660         * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
9661         update caller.
9662         (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
9663         by gdbarch.
9664
9665         * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
9666         caller. Relace current_gdbarch by gdbarch.
9667         (altivec_register_p, spe_register_p): Likewise.
9668         * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
9669         parameter.
9670         * ppc-linux-nat.c (fetch_register, store_register): Update caller of
9671         altivec_register_p and spe_register_p.
9672
9673         * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
9674         caller. Replace current_gdbarch by gdbarch.
9675         (score_analyze_prologue): use get_frame_arch to get at the current
9676         architecture.
9677
9678         * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
9679         * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
9680         current_gdbarch by gdbarch. Update caller.
9681         (sparc_frame_cache): Use get_frame_arch to get at the current
9682         architecture.
9683         * sparce64-tdep.c (sparc64_skip_prologue): Update call of
9684         sparc_analyze_prologue.
9685
9686         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
9687         parameter.
9688
9689 2008-01-11  Markus Deuling  <deuling@de.ibm.com>
9690
9691         * exec.c: #include "arch-utils.h"
9692          (print_section_info): Use gdbarch_from_bfd to get at the
9693         current architecture. Replace current_gdbarch. Fix indention. Replace
9694         deprecated_print_address_numeric by paddress.
9695         * Makefile.in (exec.o) Add dependency to arch-utils.h.
9696
9697         * valprint.c (val_print_string): Replace
9698         deprecated_print_address_numeric.
9699         * tracepoint.c (trace_mention, scope_info): Likewise.
9700         * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
9701         (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
9702         (maintenance_check_symtabs): Likewise.
9703         * symfile.c (list_overlays_command): Likewise.
9704         * stack.c (frame_info, print_block_frame_labels): Likewise.
9705         * printcmd.c (print_address, print_address_demangle)
9706         (address_info): Likewise.
9707         * corefile.c (memory_error): Likewise.
9708         * infcmd.c (jump_command): Likewise.
9709         * breakpoint.c (insert_bp_location, describe_other_breakpoints)
9710         (mention, delete_breakpoint): Likewise.
9711         * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
9712         * dwarf2read.c (dump_die): Likewise.
9713         * ada-valprint.c (ada_val_print_1): Likewise.
9714         * f-valprint.c (f_val_print): Likewise.
9715         * linux-fork.c (info_forks_command): Likewise.
9716         * m32r-com.c (m32r_load_section, m32r_load)
9717         (m32r_upload_command): Likewise.
9718
9719         * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
9720
9721 2008-01-11  Markus Deuling  <deuling@de.ibm.com>
9722
9723         * gdbarch.sh (skip_prologue): Add gdbarch
9724         as parameter.
9725         * gdbarch.{c,h}: Regenerate.
9726
9727         * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
9728         * amd64-tdep.c (amd64_skip_prologue): Likewise.
9729         * avr-tdep.c (avr_skip_prologue): Likewise.
9730         * cris-tdep.c (cris_skip_prologue): Likewise.
9731         * frv-tdep.c (frv_skip_prologue): Likewise.
9732         * h8300-tdep.c (h8300_skip_prologue): Likewise.
9733         * hppa-tdep.c (hppa_skip_prologue): Likewise.
9734         * i386-tdep.c (i386_skip_prologue): Likewise.
9735         * ia64-tdep.c (ia64_skip_prologue): Likewise.
9736         * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
9737         * m32r-tdep.c (m32r_skip_prologue): Likewise.
9738         * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
9739         * m68k-tdep.c (m68k_skip_prologue): Likewise.
9740         * m88k-tdep.c (m88k_skip_prologue): Likewise.
9741         * mep-tdep.c (mep_skip_prologue): Likewise.
9742         * mips-tdep.c (mips_skip_prologue): Likewise.
9743         * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
9744         * mt-tdep.c (mt_skip_prologue): Likewise.
9745         * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
9746         * score-tdep.c (score_skip_prologue): Likewise.
9747         * sh64-tdep.c (sh64_skip_prologue): Likewise.
9748         * sh-tdep.c (sh_skip_prologue): Likewise.
9749         * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
9750         * sparc-tdep.c (sparc32_skip_prologue): Likewise.
9751         * spu-tdep.c (spu_skip_prologue): Likewise.
9752         * v850-tdep.c (v850_skip_prologue): Likewise.
9753         * vax-tdep.c (vax_skip_prologue): Likewise.
9754         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
9755         * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
9756
9757         * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
9758         current_gdbarch by gdbarch.
9759         * m32c-tdep.c (m32c_skip_prologue): Likewise.
9760         * s390-tdep.c (s390_skip_prologue): Likewise.
9761
9762 2008-01-10  Doug Evans  <dje@google.com>
9763
9764         * defs.h (struct continuation_arg): Fix typo in comment.
9765         * target.c (target_translate_tls_address): Fix comment spelling error.
9766
9767 2008-01-09  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9768
9769         * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
9770         (DOUBLEST_SCAN_FORMAT): Likewise.
9771         * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
9772         * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
9773         * c-exp.y (parse_number): Likewise.
9774         * jv-exp.y (parse_number): Likewise.
9775         * objc-exp.y (parse_number): Likewise.
9776         * p-exp.y (parse_number): Likewise.
9777
9778 2008-01-09  Joel Brobecker  <brobecker@adacore.com>
9779
9780         * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
9781         (check_typedef): Likewise.
9782
9783 2008-01-09  Luis Machado  <luisgpm@br.ibm.com>
9784
9785         * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
9786         seen_double_big_d, treat the new H, D, and DD modifiers as length
9787         modifiers.
9788
9789 2008-01-08  Joel Brobecker  <brobecker@adacore.com>
9790
9791         * dwarf2read.c (read_enumeration_type): Add comment.
9792
9793 2008-01-08  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9794
9795         * config.in: Regenerate.
9796
9797 2008-01-08  Joel Brobecker  <brobecker@adacore.com>
9798
9799         * ada-lang.c (ada_convert_actual): Renames convert_actual.
9800         Make non-static.
9801         (ada_convert_actuals): Delete.
9802         * ada-lang.h (ada_convert_actual): Add declaration.
9803         (ada_convert_actuals): Remove declaration.
9804         * infcall.c: #include "ada-lang.h".
9805         (value_arg_coerce): Add new parameter sp.  Update function
9806         documetnation.  Add handling of Ada function call parameters.
9807         * Makefile.in (infcall.o): Update dependencies.
9808
9809 2008-01-08  Paul Hilfinger  <hilfinger@adacore.com>
9810
9811         * ada-lang.c (ensure_lval): Fix value lval kind.
9812         (convert_actual): Add handling for arguments passed by reference.
9813
9814 2008-01-08  Doug Evans  <dje@google.com>
9815
9816         * dbxread.c (read_dbx_symtab): Fix indentation.
9817
9818 2008-01-07  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9819
9820         * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
9821         (valarith.o): Depend on dfp.h.
9822         (valops.o): Likewise.
9823         * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
9824         (set_decnumber_context): New function.
9825         (decimal_check_errors): Likewise.
9826         (decimal_from_number): Likewise.
9827         (decimal_to_number): Likewise.
9828         (decimal_from_string): Use set_decnumber_context and
9829         decimal_check_errors.
9830         (decimal_from_integral): New function.
9831         (decimal_from_floating): Likewise.
9832         (decimal_to_double): Likewise.
9833         (promote_decimal): Likewise.
9834         (decimal_binop): Likewise.
9835         (decimal_is_zero): Likewise.
9836         (decimal_compare): Likewise.
9837         (decimal_convert): Likewise.
9838         * dfp.h (decimal_from_integral): New prototype.
9839         (decimal_from_floating): Likewise.
9840         (decimal_to_double): Likewise.
9841         (decimal_binop): Likewise.
9842         (decimal_is_zero): Likewise.
9843         (decimal_compare): Likewise.
9844         (decimal_convert): Likewise.
9845         * eval.c (evaluate_subexp_standard): Remove expect_type argument from
9846         call to value_from_decfloat.
9847         * valarith.c: Include dfp.h.
9848         (value_args_as_decimal): New function.
9849         (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
9850         (value_logical_not): Likewise.
9851         (value_equal): Likewise.
9852         (value_less): Likewise.
9853         (value_pos): Likewise.
9854         (value_neg): Formatting fix.
9855         * valops.c: Include dfp.h.
9856         (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
9857         * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
9858         (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
9859         (value_from_decfloat): Remove expect_type argument.
9860         * value.h (value_from_decfloat): Update prototype.
9861
9862 2008-01-07  Vladimir Prus  <vladimir@codesourcery.com>
9863
9864         Ignore change in name of dynamic linker during
9865         execution on Solaris.  This also unbreaks pending breakpoints.
9866
9867         * solist.h (struct target_so_ops): New field same.
9868         * solib-svr4.c (svr4_same): New.
9869         (_initialize_svr4_solib): Register svr4_same.
9870         * solib.c (update_solib_list): Use ops->same, if available.
9871
9872 2008-01-06  Christopher Faylor  <me+cygwin@cgf.cx>
9873
9874         * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
9875         when using MS-DOS paths.
9876
9877 2008-01-05  Pedro Alves  <pedro@codesourcery.com>
9878
9879         * NEWS: Mention --pid and --core command line behaviour changes.
9880
9881 2008-01-05  Pedro Alves  <pedro@codesourcery.com>
9882
9883         * main.c (captured_main): Remove 'count' varible and the
9884         ALIGN_STACK_ON_ENTRY block that used it.  Error out if --core and
9885         --pid options were issued simultaneously.  If an explicit pid
9886         option was passed, don't fallback to core file.  Detect extra
9887         arguments better in the presence of explicit pid or core
9888         arguments.
9889
9890 2008-01-05  Joel Brobecker  <brobecker@adacore.com>
9891
9892         * ada-lang.c (ada_which_variant_applies): Correctly compute
9893         the value of the discriminant when the variant record is packed.
9894
9895 2008-01-04  Joel Brobecker  <brobecker@adacore.com>
9896
9897         * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
9898         that are used to differentiate homonyms.
9899
9900 2008-01-04  Jerome Guitton  <guitton@adacore.com>
9901
9902         * ada-lang.c (decode_packed_array_type): Avoid a seg fault
9903         when the type is an anonymous pointer type.
9904         (ada_check_typedef): Avoid a seg fault when the type is null.
9905         * ada-typeprint.c (print_array_type): Add support for pointer
9906         to packed arrays.
9907
9908 2008-01-04  Paul N. Hilfinger  <hilfinger@adacore.com>
9909
9910         * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
9911
9912 2008-01-04  Joel Brobecker  <brobecker@adacore.com>
9913
9914         * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
9915         EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
9916
9917 2008-01-04  Joel Brobecker  <brobecker@adacore.com>
9918
9919         * ada-exp.y (chop_separator): New function.
9920         (write_selectors): Rewrite to re-use chop_separator.
9921         (ada_nget_field_index, get_symbol_field_type): New functions.
9922         (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
9923         expressions.
9924
9925 2008-01-03  Thiago Jung Bauermann  <bauerman@br.ibm.com>
9926
9927         * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
9928         of SYMBOL_VALUE when working with function symbols.
9929
9930 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
9931
9932         * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
9933         expressions.  These expressions do not need to be rewriten.
9934
9935 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
9936
9937         * dwarf2read.c (read_enumeration_type): Flag type as stub if
9938         the given die is a declaration.
9939
9940 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
9941
9942         * ada-lang.c (ada_array_bound_from_type): Make non-static.
9943         Handle properly the case when the index type is an enumerated type.
9944         Do not return the subtype of the bounds type, just return the
9945         bounds type directly - this is not needed and is more consistent
9946         with what we do for arrays when no XA parallel type exists.
9947
9948 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
9949
9950         * ada-lang.c (static_unwrap_type): Add forward declaration.
9951         (template_to_static_fixed_type): Fields of dynamic types sometimes
9952         also need to be unwrapped. Take this into account.
9953         (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
9954         (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
9955         * ada-typeprint.c (ada_print_type): Get the typename from
9956         the original type, not the base type.
9957
9958 2008-01-03  Jerome Guitton  <guitton@adacore.com>
9959
9960         * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
9961         (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
9962         Update calls to ada_to_fixed_type.
9963         (ada_template_to_fixed_record_type_1): Ditto, but without looking
9964         for the tag.
9965         (ada_to_fixed_type): Add check_tag parameter; do not look for
9966         tag if null.  When looking for a tag, use a fixed record type.
9967         * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
9968         * ada-valprint.c (printable_val_type, ada_value_print): Update
9969         calls to ada_to_fixed_type.
9970
9971 2008-01-03  Luis Machado  <luisgpm@br.ibm.com>
9972
9973         * doublest.c (convert_floatformat_to_doublest): Call
9974         floatformat_to_doublest instead of floatformat_to_double and use
9975         DOUBLEST variables.
9976         (convert_doublest_to_floatformat): Call floatformat_from_doublest
9977         instead of floatformat_from_double and use DOUBLEST variables.
9978
9979 2008-01-03  Nick Hudson  <nick.hudson@dsl.pipex.com>
9980
9981         * MAINTAINERS (Write After Approval): Add self.
9982
9983 2008-01-03  Joel Brobecker  <brobecker@adacore.com>
9984
9985         * symfile.c (set_initial_language): Make non-static.
9986         * symfile.h (set_initial_language): Add declaration.
9987         * language.c: #include "symfile.h".
9988         (set_language): Call set_initial_language if the frame language
9989         could not be determined.
9990
9991 2008-01-03  Paul N. Hilfinger  <hilfinger@adacore.com>
9992
9993         * eval.c (evaluate_subexp_for_address): Provide frame address to
9994         locate_var_value only if it will be needed.
9995
9996 2008-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
9997
9998         * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
9999
10000 2008-01-02  Joel Brobecker  <brobecker@adacore.com>
10001
10002         * ada-lang.c (ada_evaluate_subexp): Modify the value returned
10003         when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
10004         This is needed to make sure that any other treatment applied
10005         to the resulting value does not fail for spurious reason,
10006         such as trying to take the address of this value.
10007
10008 2008-01-02  Joel Brobecker  <brobecker@adacore.com>
10009
10010         * ada-lang.c (ada_value_equal): Dereference reference types when
10011         comparing arrays.
10012
10013 2008-01-01  Daniel Jacobowitz  <dan@codesourcery.com>
10014
10015         Updated copyright notices for most files.
10016
10017 2008-01-01  Christopher Faylor  <me+gdb@cgf.cx>
10018
10019         * win32-nat.c (psapi_module_handle): Remove static.
10020         (get_module_name): Rename from psapi_get_dll_name.  Revamp slightly to
10021         return first module found if base_address is zero.  Don't initialize
10022         psapi function pointers here.  Convert to cygwin paths when
10023         appropriate.
10024         (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
10025         executable name.  Use get_module_name when that fails or when
10026         !__CYGWIN__.
10027         (_initialize_psapi): New function.  Initialize psapi stuff before it is
10028         needed or issue a warning if it is not found.  Move psapi_module_handle
10029         here.
10030
10031 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
10032
10033         * ada-lang.c (ada_remove_trailing_digits): New function.
10034         (ada_remove_po_subprogram_suffix): New function.
10035         (ada_decode): Improve. Move the description of the algorithm
10036         directly inside the code, instead of in the function global
10037         description.
10038
10039 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
10040
10041         * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
10042         and always print the dereferenced value.
10043
10044 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
10045
10046         * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
10047         of the case where the first argument is a reference.
10048         (ada_evaluate_subexp, case BINOP_ADD): Likewise.
10049
10050 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
10051
10052         Implement support for Ada interface types.
10053
10054         * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
10055         (ada_is_ignored_field): Ignore fields that are a dispatch table
10056         of a tagged type.
10057
10058 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
10059
10060         * top.c (print_gdb_version): Update copyright year.
10061
10062 2008-01-01  Joel Brobecker  <brobecker@adacore.com>
10063
10064         * ChangeLog-2007: New ChangeLog rotation.
10065         * ChangeLog: Reset for 2008.
10066         * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
10067         ChangeLog-2007.
10068
10069 For older changes see ChangeLog-2007.
10070 \f
10071 Local Variables:
10072 mode: change-log
10073 left-margin: 8
10074 fill-column: 74
10075 version-control: never
10076 coding: utf-8
10077 End: