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