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