1 2004-07-10 Joel Brobecker <brobecker@gnat.com>
3 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
4 that was inserted inside a comment.
6 2004-07-10 Randolph Chung <tausq@debian.org>
8 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
10 (hppa_hpux_push_dummy_code): New function.
11 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
12 Set find_global_pointer method.
14 2004-07-10 Mark Kettenis <kettenis@gnu.org>
16 * NEWS: Mention BSD libkvm interface.
18 2004-07-10 Michael Snyder <msnyder@redhat.com>
20 * symfile.c (generic_load): Comment typo.
21 * stack.c (get_selected_block): Ditto.
22 * regcache.c (regcache_cooked_read): Ditto.
23 * monitor.c (monitor_debug): Ditto.
24 * mips-tdep.c (mips_read_pc): Ditto.
25 * i386-linux-nat.c (ps_get_thread_area): Ditto.
26 * gdb_mbuild.sh: Ditto.
30 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
34 * ada-exp.y (write_var_from_sym): Reformat to put operator at
37 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
39 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
40 (MIN_OF_SIZE): Rename min_of_size. Add comment.
41 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
42 (UMIN_OF_SIZE): Remove.
43 (max_of_type): New function to replace orphan macro in gdbtypes.h
45 (discrete_type_high_bound): Use max_of_type.
46 (discrete_type_low_bound): Use min_of_type.
47 (possible_user_operator_p): Move operator to beginning of line.
48 (ada_is_variant_part): Ditto.
49 (ensure_lval): Rewrite to avoid deprecated operations.
50 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
51 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
52 (ada_enum_name): Remove assignments in 'if' statements.
53 (build_ada_types): Add gdbarch parameter.
54 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
55 with gdbarch_data_register_post_init.
56 Use add_setshow_uinteger_cmd rather than add_set_cmd and
59 * ada-valprint.c (inspect_it): Remove declaration.
60 (repeat_count_threshold): Remove declaration.
61 (ada_print_floating): Remove assignments in 'if' statements.
62 (print_str): Move operator to beginning of line.
64 2004-07-08 Jim Blandy <jimb@redhat.com>
66 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
68 2004-07-08 Bob Rossi <bob@brasko.net>
70 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
72 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
74 * language.h (struct_language_defn): Add new function pointer:
75 la_class_name_from_physname. Also add new prototype for
76 language_class_name_from_physname.
77 * language.c (language_class_name_from_physname): New function.
78 (unk_lang_class_name): Ditto.
79 (unknown_language_defn, auto_language_defn): Change
80 to add unk_lang_class_name function pointer for
81 la_class_name_from_physname.
82 (local_language_defn): Ditto.
83 * dwarf2read.c (guess_structure_name): Change to call
84 language_class_name_from_physname.
85 (determine_class_name): Ditto.
86 * cp-support.c (class_name_from_physname): Renamed.
87 (cp_class_name_from_physname): New name of function.
88 * cp-support.h: Ditto.
89 * c-lang.c (c_language_defn): Change to add NULL
90 for class_name_from_physname function pointer.
91 (cplus_language_defn): Change to add cp_class_name_from_physname.
92 * jv-lang.c (java_class_name_physname): New function.
93 (java_find_last_component): New static routine.
94 (java_language_defn): Add java_class_name_from_physname pointer.
95 * ada-lang.c (ada_language_defn): Change to add NULL
96 for class_name_from_physname function pointer.
97 * f-lang.c (f_language_defn): Ditto.
98 * m2-lang.c (m2_language_defn): Ditto.
99 * objc-lang.c (objc_language_defn): Ditto.
100 * p-lang.c (pascal_language_defn): Ditto.
101 * scm-lang.c (scm_language_defn): Ditto.
103 2004-07-06 Andrew Cagney <cagney@gnu.org>
105 Patch from Bart Robinson.
106 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
107 (O_LARGEFILE): Define to 0, if not defined.
109 2004-07-03 Mark Kettenis <kettenis@gnu.org>
111 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
112 <machine/pcb.h> and "bsd-kvm.h".
113 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
114 (m68kbsd_supply_pcb): New function.
115 (_initialize_m68kbsd_nat): New prototype and function.
116 * Makefile.in (m68kbsd-nat.o): Update dependencies.
117 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
118 (LOADLIBES): New variable.
119 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
120 (LOADLIBES): New variable.
122 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
124 2004-07-03 Mark Kettenis <kettenis@gnu.org>
126 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
128 (bsd_kvm_cmdlist): New variable.
129 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
130 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
131 command and "kvm proc" command.
132 * Makefile.in (bsd-kvm.o): Update dependencies.
134 2004-07-02 Mark Kettenis <kettenis@gnu.org>
136 * osabi.c: Update copyright year.
137 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
138 notes if EI_OSABI is set to ELFOSABI_HPUX.
140 2004-07-01 Michael Snyder <msnyder@redhat.com>
142 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
143 that seems to have gotten whacked out of line.
145 2004-07-01 Mark Kettenis <kettenis@gnu.org>
147 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
150 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
152 * ada-lang.c (decode_packed_array): Minor change to comment.
153 (ada_value_slice_ptr): New function.
154 (ada_value_slice): New function.
155 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
156 test. Don't know why it is there.
157 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
158 to avoid dereferencing huge arrays from which one is slicing.
159 (empty_array): Correct to return an array rather than
161 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
162 on empty arrays (let'em use 'FIRST instead).
164 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
166 Address complaints from gdb_ari.sh:
168 * ada-exp.y: Include gdb_string.h rather than string.h.
169 (convert_char_literal): Reformat declaration.
170 * ada-lang.h: Include opaque struct declaration for struct frame_info.
171 * ada-lex.l: Change use of free to xfree (the macro would do so
172 anyway, but this is harmless).
173 Include gdb_string.h rather than string.h.
174 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
176 * ada-lang.c (parse): Remove K&Rism in parameter list.
177 (is_name_suffix): Correct Linux => GNU/Linux in comment.
179 2004-06-30 Mark Kettenis <kettenis@gnu.org>
181 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
184 2004-06-30 Mark Kettenis <kettenis@gnu.org>
186 * alphabsd-nat.c: Update copyright year.
187 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
189 2004-06-29 Joel Brobecker <brobecker@gnat.com>
191 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
192 (i386_cygwin_in_solib_call_trampoline): New function.
193 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
194 and skip_trampoline_code gdbarch methods.
196 2004-06-29 Jim Blandy <jimb@redhat.com>
198 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
199 name actually used in the dependency lists.
201 2004-06-29 Randolph Chung <tausq@debian.org>
203 * NEWS (New native configurations): Mention GNU/Linux/hppa.
205 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
207 * win32-nat.c (child_pid_to_exec_file): New function.
208 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
211 2004-06-28 Andrew Cagney <cagney@gnu.org>
213 * defs.h (xstrvprintf): Declare.
214 * utils.c (xstrvprintf): New function.
215 (internal_vproblem, xstrprintf, xasprintf)
216 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
217 * serial.c (serial_printf): Ditto.
218 * complaints.c (vcomplaint): Ditto.
220 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
222 * infcmd.c (attach_command): Move call to target_terminal_inferior
223 behind loading symbol table.
225 2004-06-28 Andrew Cagney <cagney@gnu.org>
227 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
228 change - add back extern deprecated_ui_loop_hook declaration.
230 2004-06-28 Andrew Cagney <cagney@gnu.org>
232 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
234 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
235 (c_value_of_variable): Ditto.
236 * utils.c (internal_vproblem): Ditto.
237 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
238 * remote.c (add_packet_config_cmd): Ditto.
239 * remote-rdp.c (rdp_set_command_line): Ditto.
240 * regcache.c (regcache_dump): Ditto.
241 * frv-tdep.c (new_variant, new_variant): Ditto.
242 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
243 (fbsd_find_memory_regions): Ditto.
244 * breakpoint.c (create_thread_event_breakpoint)
245 (create_breakpoints): Ditto.
246 * aix-thread.c (aix_thread_pid_to_str): Ditto.
247 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
249 2004-06-28 Joel Brobecker <brobecker@gnat.com>
251 * ada-lang.c: Re-indent file, with some massaging to help indent
252 a bit when the result is otherwise really too ugly.
254 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
256 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
257 code_addr_p and special_addr_p to 'unsigned int'.
259 2004-06-27 Mark Kettenis <kettenis@gnu.org>
261 * i386v4-nat.c: Update copyright year and tweak comment.
262 (regmap): Remove trailing comma.
263 (supply_gregset): Rename local variable i to regnum. Call
264 regcache_raw_supply instead of supply_register.
265 (fill_gregset): Rename argument regno to regnum. Call
266 regcache_raw_collect instead of regcache_collect.
268 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
270 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
272 (frame_id_build, frame_id_build_special): Update comments.
273 (frame_id_build_wild): New prototype.
274 * frame.c (frame_id_build, frame_id_build_special): Fill in new
275 struct frame_id fields.
276 (frame_id_build_wild): New function.
277 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
279 2004-06-27 Mark Kettenis <kettenis@gnu.org>
281 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
284 2004-06-27 Joel Brobecker <brobecker@gnat.com>
286 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
288 2004-06-27 Joel Brobecker <brobecker@gnat.com>
290 * ada-lang.c: Re-indent file.
292 2004-06-27 Joel Brobecker <brobecker@gnat.com>
294 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
295 (no_symtab_msg): Likewise.
297 2004-06-27 Andreas Schwab <schwab@suse.de>
299 * source.c: Fix whitespace.
301 2004-06-27 Mark Kettenis <kettenis@gnu.org>
303 * configure.in: Include <sys/param.h> for td_pcb test.
304 * configure: Regenerated.
306 * i386nbsd-nat.c: New file.
307 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
308 i386obsd-nat.c and i386obsd-tdep.c.
309 (i386nbsd-nat.o): New dependency.
310 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
312 (LOADLIBES): New variable.
313 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
315 (LOADLIBES): New variable.
317 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
318 (LOADLIBES): New variable.
320 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
321 fetching from BSD_KVM_PADDR. Correctly lookup address for
324 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
326 (amd64fbsd_supply_pcb): New funcion.
327 (_initialize_amd64fbsd_nat): Enable libkvm interface.
329 2004-06-27 <david@streamline-computing.com>
331 Partial fix for PR cli/1056.
332 * valarith.c: Check for zero in division and remainder
335 2004-06-27 Mark Kettenis <kettenis@gnu.org>
337 * i387-tdep.c: Remove excessive whitespace.
339 2004-06-26 Andrew Cagney <cagney@gnu.org>
341 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
342 * gdb-events.h, gdb-events.c: Re-generate.
343 * tui/tui-hooks.c (tui_install_hooks): Update.
344 (tui_remove_hooks): Update.
345 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
347 2004-06-26 Mark Kettenis <kettenis@gnu.org>
349 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
350 (gregset_t, fpregset_t): Remove typedefs.
351 (REG_OFFSET): Rename argument.
352 (amd64bsd_r_reg_offset): Rename from reg_offset.
353 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
355 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
357 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
359 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
361 * vax-tdep.c: Tweak comment.
363 Add OpenBSD/hppa support.
364 * NEWS (New native configurations): Mention OpenBSD/hppa.
365 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
366 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
368 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
369 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
370 * configure.host: Add hppa*-*-openbsd*.
371 * configure.tgt: Add hppa*-*-openbsd*.
373 2004-06-25 Andrew Cagney <cagney@gnu.org>
375 * defs.h (deprecated_ui_loop_hook): Deprecated.
376 * wince.c (child_wait): Update.
377 * win32-nat.c (child_wait): Update.
378 * v850ice.c (v850ice_wait): Update.
379 * top.c (deprecated_ui_loop_hook): Update.
381 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
382 (do_unix_readchar): Update.
383 * ser-tcp.c (net_open): Update.
384 * remote-sim.c (gdb_os_poll_quit): Update.
385 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
387 2004-06-24 Andrew Cagney <cagney@gnu.org>
389 * defs.h (deprecated_pre_add_symbol_hook)
390 (deprecated_post_add_symbol_hook): Deprecated.
391 * symfile.c (symbol_file_add_with_addrs_or_offsets)
392 (symbol_file_add_with_addrs_or_offsets): Update references.
394 2004-06-24 Andrew Cagney <cagney@gnu.org>
396 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
397 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
398 * wince.c (ui_loop_hook): Delete extern declaration.
399 * win32-nat.c (ui_loop_hook): Delete extern declaration..
400 * v850ice.c (ui_loop_hook): Delete extern declaration..
401 * ser-unix.c (ui_loop_hook): Delete extern declaration..
402 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
403 * remote-sim.c (ui_loop_hook): Delete extern declaration..
404 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
405 ui_loop_hook declaration.
407 2004-06-24 Andrew Cagney <cagney@gnu.org>
409 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
410 entry_func_highpc fields.
411 * objfiles.c (init_entry_point_info): Do not clear
412 entry_func_lowpc and entry_func_highpc.
413 (objfile_relocate): Do not relocate entry_func_lowpc and
415 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
417 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
419 * blockframe.c (legacy_frame_chain_valid): Replace tests against
420 entry_func_lowpc and entry_func_highpc with call to
423 2004-06-24 Mark Kettenis <kettenis@gnu.org>
425 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
426 quad-precision floating point arguments in registers.
428 2004-06-24 Mark Kettenis <kettenis@gnu.org>
430 From Michael Mueller <m.mueller99@kay-mueller.de>:
431 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
434 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
436 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
438 * breakpoint.c (bpstat_stop_status): Move check for ignoring
439 untriggered watchpoints to a separate if clause. Update function
440 comment regarding STOPPED_BY_WATCHPOINT argument.
442 2004-06-22 Jim Blandy <jimb@redhat.com>
444 * gdbarch.sh: Doc fix.
446 2004-06-21 Martin Hunt <hunt@redhat.com>
447 Kevin Buettner <kevinb@redhat.com>
449 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
450 * mips-tdep.h (MIPS_SP_REGNUM): Define.
451 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
452 to set_gdbarch_sp_regnum(). Use cooked register number.
453 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
455 2004-06-21 Andrew Cagney <cagney@gnu.org>
457 * gdbarch.sh: When the macro field is empty, do not generate a
458 macro definition. When the macro field is "=", generate the macro
459 name from the upper-case function name.
460 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
461 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
462 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
463 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
464 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
465 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
466 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
467 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
468 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
469 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
470 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
471 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
472 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
473 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
474 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
475 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
476 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
477 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
478 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
479 (DEPRECATED_USE_STRUCT_CONVENTION)
480 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
481 (DEPRECATED_FRAME_INIT_SAVED_REGS)
482 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
483 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
484 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
485 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
486 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
487 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
488 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
489 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
490 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
491 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
492 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
493 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
494 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
495 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
496 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
497 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
499 2004-06-21 Andrew Cagney <cagney@gnu.org>
501 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
502 macro name, and the function rather than macro value. Only wrap
503 macro print statements in #ifdef. Move format logic to where it
505 * gdbarch.c: Re-generate.
507 * gdbarch.sh (read): Delete "print_p" and "description", add
508 "garbage_at_eol". Check for non-empty garbage at end-of-line.
509 Delete references to print_p.
510 (TARGET_ARCHITECTURE): Delete print predicate.
511 * gdbarch.c: Re-generate.
513 * gdbarch.sh: Check that multi-arch methods do not provide a
515 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
516 (print_registers_info, print_float_info, print_vector_info)
517 (adjust_breakpoint_address, remote_translate_xfer_address)
518 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
519 (address_class_type_flags_to_name, unwind_sp): Remove the macro
520 name from the multi-arch definition.
522 2004-06-20 Andrew Cagney <cagney@gnu.org>
524 * gdbarch.sh: Sort by the function, instead of macro name.
525 * gdbarch.c: Re-generate.
527 2004-06-20 Andrew Cagney <cagney@gnu.org>
529 * gdbarch.sh: Use the function, instead of macro name in
530 errors and the log file.
531 (return_value): Remove stray ":" in spec.
533 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
534 * gdbarch.h, gdbarch.c: Re-generate.
535 * Makefile.in (arch-utils.o): Update dependencies.
536 * values.c (using_struct_return): Move code calling
537 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
538 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
539 to legacy_return_value, simplify.
540 * infcmd.c (print_return_value): Move code calling
541 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
542 to legacy_return_value, simplify.
543 * infcall.c (call_function_by_hand): Move code calling
544 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
545 * arch-utils.c: Update copyright. Include "gdbcore.h".
546 (legacy_return_value): New function.
547 * arch-utils.h: Update copyright.
548 (legacy_return_value): Declare.
550 2004-06-20 Andrew Cagney <cagney@gnu.org>
552 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
553 * gdbarch.h, gdbarch.c: Re-generate.
554 * values.c (using_struct_return): Update call.
555 * mcore-tdep.c: Update comment.
556 * infcall.c (call_function_by_hand): Update comment.
557 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
558 * arch-utils.h (always_use_struct_convention): Update.
559 * v850-tdep.c (v850_gdbarch_init): Update.
560 * sh64-tdep.c (sh64_gdbarch_init): Update.
561 * sh-tdep.c (sh_gdbarch_init): Update.
562 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
563 * mips-tdep.c (mips_gdbarch_init): Update.
564 * mcore-tdep.c (mcore_gdbarch_init): Update.
565 * m32r-tdep.c (m32r_gdbarch_init): Update.
566 * ia64-tdep.c (ia64_gdbarch_init): Update.
567 * h8300-tdep.c (h8300_gdbarch_init): Update.
568 * frv-tdep.c (frv_gdbarch_init): Update.
569 * cris-tdep.c (cris_gdbarch_init): Update.
570 * arm-tdep.c (arm_gdbarch_init): Update.
571 * alpha-tdep.c (alpha_gdbarch_init): Update.
573 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
575 * PROBLEMS: Add more specific information, and a work-around,
578 2004-06-18 Andrew Cagney <cagney@gnu.org>
580 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
581 * gdbarch.h, gdbarch.c: Re-generate.
582 * ada-lang.c (ada_finish_decode_line_1): Update.
583 * infrun.c (handle_inferior_event): Update.
584 * infcall.c (find_function_addr): Update.
585 * linespec.c (minsym_found): Update.
586 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
588 * blockframe.c (legacy_frameless_look_for_prologue): Update.
589 * cli/cli-cmds.c (disassemble_command): Update.
590 * vax-tdep.c (vax_gdbarch_init): Update.
592 2004-06-18 Mark Kettenis <kettenis@gnu.org>
594 * i386-tdep.c (i386_collect_fpregset): Fix comment.
596 2004-06-17 Andrew Cagney <cagney@gnu.org>
598 GDB 6.1.1 released from the GDB 6.1 branch.
599 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
602 2004-06-16 Daniel Jacobowitz <dan@debian.org>
605 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
606 operation as a uleb128. Found by Michael Coulter.
608 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
610 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
612 * ada-lang.h (task_control_block): declaration moved from ada-task.c
613 to ada-lang.h; this is needed to be able to implement the kill command
618 (ada_build_task_list): Ditto.
620 * ada-lang.c: Conditionalize routines and data structures related
621 to breakpoints, exceptions, completion, and symbol caching on
622 GNAT_GDB, since these are not yet used in the submitted public sources.
623 (ada_main_name): Editorial: Move definition out of exception-related
626 2004-06-15 Andrew Cagney <cagney@gnu.org>
628 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
629 deprecated_pc_in_call_dummy.
631 2004-06-15 Alan Modra <amodra@bigpond.net.au>
633 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
634 bfd_get_section_size_before_reloc or _raw_size.
635 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
636 * dwarf2read.c (dwarf2_locate_sections): Likewise.
637 (dwarf2_read_section): Likewise.
638 * elfread.c (elf_locate_sections): Likewise.
639 * gcore.c (derive_heap_segment): Likewise.
640 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
641 * remote-e7000.c (e7000_load): Likewise.
642 * remote-m32r-sdi.c (m32r_load): Likewise.
643 * remote-mips.c (mips_load_srec): Likewise.
644 (pmon_load_fast): Likewise.
645 * remote.c (compare_sections_command): Likewise.
646 * symfile.c (add_section_size_callback): Likewise.
647 (load_section_callback): Likewise.
648 (pc_in_unmapped_range): Likewise.
649 (pc_in_mapped_range): Likewise.
650 (sections_overlap): Likewise.
651 (list_overlays_command): Likewise.
652 (simple_overlay_update_1): Likewise.
653 (simple_overlay_update): Likewise.
654 * tracepoint.c (remote_set_transparent_ranges): Likewise.
655 * win32-nat.c (core_section_load_dll_symbols): Likewise.
657 2004-06-14 Randolph Chung <tausq@debian.org>
659 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
660 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
662 (hppa_hpux_inferior_created): New function.
663 (hppa_hpux_init_abi): Register observer.
664 * symfile.c (hp_cxx_exception_support_initialized)
665 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
666 (symbol_file_add_main_1, symbol_file_clear): Likewise.
668 2004-06-14 Randolph Chung <tausq@debian.org>
670 * MAINTAINERS (Write After Approval): Alphabetize my entry
673 2004-06-14 Andrew Cagney <cagney@gnu.org>
675 * MAINTAINERS (testsuite): List Michael Chastain as the lead
676 testsuite maintainer.
678 2004-06-13 Andrew Cagney <cagney@gnu.org>
680 * infcmd.c (print_return_value): Fix logic, allow
681 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
683 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
685 * gdbarch.h: Re-generate.
687 * gdbarch.sh: Delete "level" attribute. Only check for a macro
688 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
689 * gdbarch.h: Re-generate.
691 * values.c (generic_use_struct_convention): Don't check gcc_p.
693 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
694 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
695 * gdbarch.h, gdbarch.c: Regenerate.
696 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
697 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
698 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
699 deprecated_max_register_raw_size and
700 deprecated_max_register_virtual_size.
701 * v850-tdep.c (v850_gdbarch_init): Ditto.
702 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
703 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
704 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
705 * cris-tdep.c (cris_gdbarch_init): Ditto.
707 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
708 * gdbarch.h, gdbarch.c: Re-generate.
709 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
710 (m68hc11_use_struct_convention): Delete function.
711 (m68hc11_extract_struct_value_address): Delete function.
712 (m68hc11_return_value): New function.
713 (m68hc11_gdbarch_init): Instead of store_return_value,
714 extract_return_value, return_value_on_stack,
715 deprecated_extract_struct_value_address and use_struct_convention,
717 * values.c (using_struct_return): Do not call
718 RETURN_VALUE_ON_STACK.
719 * arch-utils.h (generic_return_value_on_stack_not): Delete
721 * arch-utils.c (generic_return_value_on_stack_not): Delete
724 2004-06-12 Andrew Cagney <cagney@gnu.org>
726 * values.c (register_value_being_returned): Delete function.
727 * infcmd.c (legacy_return_value): Delete function.
728 * infcall.c (call_function_by_hand): Inline
729 "register_value_being_returned", simplify.
730 * values.c (using_struct_return): Update comment, refer to
731 print_return_value instead of register_value_being_returned.
732 * infcmd.c (print_return_value): Inline calls to
733 register_value_being_returned and legacy_return_value. Simplify.
735 2004-06-11 Randolph Chung <tausq@debian.org>
737 * somread.c (som_symtab_read): Exclude gcc local symbols.
739 2004-06-11 Randolph Chung <tausq@debian.org>
741 * infrun.c (handle_inferior_event): Handle the case when a
742 trampoline ends up in the runtime resolver, and if the trampoline
743 has no name. Rearrange the code so that all the trampoline
744 processing happens before other step-out-of-range handling.
746 2004-06-11 Martin Hunt <hunt@redhat.com>
748 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
751 2004-06-10 Andrew Cagney <cagney@gnu.org>
753 * blockframe.c (legacy_inside_entry_func): Delete.
754 (legacy_frame_chain_valid): Inline call to
755 legacy_inside_entry_func, simplify.
757 2004-06-10 Bob Rossi <bob@brasko.net>
759 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
760 * dwarf2read.c (partial_die_info): Add dirname field.
761 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
762 (read_partial_die): Save away DW_AT_comp_dir.
763 * defs.h (symtab_to_filename): Removed.
764 * source.c (find_and_open_source): Added.
765 (open_source_file): Just calls find_and_open_source.
766 (symtab_to_filename): Removed.
767 (symtab_to_fullname, psymtab_to_fullname): Added.
768 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
769 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
771 * symtab.h (partial_symtab): Add dirname field.
772 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
773 (mi_cmd_file_list_exec_source_file): Call new function
774 symtab_to_fullname to find fullname.
775 (mi_cmd_file_list_exec_source_files): Added.
776 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
777 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
779 2004-06-10 Andrew Cagney <cagney@gnu.org>
781 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
782 to generic_use_struct_convention, the default value.
784 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
787 * ns32k-tdep.c (ns32k_push_arguments): New function.
788 (ns32k_gdbarch_init): Set deprecated_push_arguments.
789 * infcall.c (call_function_by_hand): Call error instead of
790 legacy_push_arguments.
791 * value.h (legacy_push_arguments): Delete declaration.
792 * valops.c (legacy_push_arguments): Delete function.
793 (value_push): Delete function.
795 2004-06-10 Brian Ford <ford@vss.fsi.com>
797 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
798 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
800 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
802 2004-06-10 Andrew Cagney <cagney@gnu.org>
804 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
805 * gdbarch.h, gdbarch.c: Re-generate.
806 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
808 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
809 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
810 deprecated_pc_in_call_dummy instead of
811 DEPRECATED_PC_IN_CALL_DUMMY.
812 (arm_skip_prologue): Ditto.
813 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
814 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
815 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
816 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
818 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
819 (sh64_init_extra_frame_info, sh64_get_saved_register)
820 (sh64_pop_frame): Ditto.
821 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
822 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
823 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
824 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
825 (h8300_pop_frame): Ditto.
826 * blockframe.c (legacy_inside_entry_func)
827 (legacy_frame_chain_valid): Ditto.
828 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
829 to deprecated_pc_in_call_dummy.
831 2004-06-09 Andrew Cagney <cagney@gnu.org>
833 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
834 provide a default value.
835 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
836 * gdbarch.h, gdbarch.c: Re-generate.
837 * arch-utils.c (generic_convert_register_p): Rename
838 legacy_convert_register_p
839 (legacy_register_to_value, legacy_value_to_register): Delete
841 * arch-utils.h (generic_convert_register_p): Rename
842 legacy_convert_register_p.
843 (legacy_register_to_value, legacy_value_to_register): Delete
846 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
847 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
848 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
849 * gdbarch.h, gdbarch.c: Re-generate.
850 * infcmd.c (default_print_registers_info): Simplify.
851 * findvar.c (value_of_register): Simplify.
852 * mi/mi-main.c (get_register): Simplify.
853 * arch-utils.c (legacy_convert_register_p): Always return 0.
854 (legacy_register_to_value, legacy_value_to_register): Always call
857 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
858 #ifdef CLEAR_INSN_CACHE code.
859 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
860 Delete #ifdef CLEAR_DEFERRED_STORES code.
862 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
864 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
866 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
868 * config/mips/mipsv4.mh: Delete file.
870 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
872 (hpread_adjust_stack_address): Delete declaration.
874 2004-06-08 Andrew Cagney <cagney@gnu.org>
876 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
877 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
878 PTRACE_ATTACH / PTRACE_DETACH available call error.
879 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
880 * infttrace.c (update_thread_state_after_attach, attach, detach):
881 Remove #ifdef wrappers.
882 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
883 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
884 * config/nm-bsd.h (ATTACH_DETACH): Delete.
885 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
886 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
887 * config/nm-linux.h (ATTACH_DETACH): Delete.
888 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
889 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
890 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
891 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
892 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
894 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
896 * configure.in: Set $configdir to the right OS specific value.
897 Use value when setting $tcldir and $tkdir.
898 * configure: Regenerate.
900 2004-06-06 Paul Brook <paul@codesourcery.com>
902 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
905 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
907 * ada-lang.c (lookup_symbol_in_language): New function to allow
908 re-use of another language's symbol lookup code. (Placed here
909 temporarily while Ada support is being integrated into the public
911 (restore_language): New auxiliary function for
912 lookup_symbol_in_language.
913 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
914 temporarily while Ada support is being integrated into the public
917 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
919 * Makefile.in (check//%): New.
921 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
922 (mn10300_store_return_value): Rewrite.
923 (mn10300_type_align): New.
924 (mn10300_use_struct_convention): Rewrite.
925 (mn10300_return_value): New, using all of the above.
926 (mn10300_pop_frame_regular): Add saved_regs_size.
927 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
929 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
930 regs if PC is on movm.
932 2004-06-07 Jim Blandy <jimb@redhat.com>
934 Add native Linux support for the PowerPC E500.
935 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
936 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
937 all architectures except the E500.
938 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
940 (struct gdb_evrregset_t): New type.
941 (have_ptrace_getsetevrregs): New variable.
942 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
943 fetch_spe_registers): New functions.
944 (fetch_register): Call fetch_spe_register as appropriate.
945 Assert that we're only passed raw register numbers.
946 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
947 Don't fetch gprs if they're pseudoregisters.
948 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
949 store_spe_registers): New functions.
950 (store_register): Call store_spe_register as appropriate.
951 Assert that we're only passed raw register numbers.
952 (store_ppc_registers): Call store_spe_registers as appropriate.
953 Don't store gprs if they're pseudoregisters.
955 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
957 * thread-db.c (thread_get_info_callback): Fill in the thread_info
958 struct if one exists, even if we are dealing with a zombie thread.
960 2004-06-07 Andrew Cagney <cagney@gnu.org>
962 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
963 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
964 Rename PC_REQUIRES_RUN_BEFORE_USE.
965 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
968 2004-06-07 Randolph Chung <tausq@debian.org>
970 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
971 unwinding after sp has been saved to the stack but before the end
972 of the prologue, and after the fp has been modified but before it has
973 been saved to the stack.
974 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
975 Remove superfluous definitions.
976 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
978 2004-06-07 Guy Martin <gmsoft@gentoo.org>
980 Committed by Randolph Chung.
981 * hppa-linux-nat.c: Include the correct version of the header file
982 depending on the kernel version.
984 2004-06-06 Randolph Chung <tausq@debian.org>
986 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
987 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
989 2004-06-06 Randolph Chung <tausq@debian.org>
991 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
992 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
993 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
994 * hppa-tdep.c (hppa_symbol_address): New function definition.
995 * hppa-tdep.h (hppa_symbol_address): New function declaration.
997 2004-06-06 Randolph Chung <tausq@debian.org>
999 * hppa-tdep.h (struct value): Forward declaration.
1000 (gdbarch_tdep): Define tdep find_global_pointer method.
1001 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
1002 associated with the function we are trying to call, and write it
1004 (hppa32_convert_from_funct_ptr_addr): New function.
1005 (hppa_find_global_pointer): New function.
1006 (hppa_gdbarch_init): Set default find_global_pointer method; set
1007 convert_from_func_ptr_addr method.
1008 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
1009 (hppa_linux_init_abi): Set find_global_pointer method.
1010 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
1012 2004-06-06 Randolph Chung <tausq@debian.org>
1014 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
1015 to struct value *function.
1016 * gdbarch.c: Regenerate.
1017 * gdbarch.h: Likewise.
1018 * infcall.c (call_function_by_hand): Pass entire function value
1021 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
1022 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
1023 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
1024 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
1025 * arm-tdep.c (arm_push_dummy_call): Likewise.
1026 * avr-tdep.c (avr_push_dummy_call): Likewise.
1027 * cris-tdep.c (cris_push_dummy_call): Likewise.
1028 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
1029 * frv-tdep.c (frv_push_dummy_call): Likewise.
1030 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1031 * hppa-tdep.c (hppa32_push_dummy_call)
1032 (hppa64_push_dummy_call): Likewise.
1033 * i386-tdep.c (i386_push_dummy_call): Likewise.
1034 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
1035 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
1036 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1037 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
1038 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
1039 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1040 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
1041 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
1042 (ppc64_sysv_abi_push_dummy_call): Likewise.
1043 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
1044 (ppc64_sysv_abi_push_dummy_call): Likewise.
1045 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
1046 * s390-tdep.c (s390_push_dummy_call): Likewise.
1047 * sh-tdep.c (sh_push_dummy_call_fpu)
1048 (sh_push_dummy_call_nofpu): Likewise.
1049 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
1050 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
1051 * vax-tdep.c (vax_push_dummy_call): Likewise.
1053 2004-06-04 Jim Blandy <jimb@redhat.com>
1055 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
1056 gdbarch argument to register_size.
1058 * rs6000-tdep.c (rs6000_store_return_value): Use
1059 regcache_cooked_write_part instead of
1060 deprecated_write_register_bytes.
1061 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
1062 not gdbarch_deprecated_store_return_value.
1064 * ppc-linux-nat.c (store_register, fetch_register): Remove
1065 incorrect assertions. Simplify and generalize handling of
1066 transfers whose sizes are not multiples of, or less than, sizeof
1069 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
1071 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
1072 as a new thread event.
1073 * thread-db.c (thread_get_info_callback): If the thread is a
1074 zombie, return TD_THR_ZOMBIE.
1075 (thread_from_lwp): If thread_get_info_callback returns
1076 TD_THR_ZOMBIE, check if the thread is still on the thread list
1077 and return a -1 ptid if not found.
1078 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
1079 change the status to TARGET_WAITKIND_SPURIOUS.
1081 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
1083 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
1084 double values in little endian mode.
1086 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
1088 Committed by Andrew Cagney.
1089 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
1090 after last enum constant to avoid error from IBM C
1093 2004-06-02 Jim Blandy <jimb@redhat.com>
1095 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
1096 to 'message', and make it local to the lone block that uses it.
1098 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
1100 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
1102 * ada-exp.y: Synchronize with current ACT sources.
1103 * ada-lang.c: Ditto.
1104 * ada-lang.h: Ditto.
1106 * ada-tasks.c: Ditto.
1107 * ada-typeprint.c: Ditto.
1108 * ada-valprint.c: Ditto.
1110 2004-06-01 Jim Blandy <jimb@redhat.com>
1112 * ppc-tdep.h: Delete unused 'regoff' member.
1113 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
1115 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
1118 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
1119 (hpread_read_struct_type): Likewise.
1121 2004-06-01 Andrew Cagney <cagney@gnu.org>
1123 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
1124 instead of xasprintf.
1125 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
1126 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
1127 (mi_cmd_data_list_register_names)
1128 (mi_cmd_data_list_changed_registers)
1129 (mi_cmd_data_list_register_values)
1130 (get_register, mi_cmd_data_write_register_values)
1131 (mi_cmd_data_write_register_values)
1132 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
1133 (mi_cmd_target_download, mi_cmd_target_select)
1134 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
1135 (mi_execute_cli_command, mi_execute_async_cli_command)
1136 (mi_execute_async_cli_command): Ditto.
1137 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
1138 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
1140 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
1141 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
1142 error_last_message instead of mi_error_last_message.
1143 * mi/mi-main.c (mi_error_last_message): Delete function.
1145 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
1146 "invalid number of columns" error. Delete redundant "out of
1149 2004-05-31 Mark Kettenis <kettenis@gnu.org>
1151 * i386bsd-nat.c: Don't include <sys/procfs.h>.
1152 (gregset_t, fpregset_t): Remove typedefs.
1153 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
1154 (REG_OFFSET): Rename argument.
1155 (i386bsd_r_reg_offset): Rename from reg_offset.
1156 (REG_ADDR): Remove macro.
1157 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
1159 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
1160 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
1161 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
1162 instead of supply_gregset.
1163 (store_inferior_registers): Use `struct reg' and `struct fpreg'
1164 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
1165 instead of fill_gregset.
1166 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
1168 * i386bsd-nat.c: Don't include "gregset.h".
1169 (supply_gregset, fill_gregset): Make static.
1170 (supply_fpregset, fill_fpregset): Remove.
1171 * Makefile.in (i386bsd-nat.o): Update dependencies.
1173 2004-05-30 Mark Kettenis <kettenis@gnu.org>
1175 * fbsd-proc.c: Include "regcache.h", "regset.h" and
1176 "gdb_assert.h". Con't include "gregset.h".
1177 (fbsd_make_corefile_notes): Use regset-based core file support
1178 instead off fill_gregset and fill_fpregset.
1179 * Makefile.in (fbsd-proc.o): Update dependencies.
1181 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
1183 (m88k_frame_prev_register): Simplify code a bit.
1185 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
1186 (amd64_collect_fpregset): New function.
1187 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
1189 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
1191 * i386-tdep.c (i386_supply_gregset): Adjust comment.
1192 (i386_collect_gregset): New function.
1193 (i386_supply_fpregset): Adjust comment.
1194 (i386_collect_fpregset): New function.
1195 (i386_regset_from_core_section): Use i386_collect_gregset and
1196 i386_collect_fpregset.
1198 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
1199 handle VALUEP being null.
1201 * regset.h (collect_regset_ftype): Unconstify fourth argument.
1203 2004-05-29 Mark Kettenis <kettenis@gnu.org>
1205 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
1207 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
1208 assembler in OpenBSD 3.5-current.
1209 (amd64obsd_sigcontext_addr): Likewise.
1211 2004-05-28 Jim Blandy <jimb@redhat.com>
1213 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
1214 register set, so our regcache isn't declared "legacy" and our E500
1215 pseudoregister read and write functions aren't ignored.
1216 (rs6000_register_byte, rs6000_register_raw_size,
1217 rs6000_register_virtual_type, rs6000_register_convertible,
1218 rs6000_register_convert_to_virtual,
1219 rs6000_register_convert_to_raw): Deleted.
1220 (rs6000_register_type, rs6000_convert_register_p,
1221 rs6000_register_to_value, rs6000_value_to_register): New
1223 (rs6000_gdbarch_init): Don't register
1224 gdbarch_deprecated_register_size,
1225 gdbarch_deprecated_register_bytes,
1226 gdbarch_deprecated_register_byte,
1227 gdbarch_deprecated_register_raw_size,
1228 gdbarch_deprecated_register_virtual_type,
1229 gdbarch_deprecated_register_convertible,
1230 gdbarch_deprecated_register_convert_to_virtual, or
1231 gdbarch_deprecated_register_convert_to_raw methods. Instead,
1232 register gdbarch_register_type, gdbarch_convert_register_p,
1233 gdbarch_register_to_value, and gdbarch_value_to_register methods.
1235 2004-05-26 Jim Blandy <jimb@redhat.com>
1237 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
1238 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
1239 functions, updated to match the register numberings used in GCC.
1240 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
1241 rs6000_dwarf2_reg_to_regnum as register number conversions
1242 functions for STABS and Dwarf2.
1244 2004-05-26 Randolph Chung <tausq@debian.org>
1246 * infttrace.h (target_waitkind): Forward declare type instead of pulling
1249 2004-05-25 Joel Brobecker <brobecker@gnat.com>
1251 * NEWS: Document new "start" command.
1253 2004-05-25 Randolph Chung <tausq@debian.org>
1255 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
1258 2004-05-25 Randolph Chung <tausq@debian.org>
1260 * hppa-hpux-tdep.c (offsetof): Define.
1261 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
1262 (hppa32_hpux_frame_base_before_sigtramp)
1263 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
1264 (hppa64_hpux_frame_saved_pc_in_sigtramp)
1265 (hppa64_hpux_frame_base_before_sigtramp)
1266 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
1268 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
1269 (hppa_hpux_sigtramp_frame_unwind_cache)
1270 (hppa_hpux_sigtramp_frame_this_id)
1271 (hppa_hpux_sigtramp_frame_prev_register)
1272 (hppa_hpux_sigtramp_frame_unwind)
1273 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
1274 (hppa_hpux_init_abi): Register sigtramp unwinder.
1275 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
1277 2004-05-25 Randolph Chung <tausq@debian.org>
1279 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
1280 and multiple stack unwinds.
1281 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
1283 2004-05-25 Andrew Cagney <cagney@gnu.org>
1285 * symfile.h (symbol_file_add_from_memory): Delete declaration.
1286 * symfile-mem.h: Delete file.
1287 * symfile-mem.c: Do not include "symfile-mem.h".
1288 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
1289 "struct bfd_section". When an error do not bother returning NULL.
1290 (add_symbol_file_from_memory_command): Use "struct bfd" and
1291 "struct bfd_section".
1292 * Makefile.in (symfile_mem_h): Delete.
1293 (symfile-mem.o): Update dependencies.
1295 2004-05-25 Nick Roberts <nickrob@gnu.org>
1297 * gdb-mi.el: New file.
1299 2004-05-25 Andrew Cagney <cagney@gnu.org>
1301 * inftarg.c: Include "observer.h".
1302 (child_attach, child_create_inferior): Notify inferior_created.
1303 * corelow.c: Include "observer.h".
1304 (core_open): Notify inferior_created.
1305 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
1307 2004-05-25 Andrew Cagney <cagney@gnu.org>
1309 * target.h (struct target_ops): Add from_tty to
1311 (target_create_inferior, find_default_create_inferior): Update.
1312 * infcmd.c (run_command): Update.
1313 * wince.c (child_create_inferior): Update.
1314 * win32-nat.c (child_create_inferior): Update.
1315 * uw-thread.c (uw_thread_create_inferior): Update.
1316 * thread-db.c (thread_db_create_inferior): Update.
1317 * target.c (debug_to_create_inferior)
1318 (find_default_create_inferior): Update.
1319 (maybe_kill_then_create_inferior): Update.
1320 * sol-thread.c (sol_thread_create_inferior): Update.
1321 * remote.c (extended_remote_async_create_inferior)
1322 (extended_remote_create_inferior): Update.
1323 * remote-vx.c (vx_create_inferior): Update.
1324 * remote-st.c (st2000_create_inferior): Update.
1325 * remote-sim.c (gdbsim_create_inferior): Update.
1326 * remote-sds.c (sds_create_inferior): Update.
1327 * remote-rdp.c (remote_rdp_create_inferior): Update.
1328 * remote-rdi.c (arm_rdi_create_inferior): Update.
1329 * remote-m32r-sdi.c (m32r_create_inferior): Update.
1330 * remote-e7000.c (e7000_create_inferior): Update.
1331 * procfs.c (procfs_create_inferior): Update.
1332 * ocd.c (ocd_create_inferior): Update.
1333 * ocd.h (ocd_create_inferior): Update.
1334 * nto-procfs.c (procfs_create_inferior): Update.
1335 * monitor.c (monitor_create_inferior): Update.
1336 * lin-lwp.c (lin_lwp_create_inferior): Update.
1337 * inftarg.c (child_create_inferior): Update.
1338 * hpux-thread.c (hpux_thread_create_inferior): Update.
1339 * gnu-nat.c (gnu_create_inferior): Update.
1341 2004-05-25 Andrew Cagney <cagney@gnu.com>
1343 * MAINTAINERS: Update e-mail address.
1345 2004-05-24 Randolph Chung <tausq@debian.org>
1347 * thread.c (info_threads_command, thread_apply_all_command)
1348 (thread_apply_command, thread_command, do_captured_thread_select):
1349 Remove HPUXHPPA-specific code.
1351 2004-05-24 Randolph Chung <tausq@debian.org>
1353 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
1355 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
1358 2004-05-24 Joel Brobecker <brobecker@gnat.com>
1360 * infcmd.c (kill_if_already_running): New function, extracted
1362 (run_command): Replace extracted code by call to
1363 kill_if_already_running().
1364 (start_command): New function.
1365 (_initialize_infcmd): Add "start" command.
1367 2004-05-24 Mark Kettenis <kettenis@gnu.org>
1369 Add OpenBSD/m88k support.
1370 * NEWS (New native configurations): Mention OpenBSD/m88k.
1371 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
1372 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
1373 * Makefile.in (m88k_tdep_h): New variable.
1374 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
1375 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
1376 * configure.host: Add m88*-*-openbsd*.
1377 * configure.tgt: Add m88*-*-openbsd*.
1379 2004-05-24 Jim Blandy <jimb@redhat.com>
1381 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
1384 2004-05-24 Kevin Buettner <kevinb@redhat.com>
1386 * symtab.c (fixup_section): Search section table when lookup by
1389 2004-05-24 Randolph Chung <tausq@debian.org>
1391 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
1394 2004-05-24 Mark Kettenis <kettenis@gnu.org>
1396 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
1397 register number in regcache_raw_collect call.
1398 (m68kbsd_collect_fpregset): Likewise.
1399 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
1401 * regset.h (struct regset): Add back `regset' member.
1403 2004-05-23 Mark Kettenis <kettenis@gnu.org>
1405 * configure.in: Check for td_pcb in `struct thread'.
1406 * configure, config.in: Regenerated.
1408 * dpx2-nat.c: Remove file.
1409 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
1410 (dpx2-nat.o): Remove dependencies.
1412 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
1413 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
1414 (amd64obsd_supply_pcb): New function.
1415 (_initialize_amd64obsd_nat): Enable libkvm interface.
1416 * Makefile.in (amd64obsd-nat.o): Update dependencies.
1417 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
1418 (LOADLIBES): New variable.
1420 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
1421 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
1422 (sparc32nbsd_supply_pcb): New function.
1423 (_initialize_sparcnbsd_nat): Enable libkvm interface.
1424 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
1425 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1426 (LOADLIBES): New variable.
1428 2004-05-22 Mark Kettenis <kettenis@gnu.org>
1430 * bsd-kvm.c, bsd-kvm.h: New files.
1431 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1433 (i386fbsd_supply_pcb): New function.
1434 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
1435 (i386fbsd-nat.o): Update dependencies.
1436 (bsd_kvm_h): New variable.
1437 (bsd-kvm.o): New dependency.
1438 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1439 (LOADLIBES): New variable.
1441 * regset.c: Tweak comment.
1442 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
1444 * regset.h: Update copyright year.
1445 (struct regset): Remove `descr' member, add `gdbarch' member.
1446 (regset_alloc): Adjust prototype and comment.
1447 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
1448 (i386_supply_fpregset): Likewise.
1449 (i386_regset_from_core_section): Update call to regset_alloc.
1450 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
1452 (i386obsd_aout_regset_from_core_section): Update call to
1454 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
1456 (i386nbsd_aout_regset_from_core_section): Update call to
1458 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
1460 (amd64_regset_from_core_section): Update call to regset_alloc.
1461 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
1463 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
1464 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
1465 &sparc32nbsd_gregset in sparc32_supply_gregset call.
1466 (sparc32nbsd_init_abi): Update call to regset_alloc.
1467 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
1468 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
1469 (sparc64obsd_init_abi): Update call to regset_alloc.
1470 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
1471 &sparc64nbsd_gregset in sparc64_supply_gregset call.
1472 (sparc64nbsd_init_abi): Update call to regset_alloc.
1473 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
1474 &sparc64fbsd_gregset in sparc64_supply_gregset call.
1475 (sparc64fbsd_init_abi): Update call to regset_alloc.
1477 2004-05-22 Jim Blandy <jimb@redhat.com>
1479 * ppc-tdep.h (spe_register_p): New declaration.
1480 (struct gdbarch_tdep): New members: ppc_acc_regnum and
1482 * rs6000-tdep.c (spe_register_p): New function.
1483 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
1485 (rs6000_gdbarch_init): Initialize the new members of the tdep
1488 2004-05-21 Jim Blandy <jimb@redhat.com>
1490 * ppc-linux-nat.c (fetch_register): Move code back to be next
1491 to the comment that describes it. (Moved code, instead of
1492 comment, for symmetry with store_register.)
1494 Allocate regset structures in the gdbarch's obstack, not using
1496 * regset.c (regset_alloc): Renamed from regset_xmalloc.
1497 Add 'arch' argument. Allocate the regset on arch's obstack, not
1499 * regset.h (regset_alloc): Update declaration.
1500 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
1502 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
1503 * i386-tdep.c (i386_regset_from_core_section): Same.
1504 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
1505 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
1506 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
1507 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
1508 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
1509 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
1511 2004-05-21 Joel Brobecker <brobecker@gnat.com>
1513 * config/djgpp/fnchange.lst: Undo previous change, was useless.
1515 2004-05-21 Jim Blandy <jimb@redhat.com>
1517 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
1518 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
1520 2004-05-20 Jim Blandy <jimb@redhat.com>
1522 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
1524 2004-05-20 Mark Kettenis <kettenis@gnu.org>
1526 * regset.h: Make prototype const-correct.
1527 * regset.c (regset_xmalloc): Make const-correct.
1529 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
1531 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
1532 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
1533 (symbol_search_name): Declare.
1535 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
1536 (iter_name_next_hashed): Ditto.
1537 (iter_name_next_linear): Ditto.
1538 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
1540 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
1541 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
1542 (symbol_search_name): New function.
1544 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
1546 * minsyms.c (build_minimal_symbol_hash_tables): Change
1547 test for adding to demangled hash table to check for difference
1548 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
1550 2004-05-19 Jim Blandy <jimb@redhat.com>
1552 Use a constructor function to create regset structures.
1553 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
1554 (struct regset): Use supply_regset_ftype. Add new
1555 'collect_regset' member.
1556 (regset_xmalloc): New declaration.
1557 * regset.c: New file.
1558 * am64-tdep.c (amd64_regset_from_core_section): Use
1559 regset_xmalloc to construct regset structures.
1560 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
1561 * i386-tdep.c (i386_regset_from_core_section): Same.
1562 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
1563 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
1564 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
1565 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
1566 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
1567 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
1568 * Makefile.in (COMMON_OBS): Add regset.o.
1569 (regset.o): New rule.
1571 2004-05-19 Joel Brobecker <brobecker@gnat.com>
1573 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
1574 and pthread_cond_wait.c.
1576 2004-05-18 Jim Blandy <jimb@redhat.com>
1578 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
1579 before the mach-specific switch, and then let the individual cases
1580 override the defaults, rather than leaving them uninitialized
1581 until the switch and then setting them in each case.
1583 2004-05-18 Randolph Chung <tausq@debian.org>
1585 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
1586 millicode functions.
1588 2004-05-18 Randolph Chung <tausq@debian.org>
1590 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
1591 references to dld_flags_buffer consistent.
1593 2004-05-18 Randolph Chung <tausq@debian.org>
1595 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
1596 it for unwinding the stack.
1598 2004-05-18 Randolph Chung <tausq@debian.org>
1600 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
1601 Undefine these so we can overide them using gdbarch.
1603 2004-05-18 Randolph Chung <tausq@debian.org>
1605 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
1606 handling for 64-bit HPUX (elf).
1608 2004-05-18 Daniel Jacobowitz <dan@debian.org>
1610 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
1612 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1613 * ia64-tdep.c (examine_prologue): Likewise.
1614 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
1615 * v850-tdep.c (v850_fix_call_dummy): Likewise.
1617 2004-05-18 Mark Kettenis <kettenis@gnu.org>
1619 * vax-tdep.c (vax_return_value): Implement
1620 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1622 2004-05-17 Mark Kettenis <kettenis@gnu.org>
1624 * vax-tdep.c (vax_return_value): Fix typo.
1626 2004-05-17 Andrew Cagney <cagney@redhat.com>
1628 * MAINTAINERS: Mark Salter was also responsible for
1631 * NEWS: Mention signal fixes.
1633 2004-05-17 Randolph Chung <tausq@debian.org>
1635 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
1636 check to see if we are unwinding an export stub. Export stubs clobber
1637 the %rp in the call path and stores the original rp in a stack slot.
1639 2004-05-17 Jim Blandy <jimb@redhat.com>
1641 * MAINTAINERS: Update address for J.T. Conklin.
1643 2004-05-17 Randolph Chung <tausq@debian.org>
1645 * hppa-tdep.c: Remove superfluous #include's.
1646 * Makefile.in (hppa-tdep.o): Update dependencies.
1648 2004-05-17 Randolph Chung <tausq@debian.org>
1650 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
1651 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
1652 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
1653 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
1654 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
1655 Remove static function declarations.
1657 2004-05-17 Mark Kettenis <kettenis@gnu.org>
1659 * alphabsd-nat.c: Update copyright year.
1660 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
1662 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
1665 * m68k-tdep.c (m68k_svr4_return_value): Implement
1666 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1668 2004-05-16 Mark Kettenis <kettenis@gnu.org>
1670 * sol-thread.c Update copyright year. Fix various coding
1671 standards violations. Tweak a few comments.
1672 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
1675 2004-05-15 Randolph Chung <tausq@debian.org>
1677 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
1678 as pointer instead of array reference since HPUX compiler does
1679 not accept unsized array arguments.
1680 * somsolib.c (dld_flags_buffer): Use constant array size.
1682 2004-05-15 Mark Kettenis <kettenis@gnu.org>
1684 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
1685 offset with decimal offset.
1686 (amd64obsd_sigcontext_addr): Return correct address for entire
1689 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
1690 instead of get_frame_base.
1692 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
1693 (fill_gregset): Use regcache_raw_collect.
1695 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
1698 * config/sparc/tm-nbsd64.h: Remove file.
1699 * config/tm-sunos.h: Remove file.
1701 2004-05-15 Joel Brobecker <brobecker@gnat.com>
1703 * rs6000-tdep.c (store_param_on_stack_p): New function,
1704 an improved version of some code extracted from skip_prologue().
1705 (skip_prologue): Use store_param_on_stack_p() to detect
1706 instructions saving a parameter on the stack. Detect when r0
1707 is used to save a parameter.
1708 Do not mark "li rx, SIMM" instructions as part of the prologue,
1709 unless the following instruction is also part of the prologue.
1711 2004-05-14 Andrew Cagney <cagney@redhat.com>
1713 * infrun.c (handle_inferior_event): Simplify
1714 STEP_OVER_UNDEBUGGABLE.
1716 * infrun.c (handle_step_into_function): Delete function.
1717 (handle_inferior_event): Inline calls to
1718 handle_step_into_function.
1720 2004-05-14 Jerome Guitton <guitton@rome.act-europe.fr>
1722 * rs6000-nat.c: Fix a comment.
1724 2004-05-12 David Anderson <davea@sgi.com>
1726 Committed by Jim Blandy <jimb@redhat.com>:
1727 * regcache.c (struct regcache_descr): fix comment spelling.
1729 2004-05-13 J. Brobecker <brobecker@gnat.com>
1731 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
1732 Fixes a link link failure.
1734 2004-05-13 J. Brobecker <brobecker@gnat.com>
1736 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
1737 error that was causing the build to fail.
1739 2004-05-13 J. Brobecker <brobecker@gnat.com>
1741 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
1742 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
1744 2004-05-13 Andrew Cagney <cagney@redhat.com>
1746 * infrun.c (handle_inferior_event): Check for
1747 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
1748 calls. Update comments.
1750 2004-05-13 Jim Blandy <jimb@redhat.com>
1752 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
1753 (fetch_regs_user_thread, fetch_regs_kernel_thread)
1754 (store_regs_user_thread, store_regs_kernel_thread): Use
1755 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
1756 * ppc-linux-nat.c (fill_gregset): Same.
1757 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1758 (ppc_linux_sigtramp_cache): Same.
1759 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
1760 (ppcnbsd_sigtramp_cache_init): Same.
1761 * rs6000-nat.c (fetch_core_registers): Same.
1762 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
1763 (rs6000_frame_cache): Same.
1765 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
1766 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
1767 of assuming that the gprs are numbered starting with zero.
1768 * ppc-linux-nat.c (fill_gregset): Same.
1769 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
1770 * ppcnbsd-nat.c (getregs_supplies): Same.
1771 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
1772 * rs6000-nat.c (fetch_core_registers): Same.
1773 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
1775 2004-05-07 Michael Snyder <msnyder@redhat.com>
1777 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
1778 LOC_COMPUTED_ARG, and LOC_INDIRECT.
1780 2004-05-13 Andrew Cagney <cagney@redhat.com>
1782 * infrun.c (handle_inferior_event): Use frame_unwind_id.
1784 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
1786 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
1787 base_address for shared libraries.
1789 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
1791 * MAINTAINERS (write after approval): Add myself.
1793 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
1795 * breakpoint.c (bpstat_stop_status): Add new argument
1796 STOPPED_BY_WATCHPOINT. Use it instead of testing
1797 target_stopped_data_address agaist 0 to check whether
1798 or not we stopped due to a hardware watchpoint.
1799 * breakpoint.h (bpstat_stop_status): Adapt prototype.
1800 * infrun.c (handle_inferior_event): Call bpstat_stop_status
1803 2004-05-12 Jim Blandy <jimb@redhat.com>
1805 * configure.in: When checking whether we should use the -bbigtoc
1806 option, don't forget to restore the original value of LDFLAGS.
1807 * configure: Regenerated.
1809 2004-05-12 Andrew Cagney <cagney@redhat.com>
1811 * thread.c (load_infrun_state): Delete step_sp.
1812 * infrun.c (context_switch): Ditto.
1813 * inferior.h (step_sp): Ditto.
1814 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
1815 * gdbthread.h (struct thread_info, save_infrun_state)
1816 (restore_infrun_state): Ditto.
1818 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
1820 * MAINTAINERS (write after approval): Add myself.
1822 2004-05-12 Andrew Cagney <cagney@redhat.com>
1824 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
1825 eliminate reference to step_sp.
1826 (struct execution_control_state, init_execution_control_state)
1827 (handle_inferior_event, keep_going): Delete update_step_sp and
1829 * infcmd.c (step_sp): Note that variable is unused.
1831 2004-05-11 Andrew Cagney <cagney@redhat.com>
1833 * infrun.c (step_over_function): Delete function.
1834 (handle_step_into_function): Use insert_step_resume_breakpoint.
1835 (insert_step_resume_breakpoint): Fix assertion.
1837 2004-05-11 Nick Roberts <nickrob@gnu.org>
1839 * utils.c (defaulted_query): Just use the normal query input type
1840 when printing the annotations.
1842 2004-05-11 Andrew Cagney <cagney@redhat.com>
1844 * infrun.c (handle_inferior_event): Simplify code handling
1845 step-into or return-from a signal trampoline.
1847 2004-05-11 Andrew Cagney <cagney@redhat.com>
1849 * ppcnbsd-tdep.c: Include "gdb_assert.h".
1850 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
1852 2004-05-10 Jim Blandy <jimb@redhat.com>
1854 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
1855 with a call to internal_error.
1857 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
1858 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
1859 processor variant lacks those registers.
1860 (ppc_floating_point_unit_p): Change description to make it clear
1861 that this returns info about the ISA, not the ABI.
1862 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
1863 return true or false by checking tdep->ppc_fp0_regnum and
1864 tdep->ppc_fpscr_regnum. The original code replicated the BFD
1865 arch/mach switching done in rs6000_gdbarch_init; it's better to
1866 keep that logic there, and just check the results here.
1867 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
1868 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
1869 floating-point registers.
1870 (ppc_supply_fpregset, ppc_collect_fpregset)
1871 (rs6000_push_dummy_call, rs6000_extract_return_value)
1872 (rs6000_store_return_value): Assert that we have floating-point
1874 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
1875 (rs6000_frame_cache): Don't note the locations at which
1876 floating-point registers were saved if we have no fprs.
1877 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
1879 (fetch_regs_user_thread, fetch_regs_kernel_thread)
1880 (store_regs_user_thread, store_regs_kernel_thread): Only call
1881 supply_fprs / fill_fprs if we actually have floating-point
1883 (special_register_p): Check ppc_fpscr_regnum before matching
1885 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
1886 supply / collect fpscr if we don't have it.
1887 * ppc-bdm.c: #include "gdb_assert.h".
1888 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
1889 have floating-point registers, since I can't test this code on
1890 FP-free systems to adapt it.
1891 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
1892 fpscr and floating point register numbers if they don't exist.
1893 (fetch_register): Assert that we have floating-point registers
1894 before we reach the code that handles them.
1895 (store_register): Same. And use tdep instead of calling
1897 (fill_fpregset): Don't try to collect FP registers and fpscr if we
1899 (ppc_linux_sigtramp_cache): Don't record the saved locations of
1900 fprs and fpscr if we don't have them.
1901 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
1903 * ppcnbsd-nat.c: #include "gdb_assert.h".
1904 (getfpregs_supplies): Assert that we have floating-point registers.
1905 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
1906 * ppcobsd-tdep.c: #include "gdb_assert.h".
1907 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
1908 have floating-point registers.
1909 * rs6000-nat.c (regmap): Don't match against the fpscr and
1910 floating point register numbers if they don't exist.
1911 (fetch_inferior_registers, store_inferior_registers,
1912 fetch_core_registers): Only fetch / store / supply the
1913 floating-point registers and the fpscr if we have them.
1914 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
1915 (ppcobsd-tdep.o): Update dependencies.
1917 2004-05-10 Andrew Cagney <cagney@redhat.com>
1919 * infrun.c (through_sigtramp_breakpoint): Delete variable.
1920 (context_switch): Do not switch through_sigtramp_breakpoint.
1921 * gdbthread.h (save_infrun_state, load_infrun_state)
1922 (struct thread_info): Delete through_sigtramp_breakpoint parameter
1923 and structure member.
1924 * thread.c (load_infrun_state, save_infrun_state): Update.
1926 2004-05-10 Mark Kettenis <kettenis@gnu.org>
1928 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
1930 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1932 * acinclude.m4: Quote macro names being defined by AC_DEFUN
1934 * aclocal.m4: Regenerate.
1936 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
1938 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
1940 2004-05-10 Andrew Cagney <cagney@redhat.com>
1942 * infrun.c (check_sigtramp2): Delete function.
1943 (handle_inferior_event): When single stepping, and taking a
1944 signal, set a breakpoint at the signal return address. Delete
1945 redundant calls to check_sigtramp2.
1946 (insert_step_resume_breakpoint): New function.
1947 (through_sigtramp_breakpoint, handle_inferior_event)
1948 (follow_exec, wait_for_inferior, fetch_inferior_event)
1949 (currently_stepping, keep_going): Delete most uses of
1950 through_sigtramp_breakpoint, not that it should be deleted.
1951 (delete_breakpoint_current_contents): Delete function.
1953 2004-05-10 Randolph Chung <tausq@debian.org>
1955 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
1957 * config/pa/tm-linux.h: New file.
1959 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
1961 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
1962 of prefixes. Don't print the prefix twice in the CLI.
1964 2004-05-10 Jim Blandy <jimb@redhat.com>
1966 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
1967 collect all the gprs.
1969 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
1970 loop collecting gprs.
1972 2004-05-09 Andrew Cagney <cagney@redhat.com>
1974 * remote-vx.c (net_step): Delete step-range code.
1975 * remote.c (remote_resume, init_all_packet_configs)
1976 (set_remote_protocol_E_packet_cmd)
1977 (show_remote_protocol_E_packet_cmd)
1978 (remote_protocol_E, show_remote_cmd, _initialize_remote)
1979 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
1980 (show_remote_protocol_e_packet_cmd): Ditto.
1982 2004-05-09 Mark Kettenis <kettenis@gnu.org>
1984 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
1986 * hppa-tdep.h: Update copyright year.
1987 (struct trad_frame_saved_reg): Add opaque declaration.
1989 * amd64-tdep.c (amd64_return_value): Implement
1990 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1992 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
1993 (m68k_value_to_register): New functions.
1994 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
1997 * defs.h (enum return_value_convention): Add
1998 RETURN_VALUE_ABI_RETURNS_ADDRESS and
1999 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
2000 * infcmd.c (legacy_return_value): New function.
2001 (print_return_value): Rwerite to implement
2002 RETURN_VALUE_ABI_RETURNS_ADDRESS.
2003 * values.c (using_struct_return): Check for inequality to
2004 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
2005 RETURN_VALUE_STRUCT_CONVENTION.
2006 * i386-tdep.c (i386_return_value): Implement
2007 RETURN_VALUE_ABI_RETURNS_ADDRESS.
2009 * vax-tdep.c: Tweak comments. Reorder include files. Don't
2010 include "symtab.h", "opcode/vax.h" and "inferior.h".
2011 (vax_skip_prologue): Replace calls to read_memory_integer by calls
2012 to read_memory_unsigned_integer.
2013 (vax_gdbarch_init): Reorder.
2014 (_initialize_vax_tdep): Spell out prototype.
2015 * Makefile.in (vax-tdep.o): Update dependencies.
2017 2004-05-08 Andrew Cagney <cagney@redhat.com>
2019 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
2020 * target.c (target_detach, target_disconnect): Ditto.
2022 * infcall.c (call_function_by_hand): When no
2023 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
2024 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
2025 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
2026 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2027 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2029 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
2030 * gdbarch.h, gdbarch.c: Re-generate.
2031 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
2032 deprecated_fix_call_dummy.
2033 * v850-tdep.c (v850_gdbarch_init): Ditto.
2034 * infcall.c (call_function_by_hand): Do not call
2035 DEPRECATED_FIX_CALL_DUMMY.
2037 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
2038 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
2039 * gdbarch.h, gdbarch.c: Re-generate.
2040 * arm-linux-tdep.c (arm_linux_call_dummy_words)
2041 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
2042 deprecated_sizeof_call_dummy_words.
2043 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
2044 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2045 * v850-tdep.c (v850_gdbarch_init): Ditto.
2046 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2047 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
2048 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2049 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2050 * arch-utils.h (legacy_call_dummy_words)
2051 (legacy_sizeof_call_dummy_words): Delete declarations.
2052 * arch-utils.c (legacy_call_dummy_words)
2053 (legacy_sizeof_call_dummy_words): Delete variables.
2055 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
2056 * gdbarch.h, gdbarch.c: Re-generate.
2057 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
2058 * infcall.c (call_function_by_hand): Eliminate call to
2059 DEPRECATED_PUSH_DUMMY_FRAME.
2060 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
2062 (ns32k_push_dummy_frame): Delete function.
2064 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
2065 deprecated_call_dummy_breakpoint_offset or
2066 deprecated_call_dummy_start_offset.
2067 * dummy-frame.c, arm-tdep.c: Update comments.
2068 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
2069 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
2070 * gdbarch.h, gdbarch.c: Re-generate.
2072 * infcall.c (legacy_push_dummy_code): Delete function.
2073 (push_dummy_code): Delete call.
2075 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
2076 * gdbarch.h, gdbarch.c: Re-generate.
2077 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
2078 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
2079 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
2080 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
2082 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
2083 (struct frame_info): Delete opaque declaration.
2084 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
2085 * frame.c (get_frame_type): Delete call.
2087 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
2089 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
2090 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
2092 2004-05-08 Mark Kettenis <kettenis@gnu.org>
2094 * alphanbsd-tdep.c: Include "gdb_string.h".
2095 * armnbsd-tdep.c: Update copyright year.
2096 Include "gdb_string.h".
2097 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
2100 * delta68-nat.c: Remove file.
2101 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
2102 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
2103 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
2104 (delta68-nat.o): Remove dependency.
2106 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
2108 (m68k_gdbarch_init): Don't set
2109 deprecated_frameless_function_invocation.
2111 2004-05-07 Randolph Chung <tausq@debian.org>
2113 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
2114 read_memory_nobpt for code reading when doing frame unwinding.
2115 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
2117 2004-05-07 Randolph Chung <tausq@debian.org>
2119 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
2120 instead of sp, handle sigaltstack case.
2121 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
2122 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
2123 signal handler and not that of the caller.
2124 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
2125 hppa_linux_sigtramp_find_sigcontext.
2127 2004-05-07 Randolph Chung <tausq@debian.org>
2129 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
2131 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
2132 * hppa-linux-nat.c (fetch_register, store_register): Define.
2133 (fetch_inferior_registers, store_inferior_registers): Define.
2134 (supply_gregset): Add comment and clean up some unneeded code.
2135 (fill_gregset): Add comment and fix so that it saves registers in
2136 the right place in the gregset.
2137 (fill_fpregset): Fix buffer overrun problem.
2138 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
2140 2004-05-07 Randolph Chung <tausq@debian.org>
2142 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
2143 do common handling of the pcoqt register.
2144 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
2145 to use helper function.
2146 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
2147 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
2148 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
2149 generic fallback unwinder when all else fails.
2150 (hppa_gdbarch_init): Add fallback sniffer.
2151 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
2152 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
2153 to use helper function.
2155 2004-05-08 Joel Brobecker <brobecker@gnat.com>
2157 * config/djgpp/fnchange.lst: Add translation rules for
2158 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
2160 2004-05-08 Mark Kettenis <kettenis@gnu.org>
2162 * frame.c (get_prev_frame_1): Work around GCC bug.
2163 * frame.h: Add comment about GCC bug.
2165 2004-05-07 Andrew Cagney <cagney@redhat.com>
2167 * observer.c: Include "commands.h" and "gdbcmd.h".
2168 (observer_debug, _initialize_observer): Add the
2169 command "set/show debug observer".
2170 * observer.sh: When observer debugging, log notify calls.
2171 * Makefile.in (observer.o): Update dependencies.
2173 2004-05-07 Jason Molenda (jmolenda@apple.com)
2175 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
2177 2004-05-07 Jim Blandy <jimb@redhat.com>
2179 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
2180 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
2181 to recognize gpr regnums, instead of assuming that
2182 tdep->ppc_fp0_regnum marks the end of the general-purpose
2185 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
2186 the given architecture has floating-point registers.
2188 2004-05-07 Andrew Cagney <cagney@redhat.com>
2190 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
2192 * gdbarch.h, gdbarch.c: Re-generate.
2193 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
2194 deprecated_use_generic_dummy_frames.
2196 2004-05-07 Brian Ford <ford@vss.fsi.com>
2198 * NEWS: Mention Cygwin DWARF 2 support.
2200 2004-05-07 Andrew Cagney <cagney@redhat.com>
2202 * objfiles.h (struct entry_info): Delete unused fields
2203 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
2204 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
2205 * mipsread.c (mipscoff_symfile_read): Update.
2206 * mdebugread.c (parse_partial_symbols): Update.
2207 * dwarfread.c (read_file_scope): Update.
2208 * dwarf2read.c (read_file_scope): Update.
2209 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
2210 * coffread.c (complete_symtab): Update.
2212 2004-05-07 Mark Kettenis <kettenis@gnu.org>
2214 * infcall.c (_initialize_infcall): Fix typo.
2216 2004-05-07 Andrew Cagney <cagney@redhat.com>
2218 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
2219 * command.h (add_setshow_zinteger_cmd): Declare.
2221 2004-05-06 Randolph Chung <tausq@debian.org>
2223 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
2224 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
2225 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
2226 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
2227 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
2228 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
2229 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
2231 * hppa-tdep.h: ... to here, with HPPA_ prefix.
2232 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
2233 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
2234 (hppa64_hpux_frame_find_saved_regs_in_sig)
2235 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
2236 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
2237 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
2238 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
2239 (hppa_linux_sigtramp_frame_prev_register): Likewise.
2240 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
2241 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
2242 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
2243 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
2244 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
2245 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
2246 (hppa32_register_type, hppa_cannot_store_register)
2247 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
2248 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
2249 * hpread.c (hpread_process_one_debug_symbol): Likewise.
2250 * pa64solib.c (pa64_solib_have_load_event)
2251 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
2252 (pa64_solib_unloaded_library_pathname): Likewise.
2253 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
2254 (som_solib_library_pathname): Likewise.
2256 2004-05-05 Jim Ingham <jingham@apple.com>
2258 * breakpoint.c (create_breakpoints): Copy the ignore count and
2259 thread id over from the pended breakpoint to the actual
2262 2004-05-05 Andrew Cagney <cagney@redhat.com>
2264 * gdbarch.sh (PARM_BOUNDARY): Delete.
2265 gdbarch.h, gdbarch.c: Re-generate.
2266 * valops.c (PARM_BOUNDARY): Delete macro.
2267 (value_push): Delete PARM_BOUNDARY code.
2268 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
2270 2004-05-04 Jim Blandy <jimb@redhat.com>
2272 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
2273 Don't assume that the gprs, fprs, and UISA sprs are
2274 contiguous, start at register number zero, and end with fpscr.
2275 Instead, use the numbers from the tdep structure.
2277 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
2278 should no longer be used in code specific to the RS6000 and its
2280 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
2281 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
2282 tdep->ppc_fp0_regnum.
2283 (ppc_supply_fpregset, ppc_collect_fpregset)
2284 (rs6000_push_dummy_call, rs6000_extract_return_value)
2285 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
2286 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
2288 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
2289 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
2291 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
2292 bdm_ppc_store_registers): Same.
2293 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
2294 (store_register, fill_fpregset): Same.
2295 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
2296 (ppc_linux_supply_fpregset): Same.
2297 * ppcnbsd-nat.c (getfpregs_supplies): Same.
2298 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
2300 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
2301 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
2302 ppc64_sysv_abi_return_value): Same.
2303 * rs6000-nat.c (regmap, fetch_inferior_registers)
2304 (store_inferior_registers, fetch_core_registers): Same.
2306 2004-05-01 Mark Kettenis <kettenis@gnu.org>
2308 * m68knbsd-nat.c: Remove file.
2309 * m68knbsd-tdep.c: Remove file.
2310 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
2312 * configure.host: Add m68k-*-netbsdelf*.
2313 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
2314 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
2315 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
2317 * config/m68k/nbsdelf.mh: New file.
2318 * config/m68k/nbsd.mt: New file.
2319 * config/m68k/nbsdaout.mt: Remove file.
2320 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
2321 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
2322 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
2323 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
2324 (use_struct_convention): Remove prototype.
2325 (USE_STRUCT_CONVENTION): Remove define.
2326 * config/m68k/xm-nbsd.h: Remove file.
2328 2004-05-04 Michael Snyder <msnyder@redhat.com>
2330 * m68k-tdep.c (m68k_gdbarch_init): Default to using
2331 reg_struct_return method (as gcc usually does for cross targets).
2333 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2335 Committed by Andrew Cagney.
2336 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
2337 alignment padding when accessing ucontext struct members.
2339 2004-05-04 Jim Blandy <jimb@redhat.com>
2341 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
2342 'ppc_gplast_regnum' member.
2343 (ppc_num_gprs): New enum constant.
2344 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
2345 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
2346 * rs6000-nat.c (regmap, fetch_inferior_registers,
2347 store_inferior_registers): Same.
2348 * rs6000-tdep.c (e500_pseudo_register_read)
2349 (e500_pseudo_register_write): Same.
2350 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
2352 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
2353 * ppc-tdep.h (ppc_num_fprs): New enum constant.
2354 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
2355 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
2357 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
2359 * ppc-linux-nat.c (ppc_register_u_addr): Same.
2360 * rs6000-nat.c (regmap, fetch_inferior_registers)
2361 (store_inferior_registers): Same.
2363 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
2366 2004-05-03 Joel Brobecker <brobecker@gnat.com>
2368 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
2369 failure detected by recent versions of GCC.
2370 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
2371 to be consistent with the usage in dwarf2_create_include_psymtab.
2373 2004-05-03 Michael Snyder <msnyder@redhat.com>
2375 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
2376 (heuristic_proc_start): Whitespace cleanup.
2378 2004-05-04 Mark Kettenis <kettenis@gnu.org>
2380 * sun3-nat.c: Remove file.
2381 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
2383 (ALLDEPFILES): Remove sun3-nat.c.
2384 (sun3-nat.o): Remove dependencies.
2386 * i386-interix-nat.c, i386-interix-tdep.c,
2387 config/i386/nm-interix.h, config/i386/interix.mh,
2388 config/i386/interix.mt: Remove files.
2389 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
2392 2004-05-03 Mark Kettenis <kettenis@gnu.org>
2394 * m68k-tdep.h (struct gdbarch_tdep): Add member
2395 struct_value_regnum.
2396 (m68k_svr4_init_abi): New prototype.
2397 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
2398 different calling conventions.
2399 (m68k_extract_return_value): Remove code dealing with single-field
2401 (m68k_store_return_value): Remove code dealing with single-field
2402 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
2403 (m68k_extract_struct_value_address): Remove function.
2404 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
2405 (m68k_reg_struct_return_p, m68k_return_value)
2406 (m68k_svr4_return_value): New functions.
2407 (m68k_use_struct_convention): Remove function.
2408 (m68k_push_dummy_call): Use new struct_value_regnum member of
2409 `struct gdbarch_tdep' instead of hardcoded register number to
2411 (m68k_svr4_init_abi): New function.
2412 (m68k_gdbarch_init): Don't set extract_return_value,
2413 store_return_values, deprecated_extract_struct_value_address and
2414 use_struct_convention. Set return_value instead. Initialize new
2415 struct_value_regnum member of `struct gdbarch_tdep'.
2416 * m68klinux-tdep.c: Update copyright year.
2417 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
2418 (m68k_linux_extract_struct_value_address): Remove function.
2419 (m68k_linux_init_abi): Don't set extract_return_value,
2420 store_return_values, deprecated_extract_struct_value_address and
2421 use_struct_convention. Call m68k_svr4_init_abi but override the
2422 new struct_value_regnum member of `struct gdbarch_tdep'.
2423 * Makefile.in (m68k-tdep.o): Update dependencies.
2425 2004-05-03 J. Brobecker <brobecker@gnat.com>
2427 * dwarf2read.c (line_header): Add new included_p field in
2429 (partial_die_info): New field has_stmt_list. New field line_offset.
2430 (dwarf2_create_include_psymtab): New function.
2431 (dwarf2_build_include_psymtabs): New function.
2432 (add_file_name): Add forward declaration. Initialize new field.
2433 (dwarf_decode_lines): Add new parameter. Enhance this procedure
2434 to be able to determine the list of files included by the
2435 given unit, and build their associated psymtabs.
2436 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
2438 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
2439 (read_file_scope): Update call to dwarf_decode_lines.
2440 (read_partial_die): Handle DW_AT_stmt_list attributes.
2442 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
2445 * configure.in: Revert special case for osf5.*.
2446 * configure: Regenerate.
2448 2004-05-02 Jim Blandy <jimb@redhat.com>
2450 Move the symbol-file-from-memory functions into their own file.
2451 * symfile-mem.c, symfile-mem.h: New files.
2452 * symfile.c (symbol_file_add_from_bfd): New function.
2453 (symbol_file_add): Call symbol_file_add_from_bfd.
2454 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
2455 Moved to symfile-mem.c.
2456 (_initialize_symfile): Move definition of
2457 add-symbol-file-from-memory command to symfile-mem.c.
2458 * symfile.h (symbol_file_add_from_bfd): New declaration.
2459 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
2460 * config/powerpc/linux.mt (TDEPFILES): Same.
2461 * Makefile.in (SFILES): Add symfile-mem.c.
2462 (symfile_mem_h): New variable.
2463 (HFILES_NO_SRCDIR): Add symfile-mem.h.
2464 (symfile-mem.o): New rule.
2466 2004-05-01 Andrew Cagney <cagney@redhat.com>
2468 * breakpoint.c (insert_bp_location): Use get_frame_id, and
2469 frame_find_by_id instead of frame_relative_level.
2470 (do_enable_breakpoint): Ditto.
2471 * thread.c: Update copyright.
2472 (info_threads_command): Ditto, simplify.
2474 * frame.c (deprecated_generic_get_saved_register): Delete
2475 function, moved to "xstormy16-tdep.c".
2476 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
2477 deprecated_generic_get_saved_register from "frame.c".
2478 (xstormy16_frame_saved_register): Call
2479 xstormy16_get_saved_register.
2480 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
2482 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
2483 * frame.h (deprecated_generic_get_saved_register): Delete.
2485 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
2487 * dwarfread.c: Update documentation on the state of dwarf-1.
2489 2004-05-01 Andrew Cagney <cagney@redhat.com>
2491 * stack.c (select_frame_command): Delete call to
2492 frame_relative_level.
2493 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
2495 (frame_info): Do not print FRAMELESS.
2496 (print_block_frame_labels): Replace DEPRECATED_STREQ.
2497 (catch_info): Delete #if0 code.
2499 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
2500 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
2501 of frame_relative_level.
2502 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
2504 * frame.h (enum frame_type): Add SENTINEL_FRAME.
2505 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
2506 frame_relative_level.
2508 * frame.h (deprecated_set_frame_type): Delete declaration.
2509 * frame.c (deprecated_set_frame_type): Delete function, update
2512 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
2513 * gdbarch.h, gdbarch.c: Re-generate.
2514 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
2515 (shnbsd_pc_in_sigtramp): Delete.
2516 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
2518 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
2520 * frame.h: Update comments.
2521 * ppc-linux-tdep.c: Update comments.
2522 * breakpoint.c (bpstat_what): Update comments.
2524 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
2525 m68klinux-tdep.o's dependencies, were previously added to
2528 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
2529 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
2530 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
2531 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
2532 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
2534 * Makefile.in (m68klinux-nat.o): Update dependencies.
2535 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
2536 (m68k_linux_sigtramp_frame_cache)
2537 (m68k_linux_sigtramp_frame_this_id)
2538 (m68k_linux_sigtramp_frame_prev_register)
2539 (m68k_linux_sigtramp_frame_unwind)
2540 (m68k_linux_sigtramp_frame_sniffer)
2541 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
2542 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
2543 names, use trad-frame.h.
2544 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
2545 (struct m68k_sigtramp_info): Delete.
2546 * m68k-tdep.c (m68k_sigtramp_frame_cache)
2547 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
2548 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
2549 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
2552 * infrun.c (check_sigtramp2): Delete check for
2553 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
2555 2004-05-01 Mark Kettenis <kettenis@gnu.org>
2557 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
2559 2004-05-01 Andrew Cagney <cagney@redhat.com>
2561 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
2562 (frv_linux_sigtramp_frame_cache)
2563 (frv_linux_sigtramp_frame_this_id)
2564 (frv_linux_sigtramp_frame_prev_register)
2565 (frv_linux_sigtramp_frame_unwind)
2566 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
2567 include "linux" in function and variable names, directly call
2568 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
2569 the latest trad-frame code.
2570 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
2571 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
2572 * Makefile.in (frv-linux-tdep.o): Update dependencies.
2573 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
2574 * frv-tdep.c (frv_sigtramp_frame_cache)
2575 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
2576 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
2578 (frv_gdbarch_init): Do not append a sigtramp sniffer.
2579 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
2580 (frv_set_sigcontext_reg_addr): Delete function.
2582 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
2583 (DEPRECATED_SIGTRAMP_END): Delete.
2584 * gdbarch.h, gdbarch.c: Re-generate.
2585 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
2586 * config/vax/tm-vaxbsd.h: Update copyright.
2587 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
2588 (DEPRECATED_IN_SIGTRAMP): Define.
2589 * config/m68k/tm-nbsd.h: Update copyright.
2590 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
2591 (DEPRECATED_IN_SIGTRAMP): Define.
2593 2004-05-01 Mark Kettenis <kettenis@gnu.org>
2595 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
2596 encondings. Fixes PR gdb/1628.
2598 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
2599 DW_CFA_restore state without a matching DW_CFA_remember_state
2600 instead of aborting. Fixes PR backtrace/1589.
2602 2004-04-30 Joel Brobecker <brobecker@gnat.com>
2604 * MAINTAINERS: Add self as AIX maintainer.
2605 Update my e-mail address in write-after-approval section.
2607 2004-04-30 Andrew Cagney <cagney@redhat.com>
2609 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
2610 (legacy_get_prev_frame): Ditto.
2612 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
2613 (mips_gdbarch_init): Do not set pc_in_sigtramp.
2614 * mipsread.c (sigtramp_address): Delete extern variable.
2615 (mipscoff_new_init): Delete reference.
2616 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
2617 (fixup_sigtramp): Delete function.
2618 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
2619 (fixup_sigtramp): Delete declarations.
2621 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
2622 deprecated_pc_in_sigtramp.
2623 (ppcnbsd_pc_in_sigtramp): Delete function.
2625 2004-05-01 Mark Kettenis <kettenis@gnu.org>
2627 * config/m68k/nm-nbsd.h: Tweak comments.
2628 * config/m68k/nm-nbsdaout.h: Likewise.
2630 2004-04-30 Andrew Cagney <cagney@redhat.com>
2632 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
2633 legacy_pc_in_sigtramp.
2634 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
2636 2004-05-01 Mark Kettenis <kettenis@gnu.org>
2638 Add OpenBSD/m68k support.
2639 * NEWS (New native configurations): Mention OpenBSD/m68k.
2640 * m68kbsd-tdep.c: New file.
2641 * m68kbsd-nat.c: New file.
2642 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
2643 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
2644 * configure.host: Add m68k-*-openbsd.
2645 * configure.tgt: Add m68k-*-openbsd.
2646 * config/m68k/tm-obsd.h: New file.
2647 * config/m68k/obsd.mt: New file.
2648 * config/m68k/obsd.mh: New file.
2649 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
2652 2004-04-30 Andrew Cagney <cagney@redhat.com>
2654 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
2655 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
2657 2004-04-30 Mark Kettenis <kettenis@gnu.org>
2659 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
2660 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
2662 2004-04-30 Brian Ford <ford@vss.fsi.com>
2664 Revert 2004-04-16 change.
2665 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
2666 (i386_coff_init_abi): Remove.
2667 * i386-tdep.h (i386_coff_init_abi): Remove.
2668 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
2670 2004-04-30 Andrew Cagney <cagney@redhat.com>
2672 * blockframe.c (find_pc_partial_function): Delete use of
2673 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
2674 DEPRECATED_SIGTRAMP_END.
2676 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
2677 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
2678 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
2679 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
2680 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
2682 * defs.h (deprecated_inside_entry_file): Delete declaration.
2683 * blockframe.c (deprecated_inside_entry_file): Delete function.
2684 (legacy_frame_chain_valid): Delete call.
2685 * sh64-tdep.c (sh64_frame_chain): Delete call.
2686 * objfiles.h: Update comments.
2687 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
2689 * frame.c (get_prev_frame): Delete call, update comments.
2691 2004-04-30 Brian Ford <ford@vss.fsi.com>
2693 * MAINTAINERS (Write After Approval): Add myself.
2695 2004-04-30 Andrew Cagney <cagney@redhat.com>
2697 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
2698 * gdbarch.h, gdbarch.c: Re-generate.
2699 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
2702 2004-04-30 Andrew Cagney <cagney@redhat.com>
2704 * gdb-events.sh (selected_thread_changed)
2705 (selected_frame_level_changed, target_changed): Delete.
2706 * gdb-events.h, gdb-events.c: Re-generate.
2707 * valops.c (value_assign): Update.
2708 * stack.c (select_frame_command, up_silently_base)
2709 (down_silently_base): Update.
2711 2004-04-29 Andrew Cagney <cagney@redhat.com>
2713 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
2714 registers correctly.
2715 (print_gp_register_row, mips32_heuristic_proc_desc)
2716 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
2717 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
2718 references to mips_isa_regsize.
2720 2004-04-29 Andrew Cagney <cagney@redhat.com>
2722 * mips-tdep.c (struct gdbarch_tdep): Delete
2723 mips_fp_register_double.
2724 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
2726 (mips_gdbarch_init): Do not set mips_fp_register_double.
2727 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
2729 2004-04-29 Joel Brobecker <brobecker@gnat.com>
2731 Committed by Andrew Cagney.
2732 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
2735 2004-04-29 Andrew Cagney <cagney@redhat.com>
2737 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
2738 gdbarch, use mips_abi, update callers.
2739 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
2740 mips_abi_regsize, update callers.
2741 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
2742 mips_default_abi_regsize.
2743 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
2744 mips_default_abi_regsize.
2746 2004-04-29 Andrew Cagney <cagney@redhat.com>
2748 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
2749 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
2750 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
2751 mips_default_abi_regsize.
2752 (mips_isa_regsize): Rename mips_regisze.
2753 * mipsnbsd-tdep.c: Update.
2754 * mips-linux-tdep.c: Update.
2755 * irix5-nat.c: Update.
2756 * mips-tdep.h (mips_isa_regsize): Update.
2758 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
2759 Delete all disabled code.
2760 * gdb-events.h, gdb-events.c: Re-generate.
2762 2004-04-19 Jerome Guitton <guitton@gnat.com>
2763 Mark Kettenis <kettenis@gnu.org>
2765 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
2766 the function begins with a branch instruction.
2768 2004-04-29 Mark Kettenis <kettenis@gnu.org>
2770 * i386-tdep.c: Fix spelling mistakes.
2772 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2773 Andrew Cagney <cagney@redhat.com>
2775 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
2777 * acconfig.h: Provide default _KMEMUSER value.
2778 * config.in, configure: Re-generate.
2779 * NEWS: Mention fix.
2781 2004-04-24 Randolph Chung <tausq@debian.org>
2783 * configure.host (hppa*-*-linux*): New target.
2784 * configure.tgt (hppa*-*-linux*): Likewise.
2785 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
2786 gdbarch_init_osabi() call earlier so that osabi-specific frame
2787 unwinders can be registered first.
2788 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
2790 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
2791 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
2792 * config/pa/linux.mh: New file.
2793 * config/pa/linux.mt: New file.
2794 * config/pa/nm-linux.h: New file.
2795 * config/pa/xm-linux.h: New file.
2796 * hppa-linux-nat.c: New file.
2797 * hppa-linux-tdep.c: New file.
2799 2004-04-28 Randolph Chung <tausq@debian.org>
2801 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
2803 (hppa32_push_dummy_call): Fix small struct and floating point argument
2804 passing, and make sure the stack frame is properly aligned.
2806 2004-04-28 Andrew Cagney <cagney@redhat.com>
2808 * stack.c (print_stack_frame): Fix description.
2810 * NEWS: Mention gdb/gdbserver/configure execute permission
2811 changed. PR server/519.
2813 2004-04-28 Andrew Cagney <cagney@redhat.com>
2815 * stack.c (print_stack_frame_stub): Delete declaration.
2816 (struct print_stack_frame_args, print_stack_frame)
2817 (print_frame_info, print_frame): Replace "source" with print what.
2818 Replace "print" with "print_level". Replace "args" with
2820 * frame.h (show_and_print_stack_frame, print_stack_frame)
2821 (print_frame_info): Update declarations.
2822 * stack.c (select_and_print_frame, frame_command)
2823 (current_frame_command, up_command, down_command): Update calls -
2824 use get_selected_frame, pass "enum print_what" for source, do not
2825 call frame_relative_level.
2826 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
2827 * remote-rdp.c (remote_rdp_open): Ditto.
2828 * remote-mips.c (common_open): Ditto.
2829 * remote-e7000.c (e7000_start_remote): Ditto.
2830 * ocd.c (ocd_start_remote): Ditto.
2831 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
2832 * infrun.c (normal_stop): Ditto.
2833 * inflow.c (kill_command): Ditto.
2834 * infcmd.c (finish_command): Ditto.
2835 * corelow.c (core_open): Ditto.
2836 * tracepoint.c (finish_tfind_command): Ditto.
2837 * thread.c (info_threads_command, info_threads_command)
2838 (restore_current_thread, do_captured_thread_select): Ditto.
2839 * ada-tasks.c (task_command): Ditto.
2841 2004-04-26 Orjan Friberg <orjanf@axis.com>
2843 * frame.c: Include "observer.h".
2844 (frame_observer_target_changed): New function.
2845 (_initialize_frame): Attach target_changed observer.
2846 * regcache.c: Include "observer.h".
2847 (regcache_observer_target_changed): New function.
2848 (_initialize_regcache): Attach target_changed observer.
2849 * valops.c: Include "observer.h".
2850 (value_assign): Notify target_changed event when modifying register.
2851 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
2853 2004-04-26 Orjan Friberg <orjanf@axis.com>
2855 From Paul Koning <pkoning@equallogic.com>:
2856 * breakpoint.c (free_valchain): New function.
2857 (insert_bp_location, delete_breakpoint): Use free_valchain.
2858 (remove_breakpoint): Do not remove the valchain.
2859 (bpstat_stop_status): If not stopped by watchpoint, skip
2860 watchpoints when generating stop status list.
2861 * infrun.c (handle_inferior_event): Make
2862 stepped_after_stopped_by_watchpoint a global variable.
2863 * remote.c (remote_stopped_data_address): Return watch data
2864 address rather than zero if stepped_after_stopped_by_watchpoint is
2867 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
2870 * configure.in: Check for curses after termcap.
2871 On osf5.*, do not check for ncurses.
2872 * configure: Regenerate.
2874 2004-04-25 Mark Kettenis <kettenis@gnu.org>
2876 * ppcobsd-nat.c: Include "ppc-tdep.h".
2877 * Makefile.in (ppcobsd-nat.o): Update dependencies.
2879 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
2880 Fixes PR tdep/1623 and PR tdep/1624.
2882 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
2884 * xmodem.h, xmodem.c: Remove files.
2885 * Makefile.in: Remove references to xmodem.h, xmodem.c.
2887 2004-04-23 Randolph Chung <tausq@debian.org>
2889 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
2890 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
2891 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
2892 for handling stackless frames.
2893 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
2895 2004-04-23 Randolph Chung <tausq@debian.org>
2897 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
2898 starts at a pc before the frame is created.
2900 2004-04-23 Joel Brobecker <brobecker@gnat.com>
2902 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
2904 2004-04-23 Jerome Guitton <guitton@gnat.fr>
2906 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
2907 use convert_typed_floating to get the appropriate format.
2909 2004-04-22 Randolph Chung <tausq@debian.org>
2911 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
2912 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
2913 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
2914 (hppa_sign_extend): Add prototype.
2915 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
2916 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
2917 (sign_extend): Rename with hppa_ prefix and make non-static. Other
2918 hppa targets will also use these functions.
2919 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
2920 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
2921 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
2922 (hppa_gdbarch_init): Remove gdbarch setting of
2923 skip_trampoline_code, in_solib_call_trampoline and
2924 in_solib_return_trampoline.
2925 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2926 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
2927 hppa_in_solib_call_trampoline.
2928 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
2929 Moved from hppa-tdep.c.
2930 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
2931 in_solib_call_trampoline and in_solib_return_trampoline.
2933 2004-04-22 Randolph Chung <tausq@debian.org>
2935 * hppa-tdep.c (hppa_debug): New variable.
2936 (find_unwind_entry, hppa_frame_cache): Add debug output.
2937 (_initialize_hppa_tdep): Add command to set debug flag.
2939 2004-04-22 Andrew Cagney <cagney@redhat.com>
2941 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
2943 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
2944 signal trampoline unwinder.
2945 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
2947 2004-04-22 Mark Kettenis <kettenis@gnu.org>
2949 Add OpenBSD/powerpc support.
2950 * NEWS (New native configurations): Mention OpenBSD/powerpc.
2951 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
2952 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
2953 (ppc_collect_fpregset): New prototypes.
2954 * ppcobsd-nat.c: New file.
2955 * ppcobsd-tdep.c: New file.
2956 * ppcobsd-tdep.h: New file.
2957 * rs6000-tdep.c: Include "regset.h".
2958 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
2959 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
2961 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
2962 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
2963 (rs6000-tdep.o): Update dependencies.
2964 * configure.host: Add powerpc-*-openbsd.
2965 * configure.tgt: Add powerpc-*-openbsd.
2966 * config/powerpc/obsd.mh: New file.
2967 * config/powerpc/nm-obsd.h: New file.
2968 * config/powerpc/obsd.mt: New file.
2970 2004-04-22 Andrew Cagney <cagney@redhat.com>
2972 * frame.h (show_frame_info): Delete declaration.
2974 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
2975 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
2976 * m32r-tdep.c (m32r_frame_this_id): Ditto.
2977 * frv-tdep.c (frv_frame_this_id): Ditto.
2978 * avr-tdep.c (avr_frame_this_id): Ditto.
2980 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
2982 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
2984 2004-04-22 Jim Blandy <jimb@redhat.com>
2986 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
2987 register number zero.
2989 2004-04-21 Michael Snyder <msnyder@redhat.com>
2991 * mips-tdep.c (heuristic_proc_start):
2992 Warning() already prefixes "Warning: ".
2994 2004-04-21 Andrew Cagney <cagney@redhat.com>
2996 * annotate.h (deprecated_annotate_starting_hook)
2997 (deprecated_annotate_stopped_hook)
2998 (deprecated_annotate_exited_hook)
2999 (deprecated_annotate_signal_hook)
3000 (deprecated_annotate_signalled_hook): Deprecate.
3001 * tracepoint.h (deprecated_create_tracepoint_hook)
3002 (deprecated_delete_tracepoint_hook)
3003 (deprecated_modify_tracepoint_hook)
3004 (deprecated_trace_find_hook)
3005 (deprecated_trace_start_stop_hook): Deprecate.
3006 * target.h (deprecated_target_new_objfile_hook): Deprecate.
3007 * remote.h (deprecated_target_resume_hook)
3008 (deprecated_target_wait_loop_hook): Deprecate.
3009 * gdbcore.h (deprecated_exec_file_display_hook)
3010 (deprecated_file_changed_hook): Deprecate.
3011 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
3012 * defs.h (deprecated_modify_breakpoint_hook)
3013 (deprecated_command_loop_hook, deprecated_show_load_progress)
3014 (deprecated_print_frame_info_listing_hook)
3015 (deprecated_query_hook, deprecated_warning_hook)
3016 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
3017 (deprecated_delete_breakpoint_hook)
3018 (deprecated_interactive_hook, deprecated_registers_changed_hook)
3019 (deprecated_readline_begin_hook, deprecated_readline_hook)
3020 (deprecated_readline_end_hook, deprecated_register_changed_hook)
3021 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
3022 (deprecated_context_hook, deprecated_target_wait_hook)
3023 (deprecated_attach_hook, deprecated_detach_hook)
3024 (deprecated_call_command_hook, deprecated_set_hook)
3025 (deprecated_error_hook, deprecated_error_begin_hook)
3026 (deprecated_ui_load_progress_hook): Deprecate.
3027 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
3028 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
3029 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
3030 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
3031 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
3032 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
3033 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
3034 * annotate.c, aix-thread.c: Update.
3036 2004-04-21 Andrew Cagney <cagney@redhat.com>
3038 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
3039 * vaxnbsd-tdep.c: Include "gdb_string.h".
3041 * symfile.c (symbol_file_add_from_memory): #if 0 function.
3042 (add_symbol_file_from_memory_command): #if 0 function body, call
3045 2004-04-21 Andrew Cagney <cagney@redhat.com>
3047 * gdbcore.h: Update copyright.
3048 (deprecated_add_core_fns): Rename add_core_fns.
3049 * win32-nat.c (_initialize_core_win32): Update.
3050 * sun3-nat.c (_initialize_core_sun3): Update.
3051 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
3052 * rs6000-nat.c (_initialize_core_rs6000): Update.
3053 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
3054 * nto-tdep.c (_initialize_nto_tdep): Update.
3055 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
3056 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
3057 * mips-nat.c (_initialize_core_mips): Update.
3058 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
3059 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
3060 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
3061 * lynx-nat.c (_initialize_core_lynx): Update.
3062 * irix5-nat.c (_initialize_core_irix5): Update.
3063 * i386-interix-nat.c (_initialize_core_interix): Update.
3064 * cris-tdep.c (_initialize_cris_tdep): Update.
3065 * corelow.c (deprecated_add_core_fns): Update.
3066 * core-regset.c (_initialize_core_regset): Update.
3067 * core-aout.c (_initialize_core_aout): Update.
3068 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
3069 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
3070 * alpha-nat.c (_initialize_core_alpha): Update.
3072 2004-04-21 Jim Blandy <jimb@redhat.com>
3074 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
3076 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
3078 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
3080 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
3081 (read_attribute_value): Update calls to dwarf_alloc_block.
3082 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
3084 (psymtab_to_symtab_1): Likewise. Clean up using
3085 free_stack_comp_unit.
3086 (add_to_cu_func_list): Use the comp_unit_obstack.
3088 2004-04-19 Joel Brobecker <brobecker@gnat.com>
3090 * dwarf2read.c (dwarf2_flag_true_p): New function.
3091 (die_is_declaration): Use the function above. Add some comments.
3093 2004-04-19 Mark Kettenis <kettenis@gnu.org>
3095 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
3096 architecture when registering sparcnbsd_core_osabi_sniffer.
3099 2004-04-18 Mark Kettenis <kettenis@gnu.org>
3101 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
3104 Based on a patch from Brian Ford <ford@vss.fsi.com>:
3105 * i386-tdep.c: Correct register numbering scheme comments
3107 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
3108 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
3109 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
3110 (i386_gdb_arch_init): Likewise.
3112 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
3113 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
3116 * m68k-tdep.h: Tweak comments.
3117 * m68k-tdep.c: Tweak comment.
3119 2004-04-17 Randolph Chung <tausq@debian.org>
3121 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
3122 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
3123 (hppa_hpux_som_init_abi): Set is_elf to 0.
3124 (hppa_hpux_elf_init_abi): Set is_elf to 1.
3125 * hppa-tdep.c (low_text_segment_address): Remove global.
3126 (record_text_segment_lowaddr): Pass in low address as parameter. Use
3127 section offset to calculate segment address.
3128 (internalize_unwinds): Define low_text_segment_address as local and
3129 pass to record_text_segment_lowaddr for ELF targets.
3130 (hppa_gdbarch_init): Zero fill tdep structure.
3131 (hppa_dump_tdep): Print tdep structure.
3132 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
3134 2004-04-17 Randolph Chung <tausq@debian.org>
3136 * hppa-tdep.c (hppa_pseudo_register_read): Define.
3137 (hppa_gdbarch_init): Set pseudo_register_read.
3138 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
3139 * regcache.c (supply_register): Remove check for
3140 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
3142 2004-04-17 Randolph Chung <tausq@debian.org>
3144 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
3145 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
3146 (hpread_adjust_stack_address): Move to hpread.c.
3147 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
3148 obj_private_struct): Move from tm-hppa.h.
3149 * hpread.c (hppa-tdep.h): Include.
3150 (hpread_adjust_stack_address): Move from hppa-tdep.c.
3151 (hpread_read_function_type, hpread_read_doc_function_type)
3152 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
3154 * pa64solib.c (hppa-tdep.h): Include.
3155 * somsolib.c (hppa-tdep.h): Include.
3156 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
3157 inferior_status): Remove unused forward declarations.
3158 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
3159 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
3160 obj_private_struct): Move to hppa-tdep.h.
3161 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
3163 2004-04-17 Randolph Chung <tausq@debian.org>
3165 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
3166 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
3167 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
3168 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
3169 Remove forward declaration and make static.
3170 (hppa_reg_struct_has_addr): Remove.
3172 2004-04-16 Joel Brobecker <brobecker@gnat.com>
3174 * observer.sh: Move comments in sed command to first column.
3176 2004-04-16 Jason Molenda (jmolenda@apple.com)
3178 * frame.c: Minor typeo corrections in comments.
3180 2004-04-16 Joel Brobecker <brobecker@gnat.com>
3182 * observer.c (observer_test_first_notification_function): Update
3184 (observer_test_second_notification_function): Likewise.
3185 (observer_test_third_notification_function): Likewise.
3187 2004-04-16 Mark Kettenis <kettenis@gnu.org>
3189 From Brian Ford <ford@vss.fsi.com>:
3190 * i386-tdep.c (i386_coff_init_abi): New function.
3191 * i386-tdep.h (i386_coff_init_abi): New prototype.
3192 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
3193 register number translation functions for DWARF and DWARF 2.
3195 2004-04-16 Joel Brobecker <brobecker@gnat.com>
3197 * dwarf2read.c: Back out my previous change, it was incorrect.
3199 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
3201 * dwarf2read.c: Include "hashtab.h".
3202 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
3204 (struct partial_die_info): Add comments. Use bitfields to reduce
3205 memory footprint. Add scope, scope_set, has_specification,
3206 spec_offset, die_parent, die_child, and die_sibling.
3207 (peek_die_abbrev): Add prototype.
3208 (partial_read_comp_unit_head): New function, broken out from
3209 dwarf2_build_psymtabs_hard.
3210 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
3211 Use partial_read_comp_unit_head. Initialize the CU and
3212 comp_unit_obstack. Update calls to read_partial_die and
3213 scan_partial_symbols. Use free_stack_comp_unit and
3215 (scan_partial_symbols): Change PDI to a pointer. Use the child and
3216 sibling pointers to walk partial DIEs. Call fixup_partial_die.
3217 Update calls to helper functions. Remove NAMESPACE argument.
3219 (partial_die_parent_scope, partial_die_full_name): New functions.
3220 (add_partial_symbol): Remove namespace argument. Update call to
3221 pdi_needs_namespace. Use partial_die_full_name. Handle
3222 DW_TAG_namespace. Check has_namespace_info flag.
3223 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
3224 tag. Handle namespaces.
3225 (add_partial_namespace, add_partial_enumeration): Simplify.
3226 (guess_structure_name): New function, derived from
3227 add_partial_structure.
3228 (add_partial_structure): Remove.
3229 (determine_class_name): Update comment.
3230 (dwarf2_read_abbrevs): Set has_namespace_info flag.
3231 (is_type_tag_for_partial, load_partial_dies): New functions.
3232 (read_partial_die): Pass abbrev and abbrev_len as arguments.
3233 Record specifications instead of following them immediately.
3234 (find_partial_die_in_comp_unit, find_partial_die)
3235 (fixup_partial_die, free_stack_comp_unit)
3236 (hashtab_obstack_allocate, dummy_obstack_deallocate)
3237 (partial_die_hash, partial_die_eq): New functions.
3238 * Makefile.in (hashtab_h): Define.
3239 (dwarf2read.o): Update dependencies.
3240 (observer_inc, observer_h): Move to the correct section.
3242 2004-04-15 Joel Brobecker <brobecker@gnat.com>
3244 * dwarf2read.c (dwarf2_attribute_true_p): New function.
3245 (die_is_declaration): Use the function above. Add comment.
3247 2004-04-15 Joel Brobecker <brobecker@gnat.com>
3249 * dwarf2read.c (read_structure_scope): Identify stub types
3250 using die_is_declaration() only.
3252 2004-04-15 Roland McGrath <roland@redhat.com>
3254 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
3255 argument instead of NAME.
3256 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
3257 in call to symbol_file_add_with_addrs_or_offsets.
3258 (build_addr_info): New function, helper for ...
3259 (symbol_file_add_from_memory): New function.
3260 (add_symbol_file_from_memory_command): New function using that.
3261 (_initialize_symfile): Register it for add-symbol-file-from-memory.
3262 (pre_add_symbol_hook): Add const to argument type.
3263 * symfile.h (symbol_file_add_from_memory): Declare it.
3265 2004-04-15 Mark Kettenis <kettenis@gnu.org>
3267 * NEWS (New native configurations): Mention OpenBSD/vax.
3268 * configure.host: Add vax-*-openbsd*.
3269 * config/vax/obsd.mh: New file.
3270 * config/vax/nm-obsd.h: New file.
3272 * vax-tdep.c: Include "regset.h".
3273 (vax_supply_gregset): New function.
3274 (vax_gregset): New variable.
3275 (vax_regset_from_core_section): New function.
3276 (vax_gdbarch_init): Set regset_from_core_section.
3277 * Makefile.in (vax-tdep.o): Update dependencies.
3279 2004-04-15 Andrew Cagney <cagney@redhat.com>
3281 * observer.c (normal_stop_subject, observer_notify_normal_stop)
3282 (observer_normal_stop_notification_stub)
3283 (observer_attach_normal_stop, observer_detach_normal_stop):
3284 Delete, replaced by #include "observer.inc".
3285 * infrun.c (normal_stop): Pass "stop_bpstat" to
3286 observer_notify_normal_stop.
3287 * Makefile.in (observer_inc): Define.
3288 (observer.o): Update dependencies.
3289 (observer.h, observer.inc): New rules.
3290 * observer.h: Delete file.
3291 * observer.sh: New file.
3293 2004-04-15 Mark Kettenis <kettenis@gnu.org>
3295 * vax-tdep.c (vax_frame_cache): Fix typo.
3297 2004-04-14 Mark Kettenis <kettenis@gnu.org>
3299 * NEWS (New native configurations): Mention NetBSD/vax.
3300 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
3301 * config/vax/nbsdelf.mh: New file.
3302 * config/vax/nbsdaout.mh: New file.
3303 * config/vax/nm-nbsd.h: New file.
3304 * config/vax/nm-nbsdaout.h: New file.
3306 * vaxnbsd-tdep.c: New file.
3307 * Makefile.in (vaxnbsd-tdep.o): New dependency.
3308 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
3309 * config/vax/nbsd.mt: New file.
3310 * config/vax/tm-nbsd.h: New file.
3312 * Makefile.in (vaxbsd-nat.o): New dependency.
3314 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
3315 * vax-tdep.c (vax_store_arguments): Remove struct_return and
3316 struct_addr arguments. Don't push return value address.
3317 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
3318 arguments to vax_store_arguments. Store return value address in
3320 (vax_store_struct_return, vax_extract_return_value)
3321 (vax_store_return_value): Remove functions.
3322 (vax_return_value): New function.
3323 (vax_gdbarch_init): Set return value. Don't set
3324 deprecated_store_struct_return, deprecated_extract_struct_return
3325 and deprecated_store_return_value.
3327 2004-04-14 Andreas Schwab <schwab@suse.de>
3329 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
3331 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
3333 2004-04-14 Mark Kettenis <kettenis@gnu.org>
3335 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
3336 (vax_unwind_dummy_id): New functions.
3337 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
3338 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
3340 (vax_fix_call_dummy): Remove function.
3341 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
3342 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
3343 call_dummy_location, deprecated_call_dummy_words,
3344 deprecated_sizeof_call_dummy_words,
3345 deprecated_call_dummy_breakpoint_offset,
3346 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
3347 and deprecated_dummy_write_sp.
3349 2004-04-13 David Carlton <carlton@kealia.com>
3351 * MAINTAINERS: Move myself to "paper trail" section.
3353 2004-04-12 Mark Kettenis <kettenis@gnu.org>
3355 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
3357 (vax_frame_init_saved_regs): Remove function.
3358 (vax_sigtramp_saved_pc): Remove function.
3359 (vax_frame_saved_pc): Remove function.
3360 (vax_frame_args_address): Remove function.
3361 (vax_frame_num_args): Rewrite.
3362 (vax_frame_chain): Remove function.
3363 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
3365 (vax_pop_frame): Likewise.
3366 (vax_saved_pc_after_call): Remove function.
3367 (struct vax_frame_cache): New structure.
3368 (vax_frame_cache): New function.
3369 (vax_frame_this_id): New function.
3370 (vax_frame_prev_register): New function.
3371 (vax_frame_unwind): New variable.
3372 (vax_frame_sniffer): New function.
3373 (vax_frame_base_address): New function.
3374 (vax_frame_args_address): New function.
3375 (vax_frame_base): New variable.
3376 (vax_unwind_pc): New function.
3377 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
3378 deprecated_fp_regnum, deprecated_saved_pc_after_call,
3379 deprecated_frame_chain, deprecated_frame_saved_pc,
3380 deprecated_frame_args_address and
3381 deprecated_frame_init_saved_regs.
3382 * Makefile.in (vax-tdep.o): Update dependencies.
3384 * vaxbsd-nat.c: New file.
3386 * vax-tdep.h: Update copyright year. Adjust comments.
3387 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
3388 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
3389 (vax_regnum): New enum. Replacing...
3390 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
3391 (VAX_PS_REGNUM): ... these removed macros.
3392 * vax-tdep.c (vax_register_name): Remove prototype.
3393 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
3394 (vax_register_byte, vax_register_raw_size,
3395 vax_register_virtual_size, vax_register_virtual_type): Remove
3397 (vax_register_type): New function.
3398 (vax_breakpoint_from_pc): Reorganize.
3399 (vax_gdbarch_init): Set register_type. Don't set
3400 deprecated_register_size, deprecated_register_bytes,
3401 deprecated_register_byte, deprecated_register_raw_size,
3402 deprecated_max_register_raw_size,
3403 deprecated_register_virtual_size,
3404 deprecated_max_register_virtual_size and
3405 deprecated_register_virtual_type. Add comment on stack direction.
3407 2004-04-11 Mark Kettenis <kettenis@gnu.org>
3409 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
3410 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
3411 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
3413 2004-04-10 Randolph Chung <tausq@debian.org>
3415 * MAINTAINERS (write after approval): Add myself.
3417 2004-04-07 Randolph Chung <tausq@debian.org>
3419 * hppa-tdep.c (hppa_inner_than): Remove.
3420 (is_pa_2): Remove unused static variable.
3421 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
3423 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
3425 * language.h (language_defn): Add new la_post_parser field.
3426 * parser-defs.h (null_post_parser): New declaration (default for
3429 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
3430 insert call to that function.
3431 (parse_exp_in_context): New function, including code formerly in
3432 parse_exp_1. Calls language-dependent post-parser after
3434 (parse_expression_in_context): New exported function.
3435 (null_post_parser): New definition.
3436 * expression.h (parse_expression_in_context): Add declaration.
3438 * p-lang.c (pascal_language_defn): Add trivial post-parser.
3439 * c-lang.c (c_language_defn): Ditto.
3440 (cplus_language_defn): Ditto.
3441 (asm_language_defn): Ditto.
3442 (minimal_language_defn): Ditto.
3443 * f-lang.c (f_language_defn): Ditto.
3444 * jv-lang.c (java_language_defn): Ditto.
3445 * language.c (unknown_language_defn): Ditto.
3446 (auto_language_defn): Ditto.
3447 (local_language_defn): Ditto.
3448 * m2-lang.c (m2_language_defn): Ditto.
3449 * scm-lang.c (scm_language_defn): Ditto.
3450 * obj-lang.c (objc_language_defn): Ditto.
3452 2004-04-10 Mark Kettenis <kettenis@gnu.org>
3454 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
3455 (amd64nbsd_mcontext_addr): New function.
3456 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
3457 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
3458 with amd64nbsd_r_reg_offset, instead of building it on the fly.
3460 * corelow.c (core_xfer_partial): Fix coding standards violation.
3461 Add support for TARGET_OBJECT_WCOOKIE.
3463 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
3464 deprecated_pc_in_sigtramp.
3465 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
3466 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
3467 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
3468 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
3469 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
3470 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
3471 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
3473 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
3474 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
3477 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
3478 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
3479 (amd64_collect_fxsave): Likewise.
3481 * i386-sol2-tdep.c: Include "gdb_string.h".
3482 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
3484 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
3486 2004-04-10 Mark Kettenis <kettenis@gnu.org>
3488 * i386-sol2-tdep.c: Include "solib-svr4.h".
3489 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
3490 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
3491 * config/i386/tm-i386sol2.h: Include :solib.h".
3492 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
3493 solib-svr4.o and solib-legacy.o.
3494 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
3497 2004-04-09 Mark Kettenis <kettenis@gnu.org>
3499 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
3500 whether a register is supplied by PTRACE_GETFPREGS.
3501 (store_inferior_registers): Likewise.
3502 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
3503 whether a register is supplied by PT_GETFPREGS.
3504 (store_inferior_registers): Likewise.
3506 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
3507 * config/i386/linux64.mt (TDEPFILES): Likewise.
3509 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
3511 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
3512 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
3513 the program counter is in the range specified by `struct
3515 * amd64-linux-tdep.c: Include "symtab.h".
3516 (amd64_linux_pc_in_sigtramp): Remove function.
3517 (amd64_linux_sigtramp_p): New function.
3518 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
3519 deprecated_pc_in_sigtramp.
3520 * amd64nbsd-tdep.c: Include "symtab.h".
3521 (amd64nbsd_sigtramp_p): New function.
3522 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
3523 deprecated_pc_in_sigtramp.
3524 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
3526 (amd64obsd_pc_in_sigtramp): Remove function.
3527 (amd64obsd_sigtramp_p): New function.
3528 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
3529 deprecated_pc_in_sigtramp.
3530 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
3531 (i386bsd_pc_ins_sigtramp): Remove prototype.
3532 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
3533 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
3534 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
3535 the program counter is in the range specified by `struct
3537 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
3538 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
3539 (i386_go32_pc_in_sigtramp): Remove function.
3540 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
3541 Initialize TDEP->sigtramp_p.
3542 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
3543 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
3544 deprecated_pc_in_sigtramp.
3545 * i386-linux-tdep.c: Adjust comments.
3546 (i386_linux_pc_in_sigtramp): Remove function.
3547 (i386_linux_sigtramp_p): New function.
3548 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
3549 deprecated_pc_in_sigtramp.
3550 * i386-nto-tdep.c: Update copyright year.
3551 (i386nto_pc_in_sigtramp): Remove function.
3552 (i386nto_sigtramp_p): New function.
3553 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
3555 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
3556 deprecated_pc_in_sigtramp.
3557 * i386-sol2-tdep.c: Update copyright year.
3558 (i386_sol2_pc_in_sigtramp): Remove function.
3559 (i386_sol2_sigtramp_p): New function.
3560 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
3561 deprecated_pc_in_sigtramp.
3562 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
3563 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
3564 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
3565 deprecated_sigtramp_start and deprecated_sigtramp_end.
3566 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
3567 (i386nbsd_pc_in_sigtramp): Remove function.
3568 (i386nbsd_sigtramp_p): New function.
3569 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
3570 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
3571 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
3572 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
3573 (i386obsd_pc_in_sigtramp): Remove function.
3574 (i386obsd_sigtramp_p): New function.
3575 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
3577 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
3578 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
3580 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
3581 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
3584 * config/i386/i386aout.mt: Remove file.
3586 * configure.tgt: Remove i[34567]86-*-go32*,
3587 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
3588 and i[34567]86-*-isc*. Set gdb_target to i386 for
3589 i[34567]86-*-netware* and i[34567]86-*-*.
3590 * config/i386/i386.mt: New file.
3591 * config/i386/embed.mt: Remove file.
3592 * config/i386/go32.mt: Remove file.
3593 * config/i386/i386nw.mt: Remove file.
3594 * config/i386/i386v.mt: Remove file.
3595 * config/i386/tm-go32.h: Remove file.
3597 * tui/tui-hooks.c: Include "readline/readline.h" after
3598 "gdb_curses.h" instead of before.
3599 * tui/tui-io.c: Likewise.
3601 * tui/tui.c: Fix typo in comment.
3603 * sparc64-tdep.c (sparc_address_from_register): Remove function.
3605 2004-04-08 Andrew Cagney <cagney@redhat.com>
3607 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
3608 (deprecated_exception_support_initialized): Declare.
3609 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
3610 (initialize_hp_cxx_exception_support)
3611 (child_enable_exception_callback): Update.
3612 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
3613 (deprecated_exception_support_initialized): Rename
3614 deprecated_exception_catchpoints_are_fragile and
3615 deprecated_exception_support_initialized.
3616 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
3618 * symtab.c (deprecated_hp_som_som_object_present): Rename
3619 hp_som_som_object_present.
3620 * symtab.h (deprecated_hp_som_som_object_present): Declare.
3621 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
3622 Update. Delete extern declaration.
3623 * valops.c (hp_som_som_object_present): Ditto.
3624 * parse.c (deprecated_hp_som_som_object_present)
3625 (parse_nested_classes_for_hpacc): Ditto.
3626 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
3627 * hppa-hpux-tdep.c (hp_som_som_object_present)
3628 (initialize_hp_cxx_exception_support): Ditto.
3629 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
3630 * cp-valprint.c (hp_som_som_object_present)
3631 (cp_print_class_method): Ditto.
3632 * c-typeprint.c (hp_som_som_object_present):
3633 (c_type_print_base): Ditto.
3634 * c-exp.y (hp_som_som_object_present): Ditto.
3636 2004-04-08 Andrew Cagney <cagney@redhat.com>
3638 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
3639 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
3640 (frame_unwind_find_by_frame): Re-implement the unwind code so
3641 that it can both prepend and append sniffers. Replace
3642 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
3643 * tramp-frame.c (tramp_frame_append): Use
3644 frame_unwind_prepend_unwinder.
3645 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
3646 frame_unwind_register_unwinder.
3647 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
3649 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
3650 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
3651 (mips_linux_init_abi): Update.
3653 2004-04-08 Kevin Buettner <kevinb@redhat.com>
3655 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
3656 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
3659 2004-04-07 Kevin Buettner <kevinb@redhat.com>
3661 * ia64-tdep.c (elf.h): Don't include.
3662 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
3664 2004-04-07 Jason Molenda (jmolenda@apple.com)
3666 * frame.h: Typeo corrections in comments.
3668 2004-04-07 Jim Blandy <jimb@redhat.com>
3670 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
3673 2004-04-07 Mark Kettenis <kettenis@gnu.org>
3675 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
3676 * config/sparc/linux64.mt (TDEPFILES): Likewise.
3677 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3678 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
3680 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
3682 * config/sparc/tm-sol2.h: Update copyright year. Include
3685 * sparc-sol2-tdep.c: Update copyright year. Include
3687 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
3688 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
3689 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
3690 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
3693 2004-04-06 Andrew Cagney <cagney@redhat.com>
3695 * infttrace.c: Include "infttrace.h".
3696 * infttrace.h: Include "target.h".
3697 * Makefile.in (infttrace_h): Update.
3698 (infttrace.o): Update.
3700 2004-04-06 Andrew Cagney <cagney@redhat.com>
3702 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
3703 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
3704 move extern declarations from here ...
3705 * infttrace.h: ... to here.
3706 * Makefile.in (hppah-nat.o): Update dependencies.
3708 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
3709 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
3710 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
3711 (hppa_breakpoint_from_pc): Delete.
3713 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
3715 2004-04-05 Andrew Cagney <cagney@redhat.com>
3717 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
3718 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
3721 2004-04-06 Randolph Chung <tausq@debian.org>
3723 Committed by Andrew Cagney (mechanical change).
3724 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
3725 exception_catchpoints_are_fragile, find_stub_with_shl_get,
3726 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
3727 child_enable_exception_callback, current_ex_event,
3728 null_symtab_and_line, child_get_current_exception_event,
3729 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
3730 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
3731 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
3732 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
3733 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
3734 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
3735 Move hpux-specific definitions ...
3736 * hppa-hpux-tdep.c: ... to here.
3738 2004-04-05 Andrew Cagney <cagney@redhat.com>
3740 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
3741 skip_prologue_using_sal.
3743 2004-04-05 Andrew Cagney <cagney@redhat.com>
3745 * config/i386/tm-i386.h: Delete file.
3746 * config/i386/tm-vxworks.h: Update copyright, do not include
3748 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
3749 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
3750 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
3751 * config/i386/ncr3000.mt (TM_FILE): Delete.
3752 * config/i386/interix.mt (TM_FILE): Delete.
3753 * config/i386/i386v.mt (TM_FILE): Delete.
3754 * config/i386/i386nw.mt (TM_FILE): Delete.
3755 * config/i386/i386gnu.mt (TM_FILE): Delete.
3756 * config/i386/i386aout.mt (TM_FILE): Delete.
3757 * config/i386/embed.mt (TM_FILE): Delete.
3759 2004-04-05 Kevin Buettner <kevinb@redhat.com>
3761 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
3762 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
3763 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
3764 (accg7_regnum): New constants.
3765 (last_spr_regnum, last_pseudo_regnum): Update.
3766 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
3767 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
3768 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
3770 (frv_register_sim_regno): Update spr_map[].
3772 2004-04-04 Andrew Cagney <cagney@redhat.com>
3774 * config/mips/xm-riscos.h: Delete.
3775 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
3776 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
3777 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
3778 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
3779 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
3780 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
3781 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
3782 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
3783 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
3784 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
3785 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
3786 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
3787 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
3788 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
3789 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
3790 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
3791 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
3792 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
3793 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
3794 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
3795 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
3796 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
3797 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
3798 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
3799 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
3800 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
3802 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
3803 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
3804 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
3805 * configure.host: Remove m680[01]0-sun-sunos3*,
3806 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
3807 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
3808 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
3809 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
3811 * NEWS: Mention removed systems.
3813 2004-04-04 Andrew Cagney <cagney@redhat.com>
3815 GDB 6.1 release created from 6.1 branch.
3817 2004-04-04 Andrew Cagney <cagney@redhat.com>
3819 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
3820 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3821 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
3823 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
3824 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
3825 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
3827 2004-04-03 Jim Blandy <jimb@redhat.com>
3829 * MAINTAINERS: Chris Faylor has changed employers; add him to
3830 "paper trail" section, and update his E-mail address.
3832 2004-04-03 Andrew Cagney <cagney@redhat.com>
3834 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
3835 generic dummy frames.
3836 * dummy-frame.c: Update copyright.
3837 (dummy_frame_sniffer): Delete check for generic dummy frames.
3839 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
3840 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
3841 (REG_PARM_STACK_SPACE): Delete.
3842 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
3843 Inline reference to REG_PARM_STACK_SPACE.
3845 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
3846 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
3847 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3848 (FRAME_BASE_BEFORE_SIGTRAMP)
3849 (hppa32_hpux_frame_base_before_sigtramp)
3850 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
3851 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
3852 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
3853 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
3854 (FRAME_BASE_BEFORE_SIGTRAMP)
3855 (hppa64_hpux_frame_base_before_sigtramp)
3856 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
3858 2004-04-03 Andrew Cagney <cagney@redhat.com>
3860 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
3862 2004-04-02 Andrew Cagney <cagney@redhat.com>
3864 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
3865 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
3866 * dummy-frame.h: Delete out-of-date comments.
3867 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
3868 * gdbarch.h, gdbarch.c: Re-generate.
3870 2004-04-02 Joel Brobecker <brobecker@gnat.com>
3872 Committed by Andrew Cagney <cagney@redhat.com>.
3873 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
3874 into account an instruction saving a register if we have already
3875 seen an earlier instruction saving that same register.
3877 2004-04-02 Andrew Cagney <cagney@redhat.com>
3879 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
3880 * gdbarch.h, gdbarch.c: Re-generate.
3881 * frame.c (legacy_get_prev_frame): Delete references to
3882 DEPRECATED_INIT_FRAME_PC_FIRST.
3884 * infrun.c (pc_in_sigtramp): Delete function.
3885 (check_sigtramp2): Inline call to pc_in_sigtramp, use
3888 2004-04-02 Andrew Cagney <cagney@redhat.com>
3890 * infrun.c (handle_step_into_function): Delete code conditional on
3892 (handle_inferior_event, step_over_function): Ditto.
3894 2004-04-02 Andrew Cagney <cagney@redhat.com>
3896 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
3897 "previous frame inner to this frame" test.
3899 2004-04-02 Andrew Cagney <cagney@redhat.com>
3901 * frame.c (safe_frame_unwind_memory): New function.
3902 * frame.h (safe_frame_unwind_memory): Declare. Update description
3904 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
3905 "next_frame". Use safe_frame_unwind_memory.
3906 (tramp_frame_sniffer): Update call to tramp_frame_start.
3908 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
3910 * dwarf2read.c (dwarf2_objfile_data_key): New.
3911 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
3912 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
3913 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
3914 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
3915 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
3916 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
3917 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
3919 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
3920 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
3921 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
3922 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
3923 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
3924 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
3926 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
3928 (dwarf2_locate_sections, dwarf2_build_psymtabs)
3929 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
3930 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
3931 (read_partial_die, read_full_die, read_indirect_string)
3932 (dwarf_decode_line_header, dwarf_decode_macros)
3933 (dwarf2_symbol_mark_computed): Remove use of removed macros.
3934 Update uses of removed variables.
3935 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
3937 (_initialize_dwarf2_read): New function.
3938 * symfile.h (dwarf2_has_info): Update prototype.
3939 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
3940 * elfread.c (elf_symfile_read): Likewise.
3942 2004-04-01 Jim Blandy <jimb@redhat.com>
3944 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
3945 function for register numbers on all the rs6000-derived targets.
3946 (rs6000_gdbarch_init): Don't register a separate
3947 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
3948 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
3951 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
3954 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3956 * valarith.c: Update copyright notice.
3957 (value_add): Handle range types.
3959 (value_equal): Ditto.
3960 (value_less): Ditto.
3962 (value_complement): Ditto.
3963 (value_binop): Simplify slightly by using is_integral_type and
3964 eliminiating unnecessary COERCE_ENUMs.
3966 2004-03-31 Andrew Cagney <cagney@redhat.com>
3968 * frame.h (frame_unwind_id): Declare.
3969 * frame.c (frame_unwind_id): New function.
3970 (get_prev_frame_1): New function.
3971 (frame_debug_got_null_frame): New function.
3972 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
3973 code proper to prev_frame, update description.
3974 * infrun.c (step_over_function): Use frame_unwind_id.
3976 2004-04-31 J. Brobecker <brobecker@gnat.com>
3978 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
3979 (hppa64_push_dummy_call): Likewise.
3981 2004-03-30 Jim Blandy <jimb@redhat.com>
3983 From Ulrich Weigand:
3984 * utils.c (query): Do not use a va_list variable multiple times.
3986 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
3988 * Makefile.in (linux_nat_h): Update dependencies.
3989 * configure.in: Check for <gnu/libc-version.h>.
3990 * configure: Regenerate.
3991 * config.in: Regenerate.
3992 * linux-nat.h: Include "target.h". Add waitstatus field to
3994 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
3995 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
3997 (lin_lwp_handle_extended): New function. Handle clone events.
3998 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
4000 (child_wait): Handle clone events.
4001 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
4002 * linux-nat.c (linux_enable_event_reporting): Turn on
4003 PTRACE_O_TRACECLONE.
4004 (linux_handle_extended_wait): Handle clone events.
4005 * thread-db.c: Include <gnu/libc-version.h>.
4006 (struct private_thread_info): Add dying flag.
4007 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
4009 (attach_thread): Update comments. Handle dying threads.
4010 (detach_thread): Set the dying flag.
4011 (check_event): Always call attach_thread.
4013 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
4015 * mips-tdep.c (mips_pdr_data): New.
4016 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
4017 (_initialize_mips_tdep): Initialize mips_pdr_data.
4019 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
4021 * minsyms.c (install_minimal_symbols): Move dropping leading
4022 char from linkage name from here...
4023 (prim_record_minimal_symbol_and_info): ...to here. Simplify
4024 test for "__gnu_compiled*" symbols.
4026 2004-03-28 Jim Blandy <jimb@redhat.com>
4028 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
4029 registers to temp register r0 and byte stores as prologue
4032 2004-03-28 Andrew Cagney <cagney@redhat.com>
4034 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
4037 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
4039 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
4040 and switch the layout to force a display of register window.
4042 2004-02-26 J. Brobecker <brobecker@gnat.com>
4044 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
4045 of the INTEGER class.
4047 2004-03-26 Jim Blandy <jimb@redhat.com>
4049 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
4050 bytes long on PPC GNU/Linux.
4052 2004-03-26 David Carlton <carlton@kealia.com>
4054 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
4056 2004-03-25 Andrew Cagney <cagney@redhat.com>
4058 * PROBLEMS: Add general section titles, remove references to
4061 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
4063 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
4065 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
4066 FP_REGISTER_VIRTUAL_SIZE.
4067 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
4068 of DEPRECATED_REGISTER_RAW_SIZE.
4069 (arm_register_type): Add gdbarch argument.
4070 (arm_register_raw_size, arm_register_virtual_size): Delete.
4071 (arm_register_byte, arm_extract_return_value)
4072 (arm_store_return_value, arm_get_longjmp_target): Update references
4073 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
4074 (arm_gdbarch_init): Likewise. Don't set
4075 deprecated_register_raw_size, deprecated_register_virtual_size,
4076 deprecated_max_register_raw_size,
4077 deprecated_max_register_virtual_size, or
4078 deprecated_max_register_virtual_type. Do set register_type.
4079 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
4080 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
4081 (FP_REGISTER_VIRTUAL_SIZE): Delete.
4082 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
4083 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
4084 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
4086 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
4087 (remote_rdp_store_register): Likewise.
4089 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
4091 * Makefile.in (mips-linux-tdep.o): Update dependencies.
4092 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
4093 to after osabi initialization.
4094 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
4095 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
4097 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
4098 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
4100 (mips_linux_init_abi): Append signal trampoline unwinders.
4102 2004-03-24 Andrew Cagney <cagney@redhat.com>
4104 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
4105 * tramp-frame.c: Include "gdb_assert.h".
4106 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
4108 (tramp_frame_append): Validate the tramp frame's instructions.
4109 * Makefile.in (tramp-frame.o): Update dependencies.
4111 2004-03-23 Andrew Cagney <cagney@redhat.com>
4113 * trad-frame.h (trad_frame_set_reg_addr): Declare.
4115 2004-03-23 Andrew Cagney <cagney@redhat.com>
4117 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
4118 Nasser as past testsuite/lib/ (and other) maintainers.
4120 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
4122 * infcmd.c (attach_command): Reread symbols if we already have
4125 2004-03-23 Andrew Cagney <cagney@redhat.com>
4127 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
4129 2004-03-23 Andrew Cagney <cagney@redhat.com>
4131 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
4132 * gdbarch.h, gdbarch.c: Re-generate.
4133 * i386obsd-tdep.c (i386obsd_init_abi): Update.
4134 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
4135 * i386bsd-tdep.c (i386bsd_init_abi): Update.
4136 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
4137 (DEPRECATED_SIGTRAMP_START): Update.
4138 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
4139 (DEPRECATED_SIGTRAMP_START): Update.
4140 * blockframe.c (find_pc_sect_partial_function): Update.
4141 * arch-utils.c (legacy_pc_in_sigtramp): Update.
4143 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
4145 * remote.c (remote_open_1): Reopen the exec file and reread symbols
4148 2004-03-23 Andrew Cagney <cagney@redhat.com>
4150 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
4151 predicate, deprecate.
4152 * gdbarch.h, gdbarch.c: Re-generate.
4153 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
4154 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
4155 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
4156 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
4157 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
4158 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
4159 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
4160 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
4161 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
4162 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
4163 * blockframe.c (find_pc_partial_function): Update.
4164 * breakpoint.c (bpstat_what): Update.
4165 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
4166 * frv-linux-tdep.c (frv_linux_init_abi): Update.
4167 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
4168 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
4169 * i386-interix-tdep.c (i386_interix_init_abi): Update.
4170 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4171 * i386-nto-tdep.c (i386nto_init_abi): Update.
4172 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
4173 * i386-tdep.c (i386_sigtramp_frame_sniffer)
4174 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
4175 * i386bsd-tdep.c (i386bsd_init_abi): Update.
4176 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
4177 * i386obsd-tdep.c (i386obsd_init_abi): Update.
4178 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
4179 * infrun.c (pc_in_sigtramp): Update.
4180 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
4181 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
4182 * mips-tdep.c (mips_gdbarch_init): Update.
4183 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
4184 * ppc-linux-tdep.c: Update comment.
4185 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
4186 * shnbsd-tdep.c (shnbsd_init_abi): Update.
4187 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
4188 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
4189 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
4190 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
4191 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
4192 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
4193 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
4194 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
4196 2004-03-23 Andrew Cagney <cagney@redhat.com>
4198 * tramp-frame.h, tramp-frame.h: New files.
4199 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
4200 Update rules to include "tramp-frame.h" and "tramp-frame.c".
4202 * Makefile.in: Update all dependencies.
4204 2004-03-23 Andrew Cagney <cagney@redhat.com>
4206 * Makefile.in (trad_frame_h): Add $(frame_h).
4207 * trad-frame.h: Update copyright. Include "frame.h".
4208 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
4209 (trad_frame_set_id, trad_frame_get_id): Declare.
4210 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
4211 * trad-frame.c: Update copyright.
4212 (struct trad_frame_cache): Define.
4213 (trad_frame_cache_zalloc): New function.
4214 (trad_frame_set_id, trad_frame_get_id): New functions.
4215 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
4217 2004-03-22 Andrew Cagney <cagney@redhat.com>
4219 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
4220 s390_pltstub_unwind_cache.
4221 (s390_stub_frame_unwind_cache): Rename
4222 s390_pltstub_frame_unwind_cache.
4223 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
4224 (s390_stub_frame_prev_register): Rename
4225 s390_pltstub_frame_prev_register.
4226 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
4227 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
4229 From Ulrich Weigand:
4230 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
4231 pointer calls like PLT calls.
4233 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
4235 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
4236 PC rather than the partial function start address. Use the start
4237 address to sanity check the found PDR.
4239 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
4241 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
4242 linux_handle_extended_wait.
4244 2004-03-22 Andrew Cagney <cagney@redhat.com>
4246 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
4249 * frame.h (generic_pop_current_frame): Delete declaration.
4250 (deprecate_pop_dummy_frame): Deprecate
4251 generic_pop_dummy_frame.
4252 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
4253 (generic_pop_current_frame): Delete function.
4254 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
4255 generic_pop_current_frame.
4256 * v850-tdep.c (v850_pop_frame): Update.
4257 * mcore-tdep.c (mcore_pop_frame): Update.
4258 * sh64-tdep.c (sh64_pop_frame): Update.
4259 * h8300-tdep.c (h8300_pop_frame): Update.
4261 2004-03-22 Andrew Cagney <cagney@redhat.com>
4263 * frame.h (deprecated_pc_in_call_dummy): Rename
4264 generic_pc_in_call_dummy.
4265 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
4266 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
4267 generic_pc_in_call_dummy.
4268 (pc_in_dummy_frame): Make static.
4269 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
4270 * gdbarch.h, gdbarch.c: Re-generate.
4271 * dummy-frame.c (dummy_frame_sniffer): Simplify.
4272 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
4273 (legacy_get_prev_frame): Ditto.
4274 * inferior.h: Delete reference to generic_pc_in_call_dummy in
4277 2004-03-21 Andrew Cagney <cagney@redhat.com>
4279 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
4280 declaration and out-of-date comment.
4281 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
4283 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
4284 deprecated_pc_in_call_dummy.
4286 * infrun.c (handle_inferior_event): For non legacy frames, use the
4287 frame ID and frame type to identify a signal trampoline. Update
4290 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
4292 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
4293 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
4295 2004-03-21 Andrew Cagney <cagney@redhat.com>
4297 * frame-unwind.h: Update copyright.
4298 (struct frame_data): Add opaque declaration.
4299 (frame_sniffer_ftype): Declare.
4300 (struct frame_unwind): Add "unwind_data" and "sniffer".
4301 (frame_unwind_register_unwinder): Declare.
4302 (frame_unwind_find_by_frame): Add parameter "this_cache".
4303 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
4304 (legacy_get_prev_frame, legacy_get_prev_frame)
4305 (get_frame_type): Pass the prologue_cache to
4306 frame_unwind_find_by_frame.
4307 * frame-unwind.c (struct frame_unwind_table_entry): Add field
4309 (frame_unwind_register_unwinder): New function.
4310 (frame_unwind_find_by_frame): Handle an unwind sniffer.
4312 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
4314 * bcache.c (print_percentage): Use floating point to avoid
4315 incorrect results when portion*100 overflows.
4317 2004-03-19 Kevin Buettner <kevinb@redhat.com>
4319 * ppc_tdep.h (ppc_linux_frame_saved_pc)
4320 (ppc_linux_init_extra_frame_info)
4321 (ppc_linux_frameless_function_invocation)
4322 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
4323 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
4324 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
4325 (rs6000_frame_chain): Delete declarations.
4326 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
4327 (ppc_linux_init_extra_frame_info)
4328 (ppc_linux_frameless_function_invocation)
4329 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
4330 (ppc_linux_init_abi): Remove registration of above deleted functions.
4331 * rs6000-tdep.c (rs6000_init_extra_frame_info)
4332 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
4333 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
4334 (rs6000_pop_frame, rs6000_frameless_function_invocation)
4335 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
4336 (rs6000_gdbarch_init): Remove registration of above deleted functions.
4337 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
4338 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
4339 frame management for all OSABIs.
4341 2004-03-19 Andrew Cagney <cagney@redhat.com>
4343 Committed by Kevin Buettner <kevinb@redhat.com>.
4345 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
4347 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
4348 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
4349 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
4350 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
4351 unwinders. #ifdef legacy frame code.
4352 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
4354 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
4355 (struct rs6000_frame_cache, rs6000_frame_cache)
4356 (rs6000_frame_this_id, rs6000_frame_prev_register)
4357 (rs6000_frame_sniffer, rs6000_frame_unwind)
4358 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
4359 (rs6000_frame_base): Implement a traditional frame unwinder.
4360 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
4363 2004-03-19 Kevin Buettner <kevinb@redhat.com>
4365 * breakpoint.c (adjust_breakpoint_address): Don't adjust
4366 breakpoint address for watchpoints or the catch eventpoints.
4367 Add new paramter ``bptype''. Adjust all callers.
4369 2004-03-19 Andrew Cagney <cagney@redhat.com>
4371 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
4373 * PROBLEMS: Delete note that ARM does not use frame code, problem
4376 2004-03-18 Andrew Cagney <cagney@redhat.com>
4378 * stack.c (return_command): Delete code wrapped in #ifdef
4379 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
4381 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
4383 2004-03-18 Andrew Cagney <cagney@redhat.com>
4385 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
4386 DEPRECATED_IN_SIGTRAMP.
4387 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4388 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
4389 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4390 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4391 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4392 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4393 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4394 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4395 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
4396 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
4398 2004-03-18 Andrew Cagney <cagney@redhat.com>
4400 * frame-base.c: Update copyright. Include "gdb_obstack.h".
4401 (struct frame_base_table_entry): Define.
4402 (struct frame_base_table): Re-implement as a linked list.
4403 (frame_base_init): Re-implement.
4404 (frame_base_table): Delete function.
4405 (append_predicate): Delete function.
4406 (frame_base_append_sniffer): Update.
4407 (frame_base_set_default): Update.
4408 (frame_base_find_by_frame): Update.
4409 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
4410 * Makefile.in (frame-base.o): Update dependencies.
4412 2004-03-17 Andrew Cagney <cagney@redhat.com>
4414 * frame.c (legacy_get_prev_frame): Pass correct frame to
4415 frame_unwind_find_by_frame.
4417 2004-03-17 David Carlton <carlton@kealia.com>
4419 * NEWS: Mention C++ nested types and namespaces
4421 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
4423 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
4424 and "Regressions since gdb 5.3.". Add known regressions since
4427 2004-03-16 David Carlton <carlton@kealia.com>
4429 * dwarf2read.c (process_structure_scope): Process children even
4430 when we're a declaration.
4432 2004-03-16 Andrew Cagney <cagney@redhat.com>
4434 * symtab.h (find_pc_sect_partial_function): Delete declaration.
4435 * blockframe.c (find_pc_partial_function)
4436 (find_pc_sect_partial_function): Merge into a single
4437 find_pc_partial_function.
4439 2004-03-16 Mark Kettenis <kettenis@gnu.org>
4441 * i386bsd-nat.c: s/regno/regnum/g.
4442 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
4444 (store_inferior_registers): Likewise.
4446 2004-03-16 Mark Kettenis <kettenis@gnu.org>
4448 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
4450 (store_inferior_registers): Call i387_collect_fsave and
4451 i387_collect_fxsave instead of i387_fill_fsave and
4454 2004-03-15 Andrew Cagney <cagney@redhat.com>
4456 * Makefile.in (frame-unwind.o): Update dependencies.
4457 * frame-unwind.c: Include "gdb_obstack.h".
4458 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
4460 (append_predicate): Delete function.
4461 (struct frame_unwind_table_entry): New structure.
4462 (struct frame_unwind_table): Replace "sniffer" with "head" and
4464 (frame_unwind_append_sniffer): Update.
4465 (frame_unwind_find_by_frame): Update.
4466 (_initialize_frame_unwind): Registe frame_unwind_init using
4467 gdbarch_data_register_pre_init.
4469 2004-03-15 Mark Kettenis <kettenis@gnu.org>
4471 * i386bsd-nat.c: Update copyright year.
4472 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
4473 define unconditionally.
4475 2004-03-15 Mark Kettenis <kettenis@gnu.org>
4477 * i387-tdep.h (i387_collect_fsave): New prototype.
4478 * i387-tdep.c (i387_collect_fsave): New function containing most
4479 of the code from i387_fill_fsave.
4480 (i387_fill_fsave): Call i387_collect_fsave.
4482 2004-03-15 Mark Kettenis <kettenis@gnu.org>
4484 * i386-linux-tdep.c: Update copyright year.
4485 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
4486 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
4487 svr4_ilp32_link_map_offsets instead of
4488 i386_linux_svr4_fetch_link_map_offsets.
4490 2004-03-15 David Carlton <carlton@kealia.com>
4492 Fix for PR c++/1553:
4493 * dwarf2read.c (read_structure_type): Determine type name by
4494 calling determine_class_name.
4495 (determine_class_name): New.
4496 (determine_prefix): Look at TYPE_TAG_NAME and call
4497 determine_class_name when appropriate.
4498 (determine_prefix_aux, class_name): Delete.
4499 (read_namespace): Set die->type.
4501 2004-03-15 Kevin Buettner <kevinb@redhat.com>
4503 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
4504 unused macro definition. The definition in target.h (or perhaps
4505 elsewhere) takes precedence.
4507 2004-03-15 Andrew Cagney <cagney@redhat.com>
4509 * ppc-tdep.h: Update copyright.
4510 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
4511 function signatures to match "regsets.h".
4512 * ppc-linux-tdep.c: Include "regset.h".
4513 (ELF_GREGSET_SIZE): Delete.
4514 (right_supply_register): New function.
4515 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
4516 using right_supply_register.
4517 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
4519 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
4520 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
4521 (_initialize_ppc_linux_tdep): Do not register
4522 ppc_linux_regset_core_fns.
4523 (ppc_linux_regset_from_core_section): Replace
4524 fetch_core_registers.
4525 (ppc_linux_regset_core_fns): Delete.
4526 * ppc-linux-nat.c: (right_fill_reg): New function.
4527 (supply_gregset): Update call to ppc_linux_supply_gregset.
4528 (fill_gregset): Clear the register set, use right_fill_reg.
4529 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
4530 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
4532 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
4535 2004-03-15 Andrew Cagney <cagney@redhat.com>
4537 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
4538 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
4539 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
4540 and register_gdbarch_data.
4541 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
4542 (struct gdbarch_data): Replace "init" by "pre_init" and
4544 * gdbarch.h, gdbarch.c: Re-generate.
4545 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
4546 with"obstack", use OBSTACK_ZALLOC.
4547 (dwarf2_frame_ops): Delete.
4548 (dwarf2_frame_set_init_reg): Use gdbarch_data.
4549 (dwarf2_frame_init_reg): Use gdbarch_data.
4550 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
4551 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
4552 (_initialize_svr4_solib): Update.
4553 * user-regs.c (_initialize_user_regs): Update.
4554 * reggroups.c (_initialize_reggroup): Update.
4555 * regcache.c (_initialize_regcache): Update.
4556 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
4557 * libunwind-frame.c (_initialize_libunwind_frame): Update.
4558 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4559 * frame-unwind.c (_initialize_frame_unwind): Update.
4560 * frame-base.c (_initialize_frame_base): Update.
4561 * user-regs.c (user_reg_add): Update.
4562 * reggroups.c (reggroup_add): Update.
4563 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
4564 * libunwind-frame.c (libunwind_frame_set_descr): Update.
4565 * frame-unwind.c (frame_unwind_append_sniffer): Update.
4566 * frame-base.c (frame_base_table): Update.
4567 * remote.c (_initialize_remote): Update.
4568 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
4570 2004-03-15 Andrew Cagney <cagney@redhat.com>
4572 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
4574 2004-03-15 Kevin Buettner <kevinb@redhat.com>
4576 * Makefile.in (frv-linux-tdep.o): Add dependencies.
4577 * frv-linux-tdep.c: New file.
4578 * frv-tdep.c (struct gdbarch_tdep): Add new field
4579 ``sigcontext_reg_addr''.
4580 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
4581 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
4582 (frv_sigramp_frame_sniffer): New functions.
4583 (frv_sigtramp_frame_unwind): New static global.
4584 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
4586 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
4587 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
4589 2004-03-15 Kevin Buettner <kevinb@redhat.com>
4591 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
4592 but not via a call to error(), when unable to read memory.
4594 2004-03-15 Kevin Buettner <kevinb@redhat.com>
4596 * frv-tdep.c (frv_call_dummy_words): Delete.
4597 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
4599 2004-03-15 Andrew Cagney <cagney@redhat.com>
4601 * infrun.c (handle_step_into_function, step_over_function): Only
4602 update and use STEP_FRAME_ID when the system is using legacy
4603 frames. Update comments.
4605 2004-03-14 Mark Kettenis <kettenis@gnu.org>
4607 * amd64-linux-tdep.h: Remove file.
4608 * amd64-linux-tdep.c: Don't include "inferior.h" and
4609 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
4610 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
4611 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
4612 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
4613 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
4615 (user_to_gdb_regmap): Remove variable.
4616 (amd64_linux_gregset_reg_offset): New variable.
4617 (amd64_core_fns): Remove variable.
4618 (fetch_core_registers): Remove function.
4619 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
4621 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
4622 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
4623 * Makefile.in (amd64_linux_tdep_h): Remove.
4624 (amd64-linux-nat.o): Update dependencies.
4625 (amd64-linux-tdep.o): Update dependencies.
4627 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
4628 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
4630 (fetch_inferior_registers, store_inferior_registers): Rewrite.
4632 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
4633 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
4635 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
4637 * dwarf2read.c (read_structure_type): Rename from
4638 read_structure_scope. Don't create a symbol or call process_die.
4639 Return immediately if die->type is set. Call read_type_die before
4640 dwarf2_add_member_fn.
4641 (process_structure_scope): New function.
4642 (read_enumeration_type, process_enumeration_scope): New functions,
4643 broken out from read_enumeration. Don't create the enumeration
4644 type if it has already been created.
4645 (read_enumeration): Removed.
4646 (process_die): Call read_structure_type, process_structure_scope,
4647 read_enumeration_type, and process_enumeration_scope. Just call
4648 new_symbol for base and subrange types. Add a comment about other
4650 (read_type_die): Call read_enumeration_type.
4651 (add_partial_structure, new_symbol): Update comments.
4653 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
4655 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
4657 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
4659 * tui/tui-win.h (tui_get_cmd_list): Declare.
4660 * tui/tui-win.c (tui_command): New function.
4661 (tui_get_cmd_list): New function.
4662 (_initialize_tui_win): Moved initialization of tui command in
4665 * tui/tui-data.c (init_content_element): Setup new data members.
4666 (init_win_info): Likewise.
4667 (free_content_elements): Free it.
4668 * tui/tui-data.h (struct tui_data_element): Store the register
4670 (struct tui_data_info): Keep the current register group.
4672 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
4674 * tui/tui-regs.h (tui_show_registers): Update prototype.
4675 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
4676 (tui_resize_all): No need to calculate anything for register window.
4677 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
4678 (tui_set_register_element, tui_set_general_regs_content): Remove.
4679 (tui_set_special_regs_content): Remove.
4680 (tui_set_general_and_special_regs_content): Remove.
4681 (tui_set_float_regs_content): Remove.
4682 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
4683 (tui_set_regs_content): Remove.
4684 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
4685 (tui_v_show_registers_command_support): Remove.
4686 (tui_show_registers): Use a reggroup to specify the registers to show.
4687 (tui_show_register_group): New function.
4688 (tui_display_registers_from): Compute the layout of register window
4689 and refresh with new API; be sure to delete old register windows.
4690 (tui_check_register_values): Update to use tui_get_register and
4692 (tui_display_register): Just refresh the register window part.
4693 (tui_register_format): Format registers and save in tui_data_element.
4694 (tui_get_register): New to combine tui_reg_value_has_changed and
4695 tui_get_register_raw_value; fix to use the new gdb API.
4696 (tui_show_float_command): Renamed tui_reg_float_command.
4697 (tui_show_general_command): Renamed tui_reg_general_command.
4698 (tui_show_special_command): Renamed tui_reg_system_command.
4699 (_initialize_tui_regs): Remove unused commands.
4701 2004-03-13 Mark Kettenis <kettenis@gnu.org>
4703 * NEWS (New native configurations): Mention OpenBSD/amd64.
4705 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
4706 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
4708 * config/i386/nm-fbsd64.h: Likewise.
4709 * config/i386/nm-obsd.h: Likewise.
4710 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
4711 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
4713 2004-03-12 Kevin Buettner <kevinb@redhat.com>
4715 * frv-tdep.c (set_variant_scratch_registers): New function.
4716 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
4719 From Richard Sandiford <rsandifo@redhat.com>:
4720 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
4722 2004-03-12 Kevin Buettner <kevinb@redhat.com>
4724 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
4725 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
4726 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
4727 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
4728 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
4729 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
4730 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
4731 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
4732 definitions from frv-tdep.c to frv-tdep.h.
4734 2004-03-12 Kevin Buettner <kevinb@redhat.com>
4736 Add shared library support for FR-V FDPIC ABI:
4737 * Makefile.in (solib-frv.o): Add dependencies.
4738 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
4740 (frv_push_dummy_call): Add support for FDPIC ABI.
4741 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
4743 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
4744 (frv_fdpic_find_canonical_descriptor): Declare.
4745 * solib-frv.c: New file.
4746 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
4747 * config/frv/tm-frv.h (solib.h): Include.
4749 2004-03-12 Kevin Buettner <kevinb@redhat.com>
4751 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
4752 (frv-tdep.o): Update dependencies.
4753 * frv-tdep.h: New file.
4754 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
4755 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
4757 (struct gdbarch_tdep): Add new member ``frv_abi''.
4758 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
4760 (new_variant): Set ``frv_abi'' field.
4761 (gdb_arch_init): Detect FDPIC executables.
4763 2004-03-12 Mark Kettenis <kettenis@gnu.org>
4765 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
4768 2004-03-11 Andrew Cagney <cagney@redhat.com>
4770 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
4772 2004-03-11 Kevin Buettner <kevinb@redhat.com>
4774 * solist.h (master_so_list): New function.
4775 * solib.c (master_so_list): Likewise.
4776 * solib-svr4.c (enable_break): Iterate over so_list entries
4777 obtained from master list instead of entries obtained directly
4778 via svr4_current_sos().
4780 2004-03-10 Ben Elliston <bje@gnu.org>
4782 * MAINTAINERS: Update my mail address.
4784 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
4786 * remote-m32r-sdi.c: Support hardware watchpoint.
4788 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4790 * user-regs.c: Update copyright years.
4791 (struct user_regs): Rename to gdb_user_regs.
4792 (append_user_reg, builtin_user_regs, user_regs_init)
4793 (user_reg_add, user_reg_map_name_to_regnum)
4794 (usernum_to_user_reg): Update.
4796 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4798 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
4799 (skip_children): New functions.
4800 (locate_pdi_sibling): Call skip_children.
4802 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4804 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
4805 * gdbtypes.c (check_typedef): Update comments.
4807 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4809 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
4810 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
4811 pointer. Update comment about comp_unit_head.
4812 (struct abbrev_info): Shorten two int flags.
4813 (dwarf_alloc_abbrev): Take a CU argument.
4814 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
4815 each time through the loop. Update cleanup argument.
4816 (psymtab_to_symtab_1): Update cleanup call.
4817 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
4819 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
4820 Just call obstack_free and clear the pointer.
4822 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4824 * infrun.c (handle_inferior_event): Remove short-circuit code for
4825 events in a different thread.
4827 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4829 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
4830 print the whole transfer.
4831 (initialize_targets): Update description of "set debug target".
4833 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4835 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
4837 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
4839 * MAINTAINERS (write after approval): Add myself.
4841 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
4843 * sh-tdep.c (sh_print_registers_info): Use for loop.
4844 Don't skip multiple registers when a float register is encountered.
4846 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
4849 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
4850 to official SH documentation.
4852 2004-03-07 Andrew Cagney <cagney@redhat.com>
4854 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
4857 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
4859 * arm-tdep.c (thumb_get_next_pc): Handle BX.
4860 (arm_get_next_pc): Handle BX and BLX.
4862 2004-03-07 Andrew Cagney <cagney@redhat.com>
4864 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
4865 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
4867 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
4868 (hppa_target_read_fp): Delete.
4869 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
4870 register_virtual_size, max_register_raw_size,
4871 max_register_virtual_size, register_byte, register_size,
4872 target_read_fp, fp_regnum, and register_bytes. Set register_type
4873 instead of register_virtual_type.
4874 (hppa32_register_type, hppa64_register_type): Replace
4875 hppa32_register_virtual_type and hppa64_register_virtual_type.
4876 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
4877 (HPPA_FP_REGNUM): Define.
4879 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
4881 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
4882 (pa_do_registers_info): Delete.
4883 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
4884 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
4885 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
4887 * infcall.c (legacy_push_dummy_code): Delete #ifdef
4888 GDB_TARGET_IS_HPPA code.
4889 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
4890 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
4891 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
4892 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
4893 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
4894 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
4895 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
4896 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
4897 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
4898 (hppa_frameless_function_invocation, hppa64_store_return_value)
4899 (hppa_store_struct_return, hppa64_extract_return_value)
4900 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
4901 (hppa32_call_dummy_length, hppa64_call_dummy_length)
4902 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
4903 (find_proc_framesize, deposit_21, restore_pc_queue)
4904 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
4905 (rp_saved, pc_in_linker_stub): Delete.
4907 Unconditionally enable 64-bit frame and ABI code.
4908 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
4909 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
4910 push_dummy_frame, fix_call_dummy, push_arguments,
4911 call_dummy_location, extract_return_value, use_struct_convention,
4912 store_return_value, store_struct_return, saved_pc_after_call,
4913 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
4914 frame_chain, frame_chain_valid, frameless_function_invocation,
4915 frame_saved_pc, and pop_frame.
4917 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
4918 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
4919 (hppa_gdbarch_init): Do not set PC_REGNUM.
4921 2004-03-06 Mark Kettenis <kettenis@gnu.org>
4923 * config/alpha/tm-fbsd.h: Remove file.
4924 * config/alpha/fbsd.mt: Tweak comment.
4925 (TM_FILE): Set to tm-alpha.h.
4927 2004-03-05 Andrew Cagney <cagney@redhat.com>
4929 * infrun.c (step_over_function): When non-legacy code, and no
4930 step_frame_id, use the unwinder to get the caller's frame ID.
4932 2004-03-05 Mark Kettenis <kettenis@gnu.org>
4934 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
4935 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
4936 bfd_arch_unknown. Adjust comment.
4938 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
4939 * i386obsd-tdep.c: Correct spelling in comment.
4940 * i386nbsd-tdep.c: Correct spelling in comment.
4941 * sparc-tdep.c: Correct spelling in comments.
4943 2004-03-05 David Carlton <carlton@kealia.com>
4945 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
4948 2004-03-05 Mark Kettenis <kettenis@gnu.org>
4950 * sparc-tdep.c: Fix typo in comment.
4952 2004-03-04 J. Brobecker <brobecker@gnat.com>
4954 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
4956 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
4958 * dwarf2read.c: Add comment describing memory lifetimes.
4959 (struct dwarf2_pinfo): Update comment.
4960 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
4961 (read_enumeration, new_symbol): Don't use obsavestring.
4963 2004-03-04 Mark Kettenis <kettenis@gnu.org>
4965 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
4966 instead of amd64_fill_fxsave.
4967 * amd64bsd-nat.c (store_inferior_registers): Likewise.
4968 * amd64fbsd-nat.c (fill_fpregset): Likewise.
4970 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
4971 Reorganize code a bit.
4973 2004-03-04 Orjan Friberg <orjanf@axis.com>
4975 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
4976 when the frame pointer is pushed. Don't set the frame pointer's
4977 address on the stack unless it's actually located there.
4978 Set the SRP's address on the stack correctly when the PC is still in
4980 (cris_return_value): New function.
4981 (cris_gdbarch_init): Clear deprecated store_return_value,
4982 extract_return_value.
4984 2004-03-02 Jim Blandy <jimb@redhat.com>
4986 * stabsread.c (reg_value_complaint): The maximum register number
4987 is one less than the number of registers.
4989 2004-03-02 Andrew Cagney <cagney@redhat.com>
4991 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
4992 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
4993 trailing comma and redundant assignment of I386_ST0_REGNUM.
4994 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
4995 32-bit segment registers.
4997 2004-03-01 Andrew Cagney <cagney@redhat.com>
4999 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
5000 use frame_relative_level and get_next_frame.
5002 2004-02-29 Andrew Cagney <cagney@redhat.com>
5004 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
5005 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
5006 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
5009 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
5011 * inflow.c (terminal_inferior): Don't give up the terminal if we
5012 previously couldn't get the inferior's terminal state.
5014 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
5016 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
5019 2004-02-28 Andrew Cagney <cagney@redhat.com>
5021 * NEWS: Refer to GDB 6.1.
5022 * README: Refer to GDB 6.1.
5023 * PROBLEMS: Refer to GDB 6.1.
5025 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
5027 * thread-db.c (disable_thread_signals): Remove unused function.
5029 2004-02-28 Mark Kettenis <kettenis@gnu.org>
5031 * amd64-nat.c: Include "gdb_string.h".
5032 (amd64_collect_native_gregset): Zero-extend the 32-bit
5033 general-purpose registers and %eip.
5035 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
5036 * amd64-tdep.c (amd64_collect_fxsave): New function.
5037 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
5039 * i387-tdep.h: Update copyright year.
5040 (i387_collect_fxsave): New prototype.
5041 * i387-tdep.c: Update copyright year.
5042 (i387_collect_fxsave): New function containing most of the code
5043 from i387_fill_fxsave.
5044 (i387_fill_fxsave): Call i387_collect_fxsave.
5046 2004-02-28 Andrew Cagney <cagney@redhat.com>
5048 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
5049 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
5051 2004-02-28 Mark Kettenis <kettenis@gnu.org>
5053 * amd64-tdep.c (amd64_frame_cache): Fix comment.
5055 2004-02-28 Andrew Cagney <cagney@redhat.com>
5057 * utils.c: Use "", instead of <>, to include readline.
5058 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
5059 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
5060 * source.c, solib.c, exec.c, event-top.c: Ditto.
5061 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
5062 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
5063 * Makefile.in: Update all dependencies.
5064 (readline_tilde_h, readline_history_h): Define.
5065 (readline_headers): Delete.
5067 2004-02-28 Mark Kettenis <kettenis@gnu.org>
5069 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
5070 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
5071 "config/i386/tm-lx64.h".
5073 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
5074 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
5075 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
5077 2004-02-28 Andrew Cagney <cagney@redhat.com>
5079 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
5081 * breakpoint.c (_initialize_breakpoint): Use
5082 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
5083 Add help to show command.
5085 2004-02-28 Mark Kettenis <kettenis@gnu.org>
5087 * i386-nat.c: Reformat to be closer to coding standards.
5088 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
5089 `retval'. Make variables `align' and `size' local to while-loop.
5090 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
5091 (_initialize_i386_nat): New prototype.
5093 * tui/tui.c: Include <readline/readline.h> instead of
5094 "readline/readline.h". Include it after <term.h> and
5097 2004-02-27 Andrew Cagney <cagney@redhat.com>
5099 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
5100 the new frame unwind code.
5101 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
5102 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
5105 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
5106 "return_value" and "push_dummy_call".
5107 (hppa32_use_struct_convention): Delete unused function.
5108 (hppa32_store_return_value): Delete unused function.
5109 (hppa32_extract_return_value): Delete unused function.
5110 (hppa32_stack_align): Delete function.
5112 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
5114 * coffread.c (enter_linenos): Don't let rawptr reference memory
5115 outside linetab[]'s limits.
5117 2004-02-27 Andrew Cagney <cagney@redhat.com>
5119 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
5120 inferior stack space - the stack needs to grow upwards.
5121 (hppa32_frame_align): New function.
5122 (hppa64_frame_align): Replace hppa_frame_align.
5123 (hppa_gdbarch_init): Update.
5125 2004-02-26 Orjan Friberg <orjanf@axis.com>
5127 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
5128 (dwarf2-frame.h): Include.
5129 (enum cris_regnums): New enum CRIS_FP_REGNUM.
5130 Remove static variables related to ABI setting.
5131 (struct gdbarch_tdep): Remove cris_abi member.
5132 (struct frame_extra_info): Remove.
5133 (cris_unwind_cache, stack_item): New structs.
5134 (cris_frame_unwind, cris_frame_base): New variables.
5135 (push_stack_item, pop_stack_item)
5136 (cris_frame_unwind_cache, cris_frame_this_id)
5137 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
5138 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
5139 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
5140 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
5141 (cris_reg_struct_has_addr): New functions.
5142 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
5143 (cris_frame_saved_pc, cris_saved_pc_after_call,
5144 (cris_store_struct_return, cris_frameless_function_invocation)
5145 (cris_pop_frame, cris_skip_prologue_main)
5146 (cris_abi_original_store_return_value)
5147 (cris_abi_v2_store_return_value)
5148 (cris_abi_original_extract_return_value)
5149 (cris_abi_v2_extract_return_value)
5150 (cris_abi_original_reg_struct_has_addr)
5151 (cris_abi_v2_reg_struct_has_addr)
5152 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
5153 (cris_push_return_address, cris_abi_update): Remove.
5154 (_initialize_cris_tdep): Remove ABI command.
5155 (cris_dump_tdep): Ditto.
5156 (cris_gdbarch_init): Remove ABI command.
5157 Set store_return_value, extract_return_value, push_dummy_code,
5158 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
5159 frame_unwind_append_sniffer, frame_base_set_default.
5160 Clear deprecated init_frame_pc, push_arguments, store_return_value,
5161 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
5162 sizeof_call_dummy_words, get_saved_register, push_return_address,
5163 pop_frame, store_struct_return, frame_init_saved_regs,
5164 init_extra_frame_info, frameless_function_invocation, frame_chain,
5165 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
5168 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
5170 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
5171 * valprint.c (print_hex_chars): Change from static to external.
5172 (print_char_chars): New function.
5173 * printcmd.c (print_scalar_formatted): For integer and enum types
5174 that are longer than LONGEST, perform processing via appropriate
5175 print_*_chars routines.
5177 2004-02-26 Andrew Cagney <cagney@redhat.com>
5179 * Makefile.in: Update dependencies.
5180 Changes from Ulrich Weigand,
5181 * s390-tdep.c: Include "dwarf2-frame.h".
5182 (s390_dwarf2_frame_init_reg): New function.
5183 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
5184 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
5186 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
5188 * breakpoint.c (pending_break_support): New setting variable.
5189 (break_command_1): Account for pending_break_support setting
5190 when creating pending breakpoints.
5191 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
5192 (_initialize_breakpoint): Add "set breakpoint pending" and
5193 "show breakpoint pending" commands.
5195 2004-02-26 Andrew Cagney <cagney@redhat.com>
5198 * charset.c (backslashable, backslashed, represented): Remove 'e'
5199 from list of escaped characters, not part of ISO-C.
5201 2004-02-25 J. Brobecker <brobecker@gnat.com>
5203 From Peter Schauer <schauer@pdf.de>:
5204 * tui/tui.c: Move system header includes after local includes.
5205 Fixes a build failure on solaris systems.
5207 2004-02-25 J. Brobecker <brobecker@gnat.com>
5209 * configure.in: Refine the previous change.
5210 * configure: Regenerate.
5212 2004-02-25 Mark Kettenis <kettenis@gnu.org>
5214 * amd64-tdep.h: Renamed from x86-64-tdep.h.
5215 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
5216 "amd64-tdep.h" instead of "x86-64-tdep.h".
5217 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
5218 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
5219 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
5220 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
5221 and "x86-64-tdep.c".
5222 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
5223 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
5224 and "x86-64-tdep.c".
5225 * amd64bsd-nat.c: Update copyright year.
5226 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
5227 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
5229 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
5231 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
5233 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
5235 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
5237 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
5239 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
5240 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
5241 * Makefile.in (amd64_linux_tdep_h): Renamed from
5242 x86_64_linux_tdep_h.
5243 (amd64_tdep_h): Renamed from x86_64_tdep_h.
5244 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
5245 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
5246 (amd64obsd-tdep.o): Update dependencies.
5247 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
5249 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
5251 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
5252 amd64-linux-nat.c amd64-linux-tdep.c.
5253 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
5254 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
5255 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
5256 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
5257 amd64-tdep.o and amd64-linux-tdep.o.
5258 (TM_FILE): Set to tm-linux64.h.
5259 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
5260 (NAT_FILE): Set to nm-linux64.h.
5261 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
5262 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
5264 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
5266 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
5269 2004-02-25 Roland McGrath <roland@redhat.com>
5271 * remote.c (remote_protocol_qPart_auxv): New variable.
5272 (init_all_packet_configs): Initialize it.
5273 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
5274 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
5275 (show_remote_cmd): Call it.
5276 (_initialize_remote): Initialize commands.
5277 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
5278 service TARGET_OBJECT_AUXV requests.
5280 2004-02-25 J. Brobecker <brobecker@gnat.com>
5282 * configure.in: Make sure that the wborder function is available.
5283 Otherwise, search for it in the cur_colr library.
5284 * configure: Regenerate.
5286 2004-02-25 Andrew Cagney <cagney@redhat.com>
5288 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
5290 2004-02-25 Mark Kettenis <kettenis@gnu.org>
5292 * config/i386/tm-x86-64linux.h: Tweak comments.
5294 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
5296 * MAINTAINERS: Add self to write-after-approval list.
5298 2004-02-25 Andrew Cagney <cagney@redhat.com>
5300 PR cli/1566. Problem found, and fix suggested by David Allan.
5301 * cli/cli-script.c (execute_control_command): Unconditionally
5302 install a cleanup. Default "ret" to "invalid_control". Use
5303 "break" instead of "return" to escape from the switch.
5305 2004-02-24 J. Brobecker <brobecker@gnat.com>
5307 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
5308 with the lines macro defined in term.h on AiX.
5309 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
5310 a collision with the label_width macro defined in term.h on AiX.
5312 2004-02-23 David Mosberger <davidm@hpl.hp.com>
5314 Committed by Kevin Buettner <kevinb@redhat.com>.
5316 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
5317 * ia64-tdep.c (ia64_write_pc): Make it a global function.
5318 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
5319 instead of ia64_write_pc().
5320 * ia64-linux-tdep.c (regcache.h): Include.
5321 (ia64_linux_write_pc): New function.
5323 2004-02-23 Roland McGrath <roland@redhat.com>
5325 * auxv.c (info_auxv_command): Fix typos in error messages.
5327 2004-02-23 Mark Kettenis <kettenis@gnu.org>
5329 * x86-64-tdep.h: Tweak comment.
5330 (enum amd64_regnum): New.
5331 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
5332 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
5333 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
5334 (X86_64_XMM1_REGNUM): Removed.
5335 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
5336 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
5337 prototypes for renamed functions.
5338 * x86-64-tdep.c: Fix typo.
5339 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
5341 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
5342 Use constants from `enum amd64_regnum' for register numbers.
5343 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
5344 (amd64_analyze_prologue, amd64_frame_cache,
5345 amd64_sigtramp_frame_cache): Use constants from `enum
5346 amd64_regnum' for register numbers.
5347 (amd64_supply_fpregset): Adjust for renamed functions.
5348 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
5349 `enum amd64_regnum' for register numbers.
5350 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
5351 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
5352 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
5353 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
5354 (amd64_linux_fill_gregset): Adjust for renamed macros.
5355 (fetch_core_registers): Adjust for renamed functions.
5356 (amd64_linux_init_abi): Adjust for renamed functions.
5357 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
5359 * amd64-nat.c: Adjust for renamed macros.
5360 * amd64bsd-nat.c (fetch_inferior_registers)
5361 (store_inferior_registers): Use constants from `enum amd64_regnum'
5362 for register numbers. Adjust for renamed variables.
5363 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
5365 (_initialize_amd64fbsd_nat): Use constants from `enum
5366 amd64_regnum' for register numbers.
5367 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
5368 `enum amd64_regnum' for register numbers.
5369 (amd64fbsd_init_abi): Adjust for renamed functions.
5370 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
5371 `enum amd64_regnum' for register numbers.
5372 (amd64nbsd_init_abi): Adjust for renamed functions.
5373 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
5374 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
5375 `enum amd64_regnum' for register numbers.
5376 (amd64obsd_init_abi): Adjust for renamed functions.
5377 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
5379 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
5381 * breakpoint.c (print_one_breakpoint): Do not output spaces
5382 after printing <PENDING> for a pending breakpoint.
5384 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
5386 * printcmd.c (print_scalar_formatted): Initialize val_long
5387 to remove compiler warning message.
5389 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
5391 * defs.h (nquery, yquery): New prototypes.
5392 * breakpoint.c (break_command_1): Use new nquery interface.
5393 * utils.c (defaulted_query, nquery, yquery): New functions.
5395 2004-02-23 Andrew Cagney <cagney@redhat.com>
5397 * hppa-tdep.c (hppa_frame_align): New function.
5398 (hppa32_push_dummy_call): New function.
5399 (hppa64_push_dummy_call): New function.
5400 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
5403 * infcall.c (legacy_push_dummy_code): Don't call deprecated
5404 FIX_CALL_DUMMY when push_dummy_call is available.
5405 (call_function_by_hand, push_dummy_code): Ditto.
5407 2004-02-22 Andrew Cagney <cagney@redhat.com>
5409 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
5410 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
5411 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
5412 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
5413 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
5414 call_dummy_location to ON_STACK.
5416 2004-02-22 Mark Kettenis <kettenis@gnu.org>
5418 * x86-64-linux-tdep.c: Tweak comment.
5419 (amd64_linux_supply_gregset): Renamed from
5420 x86_64_linux_supply_gresget.
5421 (amd64_linux_fill_gregset): Renamed from
5422 x86_64_linux_fill_gregset.
5423 (fetch_core_registers): Adjust for renamed functions.
5424 (amd64_core_fns): Renamed from x86_64_core_fns.
5425 (amd64_linux_sigtramp_start): Renamed from
5426 x86_64_linux_sigtramp_start.
5427 (amd64_linux_pc_in_sigtramp): Renamed from
5428 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
5429 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
5430 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
5431 (amd64_linux_sigcontext_addr): Renamed from
5432 x86_64_linux_sigcontext_addr.
5433 (amd64_linux_sc_reg_offset): Renamed from
5434 x86_64_linux_sc_reg_offset.
5435 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
5436 Adjust for renamed functions and variables.
5437 (_initialize_amd64_linux_tdep): Renamed from
5438 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
5440 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
5441 Adjust for renamed functions.
5443 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
5444 from x86_64_linux_gregset64_reg_offset.
5445 (amd64_linux_gregset32_reg_offset): Rename from
5446 x86_64_linux_gregset64_reg_offset.
5447 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
5448 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
5449 (amd64_linux_dr_set_control): Renamed from
5450 x86_64_linux_dr_set_control. Adjust for renamed functions.
5451 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
5452 Adjust for renamed functions.
5453 (amd64_linux_dr_reset_addr): Renamed from
5454 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
5455 (amd64_linux_dr_get_status): Renamed from
5456 x86_64_linux_dr_get_status. Adjust for renamed functions.
5457 (_initialize_amd64_linux_nat): Renamed from
5458 _initialize_x86_64_linux_nat. Adjust for renamed variables and
5460 * config/i386/nm-x86-64linux.h: Update copyright year.
5461 Adjust for renamed functions.
5463 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
5464 amd64fbsd_sigtramp_start.
5465 (amd64fbsd_sigtramp_end_addr): Renamed from
5466 amd64fbsd_sigtramp_end.
5467 (amd64fbsd_init_abi): Adjust for renamed variables.
5468 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
5470 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
5471 amd64fbsd_sigtramp_start.
5472 (amd64fbsd_sigtramp_end_addr): Renamed from
5473 amd64fbsd_sigtramp_end.
5475 2004-02-22 Andrew Cagney <cagney@redhat.com>
5477 * hppa-tdep.c (hppa32_return_value): New function.
5478 (hppa64_return_value): New function.
5479 (hppa_gdbarch_init): Set return_value; keep disabled.
5481 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
5482 struct-return and inferior function call methods.
5484 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
5486 (struct hppa_frame_cache): Define.
5487 (hppa_frame_cache, hppa_frame_this_id): New functions.
5488 (hppa_frame_prev_register): New function.
5489 (hppa_frame_unwind, hppa_frame_base): New variables.
5490 (hppa_frame_unwind_sniffer): New function.
5491 (hppa_frame_base_address, hppa_unwind_pc): New function.
5492 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
5493 sniffer, and frame base sniffer; keep disabled.
5494 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
5495 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
5497 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
5498 to predicates for "seriously old code".
5500 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
5503 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
5505 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
5507 * config/pa/tm-hppa.h: Update copyright.
5508 (DEPRECATED_INIT_FRAME_PC): Delete macro.
5509 (deprecated_init_frame_pc_default): Delete declaration.
5510 (hppa_frame_init_saved_regs): Delete declaration.
5511 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
5512 * hppa-tdep.c: Include "arch-utils.h".
5513 (hppa_gdbarch_init): Set deprecated init_frame_pc
5514 and deprecated frame_init_saved_regs.
5515 (hppa_frame_init_saved_regs): Make static.
5517 2004-02-22 Mark Kettenis <kettenis@gnu.org>
5519 Remove old 386BSD support.
5520 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
5521 * configure.host: Remove i[34567]86-*-bsd*.
5522 * configure.tgt: Remove i[34567]86-*-bsd*.
5523 * i386b-nat.c: Removed.
5524 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
5525 (i386b-nat.o): Remove dependencies.
5527 * config/i386/i386bsd.mh: Removed.
5528 * config/i386/i386bsd.mt: Removed.
5529 * config/i386/nm-i386bsd.h: Removed.
5530 * config/i386/tm-i386bsd.h: Removed.
5531 * config/i386/xm-i386bsd.h: Removed.
5533 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
5535 * amd64fbsd-tdep.c: Include "solib-svr4.h".
5536 (amd64fbsd_init_abi): Set link map offsets.
5537 * amd64nbsd-tdep.c: Include "slib-svr4.h".
5538 (amd64nbsd_init_abi): Set link map offsets.
5539 * amd64obsd-tdep.c: Include "solib-svr4.h".
5540 (amd64obsd_init_abi): Set link map offsets.
5541 * i386fbsd-tdep.c: Include "solib-svr4.h".
5542 (i386fbsd_init_abi): Set link map offsets.
5543 * i386nbsd-tdep.c: Include "solib-svr4.h".
5544 (i386nbsdelf_init_abi): Set link map offsets.
5545 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
5546 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
5547 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
5548 solib-legacy.o and core-aout.o. Reformat.
5549 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
5550 solib-svr4.o, solib-legacy.o. Reformat.
5551 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
5552 * config/i386/nbsdelf.mh: Reformat.
5553 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
5554 solib-svr4.o, solib-legacy.o and corelow.o.
5555 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
5556 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
5557 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
5558 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
5559 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
5560 (TM_FILE): Set to tm-fbsd.h.
5561 * config/i386/nbsd.mt (TDEPFILES): Reformat.
5562 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
5564 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
5566 (TM_FILE): Set to nm-nbsd.h.
5567 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
5568 Simplify shared library support. Don't include "elf/common.h".
5569 (SVR4_SHARED_LIBS): Don't define.
5570 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
5572 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
5573 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
5574 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
5575 Don't include "i386/tm-i386.h". Include "solib.h".
5576 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
5577 Don't include "i386/tm-i386.h".
5578 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
5579 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
5580 Include "i386/xm-i386.h".
5581 (HOST_LONG_DOUBLE_FORMAT): Remove.
5583 Fix OpenBSD/i386 sigtramp recognition.
5584 * i386-tdep.h: Update copyright year.
5585 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
5586 (i386bsd_sigtramp_end): New prototypes.
5587 (i386fbsd_sigtramp_start_addr): Renamed from
5588 i386fbsd_sigtramp_start.
5589 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
5590 (i386obsd_sigtramp_start_addr): Renamed from
5591 i386obsd_sigtramp_start.
5592 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
5593 * i386bsd-tdep.c: Update copyright year.
5594 (i386bsd_pc_in_sigtramp): Make public.
5595 * i386fbsd-nat.c: Update copyright year.
5596 (_initialize_i386fbsd_nat): Adjust for renamed variables.
5597 * i386fbsd-tdep.c: Update copyright year.
5598 (i386fbsd_sigtramp_start_addr): Renamed from
5599 i386fbsd_sigtramp_start.
5600 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
5601 (i386fbsdaout_init_abi): Adjust for renamed variables.
5602 * i386obsd-nat.c: Update copyright year.
5603 (_initialize_i386obsd_nat): Adjust for renamed variables.
5604 * i386obsd-tdep.c: Include "target.h".
5605 (i386obsd_page_size): New variable.
5606 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
5607 (i386obsd_sigtramp_end): New functions.
5608 (i386obsd_sigtramp_start_addr): Renamed from
5609 i386obsd_sigtramp_start.
5610 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
5611 (i386obsd_init_abi): Adjust for renamed variables. Set
5612 pc_in_sigtramp, sigtramp_start and sigtramp_end.
5613 * Makefile.in (i386obsd-tdep.o): Update dependencies.
5615 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
5616 trampoline change in OpenBSD kernel.
5618 * amd64-nat.c: Update copyright year.
5619 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
5620 architecture from REGCACHE.
5622 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
5623 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
5625 2004-02-21 Mark Kettenis <kettenis@gnu.org>
5627 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
5628 i[34567]86-*-openbsd3.[0-3].
5629 * config/i386/obsdaout.mh: New file.
5631 * config/i386/obsd.mh (MH_FLAGS): Remove.
5634 * i386obsd-tdep.c: Update copyright years. Include
5636 (i386obsd_init_abi): Don't set regset_from_core_section here.
5637 (i386obsd_aout_init_abi): New function. Set
5638 regset_from_core_section here.
5639 (i386obsd_elf_init_abi): New function.
5640 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
5641 * Makefile.in (i386obsd-tdep.o): Update dependecies.
5642 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
5643 (TM_FILE): Set to tm-nbsd.h.
5645 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
5648 * solib-svr4.h: Update copyright year.
5649 (svr4_ilp32_fetch_link_map_offsets)
5650 (svr4_lp64_fetch_link_map_offsets): New prototype.
5651 * solib-svr4.c: Update copyright year.
5652 (svr4_ilp32_fetch_link_map_offsets)
5653 (svr4_lp64_fetch_link_map_offsets): New function.
5655 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
5657 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
5658 to the partial symbol table.
5660 2004-02-20 J. brobecker <brobecker@gnat.com>
5662 * PROBLEMS: Add description of problem documented under gdb/1560.
5664 2004-02-20 Mark Kettenis <kettenis@gnu.org>
5666 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
5668 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
5670 (amd64obsd_init_abi): Reorder initializations. Use
5671 amd64obsd_r_reg_offset to initialize the general-purpose register
5672 set details. Set regset_from_core_section.
5673 (_initialize_amd64obsd_tdep): Rename from
5674 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
5675 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
5676 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
5678 * NEWS (New native configurations): Mention OpenBSD/alpha.
5679 * configure.tgt: Add alpha*-*-openbsd*.
5680 * configure.host: Add alpha*-*-openbsd*.
5681 * alphanbsd-tdep.c: Update copyright year.
5682 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
5684 2004-02-20 Andrew Cagney <cagney@redhat.com>
5687 * configure.tgt: Delete target "none-*-*".
5688 * configure.host: Delete host "none-*-*".
5689 * config/none/none.mh: Delete file.
5690 * config/none/none.mt: Delete file.
5691 * config/none/xm-none.h: Delete file.
5692 * config/none/tm-none.h: Delete file.
5693 * config/none/nm-none.h: Delete file.
5695 2004-02-19 Fred Fish <fnf@redhat.com>
5697 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
5698 cache->uses_fp prior to setting it.
5700 2004-02-19 Fred Fish <fnf@redhat.com>
5702 Fix for PR breakpoint/1558.
5703 * sh-tdep.c (IS_JSR): New macro.
5704 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
5706 2004-02-19 Jim Blandy <jimb@redhat.com>
5708 * findvar.c (value_from_register): Doc fix.
5710 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
5712 * printcmd.c (print_scalar_formatted): Do not check for sizeof
5713 type being greater than sizeof of host's LONGEST. Always use
5714 unpack_long() unless format 'f' chosen.
5716 2004-02-19 Joel Brobecker <brobecker@gnat.com>
5718 Committed by Elena Zannoni <ezannoni@redhat.com>
5720 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
5721 contains a symbol wich is the best, non-exact match for the given
5722 pc. Update comments.
5724 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
5726 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
5727 macro, which was part of the now removed Mach 3 port.
5728 * utils.c (request_quit): Ditto.
5730 2004-02-18 Mark Kettenis <kettenis@gnu.org>
5732 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
5733 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
5735 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5737 Committed by Mark Kettenis <kettenis@gnu.org>.
5739 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
5742 2004-02-18 Andrew Cagney <cagney@redhat.com>
5744 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
5745 CONFIG_INSTALL and CONFIG_UNINSTALL.
5746 * configure: Re-generate.
5747 * interps.h (INTERP_TUI): Define.
5748 * Makefile.in: Update dependencies.
5750 (tui-main.o): Specify dependencies.
5751 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
5752 * tui/tui-main.c: New file.
5754 2004-02-18 Mark Kettenis <kettenis@gnu.org>
5756 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
5757 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
5759 * configure.host: Add x86_64-*-openbsd*.
5760 * configure.tgt: Add x86_64-*-openbsd*.
5761 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
5763 * tui/tui.c: Don't include <malloc.h>.
5765 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
5766 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
5769 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
5770 static. Remove extraneous whitespace.
5771 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
5774 2004-02-17 Jim Blandy <jimb@redhat.com>
5776 * findvar.c (value_from_register): Doc fix.
5778 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5780 Committed by Jim Blandy <jimb@redhat.com>.
5782 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
5783 CORE_ADDR as type for selectors. Correct types for GNU run time
5784 message lookup function to use double indirection.
5785 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
5786 * objc-lang.h (lookup_child_selector): Adapt prototype.
5788 * s390-nat.c (SUBOFF): New macro.
5789 (supply_gregset, fill_gregset): Use it to handle debugging
5790 of 32-bit exectuables running under a 64-bit kernel.
5791 * s390-tdep.c: Include "solib-svr4.h".
5792 (s390_svr4_fetch_link_map_offset): New function.
5793 (s390x_svr_fetch_link_map_offset): Likewise.
5794 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
5795 * Makefile.in (s390-tdep.o): Update dependencies.
5797 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
5799 (s390_readinstruction): Reformat. Use read_memory_nobpt.
5800 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
5801 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
5802 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
5803 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
5804 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
5805 S390_SIGNAL_FRAMESIZE,
5806 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
5807 (struct frame_extra_info): Remove.
5808 (s390_memset_extra_info): Remove.
5809 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
5810 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
5811 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
5812 (is_rse): Renamed to ...
5813 (is_rsy): ... this. Support long displacements.
5814 (is_rxe): Renamed to ...
5815 (is_rxy): ... this. Support long displacements.
5816 (compute_x_addr): Support long displacements.
5817 (struct s390_prologue_data): New data type.
5818 (s390_on_stack): Change API to use struct s390_prologue_data.
5819 (s390_store): Reimplement.
5820 (s390_load): New function.
5821 (s390_get_signal_frame_info): Remove.
5822 (s390_get_frame_info): Remove, replace by ...
5823 (s390_analyze_prolog): ... this new function.
5824 (s390_check_function_end): Remove.
5825 (s390_function_start): Remove.
5826 (s390_frameless_function_invokation): Remove.
5827 (s390_is_sigreturn): Remove.
5828 (s390_init_frame_pc_first): Remove.
5829 (s390_init_frame_extra_info): Remove.
5830 (s390_frame_init_saved_regs): Remove.
5831 (s390_frame_saved_pc_nofix): Remove.
5832 (s390_frame_saved_pc): Remove.
5833 (s390_frame_chain): Remove.
5834 (s390_fp_regnum, s390_read_fp): Remove.
5835 (s390_pop_frame_regular, s390_pop_frame): Remove.
5836 (s390_saved_pc_after_call): Remove.
5837 (s390_skip_prologue): Reimplement.
5838 (s390_in_function_epilogue_p): Support long displacements.
5839 (struct s390_unwind_cache): New data structure.
5840 (s390_frame_unwind_cache): New function.
5841 (s390_prologue_frame_unwind_cache): Likewise.
5842 (s390_backchain_frame_unwind_cache): Likewise.
5843 (s390_frame_this_id, s390_frame_prev_register): Likewise.
5844 (s390_frame_unwind): Define.
5845 (s390_frame_sniffer): New function.
5846 (struct s390_pltstub_unwind_cache): New data structure.
5847 (s390_pltstub_frame_unwind_cache): New function.
5848 (s390_pltstub_frame_this_id): Likewise.
5849 (s390_pltstub_frame_prev_register): Likewise.
5850 (s390_pltstub_frame_unwind): Define.
5851 (s390_pltstub_frame_sniffer): New function.
5852 (struct s390_sigtramp_unwind_cache): New data structure.
5853 (s390_sigtramp_frame_unwind_cache): New function.
5854 (s390_sigtramp_frame_this_id): Likewise.
5855 (s390_sigtramp_frame_prev_register): Likewise.
5856 (s390_sigtramp_frame_unwind): Define.
5857 (s390_sigtramp_frame_sniffer): New function.
5858 (s390_frame_base_address, s390_local_base_address): New functions.
5859 (s390_frame_base): Define.
5860 (s390_unwind_pc, s390_unwind_sp): New function.
5861 (s390_push_dummy_call): Use new frame base location.
5862 (s390_unwind_dummy_id): Likewise.
5863 (s390_gdbarch_init): Remove calls to:
5864 set_gdbarch_frameless_function_invocation,
5865 set_gdbarch_deprecated_init_frame_pc,
5866 set_gdbarch_deprecated_frame_chain,
5867 set_gdbarch_deprecated_frame_init_saved_regs,
5868 set_gdbarch_deprecated_pop_frame,
5869 set_gdbarch_deprecated_init_extra_frame_info,
5870 set_gdbarch_deprecated_init_frame_pc_first,
5871 set_gdbarch_deprecated_target_read_fp,
5872 set_gdbarch_deprecated_frame_saved_pc,
5873 set_gdbarch_deprecated_saved_pc_after_call,
5874 set_gdbarch_deprecated_fp_regnum.
5876 set_gdbarch_in_solib_call_trampoline,
5877 frame_unwind_append_sniffer,
5878 frame_base_set_default,
5879 set_gdbarch_unwind_pc,
5880 set_gdbarch_unwind_sp.
5881 * Makefile.in (s390-tdep.o): Update dependencies.
5883 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
5884 (S390_STACK_FRAME_OVERHEAD): Remove.
5885 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
5886 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
5887 (s390_promote_integer_argument): Remove.
5888 (s390_cannot_extract_struct_value_address): Remove.
5889 (s390_use_struct_convention, s390_store_struct_return): Remove.
5890 (s390_extract_return_value, s390_store_return_value): Remove.
5891 (s390_return_value_convention, s390_return_value): New functions.
5892 (is_float_singleton): Handle typedefs.
5893 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
5894 Remove, replace by ...
5895 (s390_function_arg_pass_by_reference, s390_function_arg_float,
5896 s390_function_arg_integer): ... these new functions.
5897 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
5898 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
5899 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
5902 set_gdbarch_deprecated_store_struct_return,
5903 set_gdbarch_deprecated_extract_return_value,
5904 set_gdbarch_deprecated_store_return_value,
5905 set_gdbarch_use_struct_convention,
5906 set_gdbarch_extract_struct_value_address,
5907 set_gdbarch_deprecated_pc_in_call_dummy,
5908 set_gdbarch_deprecated_push_arguments,
5909 set_gdbarch_deprecated_save_dummy_frame_tos,
5910 set_gdbarch_deprecated_push_return_address,
5911 set_gdbarch_deprecated_sizeof_call_dummy_words,
5912 set_gdbarch_deprecated_call_dummy_words,
5913 set_gdbarch_deprecated_dummy_write_sp.
5915 set_gdbarch_push_dummy_call,
5916 set_gdbarch_unwind_dummy_id,
5917 set_gdbarch_return_value.
5919 * config/s390/nm-linux.h: Update comments.
5920 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
5921 (STOPPED_BY_WATCHPOINT): Redefine.
5922 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
5923 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
5924 (s390_stopped_by_watchpoint): Likewise.
5925 (watch_area_cnt): Remove.
5926 * s390-nat.c: Update comments.
5927 (watch_area): Remove typedef.
5928 Global replace watch_area by struct watch_area.
5929 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
5930 (s390_stopped_by_watchpoint): Remove pid argument,
5931 use s390_inferior_tid. Add short-cut for the no watchpoint case.
5932 (s390_fix_watch_points): Remove pid argument,
5933 use s390_inferior_tid. Recompute area spanned by watchpoints.
5934 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
5935 argument. Reimplement.
5937 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
5938 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
5939 (FETCH_INFERIOR_REGISTERS): Define.
5940 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
5942 * config/s390/s390x.mt: Remove.
5943 * config/s390/tm-s390.h: Remove.
5944 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
5945 (TARGET_ELF64): Remove.
5946 (SKIP_TRAMPOLINE_CODE): Do not undefine.
5947 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
5948 s390*-*-* case; always set gdb_target to s390.
5949 * regformats/reg-s390.dat: Remove control registers.
5950 * regformats/reg-s390x.dat: Likewise.
5951 * s390-tdep.h: New file.
5952 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
5953 Include "inferior.h" and "s390-tdep.h".
5954 Remove private definition of offsetof.
5955 (s390_register_u_addr): Remove.
5956 (regmap_gregset, regmap_fpregset): Define.
5957 (supply_gregset, fill_gregset): Reimplement.
5958 (supply_fpregset, fill_fpregset): Likewise.
5959 (s390_inferior_tid): New function.
5960 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
5961 (fetch_inferior_registers, store_inferior_registers): Likewise.
5962 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
5963 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
5964 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
5965 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
5966 (struct gdbarch_tdep): Define.
5967 (struct s390_register_info): Define.
5968 (s390_register_info): New variable.
5969 (s390_register_name): Reimplement.
5970 (s390_register_type): New function.
5971 (s390_register_raw_size, s390x_register_raw_size): Remove.
5972 (s390_cannot_fetch_register): Remove.
5973 (s390_register_byte): Remove.
5974 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
5975 (s390_dwarf_regmap): New variable.
5976 (s390_dwarf_reg_to_regnum): New function.
5977 (s390_stab_reg_to_regnum): Remove.
5978 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
5979 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
5980 (s390_convert_register_p): Likewise.
5981 (s390_register_to_value, s390_value_to_register): Likewise.
5982 (s390_register_reggroup_p): Likewise.
5983 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
5984 s390_gregset, s390x_gregset, s390_fpregset): New variables.
5985 (s390_supply_regset, s390_regset_from_core_section): New functions.
5986 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
5987 (S390_FPR_SIZE): Likewise.
5988 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
5989 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
5990 (S390_NUM_GPRS): Move here from tm-s390.h.
5991 (S390_NUM_FPRS): Likewise.
5992 (s390_in_function_epilogue_p): New function.
5993 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
5994 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
5995 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
5996 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
5997 Replace S390_FP_REGNUM by S390_SP_REGNUM.
5999 set_gdbarch_deprecated_max_register_raw_size,
6000 set_gdbarch_deprecated_max_register_virtual_size,
6001 set_gdbarch_deprecated_register_byte,
6002 set_gdbarch_cannot_fetch_register,
6003 set_gdbarch_cannot_store_register,
6004 set_gdbarch_deprecated_register_size,
6005 set_gdbarch_deprecated_register_raw_size,
6006 set_gdbarch_deprecated_register_virtual_size,
6007 set_gdbarch_deprecated_register_virtual_type,
6008 set_gdbarch_deprecated_register_bytes.
6010 set_gdbarch_num_pseudo_regs,
6011 set_gdbarch_register_type,
6012 set_gdbarch_convert_register_p,
6013 set_gdbarch_register_to_value,
6014 set_gdbarch_value_to_register,
6015 set_gdbarch_register_reggroup_p,
6016 set_gdbarch_regset_from_core_section,
6017 set_gdbarch_pseudo_register_read,
6018 set_gdbarch_pseudo_register_write,
6019 set_gdbarch_in_function_epilogue_p.
6020 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
6021 (s390_tdep_h): New variable.
6023 2004-02-17 Jim Blandy <jimb@redhat.com>
6025 * findvar.c (value_from_register): If the type has no length, just
6026 return an acceptable value --- don't report an internal error.
6028 * stabsread.c (read_type): If we find any type numbers that are
6029 forward references, complain if the references aren't resolved by
6030 the time we're finished reading.
6031 (cleanup_undefined_types): Make error message more appropriate for
6034 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
6036 * Makefile.in (defs_h): Remove dependency on progress_h.
6037 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
6039 * main.c (captured_main): Delete use of START_PROGRESS and
6042 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
6044 * objfiles.c (terminate_minimal_symbol_table): Add back
6045 initialization of MSYMBOL_TYPE.
6047 2004-02-17 David Mosberger <davidm@hpl.hp.com>
6049 Committed by Andrew Cagney.
6050 * Makefile.in (ia64_tdep_h): New macro.
6051 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
6052 (ia64-tdep.o): Likewise.
6053 * ia64-tdep.h: New file.
6054 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
6055 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
6056 (ia64_aix_sigcontext_register_address): Likewise.
6057 (ia64_linux_getunwind_table): Delete declaration.
6058 * ia64-linux-tdep.c: Likewise.
6060 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
6062 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
6063 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
6064 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
6066 2004-02-17 Andrew Cagney <cagney@redhat.com>
6068 * symtab.c (skip_prologue_using_sal): New function.
6069 * symtab.h (skip_prologue_using_sal): Declare.
6070 * frv-tdep.c: Include "symtab.h".
6071 (skip_prologue_using_sal): Delete function.
6072 * mips-tdep.c (skip_prologue_using_sal): Delete function.
6073 * rs6000-tdep.c (refine_prologue_limit): Mention
6074 skip_prologue_using_sal.
6075 * ia64-tdep.c (refine_prologue_limit): Ditto.
6076 * Makefile.in: Update dependencies.
6078 2004-02-16 Andrew Cagney <cagney@redhat.com>
6080 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
6081 START_INFERIOR_TRAPS_EXPECTED.
6082 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
6083 START_INFERIOR_TRAPS_EXPECTED.
6084 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
6086 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
6087 macro, moved to "nm-osf.h". Update copyright.
6088 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
6091 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
6092 and function replacing FRAMELESS_FUNCTION_INVOCATION.
6093 * blockframe.c (legacy_frameless_look_for_prologue): Rename
6094 frameless_look_for_prologue.
6095 * frame.h (legacy_frameless_look_for_prologue): Rename
6096 frameless_look_for_prologue.
6097 * gdbarch.h, gdbarch.c: Re-generate.
6098 * sh64-tdep.c (sh64_gdbarch_init): Update.
6099 * sh-tdep.c (sh_gdbarch_init): Update.
6100 * s390-tdep.c (s390_gdbarch_init): Update.
6101 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6102 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6103 * m68k-tdep.c (m68k_gdbarch_init): Update.
6104 (delta68_frame_args_address): Update.
6105 * m32r-tdep.c (m32r_gdbarch_init): Update.
6106 * hppa-tdep.c (hppa_gdbarch_init): Update.
6107 * h8300-tdep.c (h8300_gdbarch_init): Update.
6108 * frv-tdep.c (frv_gdbarch_init): Update.
6109 (frv_frameless_function_invocation): Update.
6110 * cris-tdep.c (cris_gdbarch_init): Update.
6111 (cris_frameless_function_invocation): Update.
6112 * avr-tdep.c (avr_gdbarch_init): Update.
6113 * arm-tdep.c (arm_gdbarch_init): Update.
6114 * stack.c (frame_info): Update, call predicate.
6115 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
6116 * frame.c (legacy_get_prev_frame): Update, call predicate..
6117 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
6118 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
6119 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
6121 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6122 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6123 * vax-tdep.c (vax_gdbarch_init): Ditto.
6125 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
6128 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
6130 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
6133 2004-02-16 Andrew Cagney <cagney@redhat.com>
6135 * tui/tui-windata.c: Include "gdb_string.h".
6136 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
6137 * tui/tui-layout.c, tui/tui-command.c: Ditto.
6138 * Makefile.in: Update dependencies.
6140 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
6142 * Makefile.in (infrun.o): Add $(gdb_assert_h).
6143 * infrun.c: Include "gdb_assert.h".
6144 (singlestep_ptid, saved_singlestep_ptid)
6145 (stepping_past_singlestep_breakpoint): New variables.
6146 (resume): Set singlestep_ptid. Check for singlestep thread
6148 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
6149 (handle_inferior_event): Handle singlestep thread hop.
6151 2004-02-16 Andrew Cagney <cagney@redhat.com>
6153 * dwarf2-frame.c (dwarf2_frame_ops): New function.
6154 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
6155 (dwarf2_frame_init_reg): Ditto.
6157 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
6158 suggested by Joshua Neuheisel
6160 * configure.in: Always check for curses, including pdcurses.
6161 Warn, instead of error, when no curses are found. Enable TUI when
6162 curses is available.
6163 * configure: Re-generate.
6165 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
6167 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
6168 sh_sh4_register_convert_to_virtual.
6169 (sh_register_convert_to_raw): Rename from
6170 sh_sh4_register_convert_to_raw.
6171 (sh_pseudo_register_read): Accomodate above name change.
6172 (sh_pseudo_register_write): Ditto.
6174 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
6176 * sh-tdep.c (sh_generic_register_name): Remove.
6177 (sh_gdbarch_init): Use sh_sh_register_name in default case.
6179 2004-02-15 Andrew Cagney <cagney@redhat.com>
6181 * configure.in (build_warnings): Add -Wunused-function.
6182 * configure: Re-generate.
6184 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
6185 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
6187 * procfs.c (procfs_init_inferior): Assume that
6188 START_INFERIOR_TRAPS_EXPECTED is defined.
6189 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
6190 * config/ns32k/tm-nbsd.h: Delete file,
6191 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
6193 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
6194 * config/vax/tm-vax.h: Delete file.
6196 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
6197 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
6198 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
6199 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
6200 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
6201 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
6202 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
6204 2004-02-15 Mark Kettenis <kettenis@gnu.org>
6206 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
6207 * dwarf2-frame.c (dwarf2_frame_data): New variable.
6208 (struct dwarf2_frame_ops): New.
6209 (dwarf2_frame_default_init_reg): New function, based on
6210 dwarf2_frame_init_reg.
6211 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
6212 (dwarf2_frame_init_reg): Call architecture-specific function.
6213 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
6214 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
6215 instead of dwarf2_frame_data.
6216 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
6217 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
6219 2004-02-15 Andrew Cagney <cagney@redhat.com>
6221 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
6222 register_gdbarch_swap.
6223 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
6224 * f-lang.c (_initialize_f_language): Update, use
6225 DEPRECATED_REGISTER_GDBARCH_SWAP.
6226 * remote.c (_initialize_remote): Ditto.
6227 * regcache.c (_initialize_regcache): Ditto.
6228 * parse.c (_initialize_parse): Ditto.
6229 * infrun.c (_initialize_infrun): Ditto.
6230 * mi/mi-main.c (_initialize_mi_main): Ditto.
6231 * gdbtypes.c (_initialize_gdbtypes): Ditto.
6233 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
6234 poking .cacheable directly.
6235 * symfile.c (symfile_bfd_open): Ditto.
6237 * Makefile.in: Update all dependencies.
6239 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
6240 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
6241 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
6242 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
6243 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
6245 2004-02-14 Andrew Cagney <cagney@redhat.com>
6247 * arch-utils.c (legacy_convert_register_p): Check
6248 DEPRECATED_REGISTER_CONVERTIBLE_P.
6249 * findvar.c (value_of_register): Ditto.
6251 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
6252 * gdbarch.h, gdbarch.c: Re-generate.
6253 * arch-utils.c (deprecated_register_convertible_not): Delete.
6254 * arch-utils.h (deprecated_register_convertible_not): Delete.
6255 * mi/mi-main.c (get_register): Update. Update copyright.
6256 * infcmd.c (default_print_registers_info): Update.
6258 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
6259 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
6260 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
6261 * gdbarch.h, gdbarch.c: Re-generate.
6262 * frame.c (deprecated_get_next_frame_hack): Delete function.
6263 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
6264 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
6266 * infcall.c (call_function_by_hand): Update.
6268 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
6270 * symfile.c (init_entry_point_info, entry_point_address): Move
6272 * objfiles.c (init_entry_point_info, entry_point_address):..to
6274 * symfile.h (init_entry_point_info, entry_point_address): Remove
6276 * objfiles.h (init_entry_point_info, entry_point_address):Add
6278 * cris-tdep.c: Remove include of symfile.h. Add include of
6281 * mcore-tdep.c: Ditto.
6282 * mn10300-tdep.c: Ditto.
6283 * sh64-tdep.c: Ditto.
6284 * v850-tdep.c: Ditto.
6285 * arm-tdep.c: Remove include of symfile.h.
6286 * blockframe.c: Ditto.
6287 * coffread.c: Ditto.
6289 * dwarf2read.c: Ditto.
6290 * dwarfread.c: Ditto.
6291 * frv-tdep.c: Ditto.
6292 * ia64-tdep.c: Ditto.
6293 * mdebugread.c: Ditto.
6294 * mipsread.c: Ditto.
6295 * rs6000-tdep.c: Ditto.
6296 * s390-tdep.c: Ditto.
6298 * xstormy16-tdep.c: Ditto.
6299 * gdbarch.sh: Remove include of symfile.h.
6300 * gdbarch.c: Regenerate.
6301 * solib-irix.c (enable_break): Use entry_point_address().
6302 Add comment about include file.
6303 * xcoffread.c: Add comment about include file.
6304 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
6305 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
6306 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
6307 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
6308 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
6310 2004-02-13 Andrew Cagney <cagney@redhat.com>
6312 * corelow.c (core_xfer_partial): Use "struct bfd_section".
6313 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
6315 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
6317 2004-02-12 Fred Fish <fnf@redhat.com>
6319 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
6320 set_gdbarch_store_return_value.
6322 2004-02-12 Andrew Cagney <cagney@redhat.com>
6324 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
6325 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
6326 (interrupt_query): Ditto.
6327 (ofunc): Delete unused variable.
6328 * cris-tdep.c (cris_abi): Delete unused function.
6329 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
6330 (cris_get_wide_opcode, cris_get_short_size): Ditto.
6331 (cris_get_asr_quick_shift_steps): Ditto.
6332 (cris_skip_prologue_frameless_p): Ditto.
6333 * arm-tdep.c (arm_push_return_address): Delete unused function.
6334 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
6335 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
6336 * s390-tdep.c (s390_function_start): Delete unused function.
6338 2004-02-12 Andrew Cagney <cagney@redhat.com>
6340 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
6341 gdbarch.h, gdbarch.c: Re-generate.
6342 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
6343 to generic_prologue_frameless_p.
6344 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
6345 * arch-utils.c (generic_prologue_frameless_p): Delete function.
6347 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
6349 * mips-linux-tdep.c: Include "frame.h".
6350 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
6351 (mips_linux_skip_resolver): New functions.
6352 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
6353 and set_gdbarch_in_solib_call_trampoline.
6354 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
6355 to after set_gdbarch_in_solib_return_trampoline. Only set the
6356 solib hooks to mips16 functions if the OS ABI is unknown.
6357 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
6358 including "config/tm-linux.h".
6359 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
6360 * Makefile.in (mips-linux-tdep.o): Update.
6362 2004-02-11 David Carlton <carlton@kealia.com>
6364 * linespec.c (decode_compound): Only look for a class symbol when
6365 considering all but the rightmost component.
6367 2004-02-11 Andrew Cagney <cagney@redhat.com>
6369 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
6370 abi code are are separatly grouped.
6372 2004-02-11 Andrew Cagney <cagney@redhat.com>
6374 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
6375 * gdbarch.h, gdbarch.c: Re-generate.
6376 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6377 * v850-tdep.c (v850_gdbarch_init): Update.
6378 * sh64-tdep.c (sh64_gdbarch_init): Update.
6379 * sh-tdep.c (sh_gdbarch_init): Update.
6380 * s390-tdep.c (s390_gdbarch_init): Update.
6381 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6382 * mips-tdep.c (mips_gdbarch_init): Update.
6383 * mcore-tdep.c (mcore_gdbarch_init): Update.
6384 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6385 * m32r-tdep.c (m32r_gdbarch_init): Update.
6386 * ia64-tdep.c (ia64_gdbarch_init): Update.
6387 * hppa-tdep.c (hppa_gdbarch_init): Update.
6388 * h8300-tdep.c (h8300_gdbarch_init): Update.
6389 * frv-tdep.c (frv_gdbarch_init): Update.
6390 * d10v-tdep.c (d10v_gdbarch_init): Update.
6391 * cris-tdep.c (cris_gdbarch_init): Update.
6392 * avr-tdep.c (avr_gdbarch_init): Update.
6393 * arm-tdep.c (arm_gdbarch_init): Update.
6394 * alpha-tdep.c (alpha_gdbarch_init): Update.
6396 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
6398 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
6400 (sh_sh4al_dsp_register_name): Ditto.
6402 2004-02-10 Andrew Cagney <cagney@redhat.com>
6404 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
6405 (mips_init_frame_pc_first): Delete function.
6406 (mips_frame_saved_pc): Delete function.
6407 (mips_frame_chain): Delete function.
6408 (mips_init_extra_frame_info): Delete function.
6409 (mips_xfer_register): Delete unused variable "reg".
6410 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
6411 (mips_n32n64_return_value): Delete unused variable "reg".
6412 (mips_n32n64_return_value): Delete unused variable "pos".
6413 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
6414 (mips_o32_return_value): Delete unused variable "pos".
6415 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
6416 (mips_print_fp_register): Delete unused variable "namelen"
6417 (mips_print_fp_register): Delete unused variable "flt2"
6418 (get_frame_pointer): Delete function.
6419 (cached_proc_desc): Delete static variable.
6420 (mips_pop_frame): Delete function.
6421 (mips_find_saved_regs): Delete function.
6422 (mips_get_saved_register): Delete function.
6423 (mips_saved_pc_after_call): Delete function.
6424 (SIGFRAME_BASE): Delete macro.
6425 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
6426 (SIGFRAME_PC_OFF): Delete macro.
6427 (SIGFRAME_REGSAVE_OFF): Delete macro.
6428 (mips_dump_tdep): Do not print deleted macro definitions.
6430 2004-02-10 Andrew Cagney <cagney@redhat.com>
6432 * Makefile.in (SFILES): Remove explictly listed tui files.
6433 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
6435 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
6437 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
6438 to use paddr functions to format ia64 addresses and long values.
6439 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
6440 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
6441 (get_kernel_table, ia64_find_proc_info_x): Ditto.
6442 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
6443 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
6445 2004-02-10 Andrew Cagney <cagney@redhat.com>
6447 * defs.h: Do not include "tui.h".
6448 * gdb_curses.h: New file.
6449 * tui/tui-hooks.h: New file.
6450 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
6451 (tui_install_hooks, tui_remove_hooks): Delete declarations.
6452 (tui_initialize_io): Delete declaration.
6453 (tui_initialize_readline: Delete redundant declaration.
6454 (struct tui_point): Delete definition.
6455 * tui/tui-data.h (struct tui_point): Define.
6456 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
6457 * utils.c: Include "tui/tui.h".
6458 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
6459 * printcmd.c [TUI]: Include "tui/tui.h".
6460 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
6461 * tui/tui-command.c: Include "gdb_curses.h".
6462 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
6463 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
6464 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
6465 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
6466 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
6467 * Makefile.in: Update all dependencies.
6468 (tui_hooks_h, gdb_curses_h): Define.
6469 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
6471 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
6473 * objfiles.h (struct objfile): Remove unused fields auxf1 and
6474 auxf2. Add comments about some other rarely used fields.
6476 2004-02-10 Andrew Cagney <cagney@redhat.com>
6478 * Makefile.in (init.c): Fix script removing duplicates. Problem
6479 reported by Peter Schauer.
6481 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
6483 * bcache.c (bcache_xmalloc): Use obstack_init instead of
6484 obstack_specify_allocation.
6485 * objfiles.c (allocate_objfile): Ditto.
6486 * solib-sunos.c (solib_add_common_symbols)
6487 (allocate_rt_common_objfile): Ditto.
6488 * symfile.c (reread_symbols): Ditto.
6489 * gdb_obstack.h: Add comment.
6491 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
6493 * linespec.c (decode_line_1, locate_first_half)
6494 (decode_compound, lookup_prefix_sym): Update comments. Delete old
6497 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
6499 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
6502 2004-02-09 Andrew Cagney <cagney@redhat.com>
6504 * blockframe.c (find_pc_partial_function): If find_pc_overlay
6505 fails, try find_pc_section. Fix PR c++/1267.
6506 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
6507 instead of find_pc_mapped_section.
6508 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
6509 not default to the section containing PC. Fix PR symtab/1519.
6511 2004-02-09 Andrew Cagney <cagney@redhat.com>
6513 * Makefile.in (mips-tdep.o): Update dependencies.
6514 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
6516 (mips_unwind_pc): Return the pseudo PC register.
6517 (mips_unwind_dummy_id): New function.
6518 (mips16_fetch_instruction): New function.
6519 (mips32_fetch_instruction): New function.
6520 (struct mips_frame_cache): Define.
6521 (mips_mdebug_frame_cache): New function.
6522 (mips_mdebug_frame_this_id): New function.
6523 (mips_mdebug_frame_prev_register): New function.
6524 (mips_mdebug_frame_unwind): Define.
6525 (mips_mdebug_frame_sniffer): New function.
6526 (mips_mdebug_frame_base_address): New function.
6527 (mips_mdebug_frame_base): Define.
6528 (mips_mdebug_frame_base_sniffer): New function.
6529 (mips_gdbarch_init): Append unwind and base sniffers. Set
6532 2004-02-08 Andrew Cagney <cagney@redhat.com>
6534 * frame.c: Print both the register number and name.
6536 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
6537 and a sed into a single sed. Make .c and .o patterns more robust.
6539 (INIT_FILES): Replace OBS with COMMON_OBS.
6540 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
6542 2004-02-08 Mark Kettenis <kettenis@gnu.org>
6544 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
6545 the PT_WCOOKIE request.
6547 2004-02-08 Andrew Cagney <cagney@redhat.com>
6549 * mips-tdep.c (mips_unwind_pc): New function.
6550 (mips_gdbarch_init): Set mips_unwind_pc.
6552 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
6553 (get_frame_id): Allow the UNKNOWN_FRAME.
6554 (frame_register_unwind, get_frame_type): Ditto.
6556 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
6557 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
6558 unwind_dummy_id indicates a legacy frame.
6560 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
6561 * configure: Re-generate.
6563 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
6566 2004-02-08 Andrew Cagney <cagney@redhat.com>
6568 * configure.in (CONFIG_ALL): Set to Makefile target, and not
6570 * configure: Re-generate.
6571 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
6572 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
6573 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
6574 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
6575 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
6576 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
6577 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
6578 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
6579 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
6580 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
6582 2004-02-07 Andrew Cagney <cagney@redhat.com>
6584 * Makefile.in: Update all dependencies.
6586 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
6587 * configure: Re-generate.
6588 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
6589 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
6590 (COMMON_OBS): Add "main.o" and "annotate.o".
6591 (ANNOTATE_OBS): Delete.
6592 (OBS): Remove ANNOTATE_OBS.
6593 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
6595 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
6596 against CONFIG_OBS and "main.o".
6597 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
6598 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
6600 * tui/tui-command.c: Include "gdb_string.h", delete register
6601 attribute, use ISO-C function signatures.
6602 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
6603 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
6604 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
6607 * tui/tui-command.c: Change variable and function names to lower
6609 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
6610 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
6611 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
6612 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
6613 * tui/tui-winsource.c, tui/tui.c: Ditto.
6615 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
6617 * buildsym.c (free_pending_blocks, finish_block)
6618 (record_pending_block, make_blockvector, end_symtab): Replace
6619 symbol_obstack with objfile_obstack.
6620 * coffread.c (process_coff_symbol, coff_read_struct_type)
6621 (coff_read_enum_type): Ditto.
6622 * cp-namespace.c (initialize_namespace_symtab)
6623 (check_one_possible_namespace_symbol): Ditto.
6624 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
6625 (dwarf2_symbol_mark_computed): Ditto.
6626 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
6627 * elfread.c (elf_symtab_read): Ditto.
6628 * hpread.c (hpread_symfile_init, hpread_symfile_init)
6629 (hpread_read_enum_type, hpread_read_function_type)
6630 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
6632 * jv-lang.c (get_java_class_symtab, add_class_symbol)
6633 (java_link_class_type): Ditto.
6634 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
6635 (new_symbol): Ditto.
6636 * minsyms.c (install_minimal_symbols): Ditto.
6637 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
6638 (terminate_minimal_symbol_table): Replace symbol_obstack with
6640 (free_objfile): Remove freeing of symbol_obstack.
6641 * objfiles.h: Remove symbol_obstack field.
6642 * pa64solib.c (add_to_solist): Replace symbol_obstack with
6644 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
6646 (solib_add_common_symbols): Replace symbol_obstack with
6648 * somsolib.c (som_solib_add): Ditto.
6649 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6650 (common_block_start, common_block_end): Ditto.
6651 * symfile.c (reread_symbols): Remove freeing and init of
6653 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
6654 * symfile.h: Update comment.
6655 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
6657 * symtab.c (symbol_set_names): Replace symbol_obstack with
6659 * symtab.h (struct general_symbol_info, struct minimal_symbol):
6661 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
6662 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
6665 2004-02-07 Andrew Cagney <cagney@redhat.com>
6667 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
6668 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
6669 fields and variables.
6670 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
6671 (m_beInvisible): Delete macro.
6672 * tui/tui-data.h: Fix case case fields and variables.
6673 (m_genWinPtrIsNull): Delete macro.
6674 (tui_win_list): Rename winList.
6675 (TUI_SRC_WIN): Rename srcWin.
6676 (TUI_DISASM_WIN): Rename disassemWin.
6677 (TUI_DATA_WIN): Rename dataWin.
6678 (TUI_CMD_WIN): Rename cmdWin.
6679 (m_genWinPtrNotNull): Delete macro.
6680 (m_winPtrIsNull): Delete macro.
6681 (m_winPtrNotNull): Delete macro.
6682 (tui_win_is_source_type): Replace m_winIsSourceType
6683 (tui_win_is_auxillary): Replace m_winIsAuzillary.
6684 (tui_win_has_locator): Replace m_hasLocator.
6685 (tui_set_win_highlight): Replace m_setWinHighlightOn and
6686 m_setWinHighlightOff.
6687 * tui/tui-data.c: Update references.
6688 (tui_win_is_source_type, tui_set_win_highlight): New functions.
6689 (tui_win_has_locator, tui_win_is_auxillary): New functions.
6690 * tui/tui-command.c, tui/tui-disasm.c: Update references.
6691 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
6692 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
6693 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
6694 * tui/tui-winsource.c, tui/tui.c: Ditto.
6696 2004-02-07 Mark Kettenis <kettenis@gnu.org>
6698 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
6699 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
6702 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
6703 variable `i6' to `i7'.
6704 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
6706 2004-02-07 Andrew Cagney <cagney@redhat.com>
6708 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
6709 (TuiPoint, TuiPointPtr): Ditto.
6710 (TuiStatus, TuiStatusPtr): Ditto.
6711 (TuiWinType, TuiWinTypePtr): Ditto.
6712 (struct tui_point): Rename _TuiPoint.
6713 (tui_get_low_disassembly_address): Rename
6714 tuiGetLowDisassemblyAddress.
6715 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
6716 (tuiFree): Delete declaration.
6717 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
6718 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
6719 * tui/tui.c (tuiFree): Delete function.
6720 * cli/cli-cmds.c (disassemble_command): Update references.
6721 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
6722 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
6723 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
6724 * tui/tui-winsource.c: Ditto.
6726 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
6728 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
6729 coffstab_build_psymtabs, elfstab_build_psymtabs)
6730 (stabsect_build_psymtabs): Replace psymbol_obstack with
6732 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
6733 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
6735 * dwarfread.c (scan_compilation_units): Ditto.
6736 * elfread.c (elfstab_offset_sections): Ditto.
6737 * hppa-tdep.c (read_unwind_info): Ditto.
6738 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
6739 (hpread_end_psymtab): Ditto.
6740 * mdebugread.c (mdebug_build_psymtabs, add_pending)
6741 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
6743 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6744 * objfiles.c (add_to_objfile_sections)
6745 (build_objfile_section_table): Ditto.
6746 (allocate_objfile): Remove init of psymbol_obstack.
6747 (free_objfile): Remove freeing of psymbol_obstack.
6748 * objfiles.h (struct objfile): Remove field
6749 psymbol_obstack. Update comments.
6750 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
6751 psymbol_obstack with objfile_obstack.
6752 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
6754 * somread.c (som_symfile_offsets, init_import_symbols)
6755 (init_export_symbols): Replace psymbol_obstack with
6757 * somsolib.c (som_solib_add_solib_objfile): Ditto.
6758 * symfile.c (default_symfile_offsets, syms_from_objfile)
6759 (reread_symbols): Remove freeing and init of psymbol_obstack.
6760 (cashier_psymtab): Update comment.
6761 * symmisc.c (print_objfile_statistics): Don't report stats for
6763 * symtab.h (struct general_symbol_info, struct partial_symtab):
6765 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
6766 (xcoff_symfile_offsets): Replace psymbol_obstack with
6769 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
6771 * objfiles.h (struct objfile): Add objfile_obstack field.
6772 Remove type_obstack field.
6774 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
6775 read_structure_scope read_enumeration, new_symbol): Replace
6776 type_obstack with objfile_obstack.
6777 * dwarfread.c (struct_type, enum_type): Ditto.
6778 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
6779 (lookup_fundamental_type): Ditto.
6780 * gdbtypes.h (TYPE_ALLOC): Ditto.
6781 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
6782 (hpread_read_doc_function_type, hpread_read_struct_type)
6783 (fix_static_member_physnames, hpread_read_array_type)
6784 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
6785 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
6786 (java_link_class_type): Ditto.
6787 * mdebugread.c (parse_type): Ditto.
6788 * objfiles.c (allocate_objfile, free_objfile): Ditto.
6789 * solib-sunos.c (solib_add_common_symbols): Ditto.
6790 * stabsread.c (define_symbol, read_type, read_member_functions,
6791 read_cpp_abbrev, read_one_struct_field): Ditto.
6792 * symfile.c (reread_symbols): Ditto.
6793 * symmisc.c (print_objfile_statistics): Ditto.
6795 2004-02-07 Andrew Cagney <cagney@redhat.com>
6797 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
6798 (tui_exec_info_content): Rename TuiExecInfoContent.
6799 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
6800 (TuiWinInfo, TuiWinInfoPtr): Ditto.
6801 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
6802 (TuiList, TuiListPtr): Ditto.
6803 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
6804 (TuiDataType, TuiDataTypePtr): Ditto.
6805 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
6806 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
6807 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
6808 (TuiSourceElement, TuiSourceElementPtr): Ditto.
6809 (TuiDataElement, TuiDataElementPtr): Ditto.
6810 (TuiWinElement, TuiWinElementPtr): Ditto.
6811 (TuiDataInfo, TuiDataInfoPtr): Ditto.
6812 (TuiCommandElement, TuiCommandElementPtr): Ditto.
6813 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
6814 (TuiWhichElement, TuiWhichElementPtr): Ditto.
6815 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
6816 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
6817 * tui/tui-command.c, tui/tui-data.c: Update references.
6818 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
6819 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
6820 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
6821 * tui/tui-winsource.c, tui/tui.c: Ditto.
6823 2004-02-07 Mark Kettenis <kettenis@gnu.org>
6825 * dwarf2-frame.h: Update copyright.
6826 (enum dwarf2_frame_reg_rule): New.
6827 (struct dwarf2_frame_state_reg): New.
6828 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
6829 * dwarf2-frame.c: Update copyright.
6830 (enum dwarf2_reg_rule): Remove.
6831 (struct dwarf2_frame_state): Remove defenition of `struct
6832 dwarf2_frame_state_reg'.
6833 (read_reg): Call get_frame_arch to get the architecture instead of
6834 using CURRENT_GDBARCH.
6835 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
6837 (dwarf2_frame_init_reg): New function.
6838 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
6839 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
6840 initialize the register state. Prefix old `enum dwarf2_reg_rule'
6841 tags with DWARF2_FRAME_.
6842 (dwarf2_frame_prev_register): Call get_frame_arch to get the
6843 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
6844 dwarf2_reg_rule' tags with DWARF2_FRAME_.
6846 2004-02-06 Andrew Cagney <cagney@redhat.com>
6848 * tui/tui-data.h (struct tui_list): Rename _TuiList.
6849 (enum tui_data_type): Rename _TuiDataType.
6850 (struct tui_layout_def): Rename _TuiLayoutDef.
6851 (struct tui_source_element): Rename _TuiSourceElement.
6852 (struct tui_data_element): Rename _TuiDataElement.
6853 (struct tui_command_element): Rename _TuiCommandElement.
6854 (struct tui_locator_element): Rename _TuiLocatorElement.
6855 (union tui_which_element): Define.
6856 (struct tui_win_element): Rename _TuiWinElement.
6857 (struct tui_data_info): Rename _TuiDataInfo.
6858 (struct tui_source_info): Rename _TuiSourceInfo.
6859 (struct tui_command_info): Rename _TuiCommandInfo.
6860 (tui_initialize_static_data): Rename initializeStaticData.
6861 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
6862 (tui_alloc_win_info): Rename allocWinInfo.
6863 (tui_init_generic_part): Rename initGenericPart.
6864 (tui_init_win_info): Rename initWinInfo.
6865 (tui_alloc_content): Rename allocContent.
6866 (tui_add_content_elements): Rename addContentElements.
6867 (tui_init_content_element): Rename initContentElement.
6868 (tui_free_window): Rename freeWindow.
6869 (tui_free_win_content): Rename freeWinContent.
6870 (tui_free_data_content): Rename freeDataContent.
6871 (tui_free_all_source_wins_content): Rename
6872 freeAllSourceWinsContent.
6873 (tui_del_window): Rename tuiDelWindow.
6874 (tui_del_data_windows): Rename tuiDelDataWindows.
6875 (tui_partial_win_by_name): Rename partialWinByName.
6876 (tui_win_name): Rename winName.
6877 (tui_current_layout): Rename currentLayout.
6878 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
6879 (tui_term_height): Rename termHeight.
6880 (tui_set_term_height_to): Rename setTermHeightTo.
6881 (tui_term_width): Rename termWidth.
6882 (tui_set_term_width_to): Rename setTermWidthTo.
6883 (tui_set_gen_win_origin): Rename setGenWinOrigin.
6884 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
6885 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
6886 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
6887 (tui_source_windows): Rename sourceWindows.
6888 (tui_clear_source_windows): Rename clearSourceWindows.
6889 (tui_clear_source_windows_detail): Rename
6890 clearSourceWindowsDetail.
6891 (tui_clear_win_detail): Rename clearWinDetail.
6892 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
6893 (tui_default_tab_len): Rename tuiDefaultTabLen.
6894 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
6895 (tui_win_with_focus): Rename tuiWinWithFocus.
6896 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
6897 (tui_layout_def): Rename tuiLayoutDef.
6898 (tui_win_resized): Rename tuiWinResized.
6899 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
6900 (tui_next_win): Rename tuiNextWin.
6901 (tui_prev_win): Rename tuiPrevWin.
6902 (tui_add_to_source_windows): Rename addToSourceWindows.
6903 * tui/tui-winsource.c, tui/tui-win.c: Update references.
6904 * tui/tui-layout.c, tui/tui-source.c: Ditto.
6905 * tui/tui-stack.c, tui/tui-io.c: Ditto.
6906 * tui/tui.c, tui/tui-data.c: Ditto.
6907 * tui/tui-interp.c, tui/tui-data.c: Ditto.
6908 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
6910 * tui/tui-source.h: Update copyright. Include "tui-data.h".
6911 (struct symtab): Declare.
6912 (tui_set_source_content): Rename tuiSetSourceContent.
6913 (tui_show_symtab_source): Rename tuiShowSource.
6914 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
6915 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
6916 * tui/tui-source.c: Update copyright. Update references.
6917 * tui/tui-win.c, tui/tui-winsource.c: Update references.
6918 * tui/tui-stack.c: Update references.
6920 * tui/tui-win.h: Update copyright. Include "tui-data.h".
6921 (struct tui_win_info): Declare.
6922 (tui_scroll_forward): Rename tuiScrollForward.
6923 (tui_scroll_backward): Rename tuiScrollBackward.
6924 (tui_scroll_left): Rename tuiScrollLeft.
6925 (tui_scroll_right): Rename tuiScrollRight.
6926 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
6927 (tui_resize_all): Rename tuiResizeAll.
6928 (tui_refresh_all_win): Rename tuiRefreshAll.
6929 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
6930 * tui/tui-layout.c, * tui/tui-io.c: Update references.
6931 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
6932 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
6934 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
6935 (tui_erase_data_content): Rename tuiEraseDataContent.
6936 (tui_display_all_data): Rename tuiDisplayAllData.
6937 (tui_check_data_values): Rename tuiCheckDataValues.
6938 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
6939 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
6940 (tui_first_data_element_no_in_line): Rename
6941 tuiFirstDataElementNoInLine.
6942 (tui_delete_data_content_windows): Rename
6943 tuiDeleteDataContentWindows.
6944 (tui_refresh_data_win): Rename tuiRefreshDataWin.
6945 (tui_display_data_from): Rename tuiDisplayDataFrom.
6946 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
6947 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
6948 * tui/tui-win.c, tui/tui-regs.c: Update references.
6949 * tui/tui-layout.c, tui/tui.c: Update references.
6951 * tui/tui-wingeneral.h: Update copyright.
6952 (m_allBeVisible): Delete macro.
6953 (m_allBeInvisible): Delete macro.
6954 (struct tui_gen_win_info): Declare.
6955 (struct tui_win_info): Declare.
6956 (tui_unhighlight_win): Rename unhighlightWin.
6957 (tui_make_visible, tui_make_invisible): Replace makeVisible.
6958 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
6959 (tui_make_window): Rename makeWindow.
6960 (tui_copy_win): Rename copyWin.
6961 (tui_box_win): Rename boxWin.
6962 (tui_highlight_win): Rename highlightWin.
6963 (tui_check_and_display_highlight_if_needed): Rename
6964 checkAndDisplayHighlightIfNeeded.
6965 (tui_refresh_all): Rename refreshAll.
6966 (tui_delete_win): Rename tuiDelwin.
6967 (tui_refresh_win): Rename tuiRefreshWin.
6968 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
6969 (tui_make_visible, tui_make_invisible): New functions.
6970 (tui_make_all_visible, tui_make_all_invisible): New functions.
6971 (make_all_visible): Rename makeAllVisible.
6972 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
6973 * tui/tui-data.c, tui/tui-winsource.c: Update references.
6974 * tui/tui-windata.c, tui/tui-win.c: Update references.
6975 * tui/tui-regs.c, tui/tui-layout.c: Update references.
6976 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
6978 2004-02-06 Mark Kettenis <kettenis@gnu.org>
6980 * proc-api.c (write_with_trace): Initialize local variable to
6981 silence compiler warning.
6983 2004-02-06 Andrew Cagney <cagney@redhat.com>
6985 * tui/tui-source.h: Do not include "defs.h".
6986 (struct tui_win_info): Declare.
6987 (tui_set_source_content_nil): Declare.
6988 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
6989 (union tui_line_or_address): Rename _TuiLineOrAddress.
6990 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
6991 (tui_update_source_window): Rename tuiUpdateSourceWindow.
6992 (tui_update_source_window_as_is): Rename
6993 tuiUpdateSourceWindowAsIs.
6994 (tui_update_source_windows_with_addr): Rename
6995 tuiUpdateSourceWindowsWithAddr.
6996 (tui_update_source_windows_with_line): Rename
6997 tuiUpdateSourceWindowsWithLine.
6998 (tui_clear_source_content): Rename tuiClearSourceContent.
6999 (tui_erase_source_content): Rename tuiEraseSourceContent.
7000 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
7001 (tui_show_source_content): Rename tuiShowSourceContent.
7002 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
7003 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
7004 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
7005 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
7006 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
7007 (tui_update_exec_info): Rename tuiUpdateExecInfo.
7008 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
7009 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
7010 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
7011 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
7012 (struct tui_win_info): Declare.
7013 * tui/tui-stack.c: Update references.
7014 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
7015 * tui/tui-win.c, tui/tui-source.c: Ditto.
7016 * tui/tui.c, tui/tui-disasm.c: Ditto.
7018 2004-02-06 Mark Kettenis <kettenis@gnu.org>
7020 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
7021 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
7023 2004-02-05 Mark Kettenis <kettenis@gnu.org>
7025 * infrun.c (handle_inferior_event): Allow for breakpoint
7026 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
7027 and SIGEMT. Update comments.
7028 * NEWS (Revised SPARC target): Mention support for non-executable
7031 2004-02-04 Mark Kettenis <kettenis@gnu.org>
7033 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
7034 * inftarg.c: Update copyright year.
7035 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
7036 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
7037 (sparc_xfer_wcookie): New function.
7038 * sparc-tdep.c (sparc_fetch_wcookie): New function.
7039 * Makefile.in (sparc-nat.o): Update dependencies.
7040 * config/sparc/nm-nbsd.h: Include "target.h".
7041 (NATIVE_XFER_WCOOKIE): New define.
7042 (sparc_xfer_wcookie): New prototype.
7044 2004-02-04 Andrew Cagney <cagney@redhat.com>
7046 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
7047 SYSCALL_TRAP function.
7048 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
7050 2004-02-04 Andrew Cagney <cagney@redhat.com>
7051 Daniel Jacobowitz <drow@mvista.com>
7053 * objfiles.h: Delete comments refering to inside_entry_func and
7054 DEPRECATED_FRAME_CHAIN_VALID.
7055 * defs.h (inside_entry_func): Update prototype..
7056 * blockframe.c (inside_entry_func): Rename to
7057 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
7058 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
7060 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
7062 * breakpoint.c (struct captured_parse_breakpoint_args): Move
7063 outside of #ifdef SOLIB_ADD region.
7064 (do_restore_lang_radix_cleanup): Ditto.
7065 (resolve_pending_breakpoint): Ditto.
7067 2004-02-03 Andrew Cagney <cagney@redhat.com>
7069 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
7070 (process_note_abi_tag_sections): Delete unused function.
7071 (ia64_read_fp): Delete unused function.
7072 (gdbarch_extract_struct_value_address): Delete declaration.
7074 2004-02-02 Andrew Cagney <cagney@redhat.com>
7076 * vax-tdep.c (vax_frame_chain): Delete call to
7077 deprecated_inside_entry_file.
7078 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
7080 2004-02-02 Mark Kettenis <kettenis@gnu.org>
7082 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
7083 column that's "empty" or "same value" when eliminating REG_RA
7086 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
7088 * NEWS: Add information about new pending breakpoint support.
7090 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
7092 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
7093 and pending fields for pending breakpoint support.
7094 * breakpoint.c (breakpoint_enabled): Add check for not pending.
7095 (condition_command): Only parse condition if not a pending
7097 (print_one_breakpoint): Add support for pending breakpoints.
7098 (describe_other_breakpoints): Add checks to verify we are not
7099 dealing with pending breakpoints.
7100 (check_duplicates): Don't check pending breakpoints.
7101 (set_raw_breakpoint): Initialize pending flag.
7102 (do_restore_lang_radix_cleanup): New cleanup routine.
7103 (resolve_pending_breakpoint): New function.
7104 (re_enable_breakpoints_in_shlibs): Try and resolve any
7105 pending breakpoints via resolve_pending_breakpoint.
7106 (mention): Add pending breakpoint support.
7107 (parse_breakpoint_sals): Add new parameter to pass to
7108 decode_line_1 to indicate silent errors when files or functions
7109 are not found. Change all callers.
7110 (do_captured_parse_breakpoint): New function.
7111 (break_command_1): Change prototype to return an rc value and to
7112 take an optional pending breakpoint pointer. Support creating
7113 a pending breakpoint if a "not found" form of error occurs when
7114 parsing the breakpoint. Also support resolving an existing pending
7115 breakpoint and be silent if the resolution fails.
7116 (create_breakpoints): Change prototype to take pending breakpoint
7117 pointer. When resolving a pending breakpoint, use the new pointer
7118 to provide a conditional or commands added by the end-user.
7119 (delete_breakpoint): Add appropriate check for pending.
7120 (breakpoint_re_set_one): Ditto.
7121 (do_enable_breakpoint): Ditto.
7123 2004-02-02 David Carlton <carlton@kealia.com>
7125 * valops.c (enum oload_classification): New.
7126 (find_overload_match): Break implementation into separate
7127 functions; delete #if 0'd code; look for symbols within
7129 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
7130 (find_oload_champ,oload_method_static,classify_oload_match): New.
7131 * cp-support.h: Add declaration for cp_func_name; update
7132 declaration for make_symbol_overload_list.
7133 * cp-support.c (cp_func_name): New.
7134 (overload_list_add_symbol): Fix comment, use
7135 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
7136 (make_symbol_overload_list): Take a function name and a namespace
7137 instead of a symbol; change implementation.
7138 (make_symbol_overload_list_using): New.
7139 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
7141 2004-02-02 Fred Fish <fnf@redhat.com>
7143 * main.c (gdb_stdtarg): Move definition to group with other
7144 gdb_stdtarg definitions and update copyright years.
7145 * remote-sim.c (gdb_os_write_stderr): Write output to
7146 gdb_stdtargerr stream instead of gdb_stdtarg stream.
7147 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
7148 gdb_stderr stream and update copyright years.
7150 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
7152 * Makefile.in (mips-linux-nat.o): Update dependencies.
7153 * mips-linux-nat.c: Include mips-tdep.h.
7155 2004-02-01 Roland McGrath <roland@redhat.com>
7157 * sol-thread.c (sol_thread_xfer_partial): New function.
7158 (init_sol_thread_ops): Use that for to_xfer_partial hook.
7159 (init_sol_core_ops): Likewise.
7161 * procfs.c (procfs_xfer_partial): New function.
7162 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
7163 * Makefile.in (procfs.o): Add $(auxv_h) dep.
7165 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
7166 procfs_xfer_auxv function.
7168 * procfs.c (procfs_make_note_section): If we can read
7169 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
7170 * linux-proc.c (linux_make_note_section): Likewise.
7174 * Makefile.in (auxv_h): New variable.
7175 (COMMON_OBS): Add auxv.o here.
7176 (auxv.o): New target.
7178 * corelow.c (core_xfer_partial): New function.
7179 (init_core_ops): Use it for core_ops.to_xfer_partial.
7181 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
7182 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
7183 macro if that is defined.
7185 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
7187 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
7188 and check the specified thread for each breakpoint.
7189 * breakpoint.h (bpstat_stop_status): Update prototype.
7190 * infrun.c (handle_inferior_event): Update calls to
7193 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
7195 * Makefile.in (cli-cmds.o): Add $(readline_h).
7197 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
7199 * cli/cli-cmds.c: Include readline.h.
7200 (complete_command): Pass the start of the last word to
7203 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
7205 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
7206 argument, and change first argument to a CORE_ADDR.
7207 * breakpoint.h (bpstat_stop_status): Update prototype.
7208 * infrun.c (adjust_pc_after_break): Add a new comment.
7209 (handle_inferior_event): Update calls to bpstat_stop_status.
7211 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
7213 * breakpoint.h: Update copyright years.
7215 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
7217 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
7218 (bpstat_stop_status): Don't decrement PC.
7219 * breakpoint.h (software_breakpoint_inserted_here_p): Add
7221 * infrun.c (adjust_pc_after_break): New function.
7222 (handle_inferior_event): Call it, early. Remove later references
7223 to DECR_PC_AFTER_BREAK.
7224 (normal_stop): Add commentary.
7226 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
7228 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
7229 2004-01-27 double-free fix.
7231 2004-01-31 Mark Kettenis <kettenis@gnu.org>
7233 * sparc-tdep.c (sparc_fetch_wcookie): New function.
7234 (sparc32_frame_prev_register): Handle StackGhost.
7235 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
7237 2004-01-29 Roland McGrath <roland@redhat.com>
7239 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
7240 * configure: Regenerated.
7242 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
7243 * Makefile.in (procfs.o): Add dep.
7245 2004-01-28 Andrew Cagney <cagney@redhat.com>
7247 * tui/tui-stack.h: Update copyright.
7248 (struct frame_info): Add opaque declaration.
7249 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
7250 (tui_show_locator_content): Rename tuiShowLocatorContent.
7251 (tui_show_frame_info): Rename tuiShowFrameInfo.
7252 * tui/tui-stack.c: Update copyright. Update references.
7253 * tui/tui-winsource.c: Update references.
7254 * tui/tui-win.c: Update references.
7255 * tui/tui-layout.c: Update references.
7256 * tui/tui-hooks.c: Update copyright, update references.
7257 * tui/tui.c: Update copyright, update references.
7258 * tui/tui-disasm.c: Update references.
7260 2004-01-28 David Carlton <carlton@kealia.com>
7262 * dwarf2read.c (add_partial_structure): Use demangled name if
7263 namespace equals "".
7265 2004-01-27 Jim Blandy <jimb@redhat.com>
7267 Clean up misapplied patch:
7268 * dwarf2read.c (determine_prefix): Change one of the two forward
7269 declarations for 'determine_prefix_aux' to a declaration for this.
7270 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
7271 argument to 'die_specification'.
7273 * dwarf2read.c (read_func_scope): Re-indent comment.
7275 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
7277 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
7278 b->exp to NULL after freeing so that error during re-parsing or
7279 evaluation of expressions associated with breakpoint don't
7280 eventually lead to re-freeing of storage.
7281 Committed by Andrew Cagney.
7283 2004-01-27 Andrew Cagney <cagney@redhat.com>
7285 * source.c (ambiguous_line_spec): Delete undefined declaration.
7286 * m32r-rom.c (m32r_set_board_address): Delete unused function.
7287 (m32r_set_server_address, m32r_set_download_path): Ditto.
7288 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
7290 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
7292 * dwarf2read.c: Update calls to changed and renamed functions, and
7293 references to moved variables.
7295 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
7296 language, language_defn, list_in_scope, and ftypes members.
7297 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
7298 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
7299 (baseaddr): Remove globals.
7301 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
7302 (set_cu_language, die_is_declaration, die_specification)
7303 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
7304 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
7305 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
7306 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
7308 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
7309 cu.list_in_scope. Don't initialize cu_header_offset.
7310 (add_partial_symbol): Add local baseaddr.
7311 (psymtab_to_symtab_1): Add local baseaddr. Use
7312 objfile->section_offsets for consistency. Don't initialize
7313 cu_header_offset; do initialize cu.header.offset and
7315 (read_file_scope, read_func_scope, read_lexical_block_scope)
7316 (dwarf_decode_lines, new_symbol): Add local baseaddr.
7318 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
7320 * PROBLEMS: Add gdb/1516.
7322 2003-12-29 Robert Millan <robertmh@gnu.org>
7324 Patch committed by Andrw Cagney.
7325 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
7326 * configure.tgt: Match knetbsd*-gnu.
7328 2004-01-26 Andrew Cagney <cagney@redhat.com>
7330 * breakpoint.c (catch_command_1): Delete #ifdef code.
7331 (catch_fork_command_1): Delete #ifdef wrapper.
7332 (catch_exec_command_1): Ditto.
7333 (catch_load_command_1): Ditto.
7334 (catch_unload_command_1): Ditto.
7336 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
7337 (catch_breakpoint): Delete #if0ed function.
7338 (disable_catch_breakpoint): Ditto.
7339 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
7340 (disable_catch, enable_catch, delete_catch): Ditto.
7342 2004-01-26 Andrew Cagney <cagney@redhat.com>
7344 * remote.c (echo_check, quit_flag): Delete variables.
7345 (cisco_kernel_mode): Delete variable.
7346 (minitelnet_return, tty_input, escape_count): Delete variables.
7347 (remote_cisco_mode): Delete variable.
7348 (remote_cisco_open, remote_cisco_close): Delete function.
7349 (remote_cisco_mourn, remote_cisco_wait): Delete function.
7350 (init_remote_cisco_ops): Delete function.
7351 (_initialize_remote): Do not install "remote cisco" code.
7352 (read_frame): Delete cisco specific code.
7353 (remote_info_process): Delete function.
7354 (remote_wait): Delete cisco specific code.
7355 (remote_cisco_section_offsets): Delete function.
7356 (remote_cisco_objfile_relocate): Delete function.
7357 (remote_async_wait): Delete cisco specific code.
7358 (minitelnet, readtty, readsocket): Delete function.
7360 2004-01-26 Andrew Cagney <cagney@redhat.com>
7362 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
7363 comments mentioning extract_returned_value_address.
7364 * infcmd.c (print_return_value): Update. Add comments on
7365 extract_returned_value_address.
7366 * stack.c (return_command): Add comments on
7367 extract_returned_value_address.
7368 * values.c: Update comment.
7369 * m32r-tdep.c: Update comment.
7370 * sparc-tdep.c: Update comment.
7371 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
7372 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7373 * sh64-tdep.c (sh64_gdbarch_init): Update.
7374 * sh-tdep.c (sh_gdbarch_init): Update.
7375 * s390-tdep.c (s390_gdbarch_init): Update.
7376 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7377 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7378 * m68k-tdep.c (m68k_gdbarch_init): Update.
7379 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7380 * m32r-tdep.c (m32r_gdbarch_init): Update.
7381 * ia64-tdep.c (ia64_gdbarch_init): Update.
7382 * h8300-tdep.c (h8300_gdbarch_init): Update.
7383 * frv-tdep.c (frv_gdbarch_init): Update.
7384 * arm-tdep.c (arm_gdbarch_init): Update.
7385 * alpha-tdep.c (alpha_gdbarch_init): Update.
7387 2004-01-26 Andrew Cagney <cagney@redhat.com>
7389 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
7390 SYMBOL_LOCATION_FUNCS
7391 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
7392 "struct symbol_ops".
7393 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
7394 type to "struct symbol_ops".
7395 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
7396 (struct symbol): Replace ".aux_value.loc.funcs" and
7397 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
7398 (SYMBOL_OBJFILE): Delete macro.
7399 (SYMBOL_LOCATION_FUNCS): Delete macro.
7400 (SYMBOL_LOCATION_BATON): Update.
7401 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
7402 intead of SYMBOL_LOCATION_FUNCS.
7403 * ax-gdb.c (gen_var_ref): Ditto.
7404 * printcmd.c (address_info): Ditto.
7405 * findvar.c (read_var_value): Ditto.
7406 (symbol_read_needs_frame): Ditto.
7408 2004-01-26 Andrew Cagney <cagney@redhat.com>
7410 * dwarf2read.c (read_func_scope): Document frame-base hack.
7412 2004-01-25 Mark Kettenis <kettenis@gnu.org>
7414 * infcmd.c (print_return_value): Plug memory leak; delete
7415 ui_stream object. Rename argument `structure_return' to
7418 2004-01-25 Mark Kettenis <kettenis@gnu.org>
7420 * infcmd.c (print_return_value): Wrap long lines.
7421 (finish_command_continuation, finish_command): Remove unused
7422 variable `funcaddr'. Fix some coding-standards problems.
7424 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
7425 SECT_SIZE is large enough, not whether it's exactly the right size.
7426 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
7427 TDEP->fpregset to zero.
7429 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
7430 floating-point registers for traditional NetBSD core files.
7431 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
7432 TDEP->sizeof_fpregset here.
7434 2004-01-25 Mark Kettenis <kettenis@gnu.org>
7436 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
7437 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
7438 function with code split out from
7439 sparc32nbsd_sigcontext_frame_cache.
7440 (sparc32nbsd_sigcontext_frame_cache): Use
7441 sparc32nbsd_sigcontext_saved_regs.
7442 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
7444 * sparcobsd-tdep.c: New file.
7445 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
7446 (sparcobsd-tdep.o): New dependency.
7447 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
7448 * config/sparc/obsd.mt: New file.
7450 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
7451 TDEP->fpregset to be initialized to enable core file register
7454 2004-01-24 Mark Kettenis <kettenis@gnu.org>
7456 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
7457 Add opaque declarations.
7458 (sparc64nbsd_sigcontext_saved_regs): New prototype.
7459 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
7460 function with code split out from
7461 sparc64nbsd_sigcontext_frame_cache.
7462 (sparc64nbsd_sigcontext_frame_cache): Use
7463 sparc64nbsd_sigcontext_saved_regs.
7464 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
7466 * sparc64obsd-tdep.c: New file.
7467 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
7468 (sparc64obsd-tdep.o): New dependency.
7469 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
7470 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
7471 * config/sparc/obsd64.mt: New file.
7473 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
7474 read the instruction at PC.
7476 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
7477 value of GDB_OSABI_DEFAULT.
7478 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
7479 instead of GDB_OSABI_NETBSD_AOUT.
7481 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
7483 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
7486 2004-01-23 Andrew Cagney <cagney@redhat.com>
7488 * printcmd.c (display_command): Replace tui_set_display call with
7489 tui_set_layout_for_display_command.
7490 * tui/tui.h (enum tui_win_type): Define.
7491 (tui_set_layout): Delete declaration.
7492 (tui_set_layout_for_display_command): Rename set_tui_layout.
7493 * tui/tui-data.h (enum tui_layout_type): Define.
7494 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
7496 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
7497 (tui_default_win_height): Rename tuiDefaultWinHeight.
7498 (tui_default_win_viewport_height): Rename
7499 tuiDefaultWinViewportHeight.
7500 (tui_set_layout): RenametuiSetLayout.
7501 * tui/tui-layout.c: Update references.
7502 * tui/tui.c: Update references.
7503 * tui/tui-disasm.c: Update references.
7505 2004-01-23 David Carlton <carlton@kealia.com>
7507 Partial workaround for PR c++/1511:
7508 * cp-namespace.c: Include frame.h.
7509 (cp_lookup_transparent_type): New
7510 (cp_lookup_transparent_type_loop): New.
7511 * cp-support.h: Declare cp_lookup_transparent_type.
7512 * symtab.c (basic_lookup_transparent_type): Renamed from
7513 lookup_transparent_type.
7514 (lookup_transparent_type): Replace old body by a call to
7515 current_language->la_lookup_transparent_type.
7516 * symtab.h: Update copyright. Declare
7517 basic_lookup_transparent_type.
7518 * language.h: Update copyright.
7519 (struct language_defn): Add la_lookup_transparent_type.
7520 * language.c: Update copyright.
7521 (unknown_language_defn): Add basic_lookup_transparent_type.
7522 (auto_language_defn): Add basic_lookup_transparent_type.
7523 (local_language_defn): Add basic_lookup_transparent_type.
7524 * ada-lang.c: Update copyright.
7525 (ada_language_defn): Add basic_lookup_transparent_type.
7526 * c-lang.c: Update copyright.
7527 (c_language_defn): Add basic_lookup_transparent_type.
7528 (cplus_language_defn): Add basic_lookup_transparent_type.
7529 (asm_language_defn): Add basic_lookup_transparent_type.
7530 (minimal_language_defn): Add basic_lookup_transparent_type.
7531 * f-lang.c: Update copyright.
7532 (f_language_defn): Add basic_lookup_transparent_type.
7533 * jv-lang.c: Update copyright.
7534 (java_language_defn): Add basic_lookup_transparent_type.
7535 * m2-lang.c: Update copyright.
7536 (m2_language_defn): Add basic_lookup_transparent_type.
7537 * objc-lang.c: Update copyright.
7538 (objc_language_defn): Add basic_lookup_transparent_type.
7539 * p-lang.c: Update copyright.
7540 (p_language_defn): Add basic_lookup_transparent_type.
7541 * scm-lang.c: Update copyright.
7542 (scm_language_defn): Add basic_lookup_transparent_type.
7543 * Makefile.in (cp-namespace.o): Depend on frame.h.
7545 2004-01-23 David Carlton <carlton@kealia.com>
7547 Patch for PR c++/1520:
7548 * dwarf2read.c (read_func_scope): Set processing_current_prefix
7549 properly if we have a specification die.
7550 (determine_prefix_aux): Rename from determine_prefix.
7551 (determine_prefix): Like the old determine_prefix, but never
7554 2004-01-23 Theodore A. Roth <troth@openavr.org>
7556 * avr-tdep.c: Update copyright.
7557 (avr_iaddr_p): Delete unused function.
7558 (avr_saddr_p): Delete unused function.
7560 2004-01-23 David Carlton <carlton@kealia.com>
7562 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
7563 Fix for PR symtab/1534.
7565 2004-01-23 Mark Kettenis <kettenis@gnu.org>
7567 * NEWS (New native configurations): Mention OpenBSD/sparc and
7569 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
7570 * configure.host: Likewise.
7571 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
7572 handler for OpenBSD.
7573 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
7575 2004-01-22 Mark Kettenis <kettenis@gnu.org>
7577 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
7578 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
7580 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
7581 * cli/cli-cmds.c (shell_escape): Likewise.
7583 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
7584 OpenBSD .note.openbsd.ident sections.
7586 2004-01-22 David Carlton <carlton@kealia.com>
7588 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
7589 get_scope_pc_bounds.
7590 (read_file_scope): Ditto.
7591 (get_scope_pc_bounds): New function, produced by extracting code
7592 from the above two functions, consolidating it, and adding support
7593 for DW_TAG_namespace.
7595 2004-01-22 Mark Kettenis <kettenis@gnu.org>
7597 * osabi.c (MAX_NOTESZ): New define.
7598 (check_note): New function.
7599 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
7602 2004-01-21 Roland McGrath <roland@redhat.com>
7604 * MAINTAINERS (write after approval): Add myself.
7606 2004-01-21 Eli Zaretskii <eliz@gnu.org>
7608 * utils.c (init_page_info): Move declarations of `rows' and
7609 `cols' before the __GO32__-specific code. Move the closing brace
7610 outside the #ifdef __GO32__..#endif block.
7611 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
7613 2004-01-21 Paul Brook <paul@codesourcery.com>
7615 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
7616 BPSTAT_WHAT_CHECK_SHLIBS.
7618 2004-01-21 Paul Brook <paul@codesourcery.com>
7620 * MAINTAINERS: Add myself to write-after-approval.
7622 2004-01-20 Andrew Cagney <cagney@redhat.com>
7624 * ax-gdb.c (print_axs_value): Delete unused function.
7625 * jv-lang.c (java_lookup_type): Delete unused function.
7626 * cli/cli-dump.c (dump_filetype): Delete unused function.
7627 * remote-mips.c (remote_mips_insert_hw_breakpoint)
7628 (remote_mips_remove_hw_breakpoint): Delete unused functions.
7629 (mips_getstring): Delete unused function.
7630 (pmon_insert_breakpoint): Delete #if0ed function.
7631 (PMON_MAX_BP): Delete #if0ed MACRO.
7632 (mips_pmon_bp_info): Delete #if0ed variable.
7633 (pmon_remove_breakpoint): Delete #if0ed function.
7634 * monitor.c (monitor_write_even_block): Delete unused function.
7635 (monitor_write_memory_block): Delete #if0ed code.
7636 * dink32-rom.c (dink32_load): Delete unused function.
7637 (_initialize_dink32_rom): Delete #if0ed code.
7638 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
7640 * tui/tui-command.c: Update references.
7641 * tui/tui-io.c: Update references.
7642 * tui/tui-command.h: Update copyright.
7643 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
7645 * source.c (ambiguous_line_spec): Delete never-defined function.
7646 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
7647 * gdbtypes.c (add_name, add_mangled_type): Ditto.
7648 * cli/cli-cmds.c (validate_comname): Ditto.
7650 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
7652 (tui_set_disassem_content): Rename tuiSetDisassemContent.
7653 (tui_show_disassem): Rename tuiShowDisassem.
7654 (tui_show_disassem_and_update_source): Rename
7655 tuiVerticalDisassemScroll.
7656 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
7657 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
7658 * tui/tui.h: Update copyright.
7659 (enum tui_status): Define.
7660 * tui/tui-data.h (enum tui_scroll_direction): Define.
7661 * tui/tui-disasm.c: Update copyright. Update references.
7662 * tui/tui-winsource.c: Update copyright. Update references.
7663 * tui/tui-win.c: Update references.
7664 * tui/tui-layout.c: Update references.
7666 2004-01-20 Andrew Cagney <cagney@redhat.com>
7668 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
7669 sym2 to start of block.
7671 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
7673 * MAINTAINERS: Delete mmalloc.
7674 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
7675 * NEWS: Mention removal of --with-malloc.
7676 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
7677 * config.in: Regenerate.
7678 * configure: Regenerate.
7679 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
7680 USE_MMALLOC, MMCHECK_FORCE.
7681 * gdbinit.in: Remove mmalloc.
7682 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
7683 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
7684 * config/i386/go32.mh: Likewise.
7685 * config/i386/interix.mh: Likewise.
7686 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
7688 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
7690 * linespec.c (decode_variable, symtab_from_filename): Call
7691 error_silent with error message instead of throwing an exception
7693 * defs.h (error_silent, error_output_message): Add prototypes.
7694 (catch_exceptions_with_msg): Ditto.
7695 * utils.c (error_silent, error_output_message): New functions.
7696 * top.c (catch_exceptions_with_msg): New function.
7698 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
7700 * mi/mi-cmds.h (enum print_values): Add definition.
7702 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
7703 type and value for simple data types and just the name and type
7704 for complex ones, if required.
7706 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
7707 children, if required.
7709 2004-01-19 Kevin Buettner <kevinb@redhat.com>
7711 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
7712 unused declarations.
7714 2004-01-19 Andrew Cagney <cagney@redhat.com>
7716 * top.h (mapped_symbol_files): Delete declaration.
7717 * main.c (captured_main): Delete option "m" and "mapped".
7718 * objfiles.c (mapped_symbol_files): Delete variable.
7719 * symfile.c (symbol_file_command): Delete mmap code.
7720 (symbol_file_add_with_addrs_or_offsets): Ditto.
7721 (add_symbol_file_command, reread_separate_symbols): Ditto.
7722 * objfiles.h (OBJF_MAPPED): Delete.
7723 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
7724 (free_objfile) [USE_MMALLOC]: Ditto.
7725 (open_existing_mapped_file): Delete function.
7726 (open_mapped_file): Delete function.
7727 (map_to_file): Delete function.
7729 2004-01-19 Kevin Buettner <kevinb@redhat.com>
7731 * infrun.c (step_into_function): Account for possible breakpoint
7732 adjustment when computing ``stop_func_start''.
7734 2004-01-19 Kevin Buettner <kevinb@redhat.com>
7736 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
7737 the region size against the size of a pointer, not the size of
7738 a register as given by DEPRECATED_REGISTER_SIZE.
7740 2004-01-19 Andrew Cagney <cagney@redhat.com>
7742 * tui/tui-regs.h: Include "tui-data.h".
7743 (tuiFirstRegElementNoInLine): Delete declaration.
7744 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
7745 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
7746 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
7747 (tui_calculate_regs_column_count): Rename
7748 tuiCalculateRegsColumnCount.
7749 (tui_check_register_values): Rename tuiCheckRegisterValues.
7750 (tui_show_registers): Rename tuiShowRegisters.
7751 (tui_display_registers_from_line): Rename
7752 tuiDisplayRegistersFromLine.
7753 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
7754 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
7755 (tui_first_reg_element_no_inline): Rename
7756 tuiFirstRegElementNoInLine.
7757 * tui/tui-data.h: Update copyright.
7758 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
7759 * tui/tui-windata.c: Update copyright, update references.
7760 * tui/tui-regs.c: Update copyright, update references.
7761 * tui/tui-win.c: Update copyright, update references.
7762 * tui/tui-layout.c: Update copyright, update references.
7764 2004-01-18 Andrew Cagney <cagney@redhat.com>
7766 * tui/tui-io.c: Update copyright.
7767 (key_is_end_sequence, key_is_backspace): New functions.
7768 (key_is_command_char, key_is_start_sequence): New function.
7769 (tui_getc): Update references.
7770 * tui/tui-io.h: Update copyright.
7771 (m_tuiStartNewLine): Delete macro.
7772 (m_isBackspace, m_isDeleteChar): Delete macros.
7773 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
7774 (m_isNextPage, m_isPrevPage): Delete macros.
7775 (m_isLeftArrow, m_isRightArrow): Delete macros.
7776 (m_isXdbStyleCommandChar): Delete macro.
7777 (key_is_start_sequence): Declare, replace m_isStartSequence.
7778 (key_is_end_sequence): Declare, replace m_isEndSequence.
7779 (key_is_backspace): Declare ,replace m_isBackspace.
7780 (key_is_command_char): Declare, replace m_isCommandChar.
7781 * tui/tui-command.c: Update copyright.
7782 (tuiDispatchCtrlChar): Update references.
7784 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
7787 * tui/tui-command.c: Rename tui/tuiCommand.c.
7788 * tui/tui-command.h: Rename tui/tuiCommand.h.
7789 * tui/tui-data.c: Rename tui/tuiData.c.
7790 * tui/tui-data.h: Rename tui/tuiData.h.
7791 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
7792 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
7793 * tui/tui-io.c: Rename tui/tuiIO.c.
7794 * tui/tui-io.h: Rename tui/tuiIO.h.
7795 * tui/tui-layout.c: Rename tui/tuiLayout.c.
7796 * tui/tui-layout.h: Rename tui/tuiLayout.h.
7797 * tui/tui-regs.c: Rename tui/tuiRegs.c.
7798 * tui/tui-regs.h: Rename tui/tuiRegs.h.
7799 * tui/tui-source.c: Rename tui/tuiSource.c.
7800 * tui/tui-source.h: Rename tui/tuiSource.h.
7801 * tui/tui-stack.c: Rename tui/tuiStack.c.
7802 * tui/tui-stack.h: Rename tui/tuiStack.h.
7803 * tui/tui-win.c: Rename tui/tuiWin.c.
7804 * tui/tui-win.h: Rename tui/tuiWin.h.
7805 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
7806 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
7807 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
7808 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
7809 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
7810 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
7811 * tui/tui-file.c: Update includes.
7812 * tui/tui-hooks.c: Update includes.
7813 * tui/tui-interp.c: Update includes.
7814 * tui/tui.c: Update includes.
7815 * Makefile.in: Update all tui/ dependencies.
7816 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
7818 * Makefile.in: Update copyright. Update dependencies.
7820 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
7823 2004-01-18 Andrew Cagney <cagney@redhat.com>
7825 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
7826 instead of register_gdbarch_init.
7828 * remote-sds.c (tohex): Delete unused function. Update copyright.
7829 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
7830 * v850-tdep.c (v850_register_virtual_size): Ditto.
7831 * target.c (normal_target_post_startup_inferior): Ditto.
7832 * source.c (ambiguous_line_spec): Ditto.
7833 * remote.c (adapt_remote_get_threadinfo): Ditto.
7834 * mi/mi-out.c (out_field_fmt): Ditto.
7835 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
7836 (output_control_change_notification): Ditto.
7837 * m68k-tdep.c (m68k_register_byte): Ditto.
7838 (m68k_remote_breakpoint_from_pc): Ditto.
7839 * ui-out.c (init_ui_out_state): Delete unused declaration.
7840 * stabsread.c (search_value): Ditto.
7841 * mi/mi-cmd-env.c (env_cli_command): Ditto.
7842 * maint.c (print_section_table): Ditto.
7843 * infrun.c (set_follow_fork_mode_command): Ditto.
7845 2004-01-18 Mark Kettenis <kettenis@gnu.org>
7847 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
7848 DW_CFA_def_cfa_exporession. Add support for
7849 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
7850 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
7852 2004-01-18 Andrew Cagney <cagney@redhat.com>
7854 * ocd.c: Update copyright.
7855 (bdm_read_register_command): Delete unused function.
7856 (_initialize_remote_ocd): Delete commented out reference.
7857 (get_quoted_char, reset_packet): Delete #if0ed function.
7858 (output_packet, put_quoted_char): Delete #if0ed function.
7859 (stu_put_packet, stu_get_packet): Delete #if0ed function.
7860 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
7861 (BDM_BREAKPOINT): Delete #if0ed macro.
7862 (remote_timeout): Delete #if0ed variable.
7864 2004-01-18 Mark Kettenis <kettenis@gnu.org>
7866 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
7867 (core-sol2.o): Remove dependency.
7868 * core-sol2.c: Remove file.
7870 2004-01-17 Andrew Cagney <cagney@redhat.com>
7872 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
7873 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
7876 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
7878 * remote.c: Update copyright years.
7880 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
7882 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
7884 2004-01-17 Andrew Cagney <cagney@redhat.com>
7886 * mdebugread.c: Update copyright.
7887 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
7888 (parse_type, parse_procedure): Ditto.
7889 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
7891 * cris-tdep.c (cris_store_struct_return): Put back accidently
7894 * gdbarch.sh: Update copyright year.
7895 * gdbarch.h, gdbarch.c: Re-generate.
7897 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
7899 Suggested by George Anzinger.
7900 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
7901 correct stack offset. Include unknown opcode numbers in the error
7904 2004-01-17 Andrew Cagney <cagney@redhat.com>
7906 * x86-64-tdep.c (x86_64_init_abi): No need to clear
7907 extract_struct_value_address, i386 does not set it.
7908 * sparc64-tdep.c (sparc64_init_abi): Do not set
7909 extract_struct_value_address, never called.
7910 (sparc64_extract_struct_value_address): Delete function.
7911 * m68hc11-tdep.c: Update copyright.
7912 (m68hc11_gdbarch_init): Delete redundant assignment of
7913 extract_struct_value_address.
7914 * i386-tdep.c: Update copyright.
7915 (i386_gdbarch_init): Do not set extract_struct_value_address,
7917 (i386_extract_struct_value_address): Delete function.
7918 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
7919 extract_struct_value_address, never called.
7920 (sparc32_extract_struct_value_address): #if 0 function. Add
7921 comments explaining its future.
7923 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
7925 * arm-tdep.c (arm_write_pc): New function.
7926 (arm_gdbarch_init): Call set_gdbarch_write_pc.
7928 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
7930 * breakpoint.c (must_shift_inst_regs): Delete.
7931 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
7932 and SHIFT_INST_REGS.
7933 * infcmd.c (step_1, step_1_continuation): Delete references to
7935 * infrun.c (keep_going): Likewise.
7936 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
7937 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
7939 2004-01-17 Andrew Cagney <cagney@redhat.com>
7941 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
7942 * gdbarch.h, gdbarch.c: Re-generate.
7943 * infcmd.c (print_return_value): Delete reference to
7944 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7946 * cris-tdep.c (cris_gdbarch_init): Do not set
7947 deprecated_extract_struct_value_address.
7949 * xstormy16-tdep.c: Update copyright.
7950 (xstormy16_extract_struct_value_address): Update to current
7951 extract struct value address interface.
7952 (xstormy16_gdbarch_init): Set extract_struct_value_address.
7953 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
7954 current extract struct value address interface.
7955 (sh64_gdbarch_init): Set extract_struct_value_address.
7957 * cris-tdep.c: Update copyright.
7958 (cris_extract_struct_value_address): Delete function.
7959 (struct_return_address): Delete variable.
7960 (cris_store_struct_return): Do not set struct_return_address.
7962 * mcore-tdep.c: Update copyright.
7963 (mcore_extract_struct_value_address): Delete function. Update
7965 (mcore_gdbarch_init): Update.
7966 * mn10300-tdep.c: Update copyright.
7967 (mn10300_extract_struct_value_address): Delete function.
7968 (mn10300_gdbarch_init): Update.
7969 * v850-tdep.c: Update copyright.
7970 (v850_extract_struct_value_address): Delete.
7971 (v850_gdbarch_init): Update.
7972 * ns32k-tdep.c: Update copyright.
7973 (ns32k_extract_struct_value_address): Delete.
7974 (ns32k_gdbarch_init): Update.
7975 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
7976 (hppa_gdbarch_init): Update.
7977 * vax-tdep.c: Update copyright.
7978 (vax_extract_struct_value_address): Delete.
7979 (vax_gdbarch_init): Update.
7981 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
7982 * gdbarch.h, gdbarch.c: Re-generate.
7983 * procfs.c (procfs_fetch_registers): Delete reference to
7984 DEPRECATED_NPC_REGNUM.
7985 (procfs_store_registers): Ditto.
7986 * regcache.c (generic_target_write_pc): Simplify.
7987 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
7989 * core-sol2.c (fetch_core_registers): Replace
7990 DEPRECATED_NPC_REGNUM with equivalent tdep value.
7992 * hppa-tdep.c: Update copyright year.
7993 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
7995 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
7997 * mips-tdep.c (mips_write_pc): New function.
7998 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
7999 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
8000 (mips_find_saved_regs, mips_software_single_step: Ditto.
8001 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
8002 mips_init_extra_frame_info, mips_pop_frame): Ditto.
8004 2004-01-17 Andrew Cagney <cagney@redhat.com>
8006 * mips-tdep.c: Re-indent. Group functions by ABI.
8008 2004-01-17 Andrew Cagney <cagney@redhat.com>
8010 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
8011 * gdbarch.c: Re-generate.
8012 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8013 DECR_PC_AFTER_BREAK to zero.
8014 * vax-tdep.c (vax_gdbarch_init): Ditto.
8015 * v850-tdep.c (v850_gdbarch_init): Ditto.
8016 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
8017 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8018 * sh-tdep.c (sh_gdbarch_init): Ditto.
8019 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8020 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8021 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8022 * mips-tdep.c (mips_gdbarch_init): Ditto.
8023 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8024 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8025 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
8026 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8027 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8028 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8029 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8030 * frv-tdep.c (frv_gdbarch_init): Ditto.
8031 * cris-tdep.c (cris_gdbarch_init): Ditto.
8032 * avr-tdep.c (avr_gdbarch_init): Ditto.
8033 * arm-tdep.c (arm_gdbarch_init): Ditto.
8034 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
8036 2004-01-17 J. Brobecker <brobecker@gnat.com>
8038 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
8039 Delete, no longer used.
8040 (read_subrange_type): New function, mostly extracted from
8042 (read_array_type): Replace extracted code by call to
8043 read_subrange_type().
8044 (dwarf2_get_attr_constant_value): New function.
8045 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
8046 (add_partial_symbol): Likewise.
8047 (process_die): Likewise.
8048 (new_symbol): Likewise.
8049 (read_type_die): Likewise.
8051 2004-01-16 Andrew Cagney <cagney@redhat.com>
8053 * symfile.c: Update copyright year.
8054 (compare_symbols): Delete unused function.
8055 * stabsread.c: Update copyright year.
8056 (lrs_general_complaint): Delete unused function.
8057 (ref_search_value): Ditto.
8058 (get_substring): Delete declaration.
8059 * sh64-tdep.c: Update copyright year.
8060 (sh64_get_gdb_regnum): Delete unused function.
8061 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
8062 Delete unused function.
8064 2004-01-17 Mark Kettenis <kettenis@gnu.org>
8066 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
8067 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
8069 2004-01-16 Andrew Cagney <cagney@redhat.com>
8071 Changes from Peter Schauer.
8072 * rs6000-tdep.c: Update copyright year.
8073 (rs6000_push_dummy_call): Update the stack pointer before
8074 accessing the corresponding stack region.
8075 * rs6000-nat.c: Update copyright year.
8076 (set_host_arch): Set "info.abfd" to "exec_bfd".
8078 2004-01-15 Mark Kettenis <kettenis@gnu.org>
8080 * blockframe.c: Update copyright year.
8081 (inside_entry_func): Don't treat a zero PC specially.
8083 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
8085 * gcore.c (gcore_copy_callback): Use paddr_d to print size
8087 (gcore_create_callback): Ditto. Skip any memory segment that has
8090 2004-01-14 David Carlton <carlton@kealia.com>
8092 Change symbols for C++ nested types to contain the fully qualified
8093 name, if possible. (At least in the DWARF-2 case.) Partial fix
8094 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
8096 * c-exp.y (qualified_type): Handle types nested within classes.
8097 * cp-namespace.c: Update comments.
8098 (cp_set_block_scope): Delete #if 0.
8099 (cp_lookup_nested_type): Handle types nested within classes.
8100 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
8102 (add_partial_symbol): Add the name of the enclosing namespace to
8104 (pdi_needs_namespace): New.
8105 (add_partial_namespace): Tweak comment.
8106 (add_partial_structure): New.
8107 (psymtab_to_symtab_1): Initialize processing_current_prefix
8109 (process_die): instead of here.
8110 (read_structure_scope): Try to figure out the name of the class or
8111 namespace that the structure might be defined within.
8112 (read_enumeration): Generate fully-qualified names, if possible.
8113 (read_namespace): Don't set name to NULL.
8114 (die_specification): New.
8115 (new_symbol): Generate fully-qualified names for types.
8116 (read_type_die): Determine appropriate prefix.
8117 (determine_prefix): New.
8118 (typename_concat): New.
8120 * valops.c (value_aggregate_elt): Pass NOSIDE to
8121 value_struct_elt_for_reference.
8122 (value_struct_elt_for_reference): Make static, add NOSIDE
8123 parameter, call value_maybe_namespace_elt as a last resort.
8124 (value_namespace_elt): Break out code into
8125 value_maybe_namespace_elt.
8126 (value_maybe_namespace_elt): New.
8128 2004-01-12 Andrew Cagney <cagney@redhat.com>
8130 * mips-tdep.c (mips_convert_register_p): Handle both raw and
8131 cooked floating-point registers.
8132 (mips_gdbarch_init): Set convert_register_p, register_to_value,
8133 and value_to_register.
8135 2004-01-13 Andrew Cagney <cagney@redhat.com>
8137 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
8138 * gdbarch.c: Re-generate.
8139 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8140 FUNCTION_START_OFFSET.
8141 * v850-tdep.c (v850_gdbarch_init): Ditto.
8142 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
8143 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8144 * sh-tdep.c (sh_gdbarch_init): Ditto.
8145 * s390-tdep.c (s390_gdbarch_init): Ditto.
8146 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8147 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8148 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8149 * mips-tdep.c (mips_gdbarch_init): Ditto.
8150 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8151 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8152 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8153 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
8154 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8155 * i386-tdep.c (i386_gdbarch_init): Ditto.
8156 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8157 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8158 * frv-tdep.c (frv_gdbarch_init): Ditto.
8159 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8160 * cris-tdep.c (cris_gdbarch_init): Ditto.
8161 * avr-tdep.c (avr_gdbarch_init): Ditto.
8162 * arm-tdep.c (arm_gdbarch_init): Ditto.
8163 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8165 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
8167 * infrun.c (follow_fork_mode_ask): Remove.
8168 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
8169 (follow_fork): Simplify and remove internal error for
8170 follow_fork_mode_ask.
8171 (_initialize_infrun): Update "set follow-fork-mode" help text.
8173 2004-01-13 Andrew Cagney <cagney@redhat.com>
8175 * configure.in: Update copyright year.
8176 (build_warnings): Add -Wunused-label.
8177 * configure: Re-generate.
8179 2004-01-12 Andrew Cagney <cagney@redhat.com>
8181 * exec.h (exec_ops): Make "extern".
8183 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
8184 the function is void.
8185 (mips_pseudo_register_write): Ditto.
8187 2004-01-12 Andrew Cagney <cagney@redhat.com>
8189 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
8190 call. Never defined.
8191 * sparc-tdep.h (struct frame_info): Add opaque declaration.
8192 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
8193 (struct sparc_gregset, struct regcache): Ditto.
8194 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
8196 2004-01-12 Andrew Cagney <cagney@redhat.com>
8198 * mi/ChangeLog: Delete file. Renamed to ...
8199 * mi/ChangeLog-1999-2003: New file.
8200 * tui/ChangeLog: Delete file. Renamed to ...
8201 * tui/ChangeLog-1998-2003: New file.
8203 2004-01-11 Mark Kettenis <kettenis@gnu.org>
8205 * sparc64nbsd-tdep.c: Include "regset.h".
8206 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
8208 (fetch_core_registers): Remove function.
8209 (sparc64nbsd_core_fns): Remove variable.
8210 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
8212 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
8213 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
8214 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
8216 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
8217 sparc_extract_struct_value_address.
8218 (sparc32_gdbarch_init): Set extract_struct_value_address.
8219 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
8221 (sparc64_init_abi): Set extract_struct_value_address. Don't set
8222 return_value_on_stack.
8224 * NEWS: Mention that %cs and %ss have been added to the AMD64
8227 * frame.c: Update copyright year.
8228 (get_prev_frame): Improve comment.
8230 * sparc64fbsd-tdep.c: Include "regset.h".
8231 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
8233 (fetch_core_registers): Remove function.
8234 (sparc64fbsd_core_fns): Remove variable.
8235 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
8237 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
8238 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
8239 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
8241 * sparcnbsd-tdep.c: Include "regset.h".
8242 (fetch_core_registers): Remove function.
8243 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
8244 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
8246 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
8248 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
8250 * sparc-tdep.h (struct regset): Provide opaque declaration.
8251 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
8252 fpregset and sizeof_fpregset members.
8253 * sparc-tdep.c (struct regset): Provide opaque declaration.
8254 (sparc_regset_from_core_section): New function.
8255 (sparc32_gdbarch_init): Initialize TDEP->gregset,
8256 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
8257 Set regset_from_core_section when appropriate.
8259 2004-01-10 Mark Kettenis <kettenis@gnu.org>
8261 * x86-64-tdep.c (amd64_non_pod_p): New function.
8262 (amd64_classify_aggregate): Return class memory for non-POD
8263 C++ structure types.
8265 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
8266 argument. Use it to reserve a register if necessary.
8267 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
8268 amd64_push_arguments.
8270 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
8272 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
8273 register numbers in comments.
8274 * x86-64-tdep.h: Update copyright year.
8275 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
8276 Adjust for addition of %cs and %ss.
8277 * amd64fbsd-nat.c: Update copyright year.
8278 (reg_offset): Add register offsets for %cs and %ss.
8279 * amd64fbsd-tdep.c: Update copyright year.
8280 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
8281 (amd64fbsd_sc_reg_offset): Likewise.
8282 * x86-64-linux-nat.c: Update copyright year.
8283 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
8285 * amd64nbsd-nat.c: Update copyright year.
8286 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
8287 * amd64nbsd-tdep.c: Update copyright year.
8288 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
8289 * x86-64-linux-tdep.c: Update copyright year.
8290 (user_to_gdb_regmap): Add mapping for %cs and %ss.
8291 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
8292 * regformats/reg-x86-64.dat: Add %cs and %ss.
8294 * blockframe.c (inside_entry_func): Reformat. Introduce new local
8295 variables to prevent long lines. Update comments to reflect
8298 2004-01-09 David Carlton <carlton@kealia.com>
8300 Checked in by Elena Zannoni <ezannoni@redhat.com>.
8301 * dwarf2read.c (read_namespace): Pull out name-generating code
8302 into namespace_name. Rename previous_namespace to previous_prefix
8303 and processing_current_namespace to processing_current_prefix..
8304 (namespace_name): New function.
8305 (add_partial_symbol): Substitute uses of pdi->name with
8307 * cp-support.h: Rename processing_current_namespace to
8308 processing_current_prefix.
8309 Update copyright year.
8310 * cp-namespace.c: Rename processing_current_namespace to
8311 processing_current_prefix.
8312 Update copyright year.
8314 2004-01-09 Andrew Cagney <cagney@redhat.com>
8316 * jv-valprint.c, ser-unix.c: Add missing copyright years.
8318 2004-01-09 Mark Kettenis <kettenis@gnu.org>
8320 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
8322 (process_one_symbol): Deal with N_PATCH stabs.
8324 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
8326 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
8328 Update copyright year.
8330 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
8332 * config/pa/tm-hppa.h: Update extern declarations for
8333 hppa32_hpux_frame_saved_pc_in_sigtramp,
8334 hppa32_hpux_frame_base_before_sigtramp, and
8335 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
8337 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
8339 * config/pa/tm-hppah.h: Update copyright years.
8341 2004-01-08 Andrew Cagney <cagney@redhat.com>
8343 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
8344 (mips_o32_reg_struct_has_addr): Delete function.
8345 (mips_gdbarch_init): Update.
8346 (mips_extract_struct_value_address): Delete function.
8348 2004-01-08 David Mosberger <davidm@hpl.hp.com>
8350 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
8353 2004-01-07 Andrew Cagney <cagney@redhat.com>
8355 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
8356 architecture's elf flags (when available).
8358 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
8359 FPU to the start, check the MIPS FPU when looking for an old
8361 (set_mipsfpu_single_command): Update the architecture.
8362 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
8364 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
8365 (mips_mask_address_p): Add "tdep" parameter.
8366 (show_mask_address, mips_addr_bits_remove): Update.
8367 (mips_dump_tdep): Update.
8368 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
8369 (MIPS_STACK_ARGSIZE): Delete macro.
8370 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
8371 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
8372 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
8373 (mips_dump_tdep): Update.
8374 (MIPS_SAVED_REGSIZE): Delete macro.
8375 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
8376 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
8377 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
8378 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
8379 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
8380 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
8381 (mips_pop_frame, return_value_location): Update.
8382 (mips_n32n64_return_value, mips_dump_tdep): Update.
8384 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
8387 * mips-tdep.c: Update copyright.
8388 (mips_gdbarch_init): Merge two code blocks handling the register
8389 name and number layout.
8391 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
8393 * tracepoint.c (validate_actionline): Fix segv at EOF
8395 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
8397 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
8398 properly for static fields.
8400 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
8401 Jason Molenda <jmolenda@apple.com>
8403 * disasm.c: Update copyright to include 2004.
8404 (do_mixed_source_and_assembly): For uiout asm list
8405 and tuple cleanups, initialize to null_cleanup instead of
8406 NULL and do so prior to loop. Only reset when we close off
8407 the tuple/list. Move check for whether to close off the
8408 asm tuple/list to after dump_insns call where it will be run
8409 on each loop iteration.
8411 2004-01-05 Andrew Cagney <cagney@redhat.com>
8413 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
8414 should be a switch case and not a label.
8415 * mips-tdep.c (mips32_next_pc): Delete unused labels
8416 "greater_equal_branch" and "less_zero_branch".
8417 * jv-valprint.c (java_print_value_fields): Delete unused label
8420 * target.c (unpush_target): Only close a target that is in the
8423 2004-01-05 Mark Kettenis <kettenis@gnu.org>
8425 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
8426 address from [sp + 64] instead of %o2.
8428 * frame.c (get_prev_frame): Don't try to unwind the PC. This
8429 fixes PR backtrace/1476.
8431 2004-01-05 Andrew Cagney <cagney@redhat.com>
8433 * libunwind-frame.h (struct frame_id): Add opaque declaration,
8434 move to start of file.
8435 * i386-tdep.h (struct regcache): Add opaque declaration.
8436 * config/ia64/nm-linux.h (struct target_ops): Add opaque
8438 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
8439 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
8440 * win32-nat.c (fake_create_process): Use ISO C style definition.
8441 * stabsread.c (define_symbol): Delete #ifndef
8442 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
8443 stabs_argument_has_addr call, macro never defined.
8445 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
8447 * op50-rom.c: Delete.
8448 * w89k-rom.c: Delete.
8449 * Makefile.in: Remove references.
8451 2004-01-04 Mark Kettenis <kettenis@gnu.org>
8453 * x86-64-tdep.c: Update copyright year.
8454 (struct amd64_register_info): Rename from x86_64_register_info.
8455 (amd64_register_info): Rename from x86_64_register_info.
8456 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
8457 (amd64_register_name): Rename from x86_64_register_name.
8458 (amd64_register_type): Rename from x86_64_register_type.
8459 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
8460 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
8461 (amd64_dwarf_reg_to_regnum): Rename from
8462 x86_64_dwarf_reg_to_regnum.
8463 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
8464 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
8465 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
8466 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
8467 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
8468 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
8469 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
8470 (amd64_frame_cache): Rename from x86_64_frame_cache.
8471 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
8472 (amd64_frame_prev_register): Rename from
8473 x86_64_frame_prev_register.
8474 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
8475 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
8476 (amd64_sigtramp_frame_cache): Rename from
8477 x86_64_sigtramp_frame_cache.
8478 (amd64_sigtramp_frame_prev_register): Rename from
8479 x86_64_sigtramp_frame_prev_register.
8480 (amd64_sigtramp_frame_unwind): Rename from
8481 x86_64_sigtramp_frame_unwind.
8482 (amd64_sigtramp_frame_sniffer): Rename from
8483 x86_64_sigtramp_frame_sniffer.
8484 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
8485 (amd64_frame_base): Rename from x86_64_frame_base.
8486 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
8487 (amd64_frame_align): Rename from x86_64_frame_align.
8488 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
8489 (amd64_regset_from_core_section): Rename from
8490 x86_64_regset_from_core_section.
8491 (x86_64_init_abi): Update comments.
8493 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
8495 * MAINTAINERS (write after approval): Add myself.
8497 2004-01-04 Mark Kettenis <kettenis@gnu.org>
8499 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8502 2004-01-04 Mark Kettenis <kettenis@gnu.org>
8504 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
8505 such that it mentions a specific version of GCC that exhibits this
8508 2004-01-03 Mark Kettenis <kettenis@gnu.org>
8510 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
8511 structure that has a single `float' member, store it in %f1 in
8514 * sparc-sol2-nat.c: Add missing '\'.
8516 * sparc-tdep.c (sparc32_return_value): New function.
8517 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
8519 (sparc32_gdbarch_init): Set return_value, don't set
8520 extract_return_value, store_return_value, use_struct_convention
8521 and return_value_on_stack.
8523 * sparc-sol2-nat.c: Add missing ')'.
8525 2004-01-03 J. Brobecker <brobecker@gnat.com>
8527 * infrun.c (handle_step_into_function): New function.
8528 (handle_inferior_event): Extract out some code into the new
8531 2004-01-03 J. Brobecker <brobecker@gnat.com>
8533 * infrun.c (handle_inferior_event): Move the declaration of
8534 real_stop_pc inside the if blocks where it is used.
8536 2004-01-03 Mark Kettenis <kettenis@gnu.org>
8538 * sparc64-tdep.c (sparc64_16_byte_align_p)
8539 (sparc64_store_floating_fields, sparc64_store_floating_fields):
8540 Use check_typedef to get subtypes of structures and unions.
8541 (sparc64_store_return_value): Fix calculation of the appropriate
8542 offset into VALBUF when storing a structure or union.
8543 (sparc64_return_value): New function.
8544 (sparc64_use_struct_convention): Remove function.
8545 (sparc64_init_abi): Set return_value, don't set
8546 extract_return_value, store_return_value and
8547 use_struct_convention.
8549 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
8551 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
8552 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
8553 gdb/config/alpha/xm-alphaosf.h,
8554 gdb/config/powerpc/tm-ppcle-eabi.h,
8555 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
8556 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
8557 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
8558 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
8559 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
8560 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
8561 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
8562 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
8563 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
8564 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
8565 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
8566 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
8567 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
8568 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
8569 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
8570 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
8571 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
8572 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
8573 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
8574 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
8575 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
8576 Remove lines for .cvsignore files.
8578 2004-01-03 J. Brobecker <brobecker@gnat.com>
8580 * infrun.c: Back out the previous change.
8582 2004-01-03 Mark Kettenis <kettenis@gnu.org>
8584 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
8585 sparc-*-sunos4* to the list of REMOVED configurations.
8587 * configure.tgt: Add back sparc-*-vxworks*.
8588 * remote-vxsparc.c: Remove all includes except for "defs.h",
8589 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
8590 Include "sparc-tdep.h".
8591 (SPARC_R_G1): New define.
8592 (vxsparc_gregset): New variable.
8593 (ext_format_sparc): Remove extern declaration.
8594 (vx_read_register): Rewrite to use sparc32_supply_gregset and
8595 sparc32_supply_fpregset.
8596 (vx_write_register): Rewrite to use sparc32_collect_gregset,
8597 sparc_collect_rwindow and sparc32_collect_fpregset.
8598 * config/sparc/tm-vxworks.h: New file, based on recently removed
8600 * config/sparc/vxworks.mt: New file, based on recently removed
8603 2004-01-03 J. Brobecker <brobecker@gnat.com>
8605 * infrun.c (handle_step_into_function): New function.
8606 (handle_inferior_event): Extract out some code into the new
8609 2004-01-02 Mark Kettenis <kettenis@gnu.org>
8611 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
8612 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
8613 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
8614 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
8615 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
8616 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
8617 (sparc_nat_h): New variable.
8618 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
8619 (tm-sun4os4.h): Remove dependency.
8620 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
8621 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
8622 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
8623 sparc-tdep.o): Update dependencies.
8624 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
8625 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
8626 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
8628 * configure.host: Remove existing sparc-*-lynxos*,
8629 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
8630 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
8631 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
8632 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
8634 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
8635 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
8636 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
8637 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
8638 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
8639 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
8640 sparc64-*-solaris2* and sparc64-*-* triplets.
8641 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
8642 "symtab.h" and "objfiles.h".
8643 (BIAS): Remove define.
8644 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
8645 (X_DISP19): Remove macros.
8646 (sparc_fetch_instruction): Remove function.
8647 (struct gdbarch_tdep): Remove definition.
8648 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
8649 (sparc_breakpoint_from_pc): Remove function.
8650 (struct sparc64_frame_cache): Remove definition.
8651 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
8652 sparc64_unwind_pc): Remove functions.
8653 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
8654 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
8655 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
8656 (sparc64_frame_cache): Change return type to `struct
8657 sparc_frame_cache *'. Simply call sparc_frame_cache.
8658 (sparc64_frame_this_id, sparc64_frame_prev_register,
8659 sparc64_frame_base_address): Use `struct sparc_frame_cache'
8660 instead of `struct sparc64_frame_cache.
8661 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
8662 sparc_analyze_control_transfer, sparc_software_single_step,
8663 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
8664 _initialize_sparc64_tdep): Remove functions.
8665 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
8666 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
8668 (sparc64_supply_gregset, sparc64_collect_gregset,
8669 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
8670 (sparc64_init_abi): New function.
8671 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
8672 inclusion guard. Include "sparc-tdep.h".
8674 (r_tstate_offset, r_fprs_offset): New defines.
8675 (enum sparc_regnum): Remove defenition.
8676 (enum sparc64_regnum): Reformat.
8677 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
8678 (sparc64_init_abi, sparc64_supply_gregset,
8679 sparc64_collect_gregset, sparc64_supply_fpregset,
8680 sparc64_collect_fpregset): New prototypes.
8681 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
8682 Add extern declarations.
8683 (sparc64_sol2_init_abi): New prototype.
8684 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
8685 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
8687 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
8689 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
8691 (_initialize_sparc64fbsd_nat): Remove initialization of
8692 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
8693 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
8694 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
8695 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
8696 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
8697 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
8698 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
8699 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
8700 (sparc64fbsd_r_y_offset): Remove variables.
8701 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
8702 Make static and const.
8703 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
8704 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
8706 (sparc64fbsd_gregset): New variable.
8707 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
8708 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
8709 and sparc64_supply_fpregset.
8710 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
8711 (sparc64fbsd_sigtramp_frame_this_id)
8712 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
8713 (sparc64fbsd_sigtramp_frame_unwind): New variable.
8714 (sparc64fbsd_sigtramp_frame_sniffer): New function.
8715 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
8716 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
8717 * sparcnbsd-tdep.c: Update copyright year. Include
8718 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
8719 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
8720 "value.h" and "sparcnbsd-tdep.h".
8721 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
8722 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
8723 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
8724 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
8726 (sparcnbsd_gregset): New variable.
8727 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
8728 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
8729 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
8730 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
8731 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
8733 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
8734 (sparc32nbsd_sigcontext_frame_this_id)
8735 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
8736 (sparc32nbsd_sigcontext_frame_unwind): New variable.
8737 (sparc32nbsd_sigtramp_frame_sniffer): New function.
8738 (sparcnbsd_get_longjmp_target_32,
8739 sparcnbsd_get_longjmp_target_64): Remove functions.
8740 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
8741 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
8742 sparcnbsd_init_elf): Remove.
8743 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
8744 (sparcnbsd_elf_init_abi): New functions.
8745 (_initialize_sparcnbsd_tdep): New prototype.
8746 (_initialize_sparnbsd_tdep): Update.
8747 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
8748 corelow.o. Add sparc64-nat.o and sparc-nat.o.
8749 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
8750 * config/sparc/linux.mh: Update comment.
8751 (XM_FILE, HOST_IPC): Remove variables.
8752 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
8754 * config/sparc/linux.mt: Update comment.
8755 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
8756 * config/sparc/nbsd.mt: Reformat.
8757 * config/sparc/nbsd64.mh: Update comment.
8758 (NATDEPFILES): Add sparc-nat.o.
8759 * config/sparc/nbsd64.mt: Update comment.
8760 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
8761 (TM_FILE): Set to tm-nbsd.h.
8762 * config/sparc/nbsdelf.mh: Update comment.
8763 (NATDEPFILES): Add sparc-nat.o.
8765 * config/sparc/nbsdaout.mh: Update comment.
8766 (NATDEPFILES): Add sparc-nat.o
8768 * config/sparc/nm-linux.h: Update copyright year. Don't include
8769 "config/nm-svr4.h" and "solib.h". Add protection against multiple
8771 (KERNEL_U_SIZE): Remove define.
8772 (kernel_u_size): Remove prototype.
8773 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
8774 * config/sparc/nm-nbsd.h: Update copyright. Don't include
8776 (CHILD_PREPARE_TO_STORE): Remove define.
8777 * config/sparc/nm-nbsdaout.h: Tweak some comments.
8778 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
8779 sparcnbsd-nat.c: Rewrite files.
8780 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
8781 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
8782 sparcnbsd-tdep.h: Remove files.
8783 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
8784 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
8785 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
8786 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
8787 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
8788 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
8789 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
8790 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
8791 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
8792 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
8793 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
8794 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
8795 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
8796 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
8797 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
8798 * config/sparc/linux64.mh, config/sparc/linux64.mt,
8799 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
8800 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
8801 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
8803 2004-01-02 Andrew Cagney <cagney@redhat.com>
8805 From 2003-12-18 Kazuhiro Inaoka:
8806 * configure.host: Add m32r-linux target.
8808 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
8810 * top.c (print_gdb_version): Update year to 2004.
8812 2004-01-02 Mark Mitchell <mark@codesourcery.com>
8814 * MAINTAINERS: Add myself to the write-after-approval category.
8816 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
8818 From Bernardo Innocenti <bernie@develer.com>:
8819 * configure.tgt: Add uClinux target.
8821 2004-01-02 Andrew Cagney <cagney@redhat.com>
8823 * utils.c (do_my_cleanups): Make static, add forward declaration.
8824 * defs.h (do_my_cleanups): Delete declaration.
8826 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
8828 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
8831 2004-01-02 Mark Kettenis <kettenis@gnu.org>
8833 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
8835 * configure, config.in: Regenerate.
8837 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
8838 tui/ChangeLog-1998-2003.
8844 version-control: never