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