1 2004-09-05 Andrew Cagney <cagney@gnu.org>
4 * version.in: Bump to version 6.2.1.
6 2004-08-13 Mark Kettenis <kettenis@gnu.org>
8 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
9 (struct i386_insn): New structure.
10 (i386_match_insn): New function.
11 (i386_frame_setup_skip_insns): New variable.
12 (i386_analyze_frame_setup): Change to use i386_match_insn and the
13 array i386_frame_setup_insns of instructions that should be
14 skipped inside the frame setup sequence.
15 * NEWS: Mention improved i386 prologue analyzer in GDB 6.2.1.
17 2004-08-12 Andrew Cagney <cagney@gnu.org>
19 * NEWS: Mention fixes in GDB 6.2.1.
20 * PROBLEMS: Remove mention of mips-irix.
22 2004-08-08 Mark Kettenis <kettenis@gnu.org>
24 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
27 2004-08-07 Andrew Cagney <cagney@gnu.org>
29 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
31 * doublest.c: Update copyright.
32 (floatformat_from_length): Call error when floatformat is NULL.
33 (extract_floating_by_length): Remove NULL fmt check.
34 (store_floating_by_length): Ditto.
36 2004-07-29 Andrew Cagney <cagney@gnu.org>
38 * version.in: Bump to version 6.2.
40 2004-07-29 Andrew Cagney <cagney@gnu.org>
42 * PROBLEMS (mips-irix): Note that it is broken.
44 2004-07-28 Andrew Cagney <cagney@gnu.org>
46 * version.in: Bump to version 6.1.92.
48 2004-07-28 Andrew Cagney <cagney@gnu.org>
50 * PROBLEMS: Mention threads/1650.
51 * NEWS: Mention the NPTL fix.
53 2004-07-26 Andrew Cagney <cagney@gnu.org>
55 * gdb-mi.el: Move from here ...
56 * mi/gdb-mi.el: ... to here.
58 2004-07-26 Andrew Cagney <cagney@gnu.org>
60 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
62 * NEWS: END-OF-LIFE frame compatibility module.
63 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
66 2004-07-21 Andrew Cagney <cagney@gnu.org>
68 * PROBLEMS: Mention breakpoints/1702.
69 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
70 that is known to work.
72 2004-07-18 Andrew Cagney <cagney@gnu.org>
74 * version.in: Bump to version 6.1.91.
76 2004-07-17 Andrew Cagney <cagney@gnu.org>
78 * README: Update to 6.2.
80 * utils.c (xvasprintf): Call xstrvprintf.
82 * parse.c: Update copyright.
83 (null_post_parser): Eliminate ARGSUSED.
85 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
86 * tui/tui-win.c (tui_get_cmd_list): Ditto.
87 * symfile-mem.c (_initialize_symfile_mem): Ditto.
89 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
90 * ppc-linux-nat.c: Use "Linux kernel".
91 * hppa-linux-tdep.c: Use GNU/Linux.
92 * hppa-linux-nat.c: Use GNU/Linux.
93 * dwarfread.c: Add [sic] to use of Linux.
95 * hppa-linux-nat.c: Do not include <string.h>.
96 (supply_fpregset): Remove "register" attribute.
98 * solib-frv.c (fetch_loadmap): Use xfree, not free.
100 2004-07-17 Mark Kettenis <kettenis@gnu.org>
102 * configure.in: Define _MSE_INT_H on Solaris 9 too.
103 * configure, config.in: Regenerated.
105 2004-07-16 Andrew Cagney <cagney@gnu.org>
107 * defs.h (event_loop_p): Replace variable declaration with macro,
109 * main.c (captured_main): Delete options "-async" and "-noasync".
110 (event_loop_p): Delete variable.
111 * NEWS: Mention that "-async" and "-noasync" were removed.
113 2004-07-16 Andrew Cagney <cagney@gnu.org>
115 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
116 calls, no longer applicable. Update comments and rename parameter
117 "step_frame" to "return_frame".
119 2004-07-16 Andrew Cagney <cagney@gnu.org>
121 * frame.c (fprint_field): New function.
122 (fprint_frame_id): Use fprint_field.
124 2004-07-10 Mark Kettenis <kettenis@gnu.org>
126 * NEWS: Mention BSD libkvm interface.
128 2004-07-10 Andrew Cagney <cagney@gnu.org>
130 GDB 6.2 branch created.
131 * version.in: Bump to version 6.1.90_0000-00-00-cvs.
133 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
137 * ada-exp.y (write_var_from_sym): Reformat to put operator at
140 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
142 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
143 (MIN_OF_SIZE): Rename min_of_size. Add comment.
144 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
145 (UMIN_OF_SIZE): Remove.
146 (max_of_type): New function to replace orphan macro in gdbtypes.h
147 (min_of_type): Ditto.
148 (discrete_type_high_bound): Use max_of_type.
149 (discrete_type_low_bound): Use min_of_type.
150 (possible_user_operator_p): Move operator to beginning of line.
151 (ada_is_variant_part): Ditto.
152 (ensure_lval): Rewrite to avoid deprecated operations.
153 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
154 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
155 (ada_enum_name): Remove assignments in 'if' statements.
156 (build_ada_types): Add gdbarch parameter.
157 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
158 with gdbarch_data_register_post_init.
159 Use add_setshow_uinteger_cmd rather than add_set_cmd and
162 * ada-valprint.c (inspect_it): Remove declaration.
163 (repeat_count_threshold): Remove declaration.
164 (ada_print_floating): Remove assignments in 'if' statements.
165 (print_str): Move operator to beginning of line.
167 2004-07-08 Jim Blandy <jimb@redhat.com>
169 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
171 2004-07-08 Bob Rossi <bob@brasko.net>
173 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
175 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
177 * language.h (struct_language_defn): Add new function pointer:
178 la_class_name_from_physname. Also add new prototype for
179 language_class_name_from_physname.
180 * language.c (language_class_name_from_physname): New function.
181 (unk_lang_class_name): Ditto.
182 (unknown_language_defn, auto_language_defn): Change
183 to add unk_lang_class_name function pointer for
184 la_class_name_from_physname.
185 (local_language_defn): Ditto.
186 * dwarf2read.c (guess_structure_name): Change to call
187 language_class_name_from_physname.
188 (determine_class_name): Ditto.
189 * cp-support.c (class_name_from_physname): Renamed.
190 (cp_class_name_from_physname): New name of function.
191 * cp-support.h: Ditto.
192 * c-lang.c (c_language_defn): Change to add NULL
193 for class_name_from_physname function pointer.
194 (cplus_language_defn): Change to add cp_class_name_from_physname.
195 * jv-lang.c (java_class_name_physname): New function.
196 (java_find_last_component): New static routine.
197 (java_language_defn): Add java_class_name_from_physname pointer.
198 * ada-lang.c (ada_language_defn): Change to add NULL
199 for class_name_from_physname function pointer.
200 * f-lang.c (f_language_defn): Ditto.
201 * m2-lang.c (m2_language_defn): Ditto.
202 * objc-lang.c (objc_language_defn): Ditto.
203 * p-lang.c (pascal_language_defn): Ditto.
204 * scm-lang.c (scm_language_defn): Ditto.
206 2004-07-06 Andrew Cagney <cagney@gnu.org>
208 Patch from Bart Robinson.
209 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
210 (O_LARGEFILE): Define to 0, if not defined.
212 2004-07-03 Mark Kettenis <kettenis@gnu.org>
214 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
215 <machine/pcb.h> and "bsd-kvm.h".
216 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
217 (m68kbsd_supply_pcb): New function.
218 (_initialize_m68kbsd_nat): New prototype and function.
219 * Makefile.in (m68kbsd-nat.o): Update dependencies.
220 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
221 (LOADLIBES): New variable.
222 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
223 (LOADLIBES): New variable.
225 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
227 2004-07-03 Mark Kettenis <kettenis@gnu.org>
229 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
231 (bsd_kvm_cmdlist): New variable.
232 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
233 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
234 command and "kvm proc" command.
235 * Makefile.in (bsd-kvm.o): Update dependencies.
237 2004-07-02 Mark Kettenis <kettenis@gnu.org>
239 * osabi.c: Update copyright year.
240 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
241 notes if EI_OSABI is set to ELFOSABI_HPUX.
243 2004-07-01 Michael Snyder <msnyder@redhat.com>
245 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
246 that seems to have gotten whacked out of line.
248 2004-07-01 Mark Kettenis <kettenis@gnu.org>
250 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
253 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
255 * ada-lang.c (decode_packed_array): Minor change to comment.
256 (ada_value_slice_ptr): New function.
257 (ada_value_slice): New function.
258 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
259 test. Don't know why it is there.
260 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
261 to avoid dereferencing huge arrays from which one is slicing.
262 (empty_array): Correct to return an array rather than
264 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
265 on empty arrays (let'em use 'FIRST instead).
267 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
269 Address complaints from gdb_ari.sh:
271 * ada-exp.y: Include gdb_string.h rather than string.h.
272 (convert_char_literal): Reformat declaration.
273 * ada-lang.h: Include opaque struct declaration for struct frame_info.
274 * ada-lex.l: Change use of free to xfree (the macro would do so
275 anyway, but this is harmless).
276 Include gdb_string.h rather than string.h.
277 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
279 * ada-lang.c (parse): Remove K&Rism in parameter list.
280 (is_name_suffix): Correct Linux => GNU/Linux in comment.
282 2004-06-30 Mark Kettenis <kettenis@gnu.org>
284 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
287 2004-06-30 Mark Kettenis <kettenis@gnu.org>
289 * alphabsd-nat.c: Update copyright year.
290 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
292 2004-06-29 Joel Brobecker <brobecker@gnat.com>
294 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
295 (i386_cygwin_in_solib_call_trampoline): New function.
296 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
297 and skip_trampoline_code gdbarch methods.
299 2004-06-29 Jim Blandy <jimb@redhat.com>
301 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
302 name actually used in the dependency lists.
304 2004-06-29 Randolph Chung <tausq@debian.org>
306 * NEWS (New native configurations): Mention GNU/Linux/hppa.
308 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
310 * win32-nat.c (child_pid_to_exec_file): New function.
311 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
314 2004-06-28 Andrew Cagney <cagney@gnu.org>
316 * defs.h (xstrvprintf): Declare.
317 * utils.c (xstrvprintf): New function.
318 (internal_vproblem, xstrprintf, xasprintf)
319 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
320 * serial.c (serial_printf): Ditto.
321 * complaints.c (vcomplaint): Ditto.
323 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
325 * infcmd.c (attach_command): Move call to target_terminal_inferior
326 behind loading symbol table.
328 2004-06-28 Andrew Cagney <cagney@gnu.org>
330 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
331 change - add back extern deprecated_ui_loop_hook declaration.
333 2004-06-28 Andrew Cagney <cagney@gnu.org>
335 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
337 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
338 (c_value_of_variable): Ditto.
339 * utils.c (internal_vproblem): Ditto.
340 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
341 * remote.c (add_packet_config_cmd): Ditto.
342 * remote-rdp.c (rdp_set_command_line): Ditto.
343 * regcache.c (regcache_dump): Ditto.
344 * frv-tdep.c (new_variant, new_variant): Ditto.
345 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
346 (fbsd_find_memory_regions): Ditto.
347 * breakpoint.c (create_thread_event_breakpoint)
348 (create_breakpoints): Ditto.
349 * aix-thread.c (aix_thread_pid_to_str): Ditto.
350 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
352 2004-06-28 Joel Brobecker <brobecker@gnat.com>
354 * ada-lang.c: Re-indent file, with some massaging to help indent
355 a bit when the result is otherwise really too ugly.
357 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
359 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
360 code_addr_p and special_addr_p to 'unsigned int'.
362 2004-06-27 Mark Kettenis <kettenis@gnu.org>
364 * i386v4-nat.c: Update copyright year and tweak comment.
365 (regmap): Remove trailing comma.
366 (supply_gregset): Rename local variable i to regnum. Call
367 regcache_raw_supply instead of supply_register.
368 (fill_gregset): Rename argument regno to regnum. Call
369 regcache_raw_collect instead of regcache_collect.
371 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
373 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
375 (frame_id_build, frame_id_build_special): Update comments.
376 (frame_id_build_wild): New prototype.
377 * frame.c (frame_id_build, frame_id_build_special): Fill in new
378 struct frame_id fields.
379 (frame_id_build_wild): New function.
380 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
382 2004-06-27 Mark Kettenis <kettenis@gnu.org>
384 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
387 2004-06-27 Joel Brobecker <brobecker@gnat.com>
389 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
391 2004-06-27 Joel Brobecker <brobecker@gnat.com>
393 * ada-lang.c: Re-indent file.
395 2004-06-27 Joel Brobecker <brobecker@gnat.com>
397 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
398 (no_symtab_msg): Likewise.
400 2004-06-27 Andreas Schwab <schwab@suse.de>
402 * source.c: Fix whitespace.
404 2004-06-27 Mark Kettenis <kettenis@gnu.org>
406 * configure.in: Include <sys/param.h> for td_pcb test.
407 * configure: Regenerated.
409 * i386nbsd-nat.c: New file.
410 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
411 i386obsd-nat.c and i386obsd-tdep.c.
412 (i386nbsd-nat.o): New dependency.
413 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
415 (LOADLIBES): New variable.
416 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
418 (LOADLIBES): New variable.
420 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
421 (LOADLIBES): New variable.
423 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
424 fetching from BSD_KVM_PADDR. Correctly lookup address for
427 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
429 (amd64fbsd_supply_pcb): New funcion.
430 (_initialize_amd64fbsd_nat): Enable libkvm interface.
432 2004-06-27 <david@streamline-computing.com>
434 Partial fix for PR cli/1056.
435 * valarith.c: Check for zero in division and remainder
438 2004-06-27 Mark Kettenis <kettenis@gnu.org>
440 * i387-tdep.c: Remove excessive whitespace.
442 2004-06-26 Andrew Cagney <cagney@gnu.org>
444 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
445 * gdb-events.h, gdb-events.c: Re-generate.
446 * tui/tui-hooks.c (tui_install_hooks): Update.
447 (tui_remove_hooks): Update.
448 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
450 2004-06-26 Mark Kettenis <kettenis@gnu.org>
452 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
453 (gregset_t, fpregset_t): Remove typedefs.
454 (REG_OFFSET): Rename argument.
455 (amd64bsd_r_reg_offset): Rename from reg_offset.
456 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
458 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
460 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
462 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
464 * vax-tdep.c: Tweak comment.
466 Add OpenBSD/hppa support.
467 * NEWS (New native configurations): Mention OpenBSD/hppa.
468 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
469 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
471 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
472 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
473 * configure.host: Add hppa*-*-openbsd*.
474 * configure.tgt: Add hppa*-*-openbsd*.
476 2004-06-25 Andrew Cagney <cagney@gnu.org>
478 * defs.h (deprecated_ui_loop_hook): Deprecated.
479 * wince.c (child_wait): Update.
480 * win32-nat.c (child_wait): Update.
481 * v850ice.c (v850ice_wait): Update.
482 * top.c (deprecated_ui_loop_hook): Update.
484 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
485 (do_unix_readchar): Update.
486 * ser-tcp.c (net_open): Update.
487 * remote-sim.c (gdb_os_poll_quit): Update.
488 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
490 2004-06-24 Andrew Cagney <cagney@gnu.org>
492 * defs.h (deprecated_pre_add_symbol_hook)
493 (deprecated_post_add_symbol_hook): Deprecated.
494 * symfile.c (symbol_file_add_with_addrs_or_offsets)
495 (symbol_file_add_with_addrs_or_offsets): Update references.
497 2004-06-24 Andrew Cagney <cagney@gnu.org>
499 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
500 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
501 * wince.c (ui_loop_hook): Delete extern declaration.
502 * win32-nat.c (ui_loop_hook): Delete extern declaration..
503 * v850ice.c (ui_loop_hook): Delete extern declaration..
504 * ser-unix.c (ui_loop_hook): Delete extern declaration..
505 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
506 * remote-sim.c (ui_loop_hook): Delete extern declaration..
507 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
508 ui_loop_hook declaration.
510 2004-06-24 Andrew Cagney <cagney@gnu.org>
512 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
513 entry_func_highpc fields.
514 * objfiles.c (init_entry_point_info): Do not clear
515 entry_func_lowpc and entry_func_highpc.
516 (objfile_relocate): Do not relocate entry_func_lowpc and
518 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
520 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
522 * blockframe.c (legacy_frame_chain_valid): Replace tests against
523 entry_func_lowpc and entry_func_highpc with call to
526 2004-06-24 Mark Kettenis <kettenis@gnu.org>
528 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
529 quad-precision floating point arguments in registers.
531 2004-06-24 Mark Kettenis <kettenis@gnu.org>
533 From Michael Mueller <m.mueller99@kay-mueller.de>:
534 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
537 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
539 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
541 * breakpoint.c (bpstat_stop_status): Move check for ignoring
542 untriggered watchpoints to a separate if clause. Update function
543 comment regarding STOPPED_BY_WATCHPOINT argument.
545 2004-06-22 Jim Blandy <jimb@redhat.com>
547 * gdbarch.sh: Doc fix.
549 2004-06-21 Martin Hunt <hunt@redhat.com>
550 Kevin Buettner <kevinb@redhat.com>
552 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
553 * mips-tdep.h (MIPS_SP_REGNUM): Define.
554 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
555 to set_gdbarch_sp_regnum(). Use cooked register number.
556 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
558 2004-06-21 Andrew Cagney <cagney@gnu.org>
560 * gdbarch.sh: When the macro field is empty, do not generate a
561 macro definition. When the macro field is "=", generate the macro
562 name from the upper-case function name.
563 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
564 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
565 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
566 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
567 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
568 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
569 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
570 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
571 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
572 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
573 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
574 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
575 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
576 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
577 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
578 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
579 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
580 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
581 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
582 (DEPRECATED_USE_STRUCT_CONVENTION)
583 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
584 (DEPRECATED_FRAME_INIT_SAVED_REGS)
585 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
586 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
587 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
588 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
589 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
590 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
591 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
592 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
593 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
594 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
595 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
596 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
597 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
598 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
599 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
600 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
602 2004-06-21 Andrew Cagney <cagney@gnu.org>
604 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
605 macro name, and the function rather than macro value. Only wrap
606 macro print statements in #ifdef. Move format logic to where it
608 * gdbarch.c: Re-generate.
610 * gdbarch.sh (read): Delete "print_p" and "description", add
611 "garbage_at_eol". Check for non-empty garbage at end-of-line.
612 Delete references to print_p.
613 (TARGET_ARCHITECTURE): Delete print predicate.
614 * gdbarch.c: Re-generate.
616 * gdbarch.sh: Check that multi-arch methods do not provide a
618 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
619 (print_registers_info, print_float_info, print_vector_info)
620 (adjust_breakpoint_address, remote_translate_xfer_address)
621 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
622 (address_class_type_flags_to_name, unwind_sp): Remove the macro
623 name from the multi-arch definition.
625 2004-06-20 Andrew Cagney <cagney@gnu.org>
627 * gdbarch.sh: Sort by the function, instead of macro name.
628 * gdbarch.c: Re-generate.
630 2004-06-20 Andrew Cagney <cagney@gnu.org>
632 * gdbarch.sh: Use the function, instead of macro name in
633 errors and the log file.
634 (return_value): Remove stray ":" in spec.
636 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
637 * gdbarch.h, gdbarch.c: Re-generate.
638 * Makefile.in (arch-utils.o): Update dependencies.
639 * values.c (using_struct_return): Move code calling
640 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
641 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
642 to legacy_return_value, simplify.
643 * infcmd.c (print_return_value): Move code calling
644 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
645 to legacy_return_value, simplify.
646 * infcall.c (call_function_by_hand): Move code calling
647 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
648 * arch-utils.c: Update copyright. Include "gdbcore.h".
649 (legacy_return_value): New function.
650 * arch-utils.h: Update copyright.
651 (legacy_return_value): Declare.
653 2004-06-20 Andrew Cagney <cagney@gnu.org>
655 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
656 * gdbarch.h, gdbarch.c: Re-generate.
657 * values.c (using_struct_return): Update call.
658 * mcore-tdep.c: Update comment.
659 * infcall.c (call_function_by_hand): Update comment.
660 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
661 * arch-utils.h (always_use_struct_convention): Update.
662 * v850-tdep.c (v850_gdbarch_init): Update.
663 * sh64-tdep.c (sh64_gdbarch_init): Update.
664 * sh-tdep.c (sh_gdbarch_init): Update.
665 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
666 * mips-tdep.c (mips_gdbarch_init): Update.
667 * mcore-tdep.c (mcore_gdbarch_init): Update.
668 * m32r-tdep.c (m32r_gdbarch_init): Update.
669 * ia64-tdep.c (ia64_gdbarch_init): Update.
670 * h8300-tdep.c (h8300_gdbarch_init): Update.
671 * frv-tdep.c (frv_gdbarch_init): Update.
672 * cris-tdep.c (cris_gdbarch_init): Update.
673 * arm-tdep.c (arm_gdbarch_init): Update.
674 * alpha-tdep.c (alpha_gdbarch_init): Update.
676 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
678 * PROBLEMS: Add more specific information, and a work-around,
681 2004-06-18 Andrew Cagney <cagney@gnu.org>
683 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
684 * gdbarch.h, gdbarch.c: Re-generate.
685 * ada-lang.c (ada_finish_decode_line_1): Update.
686 * infrun.c (handle_inferior_event): Update.
687 * infcall.c (find_function_addr): Update.
688 * linespec.c (minsym_found): Update.
689 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
691 * blockframe.c (legacy_frameless_look_for_prologue): Update.
692 * cli/cli-cmds.c (disassemble_command): Update.
693 * vax-tdep.c (vax_gdbarch_init): Update.
695 2004-06-18 Mark Kettenis <kettenis@gnu.org>
697 * i386-tdep.c (i386_collect_fpregset): Fix comment.
699 2004-06-17 Andrew Cagney <cagney@gnu.org>
701 GDB 6.1.1 released from the GDB 6.1 branch.
702 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
705 2004-06-16 Daniel Jacobowitz <dan@debian.org>
708 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
709 operation as a uleb128. Found by Michael Coulter.
711 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
713 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
715 * ada-lang.h (task_control_block): declaration moved from ada-task.c
716 to ada-lang.h; this is needed to be able to implement the kill command
721 (ada_build_task_list): Ditto.
723 * ada-lang.c: Conditionalize routines and data structures related
724 to breakpoints, exceptions, completion, and symbol caching on
725 GNAT_GDB, since these are not yet used in the submitted public sources.
726 (ada_main_name): Editorial: Move definition out of exception-related
729 2004-06-15 Andrew Cagney <cagney@gnu.org>
731 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
732 deprecated_pc_in_call_dummy.
734 2004-06-15 Alan Modra <amodra@bigpond.net.au>
736 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
737 bfd_get_section_size_before_reloc or _raw_size.
738 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
739 * dwarf2read.c (dwarf2_locate_sections): Likewise.
740 (dwarf2_read_section): Likewise.
741 * elfread.c (elf_locate_sections): Likewise.
742 * gcore.c (derive_heap_segment): Likewise.
743 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
744 * remote-e7000.c (e7000_load): Likewise.
745 * remote-m32r-sdi.c (m32r_load): Likewise.
746 * remote-mips.c (mips_load_srec): Likewise.
747 (pmon_load_fast): Likewise.
748 * remote.c (compare_sections_command): Likewise.
749 * symfile.c (add_section_size_callback): Likewise.
750 (load_section_callback): Likewise.
751 (pc_in_unmapped_range): Likewise.
752 (pc_in_mapped_range): Likewise.
753 (sections_overlap): Likewise.
754 (list_overlays_command): Likewise.
755 (simple_overlay_update_1): Likewise.
756 (simple_overlay_update): Likewise.
757 * tracepoint.c (remote_set_transparent_ranges): Likewise.
758 * win32-nat.c (core_section_load_dll_symbols): Likewise.
760 2004-06-14 Randolph Chung <tausq@debian.org>
762 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
763 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
765 (hppa_hpux_inferior_created): New function.
766 (hppa_hpux_init_abi): Register observer.
767 * symfile.c (hp_cxx_exception_support_initialized)
768 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
769 (symbol_file_add_main_1, symbol_file_clear): Likewise.
771 2004-06-14 Randolph Chung <tausq@debian.org>
773 * MAINTAINERS (Write After Approval): Alphabetize my entry
776 2004-06-14 Andrew Cagney <cagney@gnu.org>
778 * MAINTAINERS (testsuite): List Michael Chastain as the lead
779 testsuite maintainer.
781 2004-06-13 Andrew Cagney <cagney@gnu.org>
783 * infcmd.c (print_return_value): Fix logic, allow
784 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
786 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
788 * gdbarch.h: Re-generate.
790 * gdbarch.sh: Delete "level" attribute. Only check for a macro
791 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
792 * gdbarch.h: Re-generate.
794 * values.c (generic_use_struct_convention): Don't check gcc_p.
796 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
797 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
798 * gdbarch.h, gdbarch.c: Regenerate.
799 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
800 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
801 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
802 deprecated_max_register_raw_size and
803 deprecated_max_register_virtual_size.
804 * v850-tdep.c (v850_gdbarch_init): Ditto.
805 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
806 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
807 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
808 * cris-tdep.c (cris_gdbarch_init): Ditto.
810 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
811 * gdbarch.h, gdbarch.c: Re-generate.
812 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
813 (m68hc11_use_struct_convention): Delete function.
814 (m68hc11_extract_struct_value_address): Delete function.
815 (m68hc11_return_value): New function.
816 (m68hc11_gdbarch_init): Instead of store_return_value,
817 extract_return_value, return_value_on_stack,
818 deprecated_extract_struct_value_address and use_struct_convention,
820 * values.c (using_struct_return): Do not call
821 RETURN_VALUE_ON_STACK.
822 * arch-utils.h (generic_return_value_on_stack_not): Delete
824 * arch-utils.c (generic_return_value_on_stack_not): Delete
827 2004-06-12 Andrew Cagney <cagney@gnu.org>
829 * values.c (register_value_being_returned): Delete function.
830 * infcmd.c (legacy_return_value): Delete function.
831 * infcall.c (call_function_by_hand): Inline
832 "register_value_being_returned", simplify.
833 * values.c (using_struct_return): Update comment, refer to
834 print_return_value instead of register_value_being_returned.
835 * infcmd.c (print_return_value): Inline calls to
836 register_value_being_returned and legacy_return_value. Simplify.
838 2004-06-11 Randolph Chung <tausq@debian.org>
840 * somread.c (som_symtab_read): Exclude gcc local symbols.
842 2004-06-11 Randolph Chung <tausq@debian.org>
844 * infrun.c (handle_inferior_event): Handle the case when a
845 trampoline ends up in the runtime resolver, and if the trampoline
846 has no name. Rearrange the code so that all the trampoline
847 processing happens before other step-out-of-range handling.
849 2004-06-11 Martin Hunt <hunt@redhat.com>
851 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
854 2004-06-10 Andrew Cagney <cagney@gnu.org>
856 * blockframe.c (legacy_inside_entry_func): Delete.
857 (legacy_frame_chain_valid): Inline call to
858 legacy_inside_entry_func, simplify.
860 2004-06-10 Bob Rossi <bob@brasko.net>
862 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
863 * dwarf2read.c (partial_die_info): Add dirname field.
864 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
865 (read_partial_die): Save away DW_AT_comp_dir.
866 * defs.h (symtab_to_filename): Removed.
867 * source.c (find_and_open_source): Added.
868 (open_source_file): Just calls find_and_open_source.
869 (symtab_to_filename): Removed.
870 (symtab_to_fullname, psymtab_to_fullname): Added.
871 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
872 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
874 * symtab.h (partial_symtab): Add dirname field.
875 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
876 (mi_cmd_file_list_exec_source_file): Call new function
877 symtab_to_fullname to find fullname.
878 (mi_cmd_file_list_exec_source_files): Added.
879 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
880 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
882 2004-06-10 Andrew Cagney <cagney@gnu.org>
884 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
885 to generic_use_struct_convention, the default value.
887 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
890 * ns32k-tdep.c (ns32k_push_arguments): New function.
891 (ns32k_gdbarch_init): Set deprecated_push_arguments.
892 * infcall.c (call_function_by_hand): Call error instead of
893 legacy_push_arguments.
894 * value.h (legacy_push_arguments): Delete declaration.
895 * valops.c (legacy_push_arguments): Delete function.
896 (value_push): Delete function.
898 2004-06-10 Brian Ford <ford@vss.fsi.com>
900 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
901 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
903 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
905 2004-06-10 Andrew Cagney <cagney@gnu.org>
907 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
908 * gdbarch.h, gdbarch.c: Re-generate.
909 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
911 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
912 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
913 deprecated_pc_in_call_dummy instead of
914 DEPRECATED_PC_IN_CALL_DUMMY.
915 (arm_skip_prologue): Ditto.
916 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
917 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
918 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
919 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
921 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
922 (sh64_init_extra_frame_info, sh64_get_saved_register)
923 (sh64_pop_frame): Ditto.
924 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
925 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
926 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
927 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
928 (h8300_pop_frame): Ditto.
929 * blockframe.c (legacy_inside_entry_func)
930 (legacy_frame_chain_valid): Ditto.
931 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
932 to deprecated_pc_in_call_dummy.
934 2004-06-09 Andrew Cagney <cagney@gnu.org>
936 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
937 provide a default value.
938 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
939 * gdbarch.h, gdbarch.c: Re-generate.
940 * arch-utils.c (generic_convert_register_p): Rename
941 legacy_convert_register_p
942 (legacy_register_to_value, legacy_value_to_register): Delete
944 * arch-utils.h (generic_convert_register_p): Rename
945 legacy_convert_register_p.
946 (legacy_register_to_value, legacy_value_to_register): Delete
949 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
950 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
951 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
952 * gdbarch.h, gdbarch.c: Re-generate.
953 * infcmd.c (default_print_registers_info): Simplify.
954 * findvar.c (value_of_register): Simplify.
955 * mi/mi-main.c (get_register): Simplify.
956 * arch-utils.c (legacy_convert_register_p): Always return 0.
957 (legacy_register_to_value, legacy_value_to_register): Always call
960 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
961 #ifdef CLEAR_INSN_CACHE code.
962 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
963 Delete #ifdef CLEAR_DEFERRED_STORES code.
965 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
967 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
969 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
971 * config/mips/mipsv4.mh: Delete file.
973 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
975 (hpread_adjust_stack_address): Delete declaration.
977 2004-06-08 Andrew Cagney <cagney@gnu.org>
979 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
980 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
981 PTRACE_ATTACH / PTRACE_DETACH available call error.
982 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
983 * infttrace.c (update_thread_state_after_attach, attach, detach):
984 Remove #ifdef wrappers.
985 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
986 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
987 * config/nm-bsd.h (ATTACH_DETACH): Delete.
988 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
989 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
990 * config/nm-linux.h (ATTACH_DETACH): Delete.
991 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
992 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
993 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
994 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
995 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
997 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
999 * configure.in: Set $configdir to the right OS specific value.
1000 Use value when setting $tcldir and $tkdir.
1001 * configure: Regenerate.
1003 2004-06-06 Paul Brook <paul@codesourcery.com>
1005 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
1008 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
1010 * ada-lang.c (lookup_symbol_in_language): New function to allow
1011 re-use of another language's symbol lookup code. (Placed here
1012 temporarily while Ada support is being integrated into the public
1014 (restore_language): New auxiliary function for
1015 lookup_symbol_in_language.
1016 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
1017 temporarily while Ada support is being integrated into the public
1020 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
1022 * Makefile.in (check//%): New.
1024 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
1025 (mn10300_store_return_value): Rewrite.
1026 (mn10300_type_align): New.
1027 (mn10300_use_struct_convention): Rewrite.
1028 (mn10300_return_value): New, using all of the above.
1029 (mn10300_pop_frame_regular): Add saved_regs_size.
1030 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
1032 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
1033 regs if PC is on movm.
1035 2004-06-07 Jim Blandy <jimb@redhat.com>
1037 Add native Linux support for the PowerPC E500.
1038 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
1039 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
1040 all architectures except the E500.
1041 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
1043 (struct gdb_evrregset_t): New type.
1044 (have_ptrace_getsetevrregs): New variable.
1045 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
1046 fetch_spe_registers): New functions.
1047 (fetch_register): Call fetch_spe_register as appropriate.
1048 Assert that we're only passed raw register numbers.
1049 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
1050 Don't fetch gprs if they're pseudoregisters.
1051 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
1052 store_spe_registers): New functions.
1053 (store_register): Call store_spe_register as appropriate.
1054 Assert that we're only passed raw register numbers.
1055 (store_ppc_registers): Call store_spe_registers as appropriate.
1056 Don't store gprs if they're pseudoregisters.
1058 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
1060 * thread-db.c (thread_get_info_callback): Fill in the thread_info
1061 struct if one exists, even if we are dealing with a zombie thread.
1063 2004-06-07 Andrew Cagney <cagney@gnu.org>
1065 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
1066 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
1067 Rename PC_REQUIRES_RUN_BEFORE_USE.
1068 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
1071 2004-06-07 Randolph Chung <tausq@debian.org>
1073 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
1074 unwinding after sp has been saved to the stack but before the end
1075 of the prologue, and after the fp has been modified but before it has
1076 been saved to the stack.
1077 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
1078 Remove superfluous definitions.
1079 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
1081 2004-06-07 Guy Martin <gmsoft@gentoo.org>
1083 Committed by Randolph Chung.
1084 * hppa-linux-nat.c: Include the correct version of the header file
1085 depending on the kernel version.
1087 2004-06-06 Randolph Chung <tausq@debian.org>
1089 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
1090 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
1092 2004-06-06 Randolph Chung <tausq@debian.org>
1094 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
1095 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
1096 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
1097 * hppa-tdep.c (hppa_symbol_address): New function definition.
1098 * hppa-tdep.h (hppa_symbol_address): New function declaration.
1100 2004-06-06 Randolph Chung <tausq@debian.org>
1102 * hppa-tdep.h (struct value): Forward declaration.
1103 (gdbarch_tdep): Define tdep find_global_pointer method.
1104 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
1105 associated with the function we are trying to call, and write it
1107 (hppa32_convert_from_funct_ptr_addr): New function.
1108 (hppa_find_global_pointer): New function.
1109 (hppa_gdbarch_init): Set default find_global_pointer method; set
1110 convert_from_func_ptr_addr method.
1111 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
1112 (hppa_linux_init_abi): Set find_global_pointer method.
1113 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
1115 2004-06-06 Randolph Chung <tausq@debian.org>
1117 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
1118 to struct value *function.
1119 * gdbarch.c: Regenerate.
1120 * gdbarch.h: Likewise.
1121 * infcall.c (call_function_by_hand): Pass entire function value
1124 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
1125 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
1126 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
1127 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
1128 * arm-tdep.c (arm_push_dummy_call): Likewise.
1129 * avr-tdep.c (avr_push_dummy_call): Likewise.
1130 * cris-tdep.c (cris_push_dummy_call): Likewise.
1131 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
1132 * frv-tdep.c (frv_push_dummy_call): Likewise.
1133 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1134 * hppa-tdep.c (hppa32_push_dummy_call)
1135 (hppa64_push_dummy_call): Likewise.
1136 * i386-tdep.c (i386_push_dummy_call): Likewise.
1137 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
1138 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
1139 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1140 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
1141 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
1142 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
1143 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
1144 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
1145 (ppc64_sysv_abi_push_dummy_call): Likewise.
1146 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
1147 (ppc64_sysv_abi_push_dummy_call): Likewise.
1148 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
1149 * s390-tdep.c (s390_push_dummy_call): Likewise.
1150 * sh-tdep.c (sh_push_dummy_call_fpu)
1151 (sh_push_dummy_call_nofpu): Likewise.
1152 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
1153 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
1154 * vax-tdep.c (vax_push_dummy_call): Likewise.
1156 2004-06-04 Jim Blandy <jimb@redhat.com>
1158 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
1159 gdbarch argument to register_size.
1161 * rs6000-tdep.c (rs6000_store_return_value): Use
1162 regcache_cooked_write_part instead of
1163 deprecated_write_register_bytes.
1164 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
1165 not gdbarch_deprecated_store_return_value.
1167 * ppc-linux-nat.c (store_register, fetch_register): Remove
1168 incorrect assertions. Simplify and generalize handling of
1169 transfers whose sizes are not multiples of, or less than, sizeof
1172 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
1174 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
1175 as a new thread event.
1176 * thread-db.c (thread_get_info_callback): If the thread is a
1177 zombie, return TD_THR_ZOMBIE.
1178 (thread_from_lwp): If thread_get_info_callback returns
1179 TD_THR_ZOMBIE, check if the thread is still on the thread list
1180 and return a -1 ptid if not found.
1181 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
1182 change the status to TARGET_WAITKIND_SPURIOUS.
1184 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
1186 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
1187 double values in little endian mode.
1189 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
1191 Committed by Andrew Cagney.
1192 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
1193 after last enum constant to avoid error from IBM C
1196 2004-06-02 Jim Blandy <jimb@redhat.com>
1198 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
1199 to 'message', and make it local to the lone block that uses it.
1201 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
1203 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
1205 * ada-exp.y: Synchronize with current ACT sources.
1206 * ada-lang.c: Ditto.
1207 * ada-lang.h: Ditto.
1209 * ada-tasks.c: Ditto.
1210 * ada-typeprint.c: Ditto.
1211 * ada-valprint.c: Ditto.
1213 2004-06-01 Jim Blandy <jimb@redhat.com>
1215 * ppc-tdep.h: Delete unused 'regoff' member.
1216 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
1218 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
1221 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
1222 (hpread_read_struct_type): Likewise.
1224 2004-06-01 Andrew Cagney <cagney@gnu.org>
1226 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
1227 instead of xasprintf.
1228 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
1229 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
1230 (mi_cmd_data_list_register_names)
1231 (mi_cmd_data_list_changed_registers)
1232 (mi_cmd_data_list_register_values)
1233 (get_register, mi_cmd_data_write_register_values)
1234 (mi_cmd_data_write_register_values)
1235 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
1236 (mi_cmd_target_download, mi_cmd_target_select)
1237 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
1238 (mi_execute_cli_command, mi_execute_async_cli_command)
1239 (mi_execute_async_cli_command): Ditto.
1240 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
1241 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
1243 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
1244 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
1245 error_last_message instead of mi_error_last_message.
1246 * mi/mi-main.c (mi_error_last_message): Delete function.
1248 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
1249 "invalid number of columns" error. Delete redundant "out of
1252 2004-05-31 Mark Kettenis <kettenis@gnu.org>
1254 * i386bsd-nat.c: Don't include <sys/procfs.h>.
1255 (gregset_t, fpregset_t): Remove typedefs.
1256 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
1257 (REG_OFFSET): Rename argument.
1258 (i386bsd_r_reg_offset): Rename from reg_offset.
1259 (REG_ADDR): Remove macro.
1260 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
1262 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
1263 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
1264 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
1265 instead of supply_gregset.
1266 (store_inferior_registers): Use `struct reg' and `struct fpreg'
1267 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
1268 instead of fill_gregset.
1269 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
1271 * i386bsd-nat.c: Don't include "gregset.h".
1272 (supply_gregset, fill_gregset): Make static.
1273 (supply_fpregset, fill_fpregset): Remove.
1274 * Makefile.in (i386bsd-nat.o): Update dependencies.
1276 2004-05-30 Mark Kettenis <kettenis@gnu.org>
1278 * fbsd-proc.c: Include "regcache.h", "regset.h" and
1279 "gdb_assert.h". Con't include "gregset.h".
1280 (fbsd_make_corefile_notes): Use regset-based core file support
1281 instead off fill_gregset and fill_fpregset.
1282 * Makefile.in (fbsd-proc.o): Update dependencies.
1284 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
1286 (m88k_frame_prev_register): Simplify code a bit.
1288 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
1289 (amd64_collect_fpregset): New function.
1290 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
1292 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
1294 * i386-tdep.c (i386_supply_gregset): Adjust comment.
1295 (i386_collect_gregset): New function.
1296 (i386_supply_fpregset): Adjust comment.
1297 (i386_collect_fpregset): New function.
1298 (i386_regset_from_core_section): Use i386_collect_gregset and
1299 i386_collect_fpregset.
1301 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
1302 handle VALUEP being null.
1304 * regset.h (collect_regset_ftype): Unconstify fourth argument.
1306 2004-05-29 Mark Kettenis <kettenis@gnu.org>
1308 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
1310 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
1311 assembler in OpenBSD 3.5-current.
1312 (amd64obsd_sigcontext_addr): Likewise.
1314 2004-05-28 Jim Blandy <jimb@redhat.com>
1316 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
1317 register set, so our regcache isn't declared "legacy" and our E500
1318 pseudoregister read and write functions aren't ignored.
1319 (rs6000_register_byte, rs6000_register_raw_size,
1320 rs6000_register_virtual_type, rs6000_register_convertible,
1321 rs6000_register_convert_to_virtual,
1322 rs6000_register_convert_to_raw): Deleted.
1323 (rs6000_register_type, rs6000_convert_register_p,
1324 rs6000_register_to_value, rs6000_value_to_register): New
1326 (rs6000_gdbarch_init): Don't register
1327 gdbarch_deprecated_register_size,
1328 gdbarch_deprecated_register_bytes,
1329 gdbarch_deprecated_register_byte,
1330 gdbarch_deprecated_register_raw_size,
1331 gdbarch_deprecated_register_virtual_type,
1332 gdbarch_deprecated_register_convertible,
1333 gdbarch_deprecated_register_convert_to_virtual, or
1334 gdbarch_deprecated_register_convert_to_raw methods. Instead,
1335 register gdbarch_register_type, gdbarch_convert_register_p,
1336 gdbarch_register_to_value, and gdbarch_value_to_register methods.
1338 2004-05-26 Jim Blandy <jimb@redhat.com>
1340 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
1341 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
1342 functions, updated to match the register numberings used in GCC.
1343 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
1344 rs6000_dwarf2_reg_to_regnum as register number conversions
1345 functions for STABS and Dwarf2.
1347 2004-05-26 Randolph Chung <tausq@debian.org>
1349 * infttrace.h (target_waitkind): Forward declare type instead of pulling
1352 2004-05-25 Joel Brobecker <brobecker@gnat.com>
1354 * NEWS: Document new "start" command.
1356 2004-05-25 Randolph Chung <tausq@debian.org>
1358 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
1361 2004-05-25 Randolph Chung <tausq@debian.org>
1363 * hppa-hpux-tdep.c (offsetof): Define.
1364 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
1365 (hppa32_hpux_frame_base_before_sigtramp)
1366 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
1367 (hppa64_hpux_frame_saved_pc_in_sigtramp)
1368 (hppa64_hpux_frame_base_before_sigtramp)
1369 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
1371 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
1372 (hppa_hpux_sigtramp_frame_unwind_cache)
1373 (hppa_hpux_sigtramp_frame_this_id)
1374 (hppa_hpux_sigtramp_frame_prev_register)
1375 (hppa_hpux_sigtramp_frame_unwind)
1376 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
1377 (hppa_hpux_init_abi): Register sigtramp unwinder.
1378 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
1380 2004-05-25 Randolph Chung <tausq@debian.org>
1382 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
1383 and multiple stack unwinds.
1384 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
1386 2004-05-25 Andrew Cagney <cagney@gnu.org>
1388 * symfile.h (symbol_file_add_from_memory): Delete declaration.
1389 * symfile-mem.h: Delete file.
1390 * symfile-mem.c: Do not include "symfile-mem.h".
1391 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
1392 "struct bfd_section". When an error do not bother returning NULL.
1393 (add_symbol_file_from_memory_command): Use "struct bfd" and
1394 "struct bfd_section".
1395 * Makefile.in (symfile_mem_h): Delete.
1396 (symfile-mem.o): Update dependencies.
1398 2004-05-25 Nick Roberts <nickrob@gnu.org>
1400 * gdb-mi.el: New file.
1402 2004-05-25 Andrew Cagney <cagney@gnu.org>
1404 * inftarg.c: Include "observer.h".
1405 (child_attach, child_create_inferior): Notify inferior_created.
1406 * corelow.c: Include "observer.h".
1407 (core_open): Notify inferior_created.
1408 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
1410 2004-05-25 Andrew Cagney <cagney@gnu.org>
1412 * target.h (struct target_ops): Add from_tty to
1414 (target_create_inferior, find_default_create_inferior): Update.
1415 * infcmd.c (run_command): Update.
1416 * wince.c (child_create_inferior): Update.
1417 * win32-nat.c (child_create_inferior): Update.
1418 * uw-thread.c (uw_thread_create_inferior): Update.
1419 * thread-db.c (thread_db_create_inferior): Update.
1420 * target.c (debug_to_create_inferior)
1421 (find_default_create_inferior): Update.
1422 (maybe_kill_then_create_inferior): Update.
1423 * sol-thread.c (sol_thread_create_inferior): Update.
1424 * remote.c (extended_remote_async_create_inferior)
1425 (extended_remote_create_inferior): Update.
1426 * remote-vx.c (vx_create_inferior): Update.
1427 * remote-st.c (st2000_create_inferior): Update.
1428 * remote-sim.c (gdbsim_create_inferior): Update.
1429 * remote-sds.c (sds_create_inferior): Update.
1430 * remote-rdp.c (remote_rdp_create_inferior): Update.
1431 * remote-rdi.c (arm_rdi_create_inferior): Update.
1432 * remote-m32r-sdi.c (m32r_create_inferior): Update.
1433 * remote-e7000.c (e7000_create_inferior): Update.
1434 * procfs.c (procfs_create_inferior): Update.
1435 * ocd.c (ocd_create_inferior): Update.
1436 * ocd.h (ocd_create_inferior): Update.
1437 * nto-procfs.c (procfs_create_inferior): Update.
1438 * monitor.c (monitor_create_inferior): Update.
1439 * lin-lwp.c (lin_lwp_create_inferior): Update.
1440 * inftarg.c (child_create_inferior): Update.
1441 * hpux-thread.c (hpux_thread_create_inferior): Update.
1442 * gnu-nat.c (gnu_create_inferior): Update.
1444 2004-05-25 Andrew Cagney <cagney@gnu.com>
1446 * MAINTAINERS: Update e-mail address.
1448 2004-05-24 Randolph Chung <tausq@debian.org>
1450 * thread.c (info_threads_command, thread_apply_all_command)
1451 (thread_apply_command, thread_command, do_captured_thread_select):
1452 Remove HPUXHPPA-specific code.
1454 2004-05-24 Randolph Chung <tausq@debian.org>
1456 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
1458 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
1461 2004-05-24 Joel Brobecker <brobecker@gnat.com>
1463 * infcmd.c (kill_if_already_running): New function, extracted
1465 (run_command): Replace extracted code by call to
1466 kill_if_already_running().
1467 (start_command): New function.
1468 (_initialize_infcmd): Add "start" command.
1470 2004-05-24 Mark Kettenis <kettenis@gnu.org>
1472 Add OpenBSD/m88k support.
1473 * NEWS (New native configurations): Mention OpenBSD/m88k.
1474 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
1475 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
1476 * Makefile.in (m88k_tdep_h): New variable.
1477 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
1478 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
1479 * configure.host: Add m88*-*-openbsd*.
1480 * configure.tgt: Add m88*-*-openbsd*.
1482 2004-05-24 Jim Blandy <jimb@redhat.com>
1484 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
1487 2004-05-24 Kevin Buettner <kevinb@redhat.com>
1489 * symtab.c (fixup_section): Search section table when lookup by
1492 2004-05-24 Randolph Chung <tausq@debian.org>
1494 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
1497 2004-05-24 Mark Kettenis <kettenis@gnu.org>
1499 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
1500 register number in regcache_raw_collect call.
1501 (m68kbsd_collect_fpregset): Likewise.
1502 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
1504 * regset.h (struct regset): Add back `regset' member.
1506 2004-05-23 Mark Kettenis <kettenis@gnu.org>
1508 * configure.in: Check for td_pcb in `struct thread'.
1509 * configure, config.in: Regenerated.
1511 * dpx2-nat.c: Remove file.
1512 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
1513 (dpx2-nat.o): Remove dependencies.
1515 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
1516 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
1517 (amd64obsd_supply_pcb): New function.
1518 (_initialize_amd64obsd_nat): Enable libkvm interface.
1519 * Makefile.in (amd64obsd-nat.o): Update dependencies.
1520 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
1521 (LOADLIBES): New variable.
1523 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
1524 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
1525 (sparc32nbsd_supply_pcb): New function.
1526 (_initialize_sparcnbsd_nat): Enable libkvm interface.
1527 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
1528 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1529 (LOADLIBES): New variable.
1531 2004-05-22 Mark Kettenis <kettenis@gnu.org>
1533 * bsd-kvm.c, bsd-kvm.h: New files.
1534 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1536 (i386fbsd_supply_pcb): New function.
1537 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
1538 (i386fbsd-nat.o): Update dependencies.
1539 (bsd_kvm_h): New variable.
1540 (bsd-kvm.o): New dependency.
1541 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1542 (LOADLIBES): New variable.
1544 * regset.c: Tweak comment.
1545 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
1547 * regset.h: Update copyright year.
1548 (struct regset): Remove `descr' member, add `gdbarch' member.
1549 (regset_alloc): Adjust prototype and comment.
1550 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
1551 (i386_supply_fpregset): Likewise.
1552 (i386_regset_from_core_section): Update call to regset_alloc.
1553 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
1555 (i386obsd_aout_regset_from_core_section): Update call to
1557 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
1559 (i386nbsd_aout_regset_from_core_section): Update call to
1561 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
1563 (amd64_regset_from_core_section): Update call to regset_alloc.
1564 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
1566 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
1567 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
1568 &sparc32nbsd_gregset in sparc32_supply_gregset call.
1569 (sparc32nbsd_init_abi): Update call to regset_alloc.
1570 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
1571 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
1572 (sparc64obsd_init_abi): Update call to regset_alloc.
1573 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
1574 &sparc64nbsd_gregset in sparc64_supply_gregset call.
1575 (sparc64nbsd_init_abi): Update call to regset_alloc.
1576 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
1577 &sparc64fbsd_gregset in sparc64_supply_gregset call.
1578 (sparc64fbsd_init_abi): Update call to regset_alloc.
1580 2004-05-22 Jim Blandy <jimb@redhat.com>
1582 * ppc-tdep.h (spe_register_p): New declaration.
1583 (struct gdbarch_tdep): New members: ppc_acc_regnum and
1585 * rs6000-tdep.c (spe_register_p): New function.
1586 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
1588 (rs6000_gdbarch_init): Initialize the new members of the tdep
1591 2004-05-21 Jim Blandy <jimb@redhat.com>
1593 * ppc-linux-nat.c (fetch_register): Move code back to be next
1594 to the comment that describes it. (Moved code, instead of
1595 comment, for symmetry with store_register.)
1597 Allocate regset structures in the gdbarch's obstack, not using
1599 * regset.c (regset_alloc): Renamed from regset_xmalloc.
1600 Add 'arch' argument. Allocate the regset on arch's obstack, not
1602 * regset.h (regset_alloc): Update declaration.
1603 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
1605 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
1606 * i386-tdep.c (i386_regset_from_core_section): Same.
1607 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
1608 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
1609 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
1610 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
1611 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
1612 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
1614 2004-05-21 Joel Brobecker <brobecker@gnat.com>
1616 * config/djgpp/fnchange.lst: Undo previous change, was useless.
1618 2004-05-21 Jim Blandy <jimb@redhat.com>
1620 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
1621 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
1623 2004-05-20 Jim Blandy <jimb@redhat.com>
1625 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
1627 2004-05-20 Mark Kettenis <kettenis@gnu.org>
1629 * regset.h: Make prototype const-correct.
1630 * regset.c (regset_xmalloc): Make const-correct.
1632 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
1634 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
1635 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
1636 (symbol_search_name): Declare.
1638 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
1639 (iter_name_next_hashed): Ditto.
1640 (iter_name_next_linear): Ditto.
1641 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
1643 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
1644 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
1645 (symbol_search_name): New function.
1647 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
1649 * minsyms.c (build_minimal_symbol_hash_tables): Change
1650 test for adding to demangled hash table to check for difference
1651 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
1653 2004-05-19 Jim Blandy <jimb@redhat.com>
1655 Use a constructor function to create regset structures.
1656 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
1657 (struct regset): Use supply_regset_ftype. Add new
1658 'collect_regset' member.
1659 (regset_xmalloc): New declaration.
1660 * regset.c: New file.
1661 * am64-tdep.c (amd64_regset_from_core_section): Use
1662 regset_xmalloc to construct regset structures.
1663 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
1664 * i386-tdep.c (i386_regset_from_core_section): Same.
1665 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
1666 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
1667 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
1668 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
1669 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
1670 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
1671 * Makefile.in (COMMON_OBS): Add regset.o.
1672 (regset.o): New rule.
1674 2004-05-19 Joel Brobecker <brobecker@gnat.com>
1676 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
1677 and pthread_cond_wait.c.
1679 2004-05-18 Jim Blandy <jimb@redhat.com>
1681 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
1682 before the mach-specific switch, and then let the individual cases
1683 override the defaults, rather than leaving them uninitialized
1684 until the switch and then setting them in each case.
1686 2004-05-18 Randolph Chung <tausq@debian.org>
1688 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
1689 millicode functions.
1691 2004-05-18 Randolph Chung <tausq@debian.org>
1693 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
1694 references to dld_flags_buffer consistent.
1696 2004-05-18 Randolph Chung <tausq@debian.org>
1698 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
1699 it for unwinding the stack.
1701 2004-05-18 Randolph Chung <tausq@debian.org>
1703 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
1704 Undefine these so we can overide them using gdbarch.
1706 2004-05-18 Randolph Chung <tausq@debian.org>
1708 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
1709 handling for 64-bit HPUX (elf).
1711 2004-05-18 Daniel Jacobowitz <dan@debian.org>
1713 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
1715 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1716 * ia64-tdep.c (examine_prologue): Likewise.
1717 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
1718 * v850-tdep.c (v850_fix_call_dummy): Likewise.
1720 2004-05-18 Mark Kettenis <kettenis@gnu.org>
1722 * vax-tdep.c (vax_return_value): Implement
1723 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1725 2004-05-17 Mark Kettenis <kettenis@gnu.org>
1727 * vax-tdep.c (vax_return_value): Fix typo.
1729 2004-05-17 Andrew Cagney <cagney@redhat.com>
1731 * MAINTAINERS: Mark Salter was also responsible for
1734 * NEWS: Mention signal fixes.
1736 2004-05-17 Randolph Chung <tausq@debian.org>
1738 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
1739 check to see if we are unwinding an export stub. Export stubs clobber
1740 the %rp in the call path and stores the original rp in a stack slot.
1742 2004-05-17 Jim Blandy <jimb@redhat.com>
1744 * MAINTAINERS: Update address for J.T. Conklin.
1746 2004-05-17 Randolph Chung <tausq@debian.org>
1748 * hppa-tdep.c: Remove superfluous #include's.
1749 * Makefile.in (hppa-tdep.o): Update dependencies.
1751 2004-05-17 Randolph Chung <tausq@debian.org>
1753 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
1754 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
1755 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
1756 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
1757 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
1758 Remove static function declarations.
1760 2004-05-17 Mark Kettenis <kettenis@gnu.org>
1762 * alphabsd-nat.c: Update copyright year.
1763 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
1765 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
1768 * m68k-tdep.c (m68k_svr4_return_value): Implement
1769 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1771 2004-05-16 Mark Kettenis <kettenis@gnu.org>
1773 * sol-thread.c Update copyright year. Fix various coding
1774 standards violations. Tweak a few comments.
1775 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
1778 2004-05-15 Randolph Chung <tausq@debian.org>
1780 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
1781 as pointer instead of array reference since HPUX compiler does
1782 not accept unsized array arguments.
1783 * somsolib.c (dld_flags_buffer): Use constant array size.
1785 2004-05-15 Mark Kettenis <kettenis@gnu.org>
1787 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
1788 offset with decimal offset.
1789 (amd64obsd_sigcontext_addr): Return correct address for entire
1792 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
1793 instead of get_frame_base.
1795 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
1796 (fill_gregset): Use regcache_raw_collect.
1798 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
1801 * config/sparc/tm-nbsd64.h: Remove file.
1802 * config/tm-sunos.h: Remove file.
1804 2004-05-15 Joel Brobecker <brobecker@gnat.com>
1806 * rs6000-tdep.c (store_param_on_stack_p): New function,
1807 an improved version of some code extracted from skip_prologue().
1808 (skip_prologue): Use store_param_on_stack_p() to detect
1809 instructions saving a parameter on the stack. Detect when r0
1810 is used to save a parameter.
1811 Do not mark "li rx, SIMM" instructions as part of the prologue,
1812 unless the following instruction is also part of the prologue.
1814 2004-05-14 Andrew Cagney <cagney@redhat.com>
1816 * infrun.c (handle_inferior_event): Simplify
1817 STEP_OVER_UNDEBUGGABLE.
1819 * infrun.c (handle_step_into_function): Delete function.
1820 (handle_inferior_event): Inline calls to
1821 handle_step_into_function.
1823 2004-05-14 Jerome Guitton <guitton@rome.act-europe.fr>
1825 * rs6000-nat.c: Fix a comment.
1827 2004-05-12 David Anderson <davea@sgi.com>
1829 Committed by Jim Blandy <jimb@redhat.com>:
1830 * regcache.c (struct regcache_descr): fix comment spelling.
1832 2004-05-13 J. Brobecker <brobecker@gnat.com>
1834 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
1835 Fixes a link link failure.
1837 2004-05-13 J. Brobecker <brobecker@gnat.com>
1839 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
1840 error that was causing the build to fail.
1842 2004-05-13 J. Brobecker <brobecker@gnat.com>
1844 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
1845 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
1847 2004-05-13 Andrew Cagney <cagney@redhat.com>
1849 * infrun.c (handle_inferior_event): Check for
1850 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
1851 calls. Update comments.
1853 2004-05-13 Jim Blandy <jimb@redhat.com>
1855 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
1856 (fetch_regs_user_thread, fetch_regs_kernel_thread)
1857 (store_regs_user_thread, store_regs_kernel_thread): Use
1858 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
1859 * ppc-linux-nat.c (fill_gregset): Same.
1860 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1861 (ppc_linux_sigtramp_cache): Same.
1862 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
1863 (ppcnbsd_sigtramp_cache_init): Same.
1864 * rs6000-nat.c (fetch_core_registers): Same.
1865 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
1866 (rs6000_frame_cache): Same.
1868 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
1869 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
1870 of assuming that the gprs are numbered starting with zero.
1871 * ppc-linux-nat.c (fill_gregset): Same.
1872 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
1873 * ppcnbsd-nat.c (getregs_supplies): Same.
1874 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
1875 * rs6000-nat.c (fetch_core_registers): Same.
1876 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
1878 2004-05-07 Michael Snyder <msnyder@redhat.com>
1880 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
1881 LOC_COMPUTED_ARG, and LOC_INDIRECT.
1883 2004-05-13 Andrew Cagney <cagney@redhat.com>
1885 * infrun.c (handle_inferior_event): Use frame_unwind_id.
1887 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
1889 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
1890 base_address for shared libraries.
1892 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
1894 * MAINTAINERS (write after approval): Add myself.
1896 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
1898 * breakpoint.c (bpstat_stop_status): Add new argument
1899 STOPPED_BY_WATCHPOINT. Use it instead of testing
1900 target_stopped_data_address agaist 0 to check whether
1901 or not we stopped due to a hardware watchpoint.
1902 * breakpoint.h (bpstat_stop_status): Adapt prototype.
1903 * infrun.c (handle_inferior_event): Call bpstat_stop_status
1906 2004-05-12 Jim Blandy <jimb@redhat.com>
1908 * configure.in: When checking whether we should use the -bbigtoc
1909 option, don't forget to restore the original value of LDFLAGS.
1910 * configure: Regenerated.
1912 2004-05-12 Andrew Cagney <cagney@redhat.com>
1914 * thread.c (load_infrun_state): Delete step_sp.
1915 * infrun.c (context_switch): Ditto.
1916 * inferior.h (step_sp): Ditto.
1917 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
1918 * gdbthread.h (struct thread_info, save_infrun_state)
1919 (restore_infrun_state): Ditto.
1921 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
1923 * MAINTAINERS (write after approval): Add myself.
1925 2004-05-12 Andrew Cagney <cagney@redhat.com>
1927 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
1928 eliminate reference to step_sp.
1929 (struct execution_control_state, init_execution_control_state)
1930 (handle_inferior_event, keep_going): Delete update_step_sp and
1932 * infcmd.c (step_sp): Note that variable is unused.
1934 2004-05-11 Andrew Cagney <cagney@redhat.com>
1936 * infrun.c (step_over_function): Delete function.
1937 (handle_step_into_function): Use insert_step_resume_breakpoint.
1938 (insert_step_resume_breakpoint): Fix assertion.
1940 2004-05-11 Nick Roberts <nickrob@gnu.org>
1942 * utils.c (defaulted_query): Just use the normal query input type
1943 when printing the annotations.
1945 2004-05-11 Andrew Cagney <cagney@redhat.com>
1947 * infrun.c (handle_inferior_event): Simplify code handling
1948 step-into or return-from a signal trampoline.
1950 2004-05-11 Andrew Cagney <cagney@redhat.com>
1952 * ppcnbsd-tdep.c: Include "gdb_assert.h".
1953 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
1955 2004-05-10 Jim Blandy <jimb@redhat.com>
1957 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
1958 with a call to internal_error.
1960 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
1961 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
1962 processor variant lacks those registers.
1963 (ppc_floating_point_unit_p): Change description to make it clear
1964 that this returns info about the ISA, not the ABI.
1965 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
1966 return true or false by checking tdep->ppc_fp0_regnum and
1967 tdep->ppc_fpscr_regnum. The original code replicated the BFD
1968 arch/mach switching done in rs6000_gdbarch_init; it's better to
1969 keep that logic there, and just check the results here.
1970 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
1971 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
1972 floating-point registers.
1973 (ppc_supply_fpregset, ppc_collect_fpregset)
1974 (rs6000_push_dummy_call, rs6000_extract_return_value)
1975 (rs6000_store_return_value): Assert that we have floating-point
1977 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
1978 (rs6000_frame_cache): Don't note the locations at which
1979 floating-point registers were saved if we have no fprs.
1980 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
1982 (fetch_regs_user_thread, fetch_regs_kernel_thread)
1983 (store_regs_user_thread, store_regs_kernel_thread): Only call
1984 supply_fprs / fill_fprs if we actually have floating-point
1986 (special_register_p): Check ppc_fpscr_regnum before matching
1988 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
1989 supply / collect fpscr if we don't have it.
1990 * ppc-bdm.c: #include "gdb_assert.h".
1991 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
1992 have floating-point registers, since I can't test this code on
1993 FP-free systems to adapt it.
1994 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
1995 fpscr and floating point register numbers if they don't exist.
1996 (fetch_register): Assert that we have floating-point registers
1997 before we reach the code that handles them.
1998 (store_register): Same. And use tdep instead of calling
2000 (fill_fpregset): Don't try to collect FP registers and fpscr if we
2002 (ppc_linux_sigtramp_cache): Don't record the saved locations of
2003 fprs and fpscr if we don't have them.
2004 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
2006 * ppcnbsd-nat.c: #include "gdb_assert.h".
2007 (getfpregs_supplies): Assert that we have floating-point registers.
2008 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
2009 * ppcobsd-tdep.c: #include "gdb_assert.h".
2010 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
2011 have floating-point registers.
2012 * rs6000-nat.c (regmap): Don't match against the fpscr and
2013 floating point register numbers if they don't exist.
2014 (fetch_inferior_registers, store_inferior_registers,
2015 fetch_core_registers): Only fetch / store / supply the
2016 floating-point registers and the fpscr if we have them.
2017 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
2018 (ppcobsd-tdep.o): Update dependencies.
2020 2004-05-10 Andrew Cagney <cagney@redhat.com>
2022 * infrun.c (through_sigtramp_breakpoint): Delete variable.
2023 (context_switch): Do not switch through_sigtramp_breakpoint.
2024 * gdbthread.h (save_infrun_state, load_infrun_state)
2025 (struct thread_info): Delete through_sigtramp_breakpoint parameter
2026 and structure member.
2027 * thread.c (load_infrun_state, save_infrun_state): Update.
2029 2004-05-10 Mark Kettenis <kettenis@gnu.org>
2031 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
2033 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2035 * acinclude.m4: Quote macro names being defined by AC_DEFUN
2037 * aclocal.m4: Regenerate.
2039 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
2041 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
2043 2004-05-10 Andrew Cagney <cagney@redhat.com>
2045 * infrun.c (check_sigtramp2): Delete function.
2046 (handle_inferior_event): When single stepping, and taking a
2047 signal, set a breakpoint at the signal return address. Delete
2048 redundant calls to check_sigtramp2.
2049 (insert_step_resume_breakpoint): New function.
2050 (through_sigtramp_breakpoint, handle_inferior_event)
2051 (follow_exec, wait_for_inferior, fetch_inferior_event)
2052 (currently_stepping, keep_going): Delete most uses of
2053 through_sigtramp_breakpoint, not that it should be deleted.
2054 (delete_breakpoint_current_contents): Delete function.
2056 2004-05-10 Randolph Chung <tausq@debian.org>
2058 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
2060 * config/pa/tm-linux.h: New file.
2062 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
2064 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
2065 of prefixes. Don't print the prefix twice in the CLI.
2067 2004-05-10 Jim Blandy <jimb@redhat.com>
2069 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
2070 collect all the gprs.
2072 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
2073 loop collecting gprs.
2075 2004-05-09 Andrew Cagney <cagney@redhat.com>
2077 * remote-vx.c (net_step): Delete step-range code.
2078 * remote.c (remote_resume, init_all_packet_configs)
2079 (set_remote_protocol_E_packet_cmd)
2080 (show_remote_protocol_E_packet_cmd)
2081 (remote_protocol_E, show_remote_cmd, _initialize_remote)
2082 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
2083 (show_remote_protocol_e_packet_cmd): Ditto.
2085 2004-05-09 Mark Kettenis <kettenis@gnu.org>
2087 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
2089 * hppa-tdep.h: Update copyright year.
2090 (struct trad_frame_saved_reg): Add opaque declaration.
2092 * amd64-tdep.c (amd64_return_value): Implement
2093 RETURN_VALUE_ABI_RETURNS_ADDRESS.
2095 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
2096 (m68k_value_to_register): New functions.
2097 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
2100 * defs.h (enum return_value_convention): Add
2101 RETURN_VALUE_ABI_RETURNS_ADDRESS and
2102 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
2103 * infcmd.c (legacy_return_value): New function.
2104 (print_return_value): Rwerite to implement
2105 RETURN_VALUE_ABI_RETURNS_ADDRESS.
2106 * values.c (using_struct_return): Check for inequality to
2107 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
2108 RETURN_VALUE_STRUCT_CONVENTION.
2109 * i386-tdep.c (i386_return_value): Implement
2110 RETURN_VALUE_ABI_RETURNS_ADDRESS.
2112 * vax-tdep.c: Tweak comments. Reorder include files. Don't
2113 include "symtab.h", "opcode/vax.h" and "inferior.h".
2114 (vax_skip_prologue): Replace calls to read_memory_integer by calls
2115 to read_memory_unsigned_integer.
2116 (vax_gdbarch_init): Reorder.
2117 (_initialize_vax_tdep): Spell out prototype.
2118 * Makefile.in (vax-tdep.o): Update dependencies.
2120 2004-05-08 Andrew Cagney <cagney@redhat.com>
2122 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
2123 * target.c (target_detach, target_disconnect): Ditto.
2125 * infcall.c (call_function_by_hand): When no
2126 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
2127 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
2128 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
2129 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2130 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2132 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
2133 * gdbarch.h, gdbarch.c: Re-generate.
2134 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
2135 deprecated_fix_call_dummy.
2136 * v850-tdep.c (v850_gdbarch_init): Ditto.
2137 * infcall.c (call_function_by_hand): Do not call
2138 DEPRECATED_FIX_CALL_DUMMY.
2140 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
2141 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
2142 * gdbarch.h, gdbarch.c: Re-generate.
2143 * arm-linux-tdep.c (arm_linux_call_dummy_words)
2144 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
2145 deprecated_sizeof_call_dummy_words.
2146 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
2147 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2148 * v850-tdep.c (v850_gdbarch_init): Ditto.
2149 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
2150 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
2151 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2152 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2153 * arch-utils.h (legacy_call_dummy_words)
2154 (legacy_sizeof_call_dummy_words): Delete declarations.
2155 * arch-utils.c (legacy_call_dummy_words)
2156 (legacy_sizeof_call_dummy_words): Delete variables.
2158 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
2159 * gdbarch.h, gdbarch.c: Re-generate.
2160 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
2161 * infcall.c (call_function_by_hand): Eliminate call to
2162 DEPRECATED_PUSH_DUMMY_FRAME.
2163 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
2165 (ns32k_push_dummy_frame): Delete function.
2167 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
2168 deprecated_call_dummy_breakpoint_offset or
2169 deprecated_call_dummy_start_offset.
2170 * dummy-frame.c, arm-tdep.c: Update comments.
2171 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
2172 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
2173 * gdbarch.h, gdbarch.c: Re-generate.
2175 * infcall.c (legacy_push_dummy_code): Delete function.
2176 (push_dummy_code): Delete call.
2178 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
2179 * gdbarch.h, gdbarch.c: Re-generate.
2180 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
2181 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
2182 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
2183 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
2185 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
2186 (struct frame_info): Delete opaque declaration.
2187 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
2188 * frame.c (get_frame_type): Delete call.
2190 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
2192 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
2193 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
2195 2004-05-08 Mark Kettenis <kettenis@gnu.org>
2197 * alphanbsd-tdep.c: Include "gdb_string.h".
2198 * armnbsd-tdep.c: Update copyright year.
2199 Include "gdb_string.h".
2200 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
2203 * delta68-nat.c: Remove file.
2204 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
2205 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
2206 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
2207 (delta68-nat.o): Remove dependency.
2209 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
2211 (m68k_gdbarch_init): Don't set
2212 deprecated_frameless_function_invocation.
2214 2004-05-07 Randolph Chung <tausq@debian.org>
2216 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
2217 read_memory_nobpt for code reading when doing frame unwinding.
2218 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
2220 2004-05-07 Randolph Chung <tausq@debian.org>
2222 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
2223 instead of sp, handle sigaltstack case.
2224 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
2225 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
2226 signal handler and not that of the caller.
2227 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
2228 hppa_linux_sigtramp_find_sigcontext.
2230 2004-05-07 Randolph Chung <tausq@debian.org>
2232 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
2234 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
2235 * hppa-linux-nat.c (fetch_register, store_register): Define.
2236 (fetch_inferior_registers, store_inferior_registers): Define.
2237 (supply_gregset): Add comment and clean up some unneeded code.
2238 (fill_gregset): Add comment and fix so that it saves registers in
2239 the right place in the gregset.
2240 (fill_fpregset): Fix buffer overrun problem.
2241 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
2243 2004-05-07 Randolph Chung <tausq@debian.org>
2245 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
2246 do common handling of the pcoqt register.
2247 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
2248 to use helper function.
2249 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
2250 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
2251 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
2252 generic fallback unwinder when all else fails.
2253 (hppa_gdbarch_init): Add fallback sniffer.
2254 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
2255 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
2256 to use helper function.
2258 2004-05-08 Joel Brobecker <brobecker@gnat.com>
2260 * config/djgpp/fnchange.lst: Add translation rules for
2261 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
2263 2004-05-08 Mark Kettenis <kettenis@gnu.org>
2265 * frame.c (get_prev_frame_1): Work around GCC bug.
2266 * frame.h: Add comment about GCC bug.
2268 2004-05-07 Andrew Cagney <cagney@redhat.com>
2270 * observer.c: Include "commands.h" and "gdbcmd.h".
2271 (observer_debug, _initialize_observer): Add the
2272 command "set/show debug observer".
2273 * observer.sh: When observer debugging, log notify calls.
2274 * Makefile.in (observer.o): Update dependencies.
2276 2004-05-07 Jason Molenda (jmolenda@apple.com)
2278 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
2280 2004-05-07 Jim Blandy <jimb@redhat.com>
2282 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
2283 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
2284 to recognize gpr regnums, instead of assuming that
2285 tdep->ppc_fp0_regnum marks the end of the general-purpose
2288 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
2289 the given architecture has floating-point registers.
2291 2004-05-07 Andrew Cagney <cagney@redhat.com>
2293 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
2295 * gdbarch.h, gdbarch.c: Re-generate.
2296 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
2297 deprecated_use_generic_dummy_frames.
2299 2004-05-07 Brian Ford <ford@vss.fsi.com>
2301 * NEWS: Mention Cygwin DWARF 2 support.
2303 2004-05-07 Andrew Cagney <cagney@redhat.com>
2305 * objfiles.h (struct entry_info): Delete unused fields
2306 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
2307 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
2308 * mipsread.c (mipscoff_symfile_read): Update.
2309 * mdebugread.c (parse_partial_symbols): Update.
2310 * dwarfread.c (read_file_scope): Update.
2311 * dwarf2read.c (read_file_scope): Update.
2312 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
2313 * coffread.c (complete_symtab): Update.
2315 2004-05-07 Mark Kettenis <kettenis@gnu.org>
2317 * infcall.c (_initialize_infcall): Fix typo.
2319 2004-05-07 Andrew Cagney <cagney@redhat.com>
2321 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
2322 * command.h (add_setshow_zinteger_cmd): Declare.
2324 2004-05-06 Randolph Chung <tausq@debian.org>
2326 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
2327 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
2328 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
2329 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
2330 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
2331 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
2332 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
2334 * hppa-tdep.h: ... to here, with HPPA_ prefix.
2335 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
2336 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
2337 (hppa64_hpux_frame_find_saved_regs_in_sig)
2338 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
2339 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
2340 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
2341 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
2342 (hppa_linux_sigtramp_frame_prev_register): Likewise.
2343 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
2344 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
2345 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
2346 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
2347 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
2348 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
2349 (hppa32_register_type, hppa_cannot_store_register)
2350 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
2351 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
2352 * hpread.c (hpread_process_one_debug_symbol): Likewise.
2353 * pa64solib.c (pa64_solib_have_load_event)
2354 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
2355 (pa64_solib_unloaded_library_pathname): Likewise.
2356 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
2357 (som_solib_library_pathname): Likewise.
2359 2004-05-05 Jim Ingham <jingham@apple.com>
2361 * breakpoint.c (create_breakpoints): Copy the ignore count and
2362 thread id over from the pended breakpoint to the actual
2365 2004-05-05 Andrew Cagney <cagney@redhat.com>
2367 * gdbarch.sh (PARM_BOUNDARY): Delete.
2368 gdbarch.h, gdbarch.c: Re-generate.
2369 * valops.c (PARM_BOUNDARY): Delete macro.
2370 (value_push): Delete PARM_BOUNDARY code.
2371 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
2373 2004-05-04 Jim Blandy <jimb@redhat.com>
2375 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
2376 Don't assume that the gprs, fprs, and UISA sprs are
2377 contiguous, start at register number zero, and end with fpscr.
2378 Instead, use the numbers from the tdep structure.
2380 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
2381 should no longer be used in code specific to the RS6000 and its
2383 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
2384 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
2385 tdep->ppc_fp0_regnum.
2386 (ppc_supply_fpregset, ppc_collect_fpregset)
2387 (rs6000_push_dummy_call, rs6000_extract_return_value)
2388 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
2389 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
2391 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
2392 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
2394 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
2395 bdm_ppc_store_registers): Same.
2396 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
2397 (store_register, fill_fpregset): Same.
2398 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
2399 (ppc_linux_supply_fpregset): Same.
2400 * ppcnbsd-nat.c (getfpregs_supplies): Same.
2401 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
2403 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
2404 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
2405 ppc64_sysv_abi_return_value): Same.
2406 * rs6000-nat.c (regmap, fetch_inferior_registers)
2407 (store_inferior_registers, fetch_core_registers): Same.
2409 2004-05-01 Mark Kettenis <kettenis@gnu.org>
2411 * m68knbsd-nat.c: Remove file.
2412 * m68knbsd-tdep.c: Remove file.
2413 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
2415 * configure.host: Add m68k-*-netbsdelf*.
2416 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
2417 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
2418 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
2420 * config/m68k/nbsdelf.mh: New file.
2421 * config/m68k/nbsd.mt: New file.
2422 * config/m68k/nbsdaout.mt: Remove file.
2423 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
2424 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
2425 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
2426 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
2427 (use_struct_convention): Remove prototype.
2428 (USE_STRUCT_CONVENTION): Remove define.
2429 * config/m68k/xm-nbsd.h: Remove file.
2431 2004-05-04 Michael Snyder <msnyder@redhat.com>
2433 * m68k-tdep.c (m68k_gdbarch_init): Default to using
2434 reg_struct_return method (as gcc usually does for cross targets).
2436 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2438 Committed by Andrew Cagney.
2439 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
2440 alignment padding when accessing ucontext struct members.
2442 2004-05-04 Jim Blandy <jimb@redhat.com>
2444 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
2445 'ppc_gplast_regnum' member.
2446 (ppc_num_gprs): New enum constant.
2447 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
2448 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
2449 * rs6000-nat.c (regmap, fetch_inferior_registers,
2450 store_inferior_registers): Same.
2451 * rs6000-tdep.c (e500_pseudo_register_read)
2452 (e500_pseudo_register_write): Same.
2453 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
2455 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
2456 * ppc-tdep.h (ppc_num_fprs): New enum constant.
2457 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
2458 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
2460 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
2462 * ppc-linux-nat.c (ppc_register_u_addr): Same.
2463 * rs6000-nat.c (regmap, fetch_inferior_registers)
2464 (store_inferior_registers): Same.
2466 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
2469 2004-05-03 Joel Brobecker <brobecker@gnat.com>
2471 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
2472 failure detected by recent versions of GCC.
2473 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
2474 to be consistent with the usage in dwarf2_create_include_psymtab.
2476 2004-05-03 Michael Snyder <msnyder@redhat.com>
2478 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
2479 (heuristic_proc_start): Whitespace cleanup.
2481 2004-05-04 Mark Kettenis <kettenis@gnu.org>
2483 * sun3-nat.c: Remove file.
2484 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
2486 (ALLDEPFILES): Remove sun3-nat.c.
2487 (sun3-nat.o): Remove dependencies.
2489 * i386-interix-nat.c, i386-interix-tdep.c,
2490 config/i386/nm-interix.h, config/i386/interix.mh,
2491 config/i386/interix.mt: Remove files.
2492 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
2495 2004-05-03 Mark Kettenis <kettenis@gnu.org>
2497 * m68k-tdep.h (struct gdbarch_tdep): Add member
2498 struct_value_regnum.
2499 (m68k_svr4_init_abi): New prototype.
2500 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
2501 different calling conventions.
2502 (m68k_extract_return_value): Remove code dealing with single-field
2504 (m68k_store_return_value): Remove code dealing with single-field
2505 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
2506 (m68k_extract_struct_value_address): Remove function.
2507 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
2508 (m68k_reg_struct_return_p, m68k_return_value)
2509 (m68k_svr4_return_value): New functions.
2510 (m68k_use_struct_convention): Remove function.
2511 (m68k_push_dummy_call): Use new struct_value_regnum member of
2512 `struct gdbarch_tdep' instead of hardcoded register number to
2514 (m68k_svr4_init_abi): New function.
2515 (m68k_gdbarch_init): Don't set extract_return_value,
2516 store_return_values, deprecated_extract_struct_value_address and
2517 use_struct_convention. Set return_value instead. Initialize new
2518 struct_value_regnum member of `struct gdbarch_tdep'.
2519 * m68klinux-tdep.c: Update copyright year.
2520 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
2521 (m68k_linux_extract_struct_value_address): Remove function.
2522 (m68k_linux_init_abi): Don't set extract_return_value,
2523 store_return_values, deprecated_extract_struct_value_address and
2524 use_struct_convention. Call m68k_svr4_init_abi but override the
2525 new struct_value_regnum member of `struct gdbarch_tdep'.
2526 * Makefile.in (m68k-tdep.o): Update dependencies.
2528 2004-05-03 J. Brobecker <brobecker@gnat.com>
2530 * dwarf2read.c (line_header): Add new included_p field in
2532 (partial_die_info): New field has_stmt_list. New field line_offset.
2533 (dwarf2_create_include_psymtab): New function.
2534 (dwarf2_build_include_psymtabs): New function.
2535 (add_file_name): Add forward declaration. Initialize new field.
2536 (dwarf_decode_lines): Add new parameter. Enhance this procedure
2537 to be able to determine the list of files included by the
2538 given unit, and build their associated psymtabs.
2539 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
2541 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
2542 (read_file_scope): Update call to dwarf_decode_lines.
2543 (read_partial_die): Handle DW_AT_stmt_list attributes.
2545 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
2548 * configure.in: Revert special case for osf5.*.
2549 * configure: Regenerate.
2551 2004-05-02 Jim Blandy <jimb@redhat.com>
2553 Move the symbol-file-from-memory functions into their own file.
2554 * symfile-mem.c, symfile-mem.h: New files.
2555 * symfile.c (symbol_file_add_from_bfd): New function.
2556 (symbol_file_add): Call symbol_file_add_from_bfd.
2557 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
2558 Moved to symfile-mem.c.
2559 (_initialize_symfile): Move definition of
2560 add-symbol-file-from-memory command to symfile-mem.c.
2561 * symfile.h (symbol_file_add_from_bfd): New declaration.
2562 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
2563 * config/powerpc/linux.mt (TDEPFILES): Same.
2564 * Makefile.in (SFILES): Add symfile-mem.c.
2565 (symfile_mem_h): New variable.
2566 (HFILES_NO_SRCDIR): Add symfile-mem.h.
2567 (symfile-mem.o): New rule.
2569 2004-05-01 Andrew Cagney <cagney@redhat.com>
2571 * breakpoint.c (insert_bp_location): Use get_frame_id, and
2572 frame_find_by_id instead of frame_relative_level.
2573 (do_enable_breakpoint): Ditto.
2574 * thread.c: Update copyright.
2575 (info_threads_command): Ditto, simplify.
2577 * frame.c (deprecated_generic_get_saved_register): Delete
2578 function, moved to "xstormy16-tdep.c".
2579 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
2580 deprecated_generic_get_saved_register from "frame.c".
2581 (xstormy16_frame_saved_register): Call
2582 xstormy16_get_saved_register.
2583 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
2585 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
2586 * frame.h (deprecated_generic_get_saved_register): Delete.
2588 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
2590 * dwarfread.c: Update documentation on the state of dwarf-1.
2592 2004-05-01 Andrew Cagney <cagney@redhat.com>
2594 * stack.c (select_frame_command): Delete call to
2595 frame_relative_level.
2596 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
2598 (frame_info): Do not print FRAMELESS.
2599 (print_block_frame_labels): Replace DEPRECATED_STREQ.
2600 (catch_info): Delete #if0 code.
2602 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
2603 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
2604 of frame_relative_level.
2605 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
2607 * frame.h (enum frame_type): Add SENTINEL_FRAME.
2608 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
2609 frame_relative_level.
2611 * frame.h (deprecated_set_frame_type): Delete declaration.
2612 * frame.c (deprecated_set_frame_type): Delete function, update
2615 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
2616 * gdbarch.h, gdbarch.c: Re-generate.
2617 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
2618 (shnbsd_pc_in_sigtramp): Delete.
2619 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
2621 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
2623 * frame.h: Update comments.
2624 * ppc-linux-tdep.c: Update comments.
2625 * breakpoint.c (bpstat_what): Update comments.
2627 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
2628 m68klinux-tdep.o's dependencies, were previously added to
2631 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
2632 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
2633 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
2634 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
2635 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
2637 * Makefile.in (m68klinux-nat.o): Update dependencies.
2638 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
2639 (m68k_linux_sigtramp_frame_cache)
2640 (m68k_linux_sigtramp_frame_this_id)
2641 (m68k_linux_sigtramp_frame_prev_register)
2642 (m68k_linux_sigtramp_frame_unwind)
2643 (m68k_linux_sigtramp_frame_sniffer)
2644 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
2645 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
2646 names, use trad-frame.h.
2647 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
2648 (struct m68k_sigtramp_info): Delete.
2649 * m68k-tdep.c (m68k_sigtramp_frame_cache)
2650 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
2651 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
2652 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
2655 * infrun.c (check_sigtramp2): Delete check for
2656 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
2658 2004-05-01 Mark Kettenis <kettenis@gnu.org>
2660 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
2662 2004-05-01 Andrew Cagney <cagney@redhat.com>
2664 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
2665 (frv_linux_sigtramp_frame_cache)
2666 (frv_linux_sigtramp_frame_this_id)
2667 (frv_linux_sigtramp_frame_prev_register)
2668 (frv_linux_sigtramp_frame_unwind)
2669 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
2670 include "linux" in function and variable names, directly call
2671 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
2672 the latest trad-frame code.
2673 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
2674 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
2675 * Makefile.in (frv-linux-tdep.o): Update dependencies.
2676 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
2677 * frv-tdep.c (frv_sigtramp_frame_cache)
2678 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
2679 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
2681 (frv_gdbarch_init): Do not append a sigtramp sniffer.
2682 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
2683 (frv_set_sigcontext_reg_addr): Delete function.
2685 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
2686 (DEPRECATED_SIGTRAMP_END): Delete.
2687 * gdbarch.h, gdbarch.c: Re-generate.
2688 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
2689 * config/vax/tm-vaxbsd.h: Update copyright.
2690 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
2691 (DEPRECATED_IN_SIGTRAMP): Define.
2692 * config/m68k/tm-nbsd.h: Update copyright.
2693 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
2694 (DEPRECATED_IN_SIGTRAMP): Define.
2696 2004-05-01 Mark Kettenis <kettenis@gnu.org>
2698 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
2699 encondings. Fixes PR gdb/1628.
2701 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
2702 DW_CFA_restore state without a matching DW_CFA_remember_state
2703 instead of aborting. Fixes PR backtrace/1589.
2705 2004-04-30 Joel Brobecker <brobecker@gnat.com>
2707 * MAINTAINERS: Add self as AIX maintainer.
2708 Update my e-mail address in write-after-approval section.
2710 2004-04-30 Andrew Cagney <cagney@redhat.com>
2712 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
2713 (legacy_get_prev_frame): Ditto.
2715 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
2716 (mips_gdbarch_init): Do not set pc_in_sigtramp.
2717 * mipsread.c (sigtramp_address): Delete extern variable.
2718 (mipscoff_new_init): Delete reference.
2719 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
2720 (fixup_sigtramp): Delete function.
2721 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
2722 (fixup_sigtramp): Delete declarations.
2724 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
2725 deprecated_pc_in_sigtramp.
2726 (ppcnbsd_pc_in_sigtramp): Delete function.
2728 2004-05-01 Mark Kettenis <kettenis@gnu.org>
2730 * config/m68k/nm-nbsd.h: Tweak comments.
2731 * config/m68k/nm-nbsdaout.h: Likewise.
2733 2004-04-30 Andrew Cagney <cagney@redhat.com>
2735 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
2736 legacy_pc_in_sigtramp.
2737 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
2739 2004-05-01 Mark Kettenis <kettenis@gnu.org>
2741 Add OpenBSD/m68k support.
2742 * NEWS (New native configurations): Mention OpenBSD/m68k.
2743 * m68kbsd-tdep.c: New file.
2744 * m68kbsd-nat.c: New file.
2745 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
2746 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
2747 * configure.host: Add m68k-*-openbsd.
2748 * configure.tgt: Add m68k-*-openbsd.
2749 * config/m68k/tm-obsd.h: New file.
2750 * config/m68k/obsd.mt: New file.
2751 * config/m68k/obsd.mh: New file.
2752 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
2755 2004-04-30 Andrew Cagney <cagney@redhat.com>
2757 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
2758 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
2760 2004-04-30 Mark Kettenis <kettenis@gnu.org>
2762 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
2763 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
2765 2004-04-30 Brian Ford <ford@vss.fsi.com>
2767 Revert 2004-04-16 change.
2768 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
2769 (i386_coff_init_abi): Remove.
2770 * i386-tdep.h (i386_coff_init_abi): Remove.
2771 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
2773 2004-04-30 Andrew Cagney <cagney@redhat.com>
2775 * blockframe.c (find_pc_partial_function): Delete use of
2776 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
2777 DEPRECATED_SIGTRAMP_END.
2779 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
2780 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
2781 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
2782 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
2783 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
2785 * defs.h (deprecated_inside_entry_file): Delete declaration.
2786 * blockframe.c (deprecated_inside_entry_file): Delete function.
2787 (legacy_frame_chain_valid): Delete call.
2788 * sh64-tdep.c (sh64_frame_chain): Delete call.
2789 * objfiles.h: Update comments.
2790 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
2792 * frame.c (get_prev_frame): Delete call, update comments.
2794 2004-04-30 Brian Ford <ford@vss.fsi.com>
2796 * MAINTAINERS (Write After Approval): Add myself.
2798 2004-04-30 Andrew Cagney <cagney@redhat.com>
2800 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
2801 * gdbarch.h, gdbarch.c: Re-generate.
2802 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
2805 2004-04-30 Andrew Cagney <cagney@redhat.com>
2807 * gdb-events.sh (selected_thread_changed)
2808 (selected_frame_level_changed, target_changed): Delete.
2809 * gdb-events.h, gdb-events.c: Re-generate.
2810 * valops.c (value_assign): Update.
2811 * stack.c (select_frame_command, up_silently_base)
2812 (down_silently_base): Update.
2814 2004-04-29 Andrew Cagney <cagney@redhat.com>
2816 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
2817 registers correctly.
2818 (print_gp_register_row, mips32_heuristic_proc_desc)
2819 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
2820 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
2821 references to mips_isa_regsize.
2823 2004-04-29 Andrew Cagney <cagney@redhat.com>
2825 * mips-tdep.c (struct gdbarch_tdep): Delete
2826 mips_fp_register_double.
2827 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
2829 (mips_gdbarch_init): Do not set mips_fp_register_double.
2830 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
2832 2004-04-29 Joel Brobecker <brobecker@gnat.com>
2834 Committed by Andrew Cagney.
2835 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
2838 2004-04-29 Andrew Cagney <cagney@redhat.com>
2840 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
2841 gdbarch, use mips_abi, update callers.
2842 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
2843 mips_abi_regsize, update callers.
2844 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
2845 mips_default_abi_regsize.
2846 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
2847 mips_default_abi_regsize.
2849 2004-04-29 Andrew Cagney <cagney@redhat.com>
2851 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
2852 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
2853 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
2854 mips_default_abi_regsize.
2855 (mips_isa_regsize): Rename mips_regisze.
2856 * mipsnbsd-tdep.c: Update.
2857 * mips-linux-tdep.c: Update.
2858 * irix5-nat.c: Update.
2859 * mips-tdep.h (mips_isa_regsize): Update.
2861 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
2862 Delete all disabled code.
2863 * gdb-events.h, gdb-events.c: Re-generate.
2865 2004-04-19 Jerome Guitton <guitton@gnat.com>
2866 Mark Kettenis <kettenis@gnu.org>
2868 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
2869 the function begins with a branch instruction.
2871 2004-04-29 Mark Kettenis <kettenis@gnu.org>
2873 * i386-tdep.c: Fix spelling mistakes.
2875 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2876 Andrew Cagney <cagney@redhat.com>
2878 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
2880 * acconfig.h: Provide default _KMEMUSER value.
2881 * config.in, configure: Re-generate.
2882 * NEWS: Mention fix.
2884 2004-04-24 Randolph Chung <tausq@debian.org>
2886 * configure.host (hppa*-*-linux*): New target.
2887 * configure.tgt (hppa*-*-linux*): Likewise.
2888 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
2889 gdbarch_init_osabi() call earlier so that osabi-specific frame
2890 unwinders can be registered first.
2891 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
2893 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
2894 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
2895 * config/pa/linux.mh: New file.
2896 * config/pa/linux.mt: New file.
2897 * config/pa/nm-linux.h: New file.
2898 * config/pa/xm-linux.h: New file.
2899 * hppa-linux-nat.c: New file.
2900 * hppa-linux-tdep.c: New file.
2902 2004-04-28 Randolph Chung <tausq@debian.org>
2904 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
2906 (hppa32_push_dummy_call): Fix small struct and floating point argument
2907 passing, and make sure the stack frame is properly aligned.
2909 2004-04-28 Andrew Cagney <cagney@redhat.com>
2911 * stack.c (print_stack_frame): Fix description.
2913 * NEWS: Mention gdb/gdbserver/configure execute permission
2914 changed. PR server/519.
2916 2004-04-28 Andrew Cagney <cagney@redhat.com>
2918 * stack.c (print_stack_frame_stub): Delete declaration.
2919 (struct print_stack_frame_args, print_stack_frame)
2920 (print_frame_info, print_frame): Replace "source" with print what.
2921 Replace "print" with "print_level". Replace "args" with
2923 * frame.h (show_and_print_stack_frame, print_stack_frame)
2924 (print_frame_info): Update declarations.
2925 * stack.c (select_and_print_frame, frame_command)
2926 (current_frame_command, up_command, down_command): Update calls -
2927 use get_selected_frame, pass "enum print_what" for source, do not
2928 call frame_relative_level.
2929 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
2930 * remote-rdp.c (remote_rdp_open): Ditto.
2931 * remote-mips.c (common_open): Ditto.
2932 * remote-e7000.c (e7000_start_remote): Ditto.
2933 * ocd.c (ocd_start_remote): Ditto.
2934 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
2935 * infrun.c (normal_stop): Ditto.
2936 * inflow.c (kill_command): Ditto.
2937 * infcmd.c (finish_command): Ditto.
2938 * corelow.c (core_open): Ditto.
2939 * tracepoint.c (finish_tfind_command): Ditto.
2940 * thread.c (info_threads_command, info_threads_command)
2941 (restore_current_thread, do_captured_thread_select): Ditto.
2942 * ada-tasks.c (task_command): Ditto.
2944 2004-04-26 Orjan Friberg <orjanf@axis.com>
2946 * frame.c: Include "observer.h".
2947 (frame_observer_target_changed): New function.
2948 (_initialize_frame): Attach target_changed observer.
2949 * regcache.c: Include "observer.h".
2950 (regcache_observer_target_changed): New function.
2951 (_initialize_regcache): Attach target_changed observer.
2952 * valops.c: Include "observer.h".
2953 (value_assign): Notify target_changed event when modifying register.
2954 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
2956 2004-04-26 Orjan Friberg <orjanf@axis.com>
2958 From Paul Koning <pkoning@equallogic.com>:
2959 * breakpoint.c (free_valchain): New function.
2960 (insert_bp_location, delete_breakpoint): Use free_valchain.
2961 (remove_breakpoint): Do not remove the valchain.
2962 (bpstat_stop_status): If not stopped by watchpoint, skip
2963 watchpoints when generating stop status list.
2964 * infrun.c (handle_inferior_event): Make
2965 stepped_after_stopped_by_watchpoint a global variable.
2966 * remote.c (remote_stopped_data_address): Return watch data
2967 address rather than zero if stepped_after_stopped_by_watchpoint is
2970 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
2973 * configure.in: Check for curses after termcap.
2974 On osf5.*, do not check for ncurses.
2975 * configure: Regenerate.
2977 2004-04-25 Mark Kettenis <kettenis@gnu.org>
2979 * ppcobsd-nat.c: Include "ppc-tdep.h".
2980 * Makefile.in (ppcobsd-nat.o): Update dependencies.
2982 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
2983 Fixes PR tdep/1623 and PR tdep/1624.
2985 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
2987 * xmodem.h, xmodem.c: Remove files.
2988 * Makefile.in: Remove references to xmodem.h, xmodem.c.
2990 2004-04-23 Randolph Chung <tausq@debian.org>
2992 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
2993 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
2994 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
2995 for handling stackless frames.
2996 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
2998 2004-04-23 Randolph Chung <tausq@debian.org>
3000 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
3001 starts at a pc before the frame is created.
3003 2004-04-23 Joel Brobecker <brobecker@gnat.com>
3005 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
3007 2004-04-23 Jerome Guitton <guitton@gnat.fr>
3009 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
3010 use convert_typed_floating to get the appropriate format.
3012 2004-04-22 Randolph Chung <tausq@debian.org>
3014 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
3015 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
3016 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
3017 (hppa_sign_extend): Add prototype.
3018 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
3019 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
3020 (sign_extend): Rename with hppa_ prefix and make non-static. Other
3021 hppa targets will also use these functions.
3022 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
3023 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
3024 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
3025 (hppa_gdbarch_init): Remove gdbarch setting of
3026 skip_trampoline_code, in_solib_call_trampoline and
3027 in_solib_return_trampoline.
3028 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3029 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
3030 hppa_in_solib_call_trampoline.
3031 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
3032 Moved from hppa-tdep.c.
3033 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
3034 in_solib_call_trampoline and in_solib_return_trampoline.
3036 2004-04-22 Randolph Chung <tausq@debian.org>
3038 * hppa-tdep.c (hppa_debug): New variable.
3039 (find_unwind_entry, hppa_frame_cache): Add debug output.
3040 (_initialize_hppa_tdep): Add command to set debug flag.
3042 2004-04-22 Andrew Cagney <cagney@redhat.com>
3044 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
3046 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
3047 signal trampoline unwinder.
3048 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
3050 2004-04-22 Mark Kettenis <kettenis@gnu.org>
3052 Add OpenBSD/powerpc support.
3053 * NEWS (New native configurations): Mention OpenBSD/powerpc.
3054 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
3055 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
3056 (ppc_collect_fpregset): New prototypes.
3057 * ppcobsd-nat.c: New file.
3058 * ppcobsd-tdep.c: New file.
3059 * ppcobsd-tdep.h: New file.
3060 * rs6000-tdep.c: Include "regset.h".
3061 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
3062 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
3064 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
3065 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
3066 (rs6000-tdep.o): Update dependencies.
3067 * configure.host: Add powerpc-*-openbsd.
3068 * configure.tgt: Add powerpc-*-openbsd.
3069 * config/powerpc/obsd.mh: New file.
3070 * config/powerpc/nm-obsd.h: New file.
3071 * config/powerpc/obsd.mt: New file.
3073 2004-04-22 Andrew Cagney <cagney@redhat.com>
3075 * frame.h (show_frame_info): Delete declaration.
3077 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
3078 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
3079 * m32r-tdep.c (m32r_frame_this_id): Ditto.
3080 * frv-tdep.c (frv_frame_this_id): Ditto.
3081 * avr-tdep.c (avr_frame_this_id): Ditto.
3083 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
3085 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
3087 2004-04-22 Jim Blandy <jimb@redhat.com>
3089 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
3090 register number zero.
3092 2004-04-21 Michael Snyder <msnyder@redhat.com>
3094 * mips-tdep.c (heuristic_proc_start):
3095 Warning() already prefixes "Warning: ".
3097 2004-04-21 Andrew Cagney <cagney@redhat.com>
3099 * annotate.h (deprecated_annotate_starting_hook)
3100 (deprecated_annotate_stopped_hook)
3101 (deprecated_annotate_exited_hook)
3102 (deprecated_annotate_signal_hook)
3103 (deprecated_annotate_signalled_hook): Deprecate.
3104 * tracepoint.h (deprecated_create_tracepoint_hook)
3105 (deprecated_delete_tracepoint_hook)
3106 (deprecated_modify_tracepoint_hook)
3107 (deprecated_trace_find_hook)
3108 (deprecated_trace_start_stop_hook): Deprecate.
3109 * target.h (deprecated_target_new_objfile_hook): Deprecate.
3110 * remote.h (deprecated_target_resume_hook)
3111 (deprecated_target_wait_loop_hook): Deprecate.
3112 * gdbcore.h (deprecated_exec_file_display_hook)
3113 (deprecated_file_changed_hook): Deprecate.
3114 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
3115 * defs.h (deprecated_modify_breakpoint_hook)
3116 (deprecated_command_loop_hook, deprecated_show_load_progress)
3117 (deprecated_print_frame_info_listing_hook)
3118 (deprecated_query_hook, deprecated_warning_hook)
3119 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
3120 (deprecated_delete_breakpoint_hook)
3121 (deprecated_interactive_hook, deprecated_registers_changed_hook)
3122 (deprecated_readline_begin_hook, deprecated_readline_hook)
3123 (deprecated_readline_end_hook, deprecated_register_changed_hook)
3124 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
3125 (deprecated_context_hook, deprecated_target_wait_hook)
3126 (deprecated_attach_hook, deprecated_detach_hook)
3127 (deprecated_call_command_hook, deprecated_set_hook)
3128 (deprecated_error_hook, deprecated_error_begin_hook)
3129 (deprecated_ui_load_progress_hook): Deprecate.
3130 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
3131 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
3132 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
3133 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
3134 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
3135 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
3136 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
3137 * annotate.c, aix-thread.c: Update.
3139 2004-04-21 Andrew Cagney <cagney@redhat.com>
3141 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
3142 * vaxnbsd-tdep.c: Include "gdb_string.h".
3144 * symfile.c (symbol_file_add_from_memory): #if 0 function.
3145 (add_symbol_file_from_memory_command): #if 0 function body, call
3148 2004-04-21 Andrew Cagney <cagney@redhat.com>
3150 * gdbcore.h: Update copyright.
3151 (deprecated_add_core_fns): Rename add_core_fns.
3152 * win32-nat.c (_initialize_core_win32): Update.
3153 * sun3-nat.c (_initialize_core_sun3): Update.
3154 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
3155 * rs6000-nat.c (_initialize_core_rs6000): Update.
3156 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
3157 * nto-tdep.c (_initialize_nto_tdep): Update.
3158 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
3159 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
3160 * mips-nat.c (_initialize_core_mips): Update.
3161 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
3162 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
3163 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
3164 * lynx-nat.c (_initialize_core_lynx): Update.
3165 * irix5-nat.c (_initialize_core_irix5): Update.
3166 * i386-interix-nat.c (_initialize_core_interix): Update.
3167 * cris-tdep.c (_initialize_cris_tdep): Update.
3168 * corelow.c (deprecated_add_core_fns): Update.
3169 * core-regset.c (_initialize_core_regset): Update.
3170 * core-aout.c (_initialize_core_aout): Update.
3171 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
3172 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
3173 * alpha-nat.c (_initialize_core_alpha): Update.
3175 2004-04-21 Jim Blandy <jimb@redhat.com>
3177 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
3179 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
3181 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
3183 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
3184 (read_attribute_value): Update calls to dwarf_alloc_block.
3185 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
3187 (psymtab_to_symtab_1): Likewise. Clean up using
3188 free_stack_comp_unit.
3189 (add_to_cu_func_list): Use the comp_unit_obstack.
3191 2004-04-19 Joel Brobecker <brobecker@gnat.com>
3193 * dwarf2read.c (dwarf2_flag_true_p): New function.
3194 (die_is_declaration): Use the function above. Add some comments.
3196 2004-04-19 Mark Kettenis <kettenis@gnu.org>
3198 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
3199 architecture when registering sparcnbsd_core_osabi_sniffer.
3202 2004-04-18 Mark Kettenis <kettenis@gnu.org>
3204 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
3207 Based on a patch from Brian Ford <ford@vss.fsi.com>:
3208 * i386-tdep.c: Correct register numbering scheme comments
3210 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
3211 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
3212 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
3213 (i386_gdb_arch_init): Likewise.
3215 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
3216 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
3219 * m68k-tdep.h: Tweak comments.
3220 * m68k-tdep.c: Tweak comment.
3222 2004-04-17 Randolph Chung <tausq@debian.org>
3224 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
3225 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
3226 (hppa_hpux_som_init_abi): Set is_elf to 0.
3227 (hppa_hpux_elf_init_abi): Set is_elf to 1.
3228 * hppa-tdep.c (low_text_segment_address): Remove global.
3229 (record_text_segment_lowaddr): Pass in low address as parameter. Use
3230 section offset to calculate segment address.
3231 (internalize_unwinds): Define low_text_segment_address as local and
3232 pass to record_text_segment_lowaddr for ELF targets.
3233 (hppa_gdbarch_init): Zero fill tdep structure.
3234 (hppa_dump_tdep): Print tdep structure.
3235 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
3237 2004-04-17 Randolph Chung <tausq@debian.org>
3239 * hppa-tdep.c (hppa_pseudo_register_read): Define.
3240 (hppa_gdbarch_init): Set pseudo_register_read.
3241 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
3242 * regcache.c (supply_register): Remove check for
3243 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
3245 2004-04-17 Randolph Chung <tausq@debian.org>
3247 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
3248 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
3249 (hpread_adjust_stack_address): Move to hpread.c.
3250 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
3251 obj_private_struct): Move from tm-hppa.h.
3252 * hpread.c (hppa-tdep.h): Include.
3253 (hpread_adjust_stack_address): Move from hppa-tdep.c.
3254 (hpread_read_function_type, hpread_read_doc_function_type)
3255 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
3257 * pa64solib.c (hppa-tdep.h): Include.
3258 * somsolib.c (hppa-tdep.h): Include.
3259 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
3260 inferior_status): Remove unused forward declarations.
3261 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
3262 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
3263 obj_private_struct): Move to hppa-tdep.h.
3264 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
3266 2004-04-17 Randolph Chung <tausq@debian.org>
3268 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
3269 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
3270 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
3271 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
3272 Remove forward declaration and make static.
3273 (hppa_reg_struct_has_addr): Remove.
3275 2004-04-16 Joel Brobecker <brobecker@gnat.com>
3277 * observer.sh: Move comments in sed command to first column.
3279 2004-04-16 Jason Molenda (jmolenda@apple.com)
3281 * frame.c: Minor typeo corrections in comments.
3283 2004-04-16 Joel Brobecker <brobecker@gnat.com>
3285 * observer.c (observer_test_first_notification_function): Update
3287 (observer_test_second_notification_function): Likewise.
3288 (observer_test_third_notification_function): Likewise.
3290 2004-04-16 Mark Kettenis <kettenis@gnu.org>
3292 From Brian Ford <ford@vss.fsi.com>:
3293 * i386-tdep.c (i386_coff_init_abi): New function.
3294 * i386-tdep.h (i386_coff_init_abi): New prototype.
3295 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
3296 register number translation functions for DWARF and DWARF 2.
3298 2004-04-16 Joel Brobecker <brobecker@gnat.com>
3300 * dwarf2read.c: Back out my previous change, it was incorrect.
3302 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
3304 * dwarf2read.c: Include "hashtab.h".
3305 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
3307 (struct partial_die_info): Add comments. Use bitfields to reduce
3308 memory footprint. Add scope, scope_set, has_specification,
3309 spec_offset, die_parent, die_child, and die_sibling.
3310 (peek_die_abbrev): Add prototype.
3311 (partial_read_comp_unit_head): New function, broken out from
3312 dwarf2_build_psymtabs_hard.
3313 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
3314 Use partial_read_comp_unit_head. Initialize the CU and
3315 comp_unit_obstack. Update calls to read_partial_die and
3316 scan_partial_symbols. Use free_stack_comp_unit and
3318 (scan_partial_symbols): Change PDI to a pointer. Use the child and
3319 sibling pointers to walk partial DIEs. Call fixup_partial_die.
3320 Update calls to helper functions. Remove NAMESPACE argument.
3322 (partial_die_parent_scope, partial_die_full_name): New functions.
3323 (add_partial_symbol): Remove namespace argument. Update call to
3324 pdi_needs_namespace. Use partial_die_full_name. Handle
3325 DW_TAG_namespace. Check has_namespace_info flag.
3326 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
3327 tag. Handle namespaces.
3328 (add_partial_namespace, add_partial_enumeration): Simplify.
3329 (guess_structure_name): New function, derived from
3330 add_partial_structure.
3331 (add_partial_structure): Remove.
3332 (determine_class_name): Update comment.
3333 (dwarf2_read_abbrevs): Set has_namespace_info flag.
3334 (is_type_tag_for_partial, load_partial_dies): New functions.
3335 (read_partial_die): Pass abbrev and abbrev_len as arguments.
3336 Record specifications instead of following them immediately.
3337 (find_partial_die_in_comp_unit, find_partial_die)
3338 (fixup_partial_die, free_stack_comp_unit)
3339 (hashtab_obstack_allocate, dummy_obstack_deallocate)
3340 (partial_die_hash, partial_die_eq): New functions.
3341 * Makefile.in (hashtab_h): Define.
3342 (dwarf2read.o): Update dependencies.
3343 (observer_inc, observer_h): Move to the correct section.
3345 2004-04-15 Joel Brobecker <brobecker@gnat.com>
3347 * dwarf2read.c (dwarf2_attribute_true_p): New function.
3348 (die_is_declaration): Use the function above. Add comment.
3350 2004-04-15 Joel Brobecker <brobecker@gnat.com>
3352 * dwarf2read.c (read_structure_scope): Identify stub types
3353 using die_is_declaration() only.
3355 2004-04-15 Roland McGrath <roland@redhat.com>
3357 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
3358 argument instead of NAME.
3359 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
3360 in call to symbol_file_add_with_addrs_or_offsets.
3361 (build_addr_info): New function, helper for ...
3362 (symbol_file_add_from_memory): New function.
3363 (add_symbol_file_from_memory_command): New function using that.
3364 (_initialize_symfile): Register it for add-symbol-file-from-memory.
3365 (pre_add_symbol_hook): Add const to argument type.
3366 * symfile.h (symbol_file_add_from_memory): Declare it.
3368 2004-04-15 Mark Kettenis <kettenis@gnu.org>
3370 * NEWS (New native configurations): Mention OpenBSD/vax.
3371 * configure.host: Add vax-*-openbsd*.
3372 * config/vax/obsd.mh: New file.
3373 * config/vax/nm-obsd.h: New file.
3375 * vax-tdep.c: Include "regset.h".
3376 (vax_supply_gregset): New function.
3377 (vax_gregset): New variable.
3378 (vax_regset_from_core_section): New function.
3379 (vax_gdbarch_init): Set regset_from_core_section.
3380 * Makefile.in (vax-tdep.o): Update dependencies.
3382 2004-04-15 Andrew Cagney <cagney@redhat.com>
3384 * observer.c (normal_stop_subject, observer_notify_normal_stop)
3385 (observer_normal_stop_notification_stub)
3386 (observer_attach_normal_stop, observer_detach_normal_stop):
3387 Delete, replaced by #include "observer.inc".
3388 * infrun.c (normal_stop): Pass "stop_bpstat" to
3389 observer_notify_normal_stop.
3390 * Makefile.in (observer_inc): Define.
3391 (observer.o): Update dependencies.
3392 (observer.h, observer.inc): New rules.
3393 * observer.h: Delete file.
3394 * observer.sh: New file.
3396 2004-04-15 Mark Kettenis <kettenis@gnu.org>
3398 * vax-tdep.c (vax_frame_cache): Fix typo.
3400 2004-04-14 Mark Kettenis <kettenis@gnu.org>
3402 * NEWS (New native configurations): Mention NetBSD/vax.
3403 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
3404 * config/vax/nbsdelf.mh: New file.
3405 * config/vax/nbsdaout.mh: New file.
3406 * config/vax/nm-nbsd.h: New file.
3407 * config/vax/nm-nbsdaout.h: New file.
3409 * vaxnbsd-tdep.c: New file.
3410 * Makefile.in (vaxnbsd-tdep.o): New dependency.
3411 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
3412 * config/vax/nbsd.mt: New file.
3413 * config/vax/tm-nbsd.h: New file.
3415 * Makefile.in (vaxbsd-nat.o): New dependency.
3417 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
3418 * vax-tdep.c (vax_store_arguments): Remove struct_return and
3419 struct_addr arguments. Don't push return value address.
3420 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
3421 arguments to vax_store_arguments. Store return value address in
3423 (vax_store_struct_return, vax_extract_return_value)
3424 (vax_store_return_value): Remove functions.
3425 (vax_return_value): New function.
3426 (vax_gdbarch_init): Set return value. Don't set
3427 deprecated_store_struct_return, deprecated_extract_struct_return
3428 and deprecated_store_return_value.
3430 2004-04-14 Andreas Schwab <schwab@suse.de>
3432 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
3434 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
3436 2004-04-14 Mark Kettenis <kettenis@gnu.org>
3438 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
3439 (vax_unwind_dummy_id): New functions.
3440 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
3441 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
3443 (vax_fix_call_dummy): Remove function.
3444 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
3445 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
3446 call_dummy_location, deprecated_call_dummy_words,
3447 deprecated_sizeof_call_dummy_words,
3448 deprecated_call_dummy_breakpoint_offset,
3449 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
3450 and deprecated_dummy_write_sp.
3452 2004-04-13 David Carlton <carlton@kealia.com>
3454 * MAINTAINERS: Move myself to "paper trail" section.
3456 2004-04-12 Mark Kettenis <kettenis@gnu.org>
3458 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
3460 (vax_frame_init_saved_regs): Remove function.
3461 (vax_sigtramp_saved_pc): Remove function.
3462 (vax_frame_saved_pc): Remove function.
3463 (vax_frame_args_address): Remove function.
3464 (vax_frame_num_args): Rewrite.
3465 (vax_frame_chain): Remove function.
3466 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
3468 (vax_pop_frame): Likewise.
3469 (vax_saved_pc_after_call): Remove function.
3470 (struct vax_frame_cache): New structure.
3471 (vax_frame_cache): New function.
3472 (vax_frame_this_id): New function.
3473 (vax_frame_prev_register): New function.
3474 (vax_frame_unwind): New variable.
3475 (vax_frame_sniffer): New function.
3476 (vax_frame_base_address): New function.
3477 (vax_frame_args_address): New function.
3478 (vax_frame_base): New variable.
3479 (vax_unwind_pc): New function.
3480 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
3481 deprecated_fp_regnum, deprecated_saved_pc_after_call,
3482 deprecated_frame_chain, deprecated_frame_saved_pc,
3483 deprecated_frame_args_address and
3484 deprecated_frame_init_saved_regs.
3485 * Makefile.in (vax-tdep.o): Update dependencies.
3487 * vaxbsd-nat.c: New file.
3489 * vax-tdep.h: Update copyright year. Adjust comments.
3490 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
3491 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
3492 (vax_regnum): New enum. Replacing...
3493 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
3494 (VAX_PS_REGNUM): ... these removed macros.
3495 * vax-tdep.c (vax_register_name): Remove prototype.
3496 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
3497 (vax_register_byte, vax_register_raw_size,
3498 vax_register_virtual_size, vax_register_virtual_type): Remove
3500 (vax_register_type): New function.
3501 (vax_breakpoint_from_pc): Reorganize.
3502 (vax_gdbarch_init): Set register_type. Don't set
3503 deprecated_register_size, deprecated_register_bytes,
3504 deprecated_register_byte, deprecated_register_raw_size,
3505 deprecated_max_register_raw_size,
3506 deprecated_register_virtual_size,
3507 deprecated_max_register_virtual_size and
3508 deprecated_register_virtual_type. Add comment on stack direction.
3510 2004-04-11 Mark Kettenis <kettenis@gnu.org>
3512 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
3513 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
3514 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
3516 2004-04-10 Randolph Chung <tausq@debian.org>
3518 * MAINTAINERS (write after approval): Add myself.
3520 2004-04-07 Randolph Chung <tausq@debian.org>
3522 * hppa-tdep.c (hppa_inner_than): Remove.
3523 (is_pa_2): Remove unused static variable.
3524 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
3526 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
3528 * language.h (language_defn): Add new la_post_parser field.
3529 * parser-defs.h (null_post_parser): New declaration (default for
3532 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
3533 insert call to that function.
3534 (parse_exp_in_context): New function, including code formerly in
3535 parse_exp_1. Calls language-dependent post-parser after
3537 (parse_expression_in_context): New exported function.
3538 (null_post_parser): New definition.
3539 * expression.h (parse_expression_in_context): Add declaration.
3541 * p-lang.c (pascal_language_defn): Add trivial post-parser.
3542 * c-lang.c (c_language_defn): Ditto.
3543 (cplus_language_defn): Ditto.
3544 (asm_language_defn): Ditto.
3545 (minimal_language_defn): Ditto.
3546 * f-lang.c (f_language_defn): Ditto.
3547 * jv-lang.c (java_language_defn): Ditto.
3548 * language.c (unknown_language_defn): Ditto.
3549 (auto_language_defn): Ditto.
3550 (local_language_defn): Ditto.
3551 * m2-lang.c (m2_language_defn): Ditto.
3552 * scm-lang.c (scm_language_defn): Ditto.
3553 * obj-lang.c (objc_language_defn): Ditto.
3555 2004-04-10 Mark Kettenis <kettenis@gnu.org>
3557 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
3558 (amd64nbsd_mcontext_addr): New function.
3559 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
3560 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
3561 with amd64nbsd_r_reg_offset, instead of building it on the fly.
3563 * corelow.c (core_xfer_partial): Fix coding standards violation.
3564 Add support for TARGET_OBJECT_WCOOKIE.
3566 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
3567 deprecated_pc_in_sigtramp.
3568 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
3569 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
3570 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
3571 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
3572 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
3573 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
3574 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
3576 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
3577 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
3580 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
3581 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
3582 (amd64_collect_fxsave): Likewise.
3584 * i386-sol2-tdep.c: Include "gdb_string.h".
3585 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
3587 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
3589 2004-04-10 Mark Kettenis <kettenis@gnu.org>
3591 * i386-sol2-tdep.c: Include "solib-svr4.h".
3592 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
3593 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
3594 * config/i386/tm-i386sol2.h: Include :solib.h".
3595 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
3596 solib-svr4.o and solib-legacy.o.
3597 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
3600 2004-04-09 Mark Kettenis <kettenis@gnu.org>
3602 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
3603 whether a register is supplied by PTRACE_GETFPREGS.
3604 (store_inferior_registers): Likewise.
3605 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
3606 whether a register is supplied by PT_GETFPREGS.
3607 (store_inferior_registers): Likewise.
3609 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
3610 * config/i386/linux64.mt (TDEPFILES): Likewise.
3612 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
3614 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
3615 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
3616 the program counter is in the range specified by `struct
3618 * amd64-linux-tdep.c: Include "symtab.h".
3619 (amd64_linux_pc_in_sigtramp): Remove function.
3620 (amd64_linux_sigtramp_p): New function.
3621 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
3622 deprecated_pc_in_sigtramp.
3623 * amd64nbsd-tdep.c: Include "symtab.h".
3624 (amd64nbsd_sigtramp_p): New function.
3625 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
3626 deprecated_pc_in_sigtramp.
3627 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
3629 (amd64obsd_pc_in_sigtramp): Remove function.
3630 (amd64obsd_sigtramp_p): New function.
3631 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
3632 deprecated_pc_in_sigtramp.
3633 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
3634 (i386bsd_pc_ins_sigtramp): Remove prototype.
3635 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
3636 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
3637 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
3638 the program counter is in the range specified by `struct
3640 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
3641 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
3642 (i386_go32_pc_in_sigtramp): Remove function.
3643 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
3644 Initialize TDEP->sigtramp_p.
3645 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
3646 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
3647 deprecated_pc_in_sigtramp.
3648 * i386-linux-tdep.c: Adjust comments.
3649 (i386_linux_pc_in_sigtramp): Remove function.
3650 (i386_linux_sigtramp_p): New function.
3651 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
3652 deprecated_pc_in_sigtramp.
3653 * i386-nto-tdep.c: Update copyright year.
3654 (i386nto_pc_in_sigtramp): Remove function.
3655 (i386nto_sigtramp_p): New function.
3656 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
3658 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
3659 deprecated_pc_in_sigtramp.
3660 * i386-sol2-tdep.c: Update copyright year.
3661 (i386_sol2_pc_in_sigtramp): Remove function.
3662 (i386_sol2_sigtramp_p): New function.
3663 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
3664 deprecated_pc_in_sigtramp.
3665 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
3666 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
3667 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
3668 deprecated_sigtramp_start and deprecated_sigtramp_end.
3669 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
3670 (i386nbsd_pc_in_sigtramp): Remove function.
3671 (i386nbsd_sigtramp_p): New function.
3672 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
3673 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
3674 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
3675 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
3676 (i386obsd_pc_in_sigtramp): Remove function.
3677 (i386obsd_sigtramp_p): New function.
3678 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
3680 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
3681 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
3683 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
3684 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
3687 * config/i386/i386aout.mt: Remove file.
3689 * configure.tgt: Remove i[34567]86-*-go32*,
3690 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
3691 and i[34567]86-*-isc*. Set gdb_target to i386 for
3692 i[34567]86-*-netware* and i[34567]86-*-*.
3693 * config/i386/i386.mt: New file.
3694 * config/i386/embed.mt: Remove file.
3695 * config/i386/go32.mt: Remove file.
3696 * config/i386/i386nw.mt: Remove file.
3697 * config/i386/i386v.mt: Remove file.
3698 * config/i386/tm-go32.h: Remove file.
3700 * tui/tui-hooks.c: Include "readline/readline.h" after
3701 "gdb_curses.h" instead of before.
3702 * tui/tui-io.c: Likewise.
3704 * tui/tui.c: Fix typo in comment.
3706 * sparc64-tdep.c (sparc_address_from_register): Remove function.
3708 2004-04-08 Andrew Cagney <cagney@redhat.com>
3710 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
3711 (deprecated_exception_support_initialized): Declare.
3712 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
3713 (initialize_hp_cxx_exception_support)
3714 (child_enable_exception_callback): Update.
3715 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
3716 (deprecated_exception_support_initialized): Rename
3717 deprecated_exception_catchpoints_are_fragile and
3718 deprecated_exception_support_initialized.
3719 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
3721 * symtab.c (deprecated_hp_som_som_object_present): Rename
3722 hp_som_som_object_present.
3723 * symtab.h (deprecated_hp_som_som_object_present): Declare.
3724 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
3725 Update. Delete extern declaration.
3726 * valops.c (hp_som_som_object_present): Ditto.
3727 * parse.c (deprecated_hp_som_som_object_present)
3728 (parse_nested_classes_for_hpacc): Ditto.
3729 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
3730 * hppa-hpux-tdep.c (hp_som_som_object_present)
3731 (initialize_hp_cxx_exception_support): Ditto.
3732 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
3733 * cp-valprint.c (hp_som_som_object_present)
3734 (cp_print_class_method): Ditto.
3735 * c-typeprint.c (hp_som_som_object_present):
3736 (c_type_print_base): Ditto.
3737 * c-exp.y (hp_som_som_object_present): Ditto.
3739 2004-04-08 Andrew Cagney <cagney@redhat.com>
3741 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
3742 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
3743 (frame_unwind_find_by_frame): Re-implement the unwind code so
3744 that it can both prepend and append sniffers. Replace
3745 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
3746 * tramp-frame.c (tramp_frame_append): Use
3747 frame_unwind_prepend_unwinder.
3748 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
3749 frame_unwind_register_unwinder.
3750 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
3752 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
3753 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
3754 (mips_linux_init_abi): Update.
3756 2004-04-08 Kevin Buettner <kevinb@redhat.com>
3758 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
3759 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
3762 2004-04-07 Kevin Buettner <kevinb@redhat.com>
3764 * ia64-tdep.c (elf.h): Don't include.
3765 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
3767 2004-04-07 Jason Molenda (jmolenda@apple.com)
3769 * frame.h: Typeo corrections in comments.
3771 2004-04-07 Jim Blandy <jimb@redhat.com>
3773 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
3776 2004-04-07 Mark Kettenis <kettenis@gnu.org>
3778 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
3779 * config/sparc/linux64.mt (TDEPFILES): Likewise.
3780 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3781 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
3783 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
3785 * config/sparc/tm-sol2.h: Update copyright year. Include
3788 * sparc-sol2-tdep.c: Update copyright year. Include
3790 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
3791 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
3792 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
3793 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
3796 2004-04-06 Andrew Cagney <cagney@redhat.com>
3798 * infttrace.c: Include "infttrace.h".
3799 * infttrace.h: Include "target.h".
3800 * Makefile.in (infttrace_h): Update.
3801 (infttrace.o): Update.
3803 2004-04-06 Andrew Cagney <cagney@redhat.com>
3805 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
3806 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
3807 move extern declarations from here ...
3808 * infttrace.h: ... to here.
3809 * Makefile.in (hppah-nat.o): Update dependencies.
3811 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
3812 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
3813 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
3814 (hppa_breakpoint_from_pc): Delete.
3816 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
3818 2004-04-05 Andrew Cagney <cagney@redhat.com>
3820 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
3821 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
3824 2004-04-06 Randolph Chung <tausq@debian.org>
3826 Committed by Andrew Cagney (mechanical change).
3827 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
3828 exception_catchpoints_are_fragile, find_stub_with_shl_get,
3829 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
3830 child_enable_exception_callback, current_ex_event,
3831 null_symtab_and_line, child_get_current_exception_event,
3832 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
3833 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
3834 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
3835 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
3836 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
3837 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
3838 Move hpux-specific definitions ...
3839 * hppa-hpux-tdep.c: ... to here.
3841 2004-04-05 Andrew Cagney <cagney@redhat.com>
3843 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
3844 skip_prologue_using_sal.
3846 2004-04-05 Andrew Cagney <cagney@redhat.com>
3848 * config/i386/tm-i386.h: Delete file.
3849 * config/i386/tm-vxworks.h: Update copyright, do not include
3851 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
3852 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
3853 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
3854 * config/i386/ncr3000.mt (TM_FILE): Delete.
3855 * config/i386/interix.mt (TM_FILE): Delete.
3856 * config/i386/i386v.mt (TM_FILE): Delete.
3857 * config/i386/i386nw.mt (TM_FILE): Delete.
3858 * config/i386/i386gnu.mt (TM_FILE): Delete.
3859 * config/i386/i386aout.mt (TM_FILE): Delete.
3860 * config/i386/embed.mt (TM_FILE): Delete.
3862 2004-04-05 Kevin Buettner <kevinb@redhat.com>
3864 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
3865 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
3866 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
3867 (accg7_regnum): New constants.
3868 (last_spr_regnum, last_pseudo_regnum): Update.
3869 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
3870 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
3871 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
3873 (frv_register_sim_regno): Update spr_map[].
3875 2004-04-04 Andrew Cagney <cagney@redhat.com>
3877 * config/mips/xm-riscos.h: Delete.
3878 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
3879 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
3880 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
3881 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
3882 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
3883 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
3884 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
3885 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
3886 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
3887 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
3888 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
3889 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
3890 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
3891 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
3892 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
3893 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
3894 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
3895 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
3896 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
3897 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
3898 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
3899 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
3900 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
3901 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
3902 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
3903 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
3905 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
3906 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
3907 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
3908 * configure.host: Remove m680[01]0-sun-sunos3*,
3909 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
3910 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
3911 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
3912 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
3914 * NEWS: Mention removed systems.
3916 2004-04-04 Andrew Cagney <cagney@redhat.com>
3918 GDB 6.1 release created from 6.1 branch.
3920 2004-04-04 Andrew Cagney <cagney@redhat.com>
3922 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
3923 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3924 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
3926 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
3927 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
3928 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
3930 2004-04-03 Jim Blandy <jimb@redhat.com>
3932 * MAINTAINERS: Chris Faylor has changed employers; add him to
3933 "paper trail" section, and update his E-mail address.
3935 2004-04-03 Andrew Cagney <cagney@redhat.com>
3937 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
3938 generic dummy frames.
3939 * dummy-frame.c: Update copyright.
3940 (dummy_frame_sniffer): Delete check for generic dummy frames.
3942 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
3943 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
3944 (REG_PARM_STACK_SPACE): Delete.
3945 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
3946 Inline reference to REG_PARM_STACK_SPACE.
3948 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
3949 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
3950 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3951 (FRAME_BASE_BEFORE_SIGTRAMP)
3952 (hppa32_hpux_frame_base_before_sigtramp)
3953 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
3954 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
3955 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
3956 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
3957 (FRAME_BASE_BEFORE_SIGTRAMP)
3958 (hppa64_hpux_frame_base_before_sigtramp)
3959 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
3961 2004-04-03 Andrew Cagney <cagney@redhat.com>
3963 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
3965 2004-04-02 Andrew Cagney <cagney@redhat.com>
3967 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
3968 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
3969 * dummy-frame.h: Delete out-of-date comments.
3970 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
3971 * gdbarch.h, gdbarch.c: Re-generate.
3973 2004-04-02 Joel Brobecker <brobecker@gnat.com>
3975 Committed by Andrew Cagney <cagney@redhat.com>.
3976 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
3977 into account an instruction saving a register if we have already
3978 seen an earlier instruction saving that same register.
3980 2004-04-02 Andrew Cagney <cagney@redhat.com>
3982 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
3983 * gdbarch.h, gdbarch.c: Re-generate.
3984 * frame.c (legacy_get_prev_frame): Delete references to
3985 DEPRECATED_INIT_FRAME_PC_FIRST.
3987 * infrun.c (pc_in_sigtramp): Delete function.
3988 (check_sigtramp2): Inline call to pc_in_sigtramp, use
3991 2004-04-02 Andrew Cagney <cagney@redhat.com>
3993 * infrun.c (handle_step_into_function): Delete code conditional on
3995 (handle_inferior_event, step_over_function): Ditto.
3997 2004-04-02 Andrew Cagney <cagney@redhat.com>
3999 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
4000 "previous frame inner to this frame" test.
4002 2004-04-02 Andrew Cagney <cagney@redhat.com>
4004 * frame.c (safe_frame_unwind_memory): New function.
4005 * frame.h (safe_frame_unwind_memory): Declare. Update description
4007 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
4008 "next_frame". Use safe_frame_unwind_memory.
4009 (tramp_frame_sniffer): Update call to tramp_frame_start.
4011 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
4013 * dwarf2read.c (dwarf2_objfile_data_key): New.
4014 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
4015 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
4016 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
4017 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
4018 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
4019 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
4020 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
4022 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
4023 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
4024 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
4025 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
4026 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
4027 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
4029 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
4031 (dwarf2_locate_sections, dwarf2_build_psymtabs)
4032 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
4033 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
4034 (read_partial_die, read_full_die, read_indirect_string)
4035 (dwarf_decode_line_header, dwarf_decode_macros)
4036 (dwarf2_symbol_mark_computed): Remove use of removed macros.
4037 Update uses of removed variables.
4038 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
4040 (_initialize_dwarf2_read): New function.
4041 * symfile.h (dwarf2_has_info): Update prototype.
4042 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
4043 * elfread.c (elf_symfile_read): Likewise.
4045 2004-04-01 Jim Blandy <jimb@redhat.com>
4047 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
4048 function for register numbers on all the rs6000-derived targets.
4049 (rs6000_gdbarch_init): Don't register a separate
4050 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
4051 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
4054 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
4057 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
4059 * valarith.c: Update copyright notice.
4060 (value_add): Handle range types.
4062 (value_equal): Ditto.
4063 (value_less): Ditto.
4065 (value_complement): Ditto.
4066 (value_binop): Simplify slightly by using is_integral_type and
4067 eliminiating unnecessary COERCE_ENUMs.
4069 2004-03-31 Andrew Cagney <cagney@redhat.com>
4071 * frame.h (frame_unwind_id): Declare.
4072 * frame.c (frame_unwind_id): New function.
4073 (get_prev_frame_1): New function.
4074 (frame_debug_got_null_frame): New function.
4075 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
4076 code proper to prev_frame, update description.
4077 * infrun.c (step_over_function): Use frame_unwind_id.
4079 2004-04-31 J. Brobecker <brobecker@gnat.com>
4081 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
4082 (hppa64_push_dummy_call): Likewise.
4084 2004-03-30 Jim Blandy <jimb@redhat.com>
4086 From Ulrich Weigand:
4087 * utils.c (query): Do not use a va_list variable multiple times.
4089 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
4091 * Makefile.in (linux_nat_h): Update dependencies.
4092 * configure.in: Check for <gnu/libc-version.h>.
4093 * configure: Regenerate.
4094 * config.in: Regenerate.
4095 * linux-nat.h: Include "target.h". Add waitstatus field to
4097 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
4098 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
4100 (lin_lwp_handle_extended): New function. Handle clone events.
4101 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
4103 (child_wait): Handle clone events.
4104 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
4105 * linux-nat.c (linux_enable_event_reporting): Turn on
4106 PTRACE_O_TRACECLONE.
4107 (linux_handle_extended_wait): Handle clone events.
4108 * thread-db.c: Include <gnu/libc-version.h>.
4109 (struct private_thread_info): Add dying flag.
4110 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
4112 (attach_thread): Update comments. Handle dying threads.
4113 (detach_thread): Set the dying flag.
4114 (check_event): Always call attach_thread.
4116 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
4118 * mips-tdep.c (mips_pdr_data): New.
4119 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
4120 (_initialize_mips_tdep): Initialize mips_pdr_data.
4122 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
4124 * minsyms.c (install_minimal_symbols): Move dropping leading
4125 char from linkage name from here...
4126 (prim_record_minimal_symbol_and_info): ...to here. Simplify
4127 test for "__gnu_compiled*" symbols.
4129 2004-03-28 Jim Blandy <jimb@redhat.com>
4131 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
4132 registers to temp register r0 and byte stores as prologue
4135 2004-03-28 Andrew Cagney <cagney@redhat.com>
4137 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
4140 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
4142 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
4143 and switch the layout to force a display of register window.
4145 2004-02-26 J. Brobecker <brobecker@gnat.com>
4147 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
4148 of the INTEGER class.
4150 2004-03-26 Jim Blandy <jimb@redhat.com>
4152 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
4153 bytes long on PPC GNU/Linux.
4155 2004-03-26 David Carlton <carlton@kealia.com>
4157 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
4159 2004-03-25 Andrew Cagney <cagney@redhat.com>
4161 * PROBLEMS: Add general section titles, remove references to
4164 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
4166 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
4168 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
4169 FP_REGISTER_VIRTUAL_SIZE.
4170 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
4171 of DEPRECATED_REGISTER_RAW_SIZE.
4172 (arm_register_type): Add gdbarch argument.
4173 (arm_register_raw_size, arm_register_virtual_size): Delete.
4174 (arm_register_byte, arm_extract_return_value)
4175 (arm_store_return_value, arm_get_longjmp_target): Update references
4176 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
4177 (arm_gdbarch_init): Likewise. Don't set
4178 deprecated_register_raw_size, deprecated_register_virtual_size,
4179 deprecated_max_register_raw_size,
4180 deprecated_max_register_virtual_size, or
4181 deprecated_max_register_virtual_type. Do set register_type.
4182 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
4183 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
4184 (FP_REGISTER_VIRTUAL_SIZE): Delete.
4185 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
4186 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
4187 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
4189 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
4190 (remote_rdp_store_register): Likewise.
4192 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
4194 * Makefile.in (mips-linux-tdep.o): Update dependencies.
4195 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
4196 to after osabi initialization.
4197 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
4198 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
4200 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
4201 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
4203 (mips_linux_init_abi): Append signal trampoline unwinders.
4205 2004-03-24 Andrew Cagney <cagney@redhat.com>
4207 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
4208 * tramp-frame.c: Include "gdb_assert.h".
4209 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
4211 (tramp_frame_append): Validate the tramp frame's instructions.
4212 * Makefile.in (tramp-frame.o): Update dependencies.
4214 2004-03-23 Andrew Cagney <cagney@redhat.com>
4216 * trad-frame.h (trad_frame_set_reg_addr): Declare.
4218 2004-03-23 Andrew Cagney <cagney@redhat.com>
4220 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
4221 Nasser as past testsuite/lib/ (and other) maintainers.
4223 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
4225 * infcmd.c (attach_command): Reread symbols if we already have
4228 2004-03-23 Andrew Cagney <cagney@redhat.com>
4230 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
4232 2004-03-23 Andrew Cagney <cagney@redhat.com>
4234 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
4235 * gdbarch.h, gdbarch.c: Re-generate.
4236 * i386obsd-tdep.c (i386obsd_init_abi): Update.
4237 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
4238 * i386bsd-tdep.c (i386bsd_init_abi): Update.
4239 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
4240 (DEPRECATED_SIGTRAMP_START): Update.
4241 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
4242 (DEPRECATED_SIGTRAMP_START): Update.
4243 * blockframe.c (find_pc_sect_partial_function): Update.
4244 * arch-utils.c (legacy_pc_in_sigtramp): Update.
4246 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
4248 * remote.c (remote_open_1): Reopen the exec file and reread symbols
4251 2004-03-23 Andrew Cagney <cagney@redhat.com>
4253 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
4254 predicate, deprecate.
4255 * gdbarch.h, gdbarch.c: Re-generate.
4256 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
4257 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
4258 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
4259 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
4260 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
4261 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
4262 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
4263 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
4264 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
4265 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
4266 * blockframe.c (find_pc_partial_function): Update.
4267 * breakpoint.c (bpstat_what): Update.
4268 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
4269 * frv-linux-tdep.c (frv_linux_init_abi): Update.
4270 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
4271 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
4272 * i386-interix-tdep.c (i386_interix_init_abi): Update.
4273 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4274 * i386-nto-tdep.c (i386nto_init_abi): Update.
4275 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
4276 * i386-tdep.c (i386_sigtramp_frame_sniffer)
4277 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
4278 * i386bsd-tdep.c (i386bsd_init_abi): Update.
4279 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
4280 * i386obsd-tdep.c (i386obsd_init_abi): Update.
4281 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
4282 * infrun.c (pc_in_sigtramp): Update.
4283 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
4284 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
4285 * mips-tdep.c (mips_gdbarch_init): Update.
4286 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
4287 * ppc-linux-tdep.c: Update comment.
4288 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
4289 * shnbsd-tdep.c (shnbsd_init_abi): Update.
4290 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
4291 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
4292 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
4293 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
4294 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
4295 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
4296 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
4297 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
4299 2004-03-23 Andrew Cagney <cagney@redhat.com>
4301 * tramp-frame.h, tramp-frame.h: New files.
4302 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
4303 Update rules to include "tramp-frame.h" and "tramp-frame.c".
4305 * Makefile.in: Update all dependencies.
4307 2004-03-23 Andrew Cagney <cagney@redhat.com>
4309 * Makefile.in (trad_frame_h): Add $(frame_h).
4310 * trad-frame.h: Update copyright. Include "frame.h".
4311 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
4312 (trad_frame_set_id, trad_frame_get_id): Declare.
4313 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
4314 * trad-frame.c: Update copyright.
4315 (struct trad_frame_cache): Define.
4316 (trad_frame_cache_zalloc): New function.
4317 (trad_frame_set_id, trad_frame_get_id): New functions.
4318 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
4320 2004-03-22 Andrew Cagney <cagney@redhat.com>
4322 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
4323 s390_pltstub_unwind_cache.
4324 (s390_stub_frame_unwind_cache): Rename
4325 s390_pltstub_frame_unwind_cache.
4326 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
4327 (s390_stub_frame_prev_register): Rename
4328 s390_pltstub_frame_prev_register.
4329 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
4330 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
4332 From Ulrich Weigand:
4333 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
4334 pointer calls like PLT calls.
4336 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
4338 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
4339 PC rather than the partial function start address. Use the start
4340 address to sanity check the found PDR.
4342 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
4344 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
4345 linux_handle_extended_wait.
4347 2004-03-22 Andrew Cagney <cagney@redhat.com>
4349 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
4352 * frame.h (generic_pop_current_frame): Delete declaration.
4353 (deprecate_pop_dummy_frame): Deprecate
4354 generic_pop_dummy_frame.
4355 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
4356 (generic_pop_current_frame): Delete function.
4357 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
4358 generic_pop_current_frame.
4359 * v850-tdep.c (v850_pop_frame): Update.
4360 * mcore-tdep.c (mcore_pop_frame): Update.
4361 * sh64-tdep.c (sh64_pop_frame): Update.
4362 * h8300-tdep.c (h8300_pop_frame): Update.
4364 2004-03-22 Andrew Cagney <cagney@redhat.com>
4366 * frame.h (deprecated_pc_in_call_dummy): Rename
4367 generic_pc_in_call_dummy.
4368 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
4369 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
4370 generic_pc_in_call_dummy.
4371 (pc_in_dummy_frame): Make static.
4372 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
4373 * gdbarch.h, gdbarch.c: Re-generate.
4374 * dummy-frame.c (dummy_frame_sniffer): Simplify.
4375 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
4376 (legacy_get_prev_frame): Ditto.
4377 * inferior.h: Delete reference to generic_pc_in_call_dummy in
4380 2004-03-21 Andrew Cagney <cagney@redhat.com>
4382 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
4383 declaration and out-of-date comment.
4384 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
4386 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
4387 deprecated_pc_in_call_dummy.
4389 * infrun.c (handle_inferior_event): For non legacy frames, use the
4390 frame ID and frame type to identify a signal trampoline. Update
4393 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
4395 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
4396 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
4398 2004-03-21 Andrew Cagney <cagney@redhat.com>
4400 * frame-unwind.h: Update copyright.
4401 (struct frame_data): Add opaque declaration.
4402 (frame_sniffer_ftype): Declare.
4403 (struct frame_unwind): Add "unwind_data" and "sniffer".
4404 (frame_unwind_register_unwinder): Declare.
4405 (frame_unwind_find_by_frame): Add parameter "this_cache".
4406 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
4407 (legacy_get_prev_frame, legacy_get_prev_frame)
4408 (get_frame_type): Pass the prologue_cache to
4409 frame_unwind_find_by_frame.
4410 * frame-unwind.c (struct frame_unwind_table_entry): Add field
4412 (frame_unwind_register_unwinder): New function.
4413 (frame_unwind_find_by_frame): Handle an unwind sniffer.
4415 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
4417 * bcache.c (print_percentage): Use floating point to avoid
4418 incorrect results when portion*100 overflows.
4420 2004-03-19 Kevin Buettner <kevinb@redhat.com>
4422 * ppc_tdep.h (ppc_linux_frame_saved_pc)
4423 (ppc_linux_init_extra_frame_info)
4424 (ppc_linux_frameless_function_invocation)
4425 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
4426 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
4427 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
4428 (rs6000_frame_chain): Delete declarations.
4429 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
4430 (ppc_linux_init_extra_frame_info)
4431 (ppc_linux_frameless_function_invocation)
4432 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
4433 (ppc_linux_init_abi): Remove registration of above deleted functions.
4434 * rs6000-tdep.c (rs6000_init_extra_frame_info)
4435 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
4436 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
4437 (rs6000_pop_frame, rs6000_frameless_function_invocation)
4438 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
4439 (rs6000_gdbarch_init): Remove registration of above deleted functions.
4440 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
4441 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
4442 frame management for all OSABIs.
4444 2004-03-19 Andrew Cagney <cagney@redhat.com>
4446 Committed by Kevin Buettner <kevinb@redhat.com>.
4448 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
4450 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
4451 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
4452 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
4453 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
4454 unwinders. #ifdef legacy frame code.
4455 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
4457 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
4458 (struct rs6000_frame_cache, rs6000_frame_cache)
4459 (rs6000_frame_this_id, rs6000_frame_prev_register)
4460 (rs6000_frame_sniffer, rs6000_frame_unwind)
4461 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
4462 (rs6000_frame_base): Implement a traditional frame unwinder.
4463 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
4466 2004-03-19 Kevin Buettner <kevinb@redhat.com>
4468 * breakpoint.c (adjust_breakpoint_address): Don't adjust
4469 breakpoint address for watchpoints or the catch eventpoints.
4470 Add new paramter ``bptype''. Adjust all callers.
4472 2004-03-19 Andrew Cagney <cagney@redhat.com>
4474 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
4476 * PROBLEMS: Delete note that ARM does not use frame code, problem
4479 2004-03-18 Andrew Cagney <cagney@redhat.com>
4481 * stack.c (return_command): Delete code wrapped in #ifdef
4482 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
4484 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
4486 2004-03-18 Andrew Cagney <cagney@redhat.com>
4488 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
4489 DEPRECATED_IN_SIGTRAMP.
4490 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4491 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
4492 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4493 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4494 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4495 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4496 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4497 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
4498 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
4499 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
4501 2004-03-18 Andrew Cagney <cagney@redhat.com>
4503 * frame-base.c: Update copyright. Include "gdb_obstack.h".
4504 (struct frame_base_table_entry): Define.
4505 (struct frame_base_table): Re-implement as a linked list.
4506 (frame_base_init): Re-implement.
4507 (frame_base_table): Delete function.
4508 (append_predicate): Delete function.
4509 (frame_base_append_sniffer): Update.
4510 (frame_base_set_default): Update.
4511 (frame_base_find_by_frame): Update.
4512 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
4513 * Makefile.in (frame-base.o): Update dependencies.
4515 2004-03-17 Andrew Cagney <cagney@redhat.com>
4517 * frame.c (legacy_get_prev_frame): Pass correct frame to
4518 frame_unwind_find_by_frame.
4520 2004-03-17 David Carlton <carlton@kealia.com>
4522 * NEWS: Mention C++ nested types and namespaces
4524 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
4526 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
4527 and "Regressions since gdb 5.3.". Add known regressions since
4530 2004-03-16 David Carlton <carlton@kealia.com>
4532 * dwarf2read.c (process_structure_scope): Process children even
4533 when we're a declaration.
4535 2004-03-16 Andrew Cagney <cagney@redhat.com>
4537 * symtab.h (find_pc_sect_partial_function): Delete declaration.
4538 * blockframe.c (find_pc_partial_function)
4539 (find_pc_sect_partial_function): Merge into a single
4540 find_pc_partial_function.
4542 2004-03-16 Mark Kettenis <kettenis@gnu.org>
4544 * i386bsd-nat.c: s/regno/regnum/g.
4545 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
4547 (store_inferior_registers): Likewise.
4549 2004-03-16 Mark Kettenis <kettenis@gnu.org>
4551 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
4553 (store_inferior_registers): Call i387_collect_fsave and
4554 i387_collect_fxsave instead of i387_fill_fsave and
4557 2004-03-15 Andrew Cagney <cagney@redhat.com>
4559 * Makefile.in (frame-unwind.o): Update dependencies.
4560 * frame-unwind.c: Include "gdb_obstack.h".
4561 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
4563 (append_predicate): Delete function.
4564 (struct frame_unwind_table_entry): New structure.
4565 (struct frame_unwind_table): Replace "sniffer" with "head" and
4567 (frame_unwind_append_sniffer): Update.
4568 (frame_unwind_find_by_frame): Update.
4569 (_initialize_frame_unwind): Registe frame_unwind_init using
4570 gdbarch_data_register_pre_init.
4572 2004-03-15 Mark Kettenis <kettenis@gnu.org>
4574 * i386bsd-nat.c: Update copyright year.
4575 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
4576 define unconditionally.
4578 2004-03-15 Mark Kettenis <kettenis@gnu.org>
4580 * i387-tdep.h (i387_collect_fsave): New prototype.
4581 * i387-tdep.c (i387_collect_fsave): New function containing most
4582 of the code from i387_fill_fsave.
4583 (i387_fill_fsave): Call i387_collect_fsave.
4585 2004-03-15 Mark Kettenis <kettenis@gnu.org>
4587 * i386-linux-tdep.c: Update copyright year.
4588 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
4589 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
4590 svr4_ilp32_link_map_offsets instead of
4591 i386_linux_svr4_fetch_link_map_offsets.
4593 2004-03-15 David Carlton <carlton@kealia.com>
4595 Fix for PR c++/1553:
4596 * dwarf2read.c (read_structure_type): Determine type name by
4597 calling determine_class_name.
4598 (determine_class_name): New.
4599 (determine_prefix): Look at TYPE_TAG_NAME and call
4600 determine_class_name when appropriate.
4601 (determine_prefix_aux, class_name): Delete.
4602 (read_namespace): Set die->type.
4604 2004-03-15 Kevin Buettner <kevinb@redhat.com>
4606 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
4607 unused macro definition. The definition in target.h (or perhaps
4608 elsewhere) takes precedence.
4610 2004-03-15 Andrew Cagney <cagney@redhat.com>
4612 * ppc-tdep.h: Update copyright.
4613 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
4614 function signatures to match "regsets.h".
4615 * ppc-linux-tdep.c: Include "regset.h".
4616 (ELF_GREGSET_SIZE): Delete.
4617 (right_supply_register): New function.
4618 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
4619 using right_supply_register.
4620 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
4622 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
4623 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
4624 (_initialize_ppc_linux_tdep): Do not register
4625 ppc_linux_regset_core_fns.
4626 (ppc_linux_regset_from_core_section): Replace
4627 fetch_core_registers.
4628 (ppc_linux_regset_core_fns): Delete.
4629 * ppc-linux-nat.c: (right_fill_reg): New function.
4630 (supply_gregset): Update call to ppc_linux_supply_gregset.
4631 (fill_gregset): Clear the register set, use right_fill_reg.
4632 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
4633 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
4635 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
4638 2004-03-15 Andrew Cagney <cagney@redhat.com>
4640 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
4641 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
4642 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
4643 and register_gdbarch_data.
4644 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
4645 (struct gdbarch_data): Replace "init" by "pre_init" and
4647 * gdbarch.h, gdbarch.c: Re-generate.
4648 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
4649 with"obstack", use OBSTACK_ZALLOC.
4650 (dwarf2_frame_ops): Delete.
4651 (dwarf2_frame_set_init_reg): Use gdbarch_data.
4652 (dwarf2_frame_init_reg): Use gdbarch_data.
4653 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
4654 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
4655 (_initialize_svr4_solib): Update.
4656 * user-regs.c (_initialize_user_regs): Update.
4657 * reggroups.c (_initialize_reggroup): Update.
4658 * regcache.c (_initialize_regcache): Update.
4659 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
4660 * libunwind-frame.c (_initialize_libunwind_frame): Update.
4661 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4662 * frame-unwind.c (_initialize_frame_unwind): Update.
4663 * frame-base.c (_initialize_frame_base): Update.
4664 * user-regs.c (user_reg_add): Update.
4665 * reggroups.c (reggroup_add): Update.
4666 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
4667 * libunwind-frame.c (libunwind_frame_set_descr): Update.
4668 * frame-unwind.c (frame_unwind_append_sniffer): Update.
4669 * frame-base.c (frame_base_table): Update.
4670 * remote.c (_initialize_remote): Update.
4671 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
4673 2004-03-15 Andrew Cagney <cagney@redhat.com>
4675 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
4677 2004-03-15 Kevin Buettner <kevinb@redhat.com>
4679 * Makefile.in (frv-linux-tdep.o): Add dependencies.
4680 * frv-linux-tdep.c: New file.
4681 * frv-tdep.c (struct gdbarch_tdep): Add new field
4682 ``sigcontext_reg_addr''.
4683 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
4684 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
4685 (frv_sigramp_frame_sniffer): New functions.
4686 (frv_sigtramp_frame_unwind): New static global.
4687 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
4689 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
4690 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
4692 2004-03-15 Kevin Buettner <kevinb@redhat.com>
4694 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
4695 but not via a call to error(), when unable to read memory.
4697 2004-03-15 Kevin Buettner <kevinb@redhat.com>
4699 * frv-tdep.c (frv_call_dummy_words): Delete.
4700 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
4702 2004-03-15 Andrew Cagney <cagney@redhat.com>
4704 * infrun.c (handle_step_into_function, step_over_function): Only
4705 update and use STEP_FRAME_ID when the system is using legacy
4706 frames. Update comments.
4708 2004-03-14 Mark Kettenis <kettenis@gnu.org>
4710 * amd64-linux-tdep.h: Remove file.
4711 * amd64-linux-tdep.c: Don't include "inferior.h" and
4712 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
4713 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
4714 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
4715 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
4716 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
4718 (user_to_gdb_regmap): Remove variable.
4719 (amd64_linux_gregset_reg_offset): New variable.
4720 (amd64_core_fns): Remove variable.
4721 (fetch_core_registers): Remove function.
4722 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
4724 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
4725 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
4726 * Makefile.in (amd64_linux_tdep_h): Remove.
4727 (amd64-linux-nat.o): Update dependencies.
4728 (amd64-linux-tdep.o): Update dependencies.
4730 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
4731 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
4733 (fetch_inferior_registers, store_inferior_registers): Rewrite.
4735 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
4736 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
4738 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
4740 * dwarf2read.c (read_structure_type): Rename from
4741 read_structure_scope. Don't create a symbol or call process_die.
4742 Return immediately if die->type is set. Call read_type_die before
4743 dwarf2_add_member_fn.
4744 (process_structure_scope): New function.
4745 (read_enumeration_type, process_enumeration_scope): New functions,
4746 broken out from read_enumeration. Don't create the enumeration
4747 type if it has already been created.
4748 (read_enumeration): Removed.
4749 (process_die): Call read_structure_type, process_structure_scope,
4750 read_enumeration_type, and process_enumeration_scope. Just call
4751 new_symbol for base and subrange types. Add a comment about other
4753 (read_type_die): Call read_enumeration_type.
4754 (add_partial_structure, new_symbol): Update comments.
4756 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
4758 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
4760 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
4762 * tui/tui-win.h (tui_get_cmd_list): Declare.
4763 * tui/tui-win.c (tui_command): New function.
4764 (tui_get_cmd_list): New function.
4765 (_initialize_tui_win): Moved initialization of tui command in
4768 * tui/tui-data.c (init_content_element): Setup new data members.
4769 (init_win_info): Likewise.
4770 (free_content_elements): Free it.
4771 * tui/tui-data.h (struct tui_data_element): Store the register
4773 (struct tui_data_info): Keep the current register group.
4775 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
4777 * tui/tui-regs.h (tui_show_registers): Update prototype.
4778 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
4779 (tui_resize_all): No need to calculate anything for register window.
4780 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
4781 (tui_set_register_element, tui_set_general_regs_content): Remove.
4782 (tui_set_special_regs_content): Remove.
4783 (tui_set_general_and_special_regs_content): Remove.
4784 (tui_set_float_regs_content): Remove.
4785 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
4786 (tui_set_regs_content): Remove.
4787 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
4788 (tui_v_show_registers_command_support): Remove.
4789 (tui_show_registers): Use a reggroup to specify the registers to show.
4790 (tui_show_register_group): New function.
4791 (tui_display_registers_from): Compute the layout of register window
4792 and refresh with new API; be sure to delete old register windows.
4793 (tui_check_register_values): Update to use tui_get_register and
4795 (tui_display_register): Just refresh the register window part.
4796 (tui_register_format): Format registers and save in tui_data_element.
4797 (tui_get_register): New to combine tui_reg_value_has_changed and
4798 tui_get_register_raw_value; fix to use the new gdb API.
4799 (tui_show_float_command): Renamed tui_reg_float_command.
4800 (tui_show_general_command): Renamed tui_reg_general_command.
4801 (tui_show_special_command): Renamed tui_reg_system_command.
4802 (_initialize_tui_regs): Remove unused commands.
4804 2004-03-13 Mark Kettenis <kettenis@gnu.org>
4806 * NEWS (New native configurations): Mention OpenBSD/amd64.
4808 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
4809 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
4811 * config/i386/nm-fbsd64.h: Likewise.
4812 * config/i386/nm-obsd.h: Likewise.
4813 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
4814 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
4816 2004-03-12 Kevin Buettner <kevinb@redhat.com>
4818 * frv-tdep.c (set_variant_scratch_registers): New function.
4819 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
4822 From Richard Sandiford <rsandifo@redhat.com>:
4823 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
4825 2004-03-12 Kevin Buettner <kevinb@redhat.com>
4827 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
4828 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
4829 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
4830 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
4831 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
4832 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
4833 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
4834 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
4835 definitions from frv-tdep.c to frv-tdep.h.
4837 2004-03-12 Kevin Buettner <kevinb@redhat.com>
4839 Add shared library support for FR-V FDPIC ABI:
4840 * Makefile.in (solib-frv.o): Add dependencies.
4841 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
4843 (frv_push_dummy_call): Add support for FDPIC ABI.
4844 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
4846 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
4847 (frv_fdpic_find_canonical_descriptor): Declare.
4848 * solib-frv.c: New file.
4849 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
4850 * config/frv/tm-frv.h (solib.h): Include.
4852 2004-03-12 Kevin Buettner <kevinb@redhat.com>
4854 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
4855 (frv-tdep.o): Update dependencies.
4856 * frv-tdep.h: New file.
4857 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
4858 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
4860 (struct gdbarch_tdep): Add new member ``frv_abi''.
4861 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
4863 (new_variant): Set ``frv_abi'' field.
4864 (gdb_arch_init): Detect FDPIC executables.
4866 2004-03-12 Mark Kettenis <kettenis@gnu.org>
4868 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
4871 2004-03-11 Andrew Cagney <cagney@redhat.com>
4873 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
4875 2004-03-11 Kevin Buettner <kevinb@redhat.com>
4877 * solist.h (master_so_list): New function.
4878 * solib.c (master_so_list): Likewise.
4879 * solib-svr4.c (enable_break): Iterate over so_list entries
4880 obtained from master list instead of entries obtained directly
4881 via svr4_current_sos().
4883 2004-03-10 Ben Elliston <bje@gnu.org>
4885 * MAINTAINERS: Update my mail address.
4887 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
4889 * remote-m32r-sdi.c: Support hardware watchpoint.
4891 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4893 * user-regs.c: Update copyright years.
4894 (struct user_regs): Rename to gdb_user_regs.
4895 (append_user_reg, builtin_user_regs, user_regs_init)
4896 (user_reg_add, user_reg_map_name_to_regnum)
4897 (usernum_to_user_reg): Update.
4899 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4901 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
4902 (skip_children): New functions.
4903 (locate_pdi_sibling): Call skip_children.
4905 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4907 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
4908 * gdbtypes.c (check_typedef): Update comments.
4910 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4912 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
4913 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
4914 pointer. Update comment about comp_unit_head.
4915 (struct abbrev_info): Shorten two int flags.
4916 (dwarf_alloc_abbrev): Take a CU argument.
4917 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
4918 each time through the loop. Update cleanup argument.
4919 (psymtab_to_symtab_1): Update cleanup call.
4920 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
4922 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
4923 Just call obstack_free and clear the pointer.
4925 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4927 * infrun.c (handle_inferior_event): Remove short-circuit code for
4928 events in a different thread.
4930 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4932 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
4933 print the whole transfer.
4934 (initialize_targets): Update description of "set debug target".
4936 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4938 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
4940 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
4942 * MAINTAINERS (write after approval): Add myself.
4944 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
4946 * sh-tdep.c (sh_print_registers_info): Use for loop.
4947 Don't skip multiple registers when a float register is encountered.
4949 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
4952 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
4953 to official SH documentation.
4955 2004-03-07 Andrew Cagney <cagney@redhat.com>
4957 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
4960 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
4962 * arm-tdep.c (thumb_get_next_pc): Handle BX.
4963 (arm_get_next_pc): Handle BX and BLX.
4965 2004-03-07 Andrew Cagney <cagney@redhat.com>
4967 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
4968 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
4970 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
4971 (hppa_target_read_fp): Delete.
4972 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
4973 register_virtual_size, max_register_raw_size,
4974 max_register_virtual_size, register_byte, register_size,
4975 target_read_fp, fp_regnum, and register_bytes. Set register_type
4976 instead of register_virtual_type.
4977 (hppa32_register_type, hppa64_register_type): Replace
4978 hppa32_register_virtual_type and hppa64_register_virtual_type.
4979 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
4980 (HPPA_FP_REGNUM): Define.
4982 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
4984 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
4985 (pa_do_registers_info): Delete.
4986 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
4987 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
4988 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
4990 * infcall.c (legacy_push_dummy_code): Delete #ifdef
4991 GDB_TARGET_IS_HPPA code.
4992 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
4993 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
4994 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
4995 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
4996 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
4997 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
4998 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
4999 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
5000 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
5001 (hppa_frameless_function_invocation, hppa64_store_return_value)
5002 (hppa_store_struct_return, hppa64_extract_return_value)
5003 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
5004 (hppa32_call_dummy_length, hppa64_call_dummy_length)
5005 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
5006 (find_proc_framesize, deposit_21, restore_pc_queue)
5007 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
5008 (rp_saved, pc_in_linker_stub): Delete.
5010 Unconditionally enable 64-bit frame and ABI code.
5011 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
5012 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
5013 push_dummy_frame, fix_call_dummy, push_arguments,
5014 call_dummy_location, extract_return_value, use_struct_convention,
5015 store_return_value, store_struct_return, saved_pc_after_call,
5016 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
5017 frame_chain, frame_chain_valid, frameless_function_invocation,
5018 frame_saved_pc, and pop_frame.
5020 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
5021 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
5022 (hppa_gdbarch_init): Do not set PC_REGNUM.
5024 2004-03-06 Mark Kettenis <kettenis@gnu.org>
5026 * config/alpha/tm-fbsd.h: Remove file.
5027 * config/alpha/fbsd.mt: Tweak comment.
5028 (TM_FILE): Set to tm-alpha.h.
5030 2004-03-05 Andrew Cagney <cagney@redhat.com>
5032 * infrun.c (step_over_function): When non-legacy code, and no
5033 step_frame_id, use the unwinder to get the caller's frame ID.
5035 2004-03-05 Mark Kettenis <kettenis@gnu.org>
5037 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
5038 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
5039 bfd_arch_unknown. Adjust comment.
5041 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
5042 * i386obsd-tdep.c: Correct spelling in comment.
5043 * i386nbsd-tdep.c: Correct spelling in comment.
5044 * sparc-tdep.c: Correct spelling in comments.
5046 2004-03-05 David Carlton <carlton@kealia.com>
5048 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
5051 2004-03-05 Mark Kettenis <kettenis@gnu.org>
5053 * sparc-tdep.c: Fix typo in comment.
5055 2004-03-04 J. Brobecker <brobecker@gnat.com>
5057 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
5059 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
5061 * dwarf2read.c: Add comment describing memory lifetimes.
5062 (struct dwarf2_pinfo): Update comment.
5063 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
5064 (read_enumeration, new_symbol): Don't use obsavestring.
5066 2004-03-04 Mark Kettenis <kettenis@gnu.org>
5068 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
5069 instead of amd64_fill_fxsave.
5070 * amd64bsd-nat.c (store_inferior_registers): Likewise.
5071 * amd64fbsd-nat.c (fill_fpregset): Likewise.
5073 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
5074 Reorganize code a bit.
5076 2004-03-04 Orjan Friberg <orjanf@axis.com>
5078 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
5079 when the frame pointer is pushed. Don't set the frame pointer's
5080 address on the stack unless it's actually located there.
5081 Set the SRP's address on the stack correctly when the PC is still in
5083 (cris_return_value): New function.
5084 (cris_gdbarch_init): Clear deprecated store_return_value,
5085 extract_return_value.
5087 2004-03-02 Jim Blandy <jimb@redhat.com>
5089 * stabsread.c (reg_value_complaint): The maximum register number
5090 is one less than the number of registers.
5092 2004-03-02 Andrew Cagney <cagney@redhat.com>
5094 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
5095 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
5096 trailing comma and redundant assignment of I386_ST0_REGNUM.
5097 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
5098 32-bit segment registers.
5100 2004-03-01 Andrew Cagney <cagney@redhat.com>
5102 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
5103 use frame_relative_level and get_next_frame.
5105 2004-02-29 Andrew Cagney <cagney@redhat.com>
5107 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
5108 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
5109 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
5112 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
5114 * inflow.c (terminal_inferior): Don't give up the terminal if we
5115 previously couldn't get the inferior's terminal state.
5117 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
5119 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
5122 2004-02-28 Andrew Cagney <cagney@redhat.com>
5124 * NEWS: Refer to GDB 6.1.
5125 * README: Refer to GDB 6.1.
5126 * PROBLEMS: Refer to GDB 6.1.
5128 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
5130 * thread-db.c (disable_thread_signals): Remove unused function.
5132 2004-02-28 Mark Kettenis <kettenis@gnu.org>
5134 * amd64-nat.c: Include "gdb_string.h".
5135 (amd64_collect_native_gregset): Zero-extend the 32-bit
5136 general-purpose registers and %eip.
5138 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
5139 * amd64-tdep.c (amd64_collect_fxsave): New function.
5140 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
5142 * i387-tdep.h: Update copyright year.
5143 (i387_collect_fxsave): New prototype.
5144 * i387-tdep.c: Update copyright year.
5145 (i387_collect_fxsave): New function containing most of the code
5146 from i387_fill_fxsave.
5147 (i387_fill_fxsave): Call i387_collect_fxsave.
5149 2004-02-28 Andrew Cagney <cagney@redhat.com>
5151 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
5152 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
5154 2004-02-28 Mark Kettenis <kettenis@gnu.org>
5156 * amd64-tdep.c (amd64_frame_cache): Fix comment.
5158 2004-02-28 Andrew Cagney <cagney@redhat.com>
5160 * utils.c: Use "", instead of <>, to include readline.
5161 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
5162 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
5163 * source.c, solib.c, exec.c, event-top.c: Ditto.
5164 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
5165 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
5166 * Makefile.in: Update all dependencies.
5167 (readline_tilde_h, readline_history_h): Define.
5168 (readline_headers): Delete.
5170 2004-02-28 Mark Kettenis <kettenis@gnu.org>
5172 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
5173 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
5174 "config/i386/tm-lx64.h".
5176 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
5177 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
5178 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
5180 2004-02-28 Andrew Cagney <cagney@redhat.com>
5182 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
5184 * breakpoint.c (_initialize_breakpoint): Use
5185 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
5186 Add help to show command.
5188 2004-02-28 Mark Kettenis <kettenis@gnu.org>
5190 * i386-nat.c: Reformat to be closer to coding standards.
5191 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
5192 `retval'. Make variables `align' and `size' local to while-loop.
5193 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
5194 (_initialize_i386_nat): New prototype.
5196 * tui/tui.c: Include <readline/readline.h> instead of
5197 "readline/readline.h". Include it after <term.h> and
5200 2004-02-27 Andrew Cagney <cagney@redhat.com>
5202 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
5203 the new frame unwind code.
5204 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
5205 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
5208 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
5209 "return_value" and "push_dummy_call".
5210 (hppa32_use_struct_convention): Delete unused function.
5211 (hppa32_store_return_value): Delete unused function.
5212 (hppa32_extract_return_value): Delete unused function.
5213 (hppa32_stack_align): Delete function.
5215 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
5217 * coffread.c (enter_linenos): Don't let rawptr reference memory
5218 outside linetab[]'s limits.
5220 2004-02-27 Andrew Cagney <cagney@redhat.com>
5222 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
5223 inferior stack space - the stack needs to grow upwards.
5224 (hppa32_frame_align): New function.
5225 (hppa64_frame_align): Replace hppa_frame_align.
5226 (hppa_gdbarch_init): Update.
5228 2004-02-26 Orjan Friberg <orjanf@axis.com>
5230 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
5231 (dwarf2-frame.h): Include.
5232 (enum cris_regnums): New enum CRIS_FP_REGNUM.
5233 Remove static variables related to ABI setting.
5234 (struct gdbarch_tdep): Remove cris_abi member.
5235 (struct frame_extra_info): Remove.
5236 (cris_unwind_cache, stack_item): New structs.
5237 (cris_frame_unwind, cris_frame_base): New variables.
5238 (push_stack_item, pop_stack_item)
5239 (cris_frame_unwind_cache, cris_frame_this_id)
5240 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
5241 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
5242 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
5243 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
5244 (cris_reg_struct_has_addr): New functions.
5245 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
5246 (cris_frame_saved_pc, cris_saved_pc_after_call,
5247 (cris_store_struct_return, cris_frameless_function_invocation)
5248 (cris_pop_frame, cris_skip_prologue_main)
5249 (cris_abi_original_store_return_value)
5250 (cris_abi_v2_store_return_value)
5251 (cris_abi_original_extract_return_value)
5252 (cris_abi_v2_extract_return_value)
5253 (cris_abi_original_reg_struct_has_addr)
5254 (cris_abi_v2_reg_struct_has_addr)
5255 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
5256 (cris_push_return_address, cris_abi_update): Remove.
5257 (_initialize_cris_tdep): Remove ABI command.
5258 (cris_dump_tdep): Ditto.
5259 (cris_gdbarch_init): Remove ABI command.
5260 Set store_return_value, extract_return_value, push_dummy_code,
5261 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
5262 frame_unwind_append_sniffer, frame_base_set_default.
5263 Clear deprecated init_frame_pc, push_arguments, store_return_value,
5264 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
5265 sizeof_call_dummy_words, get_saved_register, push_return_address,
5266 pop_frame, store_struct_return, frame_init_saved_regs,
5267 init_extra_frame_info, frameless_function_invocation, frame_chain,
5268 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
5271 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
5273 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
5274 * valprint.c (print_hex_chars): Change from static to external.
5275 (print_char_chars): New function.
5276 * printcmd.c (print_scalar_formatted): For integer and enum types
5277 that are longer than LONGEST, perform processing via appropriate
5278 print_*_chars routines.
5280 2004-02-26 Andrew Cagney <cagney@redhat.com>
5282 * Makefile.in: Update dependencies.
5283 Changes from Ulrich Weigand,
5284 * s390-tdep.c: Include "dwarf2-frame.h".
5285 (s390_dwarf2_frame_init_reg): New function.
5286 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
5287 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
5289 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
5291 * breakpoint.c (pending_break_support): New setting variable.
5292 (break_command_1): Account for pending_break_support setting
5293 when creating pending breakpoints.
5294 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
5295 (_initialize_breakpoint): Add "set breakpoint pending" and
5296 "show breakpoint pending" commands.
5298 2004-02-26 Andrew Cagney <cagney@redhat.com>
5301 * charset.c (backslashable, backslashed, represented): Remove 'e'
5302 from list of escaped characters, not part of ISO-C.
5304 2004-02-25 J. Brobecker <brobecker@gnat.com>
5306 From Peter Schauer <schauer@pdf.de>:
5307 * tui/tui.c: Move system header includes after local includes.
5308 Fixes a build failure on solaris systems.
5310 2004-02-25 J. Brobecker <brobecker@gnat.com>
5312 * configure.in: Refine the previous change.
5313 * configure: Regenerate.
5315 2004-02-25 Mark Kettenis <kettenis@gnu.org>
5317 * amd64-tdep.h: Renamed from x86-64-tdep.h.
5318 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
5319 "amd64-tdep.h" instead of "x86-64-tdep.h".
5320 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
5321 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
5322 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
5323 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
5324 and "x86-64-tdep.c".
5325 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
5326 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
5327 and "x86-64-tdep.c".
5328 * amd64bsd-nat.c: Update copyright year.
5329 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
5330 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
5332 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
5334 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
5336 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
5338 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
5340 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
5342 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
5343 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
5344 * Makefile.in (amd64_linux_tdep_h): Renamed from
5345 x86_64_linux_tdep_h.
5346 (amd64_tdep_h): Renamed from x86_64_tdep_h.
5347 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
5348 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
5349 (amd64obsd-tdep.o): Update dependencies.
5350 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
5352 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
5354 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
5355 amd64-linux-nat.c amd64-linux-tdep.c.
5356 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
5357 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
5358 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
5359 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
5360 amd64-tdep.o and amd64-linux-tdep.o.
5361 (TM_FILE): Set to tm-linux64.h.
5362 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
5363 (NAT_FILE): Set to nm-linux64.h.
5364 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
5365 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
5367 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
5369 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
5372 2004-02-25 Roland McGrath <roland@redhat.com>
5374 * remote.c (remote_protocol_qPart_auxv): New variable.
5375 (init_all_packet_configs): Initialize it.
5376 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
5377 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
5378 (show_remote_cmd): Call it.
5379 (_initialize_remote): Initialize commands.
5380 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
5381 service TARGET_OBJECT_AUXV requests.
5383 2004-02-25 J. Brobecker <brobecker@gnat.com>
5385 * configure.in: Make sure that the wborder function is available.
5386 Otherwise, search for it in the cur_colr library.
5387 * configure: Regenerate.
5389 2004-02-25 Andrew Cagney <cagney@redhat.com>
5391 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
5393 2004-02-25 Mark Kettenis <kettenis@gnu.org>
5395 * config/i386/tm-x86-64linux.h: Tweak comments.
5397 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
5399 * MAINTAINERS: Add self to write-after-approval list.
5401 2004-02-25 Andrew Cagney <cagney@redhat.com>
5403 PR cli/1566. Problem found, and fix suggested by David Allan.
5404 * cli/cli-script.c (execute_control_command): Unconditionally
5405 install a cleanup. Default "ret" to "invalid_control". Use
5406 "break" instead of "return" to escape from the switch.
5408 2004-02-24 J. Brobecker <brobecker@gnat.com>
5410 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
5411 with the lines macro defined in term.h on AiX.
5412 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
5413 a collision with the label_width macro defined in term.h on AiX.
5415 2004-02-23 David Mosberger <davidm@hpl.hp.com>
5417 Committed by Kevin Buettner <kevinb@redhat.com>.
5419 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
5420 * ia64-tdep.c (ia64_write_pc): Make it a global function.
5421 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
5422 instead of ia64_write_pc().
5423 * ia64-linux-tdep.c (regcache.h): Include.
5424 (ia64_linux_write_pc): New function.
5426 2004-02-23 Roland McGrath <roland@redhat.com>
5428 * auxv.c (info_auxv_command): Fix typos in error messages.
5430 2004-02-23 Mark Kettenis <kettenis@gnu.org>
5432 * x86-64-tdep.h: Tweak comment.
5433 (enum amd64_regnum): New.
5434 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
5435 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
5436 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
5437 (X86_64_XMM1_REGNUM): Removed.
5438 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
5439 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
5440 prototypes for renamed functions.
5441 * x86-64-tdep.c: Fix typo.
5442 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
5444 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
5445 Use constants from `enum amd64_regnum' for register numbers.
5446 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
5447 (amd64_analyze_prologue, amd64_frame_cache,
5448 amd64_sigtramp_frame_cache): Use constants from `enum
5449 amd64_regnum' for register numbers.
5450 (amd64_supply_fpregset): Adjust for renamed functions.
5451 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
5452 `enum amd64_regnum' for register numbers.
5453 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
5454 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
5455 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
5456 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
5457 (amd64_linux_fill_gregset): Adjust for renamed macros.
5458 (fetch_core_registers): Adjust for renamed functions.
5459 (amd64_linux_init_abi): Adjust for renamed functions.
5460 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
5462 * amd64-nat.c: Adjust for renamed macros.
5463 * amd64bsd-nat.c (fetch_inferior_registers)
5464 (store_inferior_registers): Use constants from `enum amd64_regnum'
5465 for register numbers. Adjust for renamed variables.
5466 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
5468 (_initialize_amd64fbsd_nat): Use constants from `enum
5469 amd64_regnum' for register numbers.
5470 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
5471 `enum amd64_regnum' for register numbers.
5472 (amd64fbsd_init_abi): Adjust for renamed functions.
5473 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
5474 `enum amd64_regnum' for register numbers.
5475 (amd64nbsd_init_abi): Adjust for renamed functions.
5476 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
5477 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
5478 `enum amd64_regnum' for register numbers.
5479 (amd64obsd_init_abi): Adjust for renamed functions.
5480 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
5482 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
5484 * breakpoint.c (print_one_breakpoint): Do not output spaces
5485 after printing <PENDING> for a pending breakpoint.
5487 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
5489 * printcmd.c (print_scalar_formatted): Initialize val_long
5490 to remove compiler warning message.
5492 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
5494 * defs.h (nquery, yquery): New prototypes.
5495 * breakpoint.c (break_command_1): Use new nquery interface.
5496 * utils.c (defaulted_query, nquery, yquery): New functions.
5498 2004-02-23 Andrew Cagney <cagney@redhat.com>
5500 * hppa-tdep.c (hppa_frame_align): New function.
5501 (hppa32_push_dummy_call): New function.
5502 (hppa64_push_dummy_call): New function.
5503 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
5506 * infcall.c (legacy_push_dummy_code): Don't call deprecated
5507 FIX_CALL_DUMMY when push_dummy_call is available.
5508 (call_function_by_hand, push_dummy_code): Ditto.
5510 2004-02-22 Andrew Cagney <cagney@redhat.com>
5512 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
5513 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
5514 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
5515 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
5516 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
5517 call_dummy_location to ON_STACK.
5519 2004-02-22 Mark Kettenis <kettenis@gnu.org>
5521 * x86-64-linux-tdep.c: Tweak comment.
5522 (amd64_linux_supply_gregset): Renamed from
5523 x86_64_linux_supply_gresget.
5524 (amd64_linux_fill_gregset): Renamed from
5525 x86_64_linux_fill_gregset.
5526 (fetch_core_registers): Adjust for renamed functions.
5527 (amd64_core_fns): Renamed from x86_64_core_fns.
5528 (amd64_linux_sigtramp_start): Renamed from
5529 x86_64_linux_sigtramp_start.
5530 (amd64_linux_pc_in_sigtramp): Renamed from
5531 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
5532 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
5533 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
5534 (amd64_linux_sigcontext_addr): Renamed from
5535 x86_64_linux_sigcontext_addr.
5536 (amd64_linux_sc_reg_offset): Renamed from
5537 x86_64_linux_sc_reg_offset.
5538 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
5539 Adjust for renamed functions and variables.
5540 (_initialize_amd64_linux_tdep): Renamed from
5541 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
5543 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
5544 Adjust for renamed functions.
5546 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
5547 from x86_64_linux_gregset64_reg_offset.
5548 (amd64_linux_gregset32_reg_offset): Rename from
5549 x86_64_linux_gregset64_reg_offset.
5550 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
5551 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
5552 (amd64_linux_dr_set_control): Renamed from
5553 x86_64_linux_dr_set_control. Adjust for renamed functions.
5554 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
5555 Adjust for renamed functions.
5556 (amd64_linux_dr_reset_addr): Renamed from
5557 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
5558 (amd64_linux_dr_get_status): Renamed from
5559 x86_64_linux_dr_get_status. Adjust for renamed functions.
5560 (_initialize_amd64_linux_nat): Renamed from
5561 _initialize_x86_64_linux_nat. Adjust for renamed variables and
5563 * config/i386/nm-x86-64linux.h: Update copyright year.
5564 Adjust for renamed functions.
5566 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
5567 amd64fbsd_sigtramp_start.
5568 (amd64fbsd_sigtramp_end_addr): Renamed from
5569 amd64fbsd_sigtramp_end.
5570 (amd64fbsd_init_abi): Adjust for renamed variables.
5571 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
5573 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
5574 amd64fbsd_sigtramp_start.
5575 (amd64fbsd_sigtramp_end_addr): Renamed from
5576 amd64fbsd_sigtramp_end.
5578 2004-02-22 Andrew Cagney <cagney@redhat.com>
5580 * hppa-tdep.c (hppa32_return_value): New function.
5581 (hppa64_return_value): New function.
5582 (hppa_gdbarch_init): Set return_value; keep disabled.
5584 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
5585 struct-return and inferior function call methods.
5587 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
5589 (struct hppa_frame_cache): Define.
5590 (hppa_frame_cache, hppa_frame_this_id): New functions.
5591 (hppa_frame_prev_register): New function.
5592 (hppa_frame_unwind, hppa_frame_base): New variables.
5593 (hppa_frame_unwind_sniffer): New function.
5594 (hppa_frame_base_address, hppa_unwind_pc): New function.
5595 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
5596 sniffer, and frame base sniffer; keep disabled.
5597 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
5598 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
5600 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
5601 to predicates for "seriously old code".
5603 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
5606 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
5608 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
5610 * config/pa/tm-hppa.h: Update copyright.
5611 (DEPRECATED_INIT_FRAME_PC): Delete macro.
5612 (deprecated_init_frame_pc_default): Delete declaration.
5613 (hppa_frame_init_saved_regs): Delete declaration.
5614 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
5615 * hppa-tdep.c: Include "arch-utils.h".
5616 (hppa_gdbarch_init): Set deprecated init_frame_pc
5617 and deprecated frame_init_saved_regs.
5618 (hppa_frame_init_saved_regs): Make static.
5620 2004-02-22 Mark Kettenis <kettenis@gnu.org>
5622 Remove old 386BSD support.
5623 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
5624 * configure.host: Remove i[34567]86-*-bsd*.
5625 * configure.tgt: Remove i[34567]86-*-bsd*.
5626 * i386b-nat.c: Removed.
5627 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
5628 (i386b-nat.o): Remove dependencies.
5630 * config/i386/i386bsd.mh: Removed.
5631 * config/i386/i386bsd.mt: Removed.
5632 * config/i386/nm-i386bsd.h: Removed.
5633 * config/i386/tm-i386bsd.h: Removed.
5634 * config/i386/xm-i386bsd.h: Removed.
5636 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
5638 * amd64fbsd-tdep.c: Include "solib-svr4.h".
5639 (amd64fbsd_init_abi): Set link map offsets.
5640 * amd64nbsd-tdep.c: Include "slib-svr4.h".
5641 (amd64nbsd_init_abi): Set link map offsets.
5642 * amd64obsd-tdep.c: Include "solib-svr4.h".
5643 (amd64obsd_init_abi): Set link map offsets.
5644 * i386fbsd-tdep.c: Include "solib-svr4.h".
5645 (i386fbsd_init_abi): Set link map offsets.
5646 * i386nbsd-tdep.c: Include "solib-svr4.h".
5647 (i386nbsdelf_init_abi): Set link map offsets.
5648 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
5649 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
5650 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
5651 solib-legacy.o and core-aout.o. Reformat.
5652 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
5653 solib-svr4.o, solib-legacy.o. Reformat.
5654 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
5655 * config/i386/nbsdelf.mh: Reformat.
5656 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
5657 solib-svr4.o, solib-legacy.o and corelow.o.
5658 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
5659 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
5660 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
5661 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
5662 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
5663 (TM_FILE): Set to tm-fbsd.h.
5664 * config/i386/nbsd.mt (TDEPFILES): Reformat.
5665 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
5667 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
5669 (TM_FILE): Set to nm-nbsd.h.
5670 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
5671 Simplify shared library support. Don't include "elf/common.h".
5672 (SVR4_SHARED_LIBS): Don't define.
5673 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
5675 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
5676 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
5677 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
5678 Don't include "i386/tm-i386.h". Include "solib.h".
5679 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
5680 Don't include "i386/tm-i386.h".
5681 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
5682 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
5683 Include "i386/xm-i386.h".
5684 (HOST_LONG_DOUBLE_FORMAT): Remove.
5686 Fix OpenBSD/i386 sigtramp recognition.
5687 * i386-tdep.h: Update copyright year.
5688 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
5689 (i386bsd_sigtramp_end): New prototypes.
5690 (i386fbsd_sigtramp_start_addr): Renamed from
5691 i386fbsd_sigtramp_start.
5692 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
5693 (i386obsd_sigtramp_start_addr): Renamed from
5694 i386obsd_sigtramp_start.
5695 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
5696 * i386bsd-tdep.c: Update copyright year.
5697 (i386bsd_pc_in_sigtramp): Make public.
5698 * i386fbsd-nat.c: Update copyright year.
5699 (_initialize_i386fbsd_nat): Adjust for renamed variables.
5700 * i386fbsd-tdep.c: Update copyright year.
5701 (i386fbsd_sigtramp_start_addr): Renamed from
5702 i386fbsd_sigtramp_start.
5703 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
5704 (i386fbsdaout_init_abi): Adjust for renamed variables.
5705 * i386obsd-nat.c: Update copyright year.
5706 (_initialize_i386obsd_nat): Adjust for renamed variables.
5707 * i386obsd-tdep.c: Include "target.h".
5708 (i386obsd_page_size): New variable.
5709 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
5710 (i386obsd_sigtramp_end): New functions.
5711 (i386obsd_sigtramp_start_addr): Renamed from
5712 i386obsd_sigtramp_start.
5713 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
5714 (i386obsd_init_abi): Adjust for renamed variables. Set
5715 pc_in_sigtramp, sigtramp_start and sigtramp_end.
5716 * Makefile.in (i386obsd-tdep.o): Update dependencies.
5718 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
5719 trampoline change in OpenBSD kernel.
5721 * amd64-nat.c: Update copyright year.
5722 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
5723 architecture from REGCACHE.
5725 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
5726 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
5728 2004-02-21 Mark Kettenis <kettenis@gnu.org>
5730 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
5731 i[34567]86-*-openbsd3.[0-3].
5732 * config/i386/obsdaout.mh: New file.
5734 * config/i386/obsd.mh (MH_FLAGS): Remove.
5737 * i386obsd-tdep.c: Update copyright years. Include
5739 (i386obsd_init_abi): Don't set regset_from_core_section here.
5740 (i386obsd_aout_init_abi): New function. Set
5741 regset_from_core_section here.
5742 (i386obsd_elf_init_abi): New function.
5743 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
5744 * Makefile.in (i386obsd-tdep.o): Update dependecies.
5745 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
5746 (TM_FILE): Set to tm-nbsd.h.
5748 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
5751 * solib-svr4.h: Update copyright year.
5752 (svr4_ilp32_fetch_link_map_offsets)
5753 (svr4_lp64_fetch_link_map_offsets): New prototype.
5754 * solib-svr4.c: Update copyright year.
5755 (svr4_ilp32_fetch_link_map_offsets)
5756 (svr4_lp64_fetch_link_map_offsets): New function.
5758 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
5760 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
5761 to the partial symbol table.
5763 2004-02-20 J. brobecker <brobecker@gnat.com>
5765 * PROBLEMS: Add description of problem documented under gdb/1560.
5767 2004-02-20 Mark Kettenis <kettenis@gnu.org>
5769 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
5771 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
5773 (amd64obsd_init_abi): Reorder initializations. Use
5774 amd64obsd_r_reg_offset to initialize the general-purpose register
5775 set details. Set regset_from_core_section.
5776 (_initialize_amd64obsd_tdep): Rename from
5777 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
5778 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
5779 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
5781 * NEWS (New native configurations): Mention OpenBSD/alpha.
5782 * configure.tgt: Add alpha*-*-openbsd*.
5783 * configure.host: Add alpha*-*-openbsd*.
5784 * alphanbsd-tdep.c: Update copyright year.
5785 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
5787 2004-02-20 Andrew Cagney <cagney@redhat.com>
5790 * configure.tgt: Delete target "none-*-*".
5791 * configure.host: Delete host "none-*-*".
5792 * config/none/none.mh: Delete file.
5793 * config/none/none.mt: Delete file.
5794 * config/none/xm-none.h: Delete file.
5795 * config/none/tm-none.h: Delete file.
5796 * config/none/nm-none.h: Delete file.
5798 2004-02-19 Fred Fish <fnf@redhat.com>
5800 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
5801 cache->uses_fp prior to setting it.
5803 2004-02-19 Fred Fish <fnf@redhat.com>
5805 Fix for PR breakpoint/1558.
5806 * sh-tdep.c (IS_JSR): New macro.
5807 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
5809 2004-02-19 Jim Blandy <jimb@redhat.com>
5811 * findvar.c (value_from_register): Doc fix.
5813 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
5815 * printcmd.c (print_scalar_formatted): Do not check for sizeof
5816 type being greater than sizeof of host's LONGEST. Always use
5817 unpack_long() unless format 'f' chosen.
5819 2004-02-19 Joel Brobecker <brobecker@gnat.com>
5821 Committed by Elena Zannoni <ezannoni@redhat.com>
5823 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
5824 contains a symbol wich is the best, non-exact match for the given
5825 pc. Update comments.
5827 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
5829 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
5830 macro, which was part of the now removed Mach 3 port.
5831 * utils.c (request_quit): Ditto.
5833 2004-02-18 Mark Kettenis <kettenis@gnu.org>
5835 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
5836 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
5838 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5840 Committed by Mark Kettenis <kettenis@gnu.org>.
5842 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
5845 2004-02-18 Andrew Cagney <cagney@redhat.com>
5847 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
5848 CONFIG_INSTALL and CONFIG_UNINSTALL.
5849 * configure: Re-generate.
5850 * interps.h (INTERP_TUI): Define.
5851 * Makefile.in: Update dependencies.
5853 (tui-main.o): Specify dependencies.
5854 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
5855 * tui/tui-main.c: New file.
5857 2004-02-18 Mark Kettenis <kettenis@gnu.org>
5859 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
5860 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
5862 * configure.host: Add x86_64-*-openbsd*.
5863 * configure.tgt: Add x86_64-*-openbsd*.
5864 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
5866 * tui/tui.c: Don't include <malloc.h>.
5868 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
5869 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
5872 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
5873 static. Remove extraneous whitespace.
5874 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
5877 2004-02-17 Jim Blandy <jimb@redhat.com>
5879 * findvar.c (value_from_register): Doc fix.
5881 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5883 Committed by Jim Blandy <jimb@redhat.com>.
5885 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
5886 CORE_ADDR as type for selectors. Correct types for GNU run time
5887 message lookup function to use double indirection.
5888 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
5889 * objc-lang.h (lookup_child_selector): Adapt prototype.
5891 * s390-nat.c (SUBOFF): New macro.
5892 (supply_gregset, fill_gregset): Use it to handle debugging
5893 of 32-bit exectuables running under a 64-bit kernel.
5894 * s390-tdep.c: Include "solib-svr4.h".
5895 (s390_svr4_fetch_link_map_offset): New function.
5896 (s390x_svr_fetch_link_map_offset): Likewise.
5897 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
5898 * Makefile.in (s390-tdep.o): Update dependencies.
5900 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
5902 (s390_readinstruction): Reformat. Use read_memory_nobpt.
5903 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
5904 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
5905 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
5906 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
5907 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
5908 S390_SIGNAL_FRAMESIZE,
5909 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
5910 (struct frame_extra_info): Remove.
5911 (s390_memset_extra_info): Remove.
5912 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
5913 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
5914 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
5915 (is_rse): Renamed to ...
5916 (is_rsy): ... this. Support long displacements.
5917 (is_rxe): Renamed to ...
5918 (is_rxy): ... this. Support long displacements.
5919 (compute_x_addr): Support long displacements.
5920 (struct s390_prologue_data): New data type.
5921 (s390_on_stack): Change API to use struct s390_prologue_data.
5922 (s390_store): Reimplement.
5923 (s390_load): New function.
5924 (s390_get_signal_frame_info): Remove.
5925 (s390_get_frame_info): Remove, replace by ...
5926 (s390_analyze_prolog): ... this new function.
5927 (s390_check_function_end): Remove.
5928 (s390_function_start): Remove.
5929 (s390_frameless_function_invokation): Remove.
5930 (s390_is_sigreturn): Remove.
5931 (s390_init_frame_pc_first): Remove.
5932 (s390_init_frame_extra_info): Remove.
5933 (s390_frame_init_saved_regs): Remove.
5934 (s390_frame_saved_pc_nofix): Remove.
5935 (s390_frame_saved_pc): Remove.
5936 (s390_frame_chain): Remove.
5937 (s390_fp_regnum, s390_read_fp): Remove.
5938 (s390_pop_frame_regular, s390_pop_frame): Remove.
5939 (s390_saved_pc_after_call): Remove.
5940 (s390_skip_prologue): Reimplement.
5941 (s390_in_function_epilogue_p): Support long displacements.
5942 (struct s390_unwind_cache): New data structure.
5943 (s390_frame_unwind_cache): New function.
5944 (s390_prologue_frame_unwind_cache): Likewise.
5945 (s390_backchain_frame_unwind_cache): Likewise.
5946 (s390_frame_this_id, s390_frame_prev_register): Likewise.
5947 (s390_frame_unwind): Define.
5948 (s390_frame_sniffer): New function.
5949 (struct s390_pltstub_unwind_cache): New data structure.
5950 (s390_pltstub_frame_unwind_cache): New function.
5951 (s390_pltstub_frame_this_id): Likewise.
5952 (s390_pltstub_frame_prev_register): Likewise.
5953 (s390_pltstub_frame_unwind): Define.
5954 (s390_pltstub_frame_sniffer): New function.
5955 (struct s390_sigtramp_unwind_cache): New data structure.
5956 (s390_sigtramp_frame_unwind_cache): New function.
5957 (s390_sigtramp_frame_this_id): Likewise.
5958 (s390_sigtramp_frame_prev_register): Likewise.
5959 (s390_sigtramp_frame_unwind): Define.
5960 (s390_sigtramp_frame_sniffer): New function.
5961 (s390_frame_base_address, s390_local_base_address): New functions.
5962 (s390_frame_base): Define.
5963 (s390_unwind_pc, s390_unwind_sp): New function.
5964 (s390_push_dummy_call): Use new frame base location.
5965 (s390_unwind_dummy_id): Likewise.
5966 (s390_gdbarch_init): Remove calls to:
5967 set_gdbarch_frameless_function_invocation,
5968 set_gdbarch_deprecated_init_frame_pc,
5969 set_gdbarch_deprecated_frame_chain,
5970 set_gdbarch_deprecated_frame_init_saved_regs,
5971 set_gdbarch_deprecated_pop_frame,
5972 set_gdbarch_deprecated_init_extra_frame_info,
5973 set_gdbarch_deprecated_init_frame_pc_first,
5974 set_gdbarch_deprecated_target_read_fp,
5975 set_gdbarch_deprecated_frame_saved_pc,
5976 set_gdbarch_deprecated_saved_pc_after_call,
5977 set_gdbarch_deprecated_fp_regnum.
5979 set_gdbarch_in_solib_call_trampoline,
5980 frame_unwind_append_sniffer,
5981 frame_base_set_default,
5982 set_gdbarch_unwind_pc,
5983 set_gdbarch_unwind_sp.
5984 * Makefile.in (s390-tdep.o): Update dependencies.
5986 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
5987 (S390_STACK_FRAME_OVERHEAD): Remove.
5988 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
5989 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
5990 (s390_promote_integer_argument): Remove.
5991 (s390_cannot_extract_struct_value_address): Remove.
5992 (s390_use_struct_convention, s390_store_struct_return): Remove.
5993 (s390_extract_return_value, s390_store_return_value): Remove.
5994 (s390_return_value_convention, s390_return_value): New functions.
5995 (is_float_singleton): Handle typedefs.
5996 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
5997 Remove, replace by ...
5998 (s390_function_arg_pass_by_reference, s390_function_arg_float,
5999 s390_function_arg_integer): ... these new functions.
6000 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
6001 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
6002 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
6005 set_gdbarch_deprecated_store_struct_return,
6006 set_gdbarch_deprecated_extract_return_value,
6007 set_gdbarch_deprecated_store_return_value,
6008 set_gdbarch_use_struct_convention,
6009 set_gdbarch_extract_struct_value_address,
6010 set_gdbarch_deprecated_pc_in_call_dummy,
6011 set_gdbarch_deprecated_push_arguments,
6012 set_gdbarch_deprecated_save_dummy_frame_tos,
6013 set_gdbarch_deprecated_push_return_address,
6014 set_gdbarch_deprecated_sizeof_call_dummy_words,
6015 set_gdbarch_deprecated_call_dummy_words,
6016 set_gdbarch_deprecated_dummy_write_sp.
6018 set_gdbarch_push_dummy_call,
6019 set_gdbarch_unwind_dummy_id,
6020 set_gdbarch_return_value.
6022 * config/s390/nm-linux.h: Update comments.
6023 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
6024 (STOPPED_BY_WATCHPOINT): Redefine.
6025 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
6026 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
6027 (s390_stopped_by_watchpoint): Likewise.
6028 (watch_area_cnt): Remove.
6029 * s390-nat.c: Update comments.
6030 (watch_area): Remove typedef.
6031 Global replace watch_area by struct watch_area.
6032 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
6033 (s390_stopped_by_watchpoint): Remove pid argument,
6034 use s390_inferior_tid. Add short-cut for the no watchpoint case.
6035 (s390_fix_watch_points): Remove pid argument,
6036 use s390_inferior_tid. Recompute area spanned by watchpoints.
6037 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
6038 argument. Reimplement.
6040 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
6041 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
6042 (FETCH_INFERIOR_REGISTERS): Define.
6043 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
6045 * config/s390/s390x.mt: Remove.
6046 * config/s390/tm-s390.h: Remove.
6047 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
6048 (TARGET_ELF64): Remove.
6049 (SKIP_TRAMPOLINE_CODE): Do not undefine.
6050 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
6051 s390*-*-* case; always set gdb_target to s390.
6052 * regformats/reg-s390.dat: Remove control registers.
6053 * regformats/reg-s390x.dat: Likewise.
6054 * s390-tdep.h: New file.
6055 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
6056 Include "inferior.h" and "s390-tdep.h".
6057 Remove private definition of offsetof.
6058 (s390_register_u_addr): Remove.
6059 (regmap_gregset, regmap_fpregset): Define.
6060 (supply_gregset, fill_gregset): Reimplement.
6061 (supply_fpregset, fill_fpregset): Likewise.
6062 (s390_inferior_tid): New function.
6063 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
6064 (fetch_inferior_registers, store_inferior_registers): Likewise.
6065 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
6066 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
6067 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
6068 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
6069 (struct gdbarch_tdep): Define.
6070 (struct s390_register_info): Define.
6071 (s390_register_info): New variable.
6072 (s390_register_name): Reimplement.
6073 (s390_register_type): New function.
6074 (s390_register_raw_size, s390x_register_raw_size): Remove.
6075 (s390_cannot_fetch_register): Remove.
6076 (s390_register_byte): Remove.
6077 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
6078 (s390_dwarf_regmap): New variable.
6079 (s390_dwarf_reg_to_regnum): New function.
6080 (s390_stab_reg_to_regnum): Remove.
6081 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
6082 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
6083 (s390_convert_register_p): Likewise.
6084 (s390_register_to_value, s390_value_to_register): Likewise.
6085 (s390_register_reggroup_p): Likewise.
6086 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
6087 s390_gregset, s390x_gregset, s390_fpregset): New variables.
6088 (s390_supply_regset, s390_regset_from_core_section): New functions.
6089 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
6090 (S390_FPR_SIZE): Likewise.
6091 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
6092 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
6093 (S390_NUM_GPRS): Move here from tm-s390.h.
6094 (S390_NUM_FPRS): Likewise.
6095 (s390_in_function_epilogue_p): New function.
6096 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
6097 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
6098 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
6099 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
6100 Replace S390_FP_REGNUM by S390_SP_REGNUM.
6102 set_gdbarch_deprecated_max_register_raw_size,
6103 set_gdbarch_deprecated_max_register_virtual_size,
6104 set_gdbarch_deprecated_register_byte,
6105 set_gdbarch_cannot_fetch_register,
6106 set_gdbarch_cannot_store_register,
6107 set_gdbarch_deprecated_register_size,
6108 set_gdbarch_deprecated_register_raw_size,
6109 set_gdbarch_deprecated_register_virtual_size,
6110 set_gdbarch_deprecated_register_virtual_type,
6111 set_gdbarch_deprecated_register_bytes.
6113 set_gdbarch_num_pseudo_regs,
6114 set_gdbarch_register_type,
6115 set_gdbarch_convert_register_p,
6116 set_gdbarch_register_to_value,
6117 set_gdbarch_value_to_register,
6118 set_gdbarch_register_reggroup_p,
6119 set_gdbarch_regset_from_core_section,
6120 set_gdbarch_pseudo_register_read,
6121 set_gdbarch_pseudo_register_write,
6122 set_gdbarch_in_function_epilogue_p.
6123 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
6124 (s390_tdep_h): New variable.
6126 2004-02-17 Jim Blandy <jimb@redhat.com>
6128 * findvar.c (value_from_register): If the type has no length, just
6129 return an acceptable value --- don't report an internal error.
6131 * stabsread.c (read_type): If we find any type numbers that are
6132 forward references, complain if the references aren't resolved by
6133 the time we're finished reading.
6134 (cleanup_undefined_types): Make error message more appropriate for
6137 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
6139 * Makefile.in (defs_h): Remove dependency on progress_h.
6140 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
6142 * main.c (captured_main): Delete use of START_PROGRESS and
6145 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
6147 * objfiles.c (terminate_minimal_symbol_table): Add back
6148 initialization of MSYMBOL_TYPE.
6150 2004-02-17 David Mosberger <davidm@hpl.hp.com>
6152 Committed by Andrew Cagney.
6153 * Makefile.in (ia64_tdep_h): New macro.
6154 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
6155 (ia64-tdep.o): Likewise.
6156 * ia64-tdep.h: New file.
6157 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
6158 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
6159 (ia64_aix_sigcontext_register_address): Likewise.
6160 (ia64_linux_getunwind_table): Delete declaration.
6161 * ia64-linux-tdep.c: Likewise.
6163 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
6165 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
6166 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
6167 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
6169 2004-02-17 Andrew Cagney <cagney@redhat.com>
6171 * symtab.c (skip_prologue_using_sal): New function.
6172 * symtab.h (skip_prologue_using_sal): Declare.
6173 * frv-tdep.c: Include "symtab.h".
6174 (skip_prologue_using_sal): Delete function.
6175 * mips-tdep.c (skip_prologue_using_sal): Delete function.
6176 * rs6000-tdep.c (refine_prologue_limit): Mention
6177 skip_prologue_using_sal.
6178 * ia64-tdep.c (refine_prologue_limit): Ditto.
6179 * Makefile.in: Update dependencies.
6181 2004-02-16 Andrew Cagney <cagney@redhat.com>
6183 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
6184 START_INFERIOR_TRAPS_EXPECTED.
6185 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
6186 START_INFERIOR_TRAPS_EXPECTED.
6187 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
6189 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
6190 macro, moved to "nm-osf.h". Update copyright.
6191 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
6194 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
6195 and function replacing FRAMELESS_FUNCTION_INVOCATION.
6196 * blockframe.c (legacy_frameless_look_for_prologue): Rename
6197 frameless_look_for_prologue.
6198 * frame.h (legacy_frameless_look_for_prologue): Rename
6199 frameless_look_for_prologue.
6200 * gdbarch.h, gdbarch.c: Re-generate.
6201 * sh64-tdep.c (sh64_gdbarch_init): Update.
6202 * sh-tdep.c (sh_gdbarch_init): Update.
6203 * s390-tdep.c (s390_gdbarch_init): Update.
6204 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6205 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6206 * m68k-tdep.c (m68k_gdbarch_init): Update.
6207 (delta68_frame_args_address): Update.
6208 * m32r-tdep.c (m32r_gdbarch_init): Update.
6209 * hppa-tdep.c (hppa_gdbarch_init): Update.
6210 * h8300-tdep.c (h8300_gdbarch_init): Update.
6211 * frv-tdep.c (frv_gdbarch_init): Update.
6212 (frv_frameless_function_invocation): Update.
6213 * cris-tdep.c (cris_gdbarch_init): Update.
6214 (cris_frameless_function_invocation): Update.
6215 * avr-tdep.c (avr_gdbarch_init): Update.
6216 * arm-tdep.c (arm_gdbarch_init): Update.
6217 * stack.c (frame_info): Update, call predicate.
6218 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
6219 * frame.c (legacy_get_prev_frame): Update, call predicate..
6220 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
6221 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
6222 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
6224 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6225 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6226 * vax-tdep.c (vax_gdbarch_init): Ditto.
6228 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
6231 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
6233 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
6236 2004-02-16 Andrew Cagney <cagney@redhat.com>
6238 * tui/tui-windata.c: Include "gdb_string.h".
6239 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
6240 * tui/tui-layout.c, tui/tui-command.c: Ditto.
6241 * Makefile.in: Update dependencies.
6243 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
6245 * Makefile.in (infrun.o): Add $(gdb_assert_h).
6246 * infrun.c: Include "gdb_assert.h".
6247 (singlestep_ptid, saved_singlestep_ptid)
6248 (stepping_past_singlestep_breakpoint): New variables.
6249 (resume): Set singlestep_ptid. Check for singlestep thread
6251 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
6252 (handle_inferior_event): Handle singlestep thread hop.
6254 2004-02-16 Andrew Cagney <cagney@redhat.com>
6256 * dwarf2-frame.c (dwarf2_frame_ops): New function.
6257 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
6258 (dwarf2_frame_init_reg): Ditto.
6260 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
6261 suggested by Joshua Neuheisel
6263 * configure.in: Always check for curses, including pdcurses.
6264 Warn, instead of error, when no curses are found. Enable TUI when
6265 curses is available.
6266 * configure: Re-generate.
6268 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
6270 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
6271 sh_sh4_register_convert_to_virtual.
6272 (sh_register_convert_to_raw): Rename from
6273 sh_sh4_register_convert_to_raw.
6274 (sh_pseudo_register_read): Accomodate above name change.
6275 (sh_pseudo_register_write): Ditto.
6277 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
6279 * sh-tdep.c (sh_generic_register_name): Remove.
6280 (sh_gdbarch_init): Use sh_sh_register_name in default case.
6282 2004-02-15 Andrew Cagney <cagney@redhat.com>
6284 * configure.in (build_warnings): Add -Wunused-function.
6285 * configure: Re-generate.
6287 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
6288 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
6290 * procfs.c (procfs_init_inferior): Assume that
6291 START_INFERIOR_TRAPS_EXPECTED is defined.
6292 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
6293 * config/ns32k/tm-nbsd.h: Delete file,
6294 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
6296 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
6297 * config/vax/tm-vax.h: Delete file.
6299 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
6300 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
6301 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
6302 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
6303 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
6304 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
6305 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
6307 2004-02-15 Mark Kettenis <kettenis@gnu.org>
6309 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
6310 * dwarf2-frame.c (dwarf2_frame_data): New variable.
6311 (struct dwarf2_frame_ops): New.
6312 (dwarf2_frame_default_init_reg): New function, based on
6313 dwarf2_frame_init_reg.
6314 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
6315 (dwarf2_frame_init_reg): Call architecture-specific function.
6316 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
6317 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
6318 instead of dwarf2_frame_data.
6319 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
6320 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
6322 2004-02-15 Andrew Cagney <cagney@redhat.com>
6324 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
6325 register_gdbarch_swap.
6326 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
6327 * f-lang.c (_initialize_f_language): Update, use
6328 DEPRECATED_REGISTER_GDBARCH_SWAP.
6329 * remote.c (_initialize_remote): Ditto.
6330 * regcache.c (_initialize_regcache): Ditto.
6331 * parse.c (_initialize_parse): Ditto.
6332 * infrun.c (_initialize_infrun): Ditto.
6333 * mi/mi-main.c (_initialize_mi_main): Ditto.
6334 * gdbtypes.c (_initialize_gdbtypes): Ditto.
6336 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
6337 poking .cacheable directly.
6338 * symfile.c (symfile_bfd_open): Ditto.
6340 * Makefile.in: Update all dependencies.
6342 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
6343 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
6344 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
6345 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
6346 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
6348 2004-02-14 Andrew Cagney <cagney@redhat.com>
6350 * arch-utils.c (legacy_convert_register_p): Check
6351 DEPRECATED_REGISTER_CONVERTIBLE_P.
6352 * findvar.c (value_of_register): Ditto.
6354 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
6355 * gdbarch.h, gdbarch.c: Re-generate.
6356 * arch-utils.c (deprecated_register_convertible_not): Delete.
6357 * arch-utils.h (deprecated_register_convertible_not): Delete.
6358 * mi/mi-main.c (get_register): Update. Update copyright.
6359 * infcmd.c (default_print_registers_info): Update.
6361 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
6362 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
6363 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
6364 * gdbarch.h, gdbarch.c: Re-generate.
6365 * frame.c (deprecated_get_next_frame_hack): Delete function.
6366 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
6367 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
6369 * infcall.c (call_function_by_hand): Update.
6371 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
6373 * symfile.c (init_entry_point_info, entry_point_address): Move
6375 * objfiles.c (init_entry_point_info, entry_point_address):..to
6377 * symfile.h (init_entry_point_info, entry_point_address): Remove
6379 * objfiles.h (init_entry_point_info, entry_point_address):Add
6381 * cris-tdep.c: Remove include of symfile.h. Add include of
6384 * mcore-tdep.c: Ditto.
6385 * mn10300-tdep.c: Ditto.
6386 * sh64-tdep.c: Ditto.
6387 * v850-tdep.c: Ditto.
6388 * arm-tdep.c: Remove include of symfile.h.
6389 * blockframe.c: Ditto.
6390 * coffread.c: Ditto.
6392 * dwarf2read.c: Ditto.
6393 * dwarfread.c: Ditto.
6394 * frv-tdep.c: Ditto.
6395 * ia64-tdep.c: Ditto.
6396 * mdebugread.c: Ditto.
6397 * mipsread.c: Ditto.
6398 * rs6000-tdep.c: Ditto.
6399 * s390-tdep.c: Ditto.
6401 * xstormy16-tdep.c: Ditto.
6402 * gdbarch.sh: Remove include of symfile.h.
6403 * gdbarch.c: Regenerate.
6404 * solib-irix.c (enable_break): Use entry_point_address().
6405 Add comment about include file.
6406 * xcoffread.c: Add comment about include file.
6407 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
6408 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
6409 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
6410 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
6411 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
6413 2004-02-13 Andrew Cagney <cagney@redhat.com>
6415 * corelow.c (core_xfer_partial): Use "struct bfd_section".
6416 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
6418 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
6420 2004-02-12 Fred Fish <fnf@redhat.com>
6422 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
6423 set_gdbarch_store_return_value.
6425 2004-02-12 Andrew Cagney <cagney@redhat.com>
6427 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
6428 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
6429 (interrupt_query): Ditto.
6430 (ofunc): Delete unused variable.
6431 * cris-tdep.c (cris_abi): Delete unused function.
6432 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
6433 (cris_get_wide_opcode, cris_get_short_size): Ditto.
6434 (cris_get_asr_quick_shift_steps): Ditto.
6435 (cris_skip_prologue_frameless_p): Ditto.
6436 * arm-tdep.c (arm_push_return_address): Delete unused function.
6437 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
6438 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
6439 * s390-tdep.c (s390_function_start): Delete unused function.
6441 2004-02-12 Andrew Cagney <cagney@redhat.com>
6443 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
6444 gdbarch.h, gdbarch.c: Re-generate.
6445 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
6446 to generic_prologue_frameless_p.
6447 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
6448 * arch-utils.c (generic_prologue_frameless_p): Delete function.
6450 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
6452 * mips-linux-tdep.c: Include "frame.h".
6453 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
6454 (mips_linux_skip_resolver): New functions.
6455 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
6456 and set_gdbarch_in_solib_call_trampoline.
6457 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
6458 to after set_gdbarch_in_solib_return_trampoline. Only set the
6459 solib hooks to mips16 functions if the OS ABI is unknown.
6460 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
6461 including "config/tm-linux.h".
6462 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
6463 * Makefile.in (mips-linux-tdep.o): Update.
6465 2004-02-11 David Carlton <carlton@kealia.com>
6467 * linespec.c (decode_compound): Only look for a class symbol when
6468 considering all but the rightmost component.
6470 2004-02-11 Andrew Cagney <cagney@redhat.com>
6472 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
6473 abi code are are separatly grouped.
6475 2004-02-11 Andrew Cagney <cagney@redhat.com>
6477 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
6478 * gdbarch.h, gdbarch.c: Re-generate.
6479 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6480 * v850-tdep.c (v850_gdbarch_init): Update.
6481 * sh64-tdep.c (sh64_gdbarch_init): Update.
6482 * sh-tdep.c (sh_gdbarch_init): Update.
6483 * s390-tdep.c (s390_gdbarch_init): Update.
6484 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6485 * mips-tdep.c (mips_gdbarch_init): Update.
6486 * mcore-tdep.c (mcore_gdbarch_init): Update.
6487 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6488 * m32r-tdep.c (m32r_gdbarch_init): Update.
6489 * ia64-tdep.c (ia64_gdbarch_init): Update.
6490 * hppa-tdep.c (hppa_gdbarch_init): Update.
6491 * h8300-tdep.c (h8300_gdbarch_init): Update.
6492 * frv-tdep.c (frv_gdbarch_init): Update.
6493 * d10v-tdep.c (d10v_gdbarch_init): Update.
6494 * cris-tdep.c (cris_gdbarch_init): Update.
6495 * avr-tdep.c (avr_gdbarch_init): Update.
6496 * arm-tdep.c (arm_gdbarch_init): Update.
6497 * alpha-tdep.c (alpha_gdbarch_init): Update.
6499 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
6501 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
6503 (sh_sh4al_dsp_register_name): Ditto.
6505 2004-02-10 Andrew Cagney <cagney@redhat.com>
6507 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
6508 (mips_init_frame_pc_first): Delete function.
6509 (mips_frame_saved_pc): Delete function.
6510 (mips_frame_chain): Delete function.
6511 (mips_init_extra_frame_info): Delete function.
6512 (mips_xfer_register): Delete unused variable "reg".
6513 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
6514 (mips_n32n64_return_value): Delete unused variable "reg".
6515 (mips_n32n64_return_value): Delete unused variable "pos".
6516 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
6517 (mips_o32_return_value): Delete unused variable "pos".
6518 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
6519 (mips_print_fp_register): Delete unused variable "namelen"
6520 (mips_print_fp_register): Delete unused variable "flt2"
6521 (get_frame_pointer): Delete function.
6522 (cached_proc_desc): Delete static variable.
6523 (mips_pop_frame): Delete function.
6524 (mips_find_saved_regs): Delete function.
6525 (mips_get_saved_register): Delete function.
6526 (mips_saved_pc_after_call): Delete function.
6527 (SIGFRAME_BASE): Delete macro.
6528 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
6529 (SIGFRAME_PC_OFF): Delete macro.
6530 (SIGFRAME_REGSAVE_OFF): Delete macro.
6531 (mips_dump_tdep): Do not print deleted macro definitions.
6533 2004-02-10 Andrew Cagney <cagney@redhat.com>
6535 * Makefile.in (SFILES): Remove explictly listed tui files.
6536 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
6538 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
6540 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
6541 to use paddr functions to format ia64 addresses and long values.
6542 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
6543 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
6544 (get_kernel_table, ia64_find_proc_info_x): Ditto.
6545 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
6546 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
6548 2004-02-10 Andrew Cagney <cagney@redhat.com>
6550 * defs.h: Do not include "tui.h".
6551 * gdb_curses.h: New file.
6552 * tui/tui-hooks.h: New file.
6553 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
6554 (tui_install_hooks, tui_remove_hooks): Delete declarations.
6555 (tui_initialize_io): Delete declaration.
6556 (tui_initialize_readline: Delete redundant declaration.
6557 (struct tui_point): Delete definition.
6558 * tui/tui-data.h (struct tui_point): Define.
6559 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
6560 * utils.c: Include "tui/tui.h".
6561 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
6562 * printcmd.c [TUI]: Include "tui/tui.h".
6563 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
6564 * tui/tui-command.c: Include "gdb_curses.h".
6565 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
6566 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
6567 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
6568 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
6569 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
6570 * Makefile.in: Update all dependencies.
6571 (tui_hooks_h, gdb_curses_h): Define.
6572 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
6574 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
6576 * objfiles.h (struct objfile): Remove unused fields auxf1 and
6577 auxf2. Add comments about some other rarely used fields.
6579 2004-02-10 Andrew Cagney <cagney@redhat.com>
6581 * Makefile.in (init.c): Fix script removing duplicates. Problem
6582 reported by Peter Schauer.
6584 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
6586 * bcache.c (bcache_xmalloc): Use obstack_init instead of
6587 obstack_specify_allocation.
6588 * objfiles.c (allocate_objfile): Ditto.
6589 * solib-sunos.c (solib_add_common_symbols)
6590 (allocate_rt_common_objfile): Ditto.
6591 * symfile.c (reread_symbols): Ditto.
6592 * gdb_obstack.h: Add comment.
6594 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
6596 * linespec.c (decode_line_1, locate_first_half)
6597 (decode_compound, lookup_prefix_sym): Update comments. Delete old
6600 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
6602 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
6605 2004-02-09 Andrew Cagney <cagney@redhat.com>
6607 * blockframe.c (find_pc_partial_function): If find_pc_overlay
6608 fails, try find_pc_section. Fix PR c++/1267.
6609 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
6610 instead of find_pc_mapped_section.
6611 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
6612 not default to the section containing PC. Fix PR symtab/1519.
6614 2004-02-09 Andrew Cagney <cagney@redhat.com>
6616 * Makefile.in (mips-tdep.o): Update dependencies.
6617 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
6619 (mips_unwind_pc): Return the pseudo PC register.
6620 (mips_unwind_dummy_id): New function.
6621 (mips16_fetch_instruction): New function.
6622 (mips32_fetch_instruction): New function.
6623 (struct mips_frame_cache): Define.
6624 (mips_mdebug_frame_cache): New function.
6625 (mips_mdebug_frame_this_id): New function.
6626 (mips_mdebug_frame_prev_register): New function.
6627 (mips_mdebug_frame_unwind): Define.
6628 (mips_mdebug_frame_sniffer): New function.
6629 (mips_mdebug_frame_base_address): New function.
6630 (mips_mdebug_frame_base): Define.
6631 (mips_mdebug_frame_base_sniffer): New function.
6632 (mips_gdbarch_init): Append unwind and base sniffers. Set
6635 2004-02-08 Andrew Cagney <cagney@redhat.com>
6637 * frame.c: Print both the register number and name.
6639 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
6640 and a sed into a single sed. Make .c and .o patterns more robust.
6642 (INIT_FILES): Replace OBS with COMMON_OBS.
6643 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
6645 2004-02-08 Mark Kettenis <kettenis@gnu.org>
6647 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
6648 the PT_WCOOKIE request.
6650 2004-02-08 Andrew Cagney <cagney@redhat.com>
6652 * mips-tdep.c (mips_unwind_pc): New function.
6653 (mips_gdbarch_init): Set mips_unwind_pc.
6655 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
6656 (get_frame_id): Allow the UNKNOWN_FRAME.
6657 (frame_register_unwind, get_frame_type): Ditto.
6659 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
6660 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
6661 unwind_dummy_id indicates a legacy frame.
6663 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
6664 * configure: Re-generate.
6666 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
6669 2004-02-08 Andrew Cagney <cagney@redhat.com>
6671 * configure.in (CONFIG_ALL): Set to Makefile target, and not
6673 * configure: Re-generate.
6674 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
6675 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
6676 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
6677 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
6678 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
6679 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
6680 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
6681 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
6682 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
6683 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
6685 2004-02-07 Andrew Cagney <cagney@redhat.com>
6687 * Makefile.in: Update all dependencies.
6689 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
6690 * configure: Re-generate.
6691 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
6692 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
6693 (COMMON_OBS): Add "main.o" and "annotate.o".
6694 (ANNOTATE_OBS): Delete.
6695 (OBS): Remove ANNOTATE_OBS.
6696 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
6698 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
6699 against CONFIG_OBS and "main.o".
6700 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
6701 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
6703 * tui/tui-command.c: Include "gdb_string.h", delete register
6704 attribute, use ISO-C function signatures.
6705 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
6706 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
6707 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
6710 * tui/tui-command.c: Change variable and function names to lower
6712 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
6713 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
6714 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
6715 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
6716 * tui/tui-winsource.c, tui/tui.c: Ditto.
6718 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
6720 * buildsym.c (free_pending_blocks, finish_block)
6721 (record_pending_block, make_blockvector, end_symtab): Replace
6722 symbol_obstack with objfile_obstack.
6723 * coffread.c (process_coff_symbol, coff_read_struct_type)
6724 (coff_read_enum_type): Ditto.
6725 * cp-namespace.c (initialize_namespace_symtab)
6726 (check_one_possible_namespace_symbol): Ditto.
6727 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
6728 (dwarf2_symbol_mark_computed): Ditto.
6729 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
6730 * elfread.c (elf_symtab_read): Ditto.
6731 * hpread.c (hpread_symfile_init, hpread_symfile_init)
6732 (hpread_read_enum_type, hpread_read_function_type)
6733 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
6735 * jv-lang.c (get_java_class_symtab, add_class_symbol)
6736 (java_link_class_type): Ditto.
6737 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
6738 (new_symbol): Ditto.
6739 * minsyms.c (install_minimal_symbols): Ditto.
6740 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
6741 (terminate_minimal_symbol_table): Replace symbol_obstack with
6743 (free_objfile): Remove freeing of symbol_obstack.
6744 * objfiles.h: Remove symbol_obstack field.
6745 * pa64solib.c (add_to_solist): Replace symbol_obstack with
6747 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
6749 (solib_add_common_symbols): Replace symbol_obstack with
6751 * somsolib.c (som_solib_add): Ditto.
6752 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6753 (common_block_start, common_block_end): Ditto.
6754 * symfile.c (reread_symbols): Remove freeing and init of
6756 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
6757 * symfile.h: Update comment.
6758 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
6760 * symtab.c (symbol_set_names): Replace symbol_obstack with
6762 * symtab.h (struct general_symbol_info, struct minimal_symbol):
6764 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
6765 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
6768 2004-02-07 Andrew Cagney <cagney@redhat.com>
6770 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
6771 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
6772 fields and variables.
6773 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
6774 (m_beInvisible): Delete macro.
6775 * tui/tui-data.h: Fix case case fields and variables.
6776 (m_genWinPtrIsNull): Delete macro.
6777 (tui_win_list): Rename winList.
6778 (TUI_SRC_WIN): Rename srcWin.
6779 (TUI_DISASM_WIN): Rename disassemWin.
6780 (TUI_DATA_WIN): Rename dataWin.
6781 (TUI_CMD_WIN): Rename cmdWin.
6782 (m_genWinPtrNotNull): Delete macro.
6783 (m_winPtrIsNull): Delete macro.
6784 (m_winPtrNotNull): Delete macro.
6785 (tui_win_is_source_type): Replace m_winIsSourceType
6786 (tui_win_is_auxillary): Replace m_winIsAuzillary.
6787 (tui_win_has_locator): Replace m_hasLocator.
6788 (tui_set_win_highlight): Replace m_setWinHighlightOn and
6789 m_setWinHighlightOff.
6790 * tui/tui-data.c: Update references.
6791 (tui_win_is_source_type, tui_set_win_highlight): New functions.
6792 (tui_win_has_locator, tui_win_is_auxillary): New functions.
6793 * tui/tui-command.c, tui/tui-disasm.c: Update references.
6794 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
6795 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
6796 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
6797 * tui/tui-winsource.c, tui/tui.c: Ditto.
6799 2004-02-07 Mark Kettenis <kettenis@gnu.org>
6801 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
6802 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
6805 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
6806 variable `i6' to `i7'.
6807 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
6809 2004-02-07 Andrew Cagney <cagney@redhat.com>
6811 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
6812 (TuiPoint, TuiPointPtr): Ditto.
6813 (TuiStatus, TuiStatusPtr): Ditto.
6814 (TuiWinType, TuiWinTypePtr): Ditto.
6815 (struct tui_point): Rename _TuiPoint.
6816 (tui_get_low_disassembly_address): Rename
6817 tuiGetLowDisassemblyAddress.
6818 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
6819 (tuiFree): Delete declaration.
6820 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
6821 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
6822 * tui/tui.c (tuiFree): Delete function.
6823 * cli/cli-cmds.c (disassemble_command): Update references.
6824 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
6825 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
6826 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
6827 * tui/tui-winsource.c: Ditto.
6829 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
6831 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
6832 coffstab_build_psymtabs, elfstab_build_psymtabs)
6833 (stabsect_build_psymtabs): Replace psymbol_obstack with
6835 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
6836 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
6838 * dwarfread.c (scan_compilation_units): Ditto.
6839 * elfread.c (elfstab_offset_sections): Ditto.
6840 * hppa-tdep.c (read_unwind_info): Ditto.
6841 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
6842 (hpread_end_psymtab): Ditto.
6843 * mdebugread.c (mdebug_build_psymtabs, add_pending)
6844 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
6846 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6847 * objfiles.c (add_to_objfile_sections)
6848 (build_objfile_section_table): Ditto.
6849 (allocate_objfile): Remove init of psymbol_obstack.
6850 (free_objfile): Remove freeing of psymbol_obstack.
6851 * objfiles.h (struct objfile): Remove field
6852 psymbol_obstack. Update comments.
6853 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
6854 psymbol_obstack with objfile_obstack.
6855 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
6857 * somread.c (som_symfile_offsets, init_import_symbols)
6858 (init_export_symbols): Replace psymbol_obstack with
6860 * somsolib.c (som_solib_add_solib_objfile): Ditto.
6861 * symfile.c (default_symfile_offsets, syms_from_objfile)
6862 (reread_symbols): Remove freeing and init of psymbol_obstack.
6863 (cashier_psymtab): Update comment.
6864 * symmisc.c (print_objfile_statistics): Don't report stats for
6866 * symtab.h (struct general_symbol_info, struct partial_symtab):
6868 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
6869 (xcoff_symfile_offsets): Replace psymbol_obstack with
6872 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
6874 * objfiles.h (struct objfile): Add objfile_obstack field.
6875 Remove type_obstack field.
6877 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
6878 read_structure_scope read_enumeration, new_symbol): Replace
6879 type_obstack with objfile_obstack.
6880 * dwarfread.c (struct_type, enum_type): Ditto.
6881 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
6882 (lookup_fundamental_type): Ditto.
6883 * gdbtypes.h (TYPE_ALLOC): Ditto.
6884 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
6885 (hpread_read_doc_function_type, hpread_read_struct_type)
6886 (fix_static_member_physnames, hpread_read_array_type)
6887 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
6888 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
6889 (java_link_class_type): Ditto.
6890 * mdebugread.c (parse_type): Ditto.
6891 * objfiles.c (allocate_objfile, free_objfile): Ditto.
6892 * solib-sunos.c (solib_add_common_symbols): Ditto.
6893 * stabsread.c (define_symbol, read_type, read_member_functions,
6894 read_cpp_abbrev, read_one_struct_field): Ditto.
6895 * symfile.c (reread_symbols): Ditto.
6896 * symmisc.c (print_objfile_statistics): Ditto.
6898 2004-02-07 Andrew Cagney <cagney@redhat.com>
6900 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
6901 (tui_exec_info_content): Rename TuiExecInfoContent.
6902 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
6903 (TuiWinInfo, TuiWinInfoPtr): Ditto.
6904 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
6905 (TuiList, TuiListPtr): Ditto.
6906 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
6907 (TuiDataType, TuiDataTypePtr): Ditto.
6908 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
6909 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
6910 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
6911 (TuiSourceElement, TuiSourceElementPtr): Ditto.
6912 (TuiDataElement, TuiDataElementPtr): Ditto.
6913 (TuiWinElement, TuiWinElementPtr): Ditto.
6914 (TuiDataInfo, TuiDataInfoPtr): Ditto.
6915 (TuiCommandElement, TuiCommandElementPtr): Ditto.
6916 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
6917 (TuiWhichElement, TuiWhichElementPtr): Ditto.
6918 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
6919 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
6920 * tui/tui-command.c, tui/tui-data.c: Update references.
6921 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
6922 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
6923 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
6924 * tui/tui-winsource.c, tui/tui.c: Ditto.
6926 2004-02-07 Mark Kettenis <kettenis@gnu.org>
6928 * dwarf2-frame.h: Update copyright.
6929 (enum dwarf2_frame_reg_rule): New.
6930 (struct dwarf2_frame_state_reg): New.
6931 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
6932 * dwarf2-frame.c: Update copyright.
6933 (enum dwarf2_reg_rule): Remove.
6934 (struct dwarf2_frame_state): Remove defenition of `struct
6935 dwarf2_frame_state_reg'.
6936 (read_reg): Call get_frame_arch to get the architecture instead of
6937 using CURRENT_GDBARCH.
6938 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
6940 (dwarf2_frame_init_reg): New function.
6941 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
6942 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
6943 initialize the register state. Prefix old `enum dwarf2_reg_rule'
6944 tags with DWARF2_FRAME_.
6945 (dwarf2_frame_prev_register): Call get_frame_arch to get the
6946 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
6947 dwarf2_reg_rule' tags with DWARF2_FRAME_.
6949 2004-02-06 Andrew Cagney <cagney@redhat.com>
6951 * tui/tui-data.h (struct tui_list): Rename _TuiList.
6952 (enum tui_data_type): Rename _TuiDataType.
6953 (struct tui_layout_def): Rename _TuiLayoutDef.
6954 (struct tui_source_element): Rename _TuiSourceElement.
6955 (struct tui_data_element): Rename _TuiDataElement.
6956 (struct tui_command_element): Rename _TuiCommandElement.
6957 (struct tui_locator_element): Rename _TuiLocatorElement.
6958 (union tui_which_element): Define.
6959 (struct tui_win_element): Rename _TuiWinElement.
6960 (struct tui_data_info): Rename _TuiDataInfo.
6961 (struct tui_source_info): Rename _TuiSourceInfo.
6962 (struct tui_command_info): Rename _TuiCommandInfo.
6963 (tui_initialize_static_data): Rename initializeStaticData.
6964 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
6965 (tui_alloc_win_info): Rename allocWinInfo.
6966 (tui_init_generic_part): Rename initGenericPart.
6967 (tui_init_win_info): Rename initWinInfo.
6968 (tui_alloc_content): Rename allocContent.
6969 (tui_add_content_elements): Rename addContentElements.
6970 (tui_init_content_element): Rename initContentElement.
6971 (tui_free_window): Rename freeWindow.
6972 (tui_free_win_content): Rename freeWinContent.
6973 (tui_free_data_content): Rename freeDataContent.
6974 (tui_free_all_source_wins_content): Rename
6975 freeAllSourceWinsContent.
6976 (tui_del_window): Rename tuiDelWindow.
6977 (tui_del_data_windows): Rename tuiDelDataWindows.
6978 (tui_partial_win_by_name): Rename partialWinByName.
6979 (tui_win_name): Rename winName.
6980 (tui_current_layout): Rename currentLayout.
6981 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
6982 (tui_term_height): Rename termHeight.
6983 (tui_set_term_height_to): Rename setTermHeightTo.
6984 (tui_term_width): Rename termWidth.
6985 (tui_set_term_width_to): Rename setTermWidthTo.
6986 (tui_set_gen_win_origin): Rename setGenWinOrigin.
6987 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
6988 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
6989 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
6990 (tui_source_windows): Rename sourceWindows.
6991 (tui_clear_source_windows): Rename clearSourceWindows.
6992 (tui_clear_source_windows_detail): Rename
6993 clearSourceWindowsDetail.
6994 (tui_clear_win_detail): Rename clearWinDetail.
6995 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
6996 (tui_default_tab_len): Rename tuiDefaultTabLen.
6997 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
6998 (tui_win_with_focus): Rename tuiWinWithFocus.
6999 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
7000 (tui_layout_def): Rename tuiLayoutDef.
7001 (tui_win_resized): Rename tuiWinResized.
7002 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
7003 (tui_next_win): Rename tuiNextWin.
7004 (tui_prev_win): Rename tuiPrevWin.
7005 (tui_add_to_source_windows): Rename addToSourceWindows.
7006 * tui/tui-winsource.c, tui/tui-win.c: Update references.
7007 * tui/tui-layout.c, tui/tui-source.c: Ditto.
7008 * tui/tui-stack.c, tui/tui-io.c: Ditto.
7009 * tui/tui.c, tui/tui-data.c: Ditto.
7010 * tui/tui-interp.c, tui/tui-data.c: Ditto.
7011 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
7013 * tui/tui-source.h: Update copyright. Include "tui-data.h".
7014 (struct symtab): Declare.
7015 (tui_set_source_content): Rename tuiSetSourceContent.
7016 (tui_show_symtab_source): Rename tuiShowSource.
7017 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
7018 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
7019 * tui/tui-source.c: Update copyright. Update references.
7020 * tui/tui-win.c, tui/tui-winsource.c: Update references.
7021 * tui/tui-stack.c: Update references.
7023 * tui/tui-win.h: Update copyright. Include "tui-data.h".
7024 (struct tui_win_info): Declare.
7025 (tui_scroll_forward): Rename tuiScrollForward.
7026 (tui_scroll_backward): Rename tuiScrollBackward.
7027 (tui_scroll_left): Rename tuiScrollLeft.
7028 (tui_scroll_right): Rename tuiScrollRight.
7029 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
7030 (tui_resize_all): Rename tuiResizeAll.
7031 (tui_refresh_all_win): Rename tuiRefreshAll.
7032 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
7033 * tui/tui-layout.c, * tui/tui-io.c: Update references.
7034 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
7035 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
7037 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
7038 (tui_erase_data_content): Rename tuiEraseDataContent.
7039 (tui_display_all_data): Rename tuiDisplayAllData.
7040 (tui_check_data_values): Rename tuiCheckDataValues.
7041 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
7042 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
7043 (tui_first_data_element_no_in_line): Rename
7044 tuiFirstDataElementNoInLine.
7045 (tui_delete_data_content_windows): Rename
7046 tuiDeleteDataContentWindows.
7047 (tui_refresh_data_win): Rename tuiRefreshDataWin.
7048 (tui_display_data_from): Rename tuiDisplayDataFrom.
7049 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
7050 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
7051 * tui/tui-win.c, tui/tui-regs.c: Update references.
7052 * tui/tui-layout.c, tui/tui.c: Update references.
7054 * tui/tui-wingeneral.h: Update copyright.
7055 (m_allBeVisible): Delete macro.
7056 (m_allBeInvisible): Delete macro.
7057 (struct tui_gen_win_info): Declare.
7058 (struct tui_win_info): Declare.
7059 (tui_unhighlight_win): Rename unhighlightWin.
7060 (tui_make_visible, tui_make_invisible): Replace makeVisible.
7061 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
7062 (tui_make_window): Rename makeWindow.
7063 (tui_copy_win): Rename copyWin.
7064 (tui_box_win): Rename boxWin.
7065 (tui_highlight_win): Rename highlightWin.
7066 (tui_check_and_display_highlight_if_needed): Rename
7067 checkAndDisplayHighlightIfNeeded.
7068 (tui_refresh_all): Rename refreshAll.
7069 (tui_delete_win): Rename tuiDelwin.
7070 (tui_refresh_win): Rename tuiRefreshWin.
7071 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
7072 (tui_make_visible, tui_make_invisible): New functions.
7073 (tui_make_all_visible, tui_make_all_invisible): New functions.
7074 (make_all_visible): Rename makeAllVisible.
7075 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
7076 * tui/tui-data.c, tui/tui-winsource.c: Update references.
7077 * tui/tui-windata.c, tui/tui-win.c: Update references.
7078 * tui/tui-regs.c, tui/tui-layout.c: Update references.
7079 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
7081 2004-02-06 Mark Kettenis <kettenis@gnu.org>
7083 * proc-api.c (write_with_trace): Initialize local variable to
7084 silence compiler warning.
7086 2004-02-06 Andrew Cagney <cagney@redhat.com>
7088 * tui/tui-source.h: Do not include "defs.h".
7089 (struct tui_win_info): Declare.
7090 (tui_set_source_content_nil): Declare.
7091 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
7092 (union tui_line_or_address): Rename _TuiLineOrAddress.
7093 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
7094 (tui_update_source_window): Rename tuiUpdateSourceWindow.
7095 (tui_update_source_window_as_is): Rename
7096 tuiUpdateSourceWindowAsIs.
7097 (tui_update_source_windows_with_addr): Rename
7098 tuiUpdateSourceWindowsWithAddr.
7099 (tui_update_source_windows_with_line): Rename
7100 tuiUpdateSourceWindowsWithLine.
7101 (tui_clear_source_content): Rename tuiClearSourceContent.
7102 (tui_erase_source_content): Rename tuiEraseSourceContent.
7103 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
7104 (tui_show_source_content): Rename tuiShowSourceContent.
7105 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
7106 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
7107 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
7108 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
7109 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
7110 (tui_update_exec_info): Rename tuiUpdateExecInfo.
7111 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
7112 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
7113 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
7114 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
7115 (struct tui_win_info): Declare.
7116 * tui/tui-stack.c: Update references.
7117 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
7118 * tui/tui-win.c, tui/tui-source.c: Ditto.
7119 * tui/tui.c, tui/tui-disasm.c: Ditto.
7121 2004-02-06 Mark Kettenis <kettenis@gnu.org>
7123 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
7124 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
7126 2004-02-05 Mark Kettenis <kettenis@gnu.org>
7128 * infrun.c (handle_inferior_event): Allow for breakpoint
7129 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
7130 and SIGEMT. Update comments.
7131 * NEWS (Revised SPARC target): Mention support for non-executable
7134 2004-02-04 Mark Kettenis <kettenis@gnu.org>
7136 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
7137 * inftarg.c: Update copyright year.
7138 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
7139 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
7140 (sparc_xfer_wcookie): New function.
7141 * sparc-tdep.c (sparc_fetch_wcookie): New function.
7142 * Makefile.in (sparc-nat.o): Update dependencies.
7143 * config/sparc/nm-nbsd.h: Include "target.h".
7144 (NATIVE_XFER_WCOOKIE): New define.
7145 (sparc_xfer_wcookie): New prototype.
7147 2004-02-04 Andrew Cagney <cagney@redhat.com>
7149 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
7150 SYSCALL_TRAP function.
7151 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
7153 2004-02-04 Andrew Cagney <cagney@redhat.com>
7154 Daniel Jacobowitz <drow@mvista.com>
7156 * objfiles.h: Delete comments refering to inside_entry_func and
7157 DEPRECATED_FRAME_CHAIN_VALID.
7158 * defs.h (inside_entry_func): Update prototype..
7159 * blockframe.c (inside_entry_func): Rename to
7160 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
7161 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
7163 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
7165 * breakpoint.c (struct captured_parse_breakpoint_args): Move
7166 outside of #ifdef SOLIB_ADD region.
7167 (do_restore_lang_radix_cleanup): Ditto.
7168 (resolve_pending_breakpoint): Ditto.
7170 2004-02-03 Andrew Cagney <cagney@redhat.com>
7172 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
7173 (process_note_abi_tag_sections): Delete unused function.
7174 (ia64_read_fp): Delete unused function.
7175 (gdbarch_extract_struct_value_address): Delete declaration.
7177 2004-02-02 Andrew Cagney <cagney@redhat.com>
7179 * vax-tdep.c (vax_frame_chain): Delete call to
7180 deprecated_inside_entry_file.
7181 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
7183 2004-02-02 Mark Kettenis <kettenis@gnu.org>
7185 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
7186 column that's "empty" or "same value" when eliminating REG_RA
7189 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
7191 * NEWS: Add information about new pending breakpoint support.
7193 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
7195 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
7196 and pending fields for pending breakpoint support.
7197 * breakpoint.c (breakpoint_enabled): Add check for not pending.
7198 (condition_command): Only parse condition if not a pending
7200 (print_one_breakpoint): Add support for pending breakpoints.
7201 (describe_other_breakpoints): Add checks to verify we are not
7202 dealing with pending breakpoints.
7203 (check_duplicates): Don't check pending breakpoints.
7204 (set_raw_breakpoint): Initialize pending flag.
7205 (do_restore_lang_radix_cleanup): New cleanup routine.
7206 (resolve_pending_breakpoint): New function.
7207 (re_enable_breakpoints_in_shlibs): Try and resolve any
7208 pending breakpoints via resolve_pending_breakpoint.
7209 (mention): Add pending breakpoint support.
7210 (parse_breakpoint_sals): Add new parameter to pass to
7211 decode_line_1 to indicate silent errors when files or functions
7212 are not found. Change all callers.
7213 (do_captured_parse_breakpoint): New function.
7214 (break_command_1): Change prototype to return an rc value and to
7215 take an optional pending breakpoint pointer. Support creating
7216 a pending breakpoint if a "not found" form of error occurs when
7217 parsing the breakpoint. Also support resolving an existing pending
7218 breakpoint and be silent if the resolution fails.
7219 (create_breakpoints): Change prototype to take pending breakpoint
7220 pointer. When resolving a pending breakpoint, use the new pointer
7221 to provide a conditional or commands added by the end-user.
7222 (delete_breakpoint): Add appropriate check for pending.
7223 (breakpoint_re_set_one): Ditto.
7224 (do_enable_breakpoint): Ditto.
7226 2004-02-02 David Carlton <carlton@kealia.com>
7228 * valops.c (enum oload_classification): New.
7229 (find_overload_match): Break implementation into separate
7230 functions; delete #if 0'd code; look for symbols within
7232 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
7233 (find_oload_champ,oload_method_static,classify_oload_match): New.
7234 * cp-support.h: Add declaration for cp_func_name; update
7235 declaration for make_symbol_overload_list.
7236 * cp-support.c (cp_func_name): New.
7237 (overload_list_add_symbol): Fix comment, use
7238 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
7239 (make_symbol_overload_list): Take a function name and a namespace
7240 instead of a symbol; change implementation.
7241 (make_symbol_overload_list_using): New.
7242 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
7244 2004-02-02 Fred Fish <fnf@redhat.com>
7246 * main.c (gdb_stdtarg): Move definition to group with other
7247 gdb_stdtarg definitions and update copyright years.
7248 * remote-sim.c (gdb_os_write_stderr): Write output to
7249 gdb_stdtargerr stream instead of gdb_stdtarg stream.
7250 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
7251 gdb_stderr stream and update copyright years.
7253 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
7255 * Makefile.in (mips-linux-nat.o): Update dependencies.
7256 * mips-linux-nat.c: Include mips-tdep.h.
7258 2004-02-01 Roland McGrath <roland@redhat.com>
7260 * sol-thread.c (sol_thread_xfer_partial): New function.
7261 (init_sol_thread_ops): Use that for to_xfer_partial hook.
7262 (init_sol_core_ops): Likewise.
7264 * procfs.c (procfs_xfer_partial): New function.
7265 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
7266 * Makefile.in (procfs.o): Add $(auxv_h) dep.
7268 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
7269 procfs_xfer_auxv function.
7271 * procfs.c (procfs_make_note_section): If we can read
7272 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
7273 * linux-proc.c (linux_make_note_section): Likewise.
7277 * Makefile.in (auxv_h): New variable.
7278 (COMMON_OBS): Add auxv.o here.
7279 (auxv.o): New target.
7281 * corelow.c (core_xfer_partial): New function.
7282 (init_core_ops): Use it for core_ops.to_xfer_partial.
7284 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
7285 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
7286 macro if that is defined.
7288 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
7290 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
7291 and check the specified thread for each breakpoint.
7292 * breakpoint.h (bpstat_stop_status): Update prototype.
7293 * infrun.c (handle_inferior_event): Update calls to
7296 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
7298 * Makefile.in (cli-cmds.o): Add $(readline_h).
7300 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
7302 * cli/cli-cmds.c: Include readline.h.
7303 (complete_command): Pass the start of the last word to
7306 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
7308 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
7309 argument, and change first argument to a CORE_ADDR.
7310 * breakpoint.h (bpstat_stop_status): Update prototype.
7311 * infrun.c (adjust_pc_after_break): Add a new comment.
7312 (handle_inferior_event): Update calls to bpstat_stop_status.
7314 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
7316 * breakpoint.h: Update copyright years.
7318 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
7320 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
7321 (bpstat_stop_status): Don't decrement PC.
7322 * breakpoint.h (software_breakpoint_inserted_here_p): Add
7324 * infrun.c (adjust_pc_after_break): New function.
7325 (handle_inferior_event): Call it, early. Remove later references
7326 to DECR_PC_AFTER_BREAK.
7327 (normal_stop): Add commentary.
7329 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
7331 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
7332 2004-01-27 double-free fix.
7334 2004-01-31 Mark Kettenis <kettenis@gnu.org>
7336 * sparc-tdep.c (sparc_fetch_wcookie): New function.
7337 (sparc32_frame_prev_register): Handle StackGhost.
7338 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
7340 2004-01-29 Roland McGrath <roland@redhat.com>
7342 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
7343 * configure: Regenerated.
7345 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
7346 * Makefile.in (procfs.o): Add dep.
7348 2004-01-28 Andrew Cagney <cagney@redhat.com>
7350 * tui/tui-stack.h: Update copyright.
7351 (struct frame_info): Add opaque declaration.
7352 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
7353 (tui_show_locator_content): Rename tuiShowLocatorContent.
7354 (tui_show_frame_info): Rename tuiShowFrameInfo.
7355 * tui/tui-stack.c: Update copyright. Update references.
7356 * tui/tui-winsource.c: Update references.
7357 * tui/tui-win.c: Update references.
7358 * tui/tui-layout.c: Update references.
7359 * tui/tui-hooks.c: Update copyright, update references.
7360 * tui/tui.c: Update copyright, update references.
7361 * tui/tui-disasm.c: Update references.
7363 2004-01-28 David Carlton <carlton@kealia.com>
7365 * dwarf2read.c (add_partial_structure): Use demangled name if
7366 namespace equals "".
7368 2004-01-27 Jim Blandy <jimb@redhat.com>
7370 Clean up misapplied patch:
7371 * dwarf2read.c (determine_prefix): Change one of the two forward
7372 declarations for 'determine_prefix_aux' to a declaration for this.
7373 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
7374 argument to 'die_specification'.
7376 * dwarf2read.c (read_func_scope): Re-indent comment.
7378 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
7380 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
7381 b->exp to NULL after freeing so that error during re-parsing or
7382 evaluation of expressions associated with breakpoint don't
7383 eventually lead to re-freeing of storage.
7384 Committed by Andrew Cagney.
7386 2004-01-27 Andrew Cagney <cagney@redhat.com>
7388 * source.c (ambiguous_line_spec): Delete undefined declaration.
7389 * m32r-rom.c (m32r_set_board_address): Delete unused function.
7390 (m32r_set_server_address, m32r_set_download_path): Ditto.
7391 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
7393 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
7395 * dwarf2read.c: Update calls to changed and renamed functions, and
7396 references to moved variables.
7398 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
7399 language, language_defn, list_in_scope, and ftypes members.
7400 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
7401 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
7402 (baseaddr): Remove globals.
7404 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
7405 (set_cu_language, die_is_declaration, die_specification)
7406 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
7407 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
7408 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
7409 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
7411 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
7412 cu.list_in_scope. Don't initialize cu_header_offset.
7413 (add_partial_symbol): Add local baseaddr.
7414 (psymtab_to_symtab_1): Add local baseaddr. Use
7415 objfile->section_offsets for consistency. Don't initialize
7416 cu_header_offset; do initialize cu.header.offset and
7418 (read_file_scope, read_func_scope, read_lexical_block_scope)
7419 (dwarf_decode_lines, new_symbol): Add local baseaddr.
7421 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
7423 * PROBLEMS: Add gdb/1516.
7425 2003-12-29 Robert Millan <robertmh@gnu.org>
7427 Patch committed by Andrw Cagney.
7428 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
7429 * configure.tgt: Match knetbsd*-gnu.
7431 2004-01-26 Andrew Cagney <cagney@redhat.com>
7433 * breakpoint.c (catch_command_1): Delete #ifdef code.
7434 (catch_fork_command_1): Delete #ifdef wrapper.
7435 (catch_exec_command_1): Ditto.
7436 (catch_load_command_1): Ditto.
7437 (catch_unload_command_1): Ditto.
7439 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
7440 (catch_breakpoint): Delete #if0ed function.
7441 (disable_catch_breakpoint): Ditto.
7442 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
7443 (disable_catch, enable_catch, delete_catch): Ditto.
7445 2004-01-26 Andrew Cagney <cagney@redhat.com>
7447 * remote.c (echo_check, quit_flag): Delete variables.
7448 (cisco_kernel_mode): Delete variable.
7449 (minitelnet_return, tty_input, escape_count): Delete variables.
7450 (remote_cisco_mode): Delete variable.
7451 (remote_cisco_open, remote_cisco_close): Delete function.
7452 (remote_cisco_mourn, remote_cisco_wait): Delete function.
7453 (init_remote_cisco_ops): Delete function.
7454 (_initialize_remote): Do not install "remote cisco" code.
7455 (read_frame): Delete cisco specific code.
7456 (remote_info_process): Delete function.
7457 (remote_wait): Delete cisco specific code.
7458 (remote_cisco_section_offsets): Delete function.
7459 (remote_cisco_objfile_relocate): Delete function.
7460 (remote_async_wait): Delete cisco specific code.
7461 (minitelnet, readtty, readsocket): Delete function.
7463 2004-01-26 Andrew Cagney <cagney@redhat.com>
7465 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
7466 comments mentioning extract_returned_value_address.
7467 * infcmd.c (print_return_value): Update. Add comments on
7468 extract_returned_value_address.
7469 * stack.c (return_command): Add comments on
7470 extract_returned_value_address.
7471 * values.c: Update comment.
7472 * m32r-tdep.c: Update comment.
7473 * sparc-tdep.c: Update comment.
7474 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
7475 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7476 * sh64-tdep.c (sh64_gdbarch_init): Update.
7477 * sh-tdep.c (sh_gdbarch_init): Update.
7478 * s390-tdep.c (s390_gdbarch_init): Update.
7479 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7480 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
7481 * m68k-tdep.c (m68k_gdbarch_init): Update.
7482 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7483 * m32r-tdep.c (m32r_gdbarch_init): Update.
7484 * ia64-tdep.c (ia64_gdbarch_init): Update.
7485 * h8300-tdep.c (h8300_gdbarch_init): Update.
7486 * frv-tdep.c (frv_gdbarch_init): Update.
7487 * arm-tdep.c (arm_gdbarch_init): Update.
7488 * alpha-tdep.c (alpha_gdbarch_init): Update.
7490 2004-01-26 Andrew Cagney <cagney@redhat.com>
7492 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
7493 SYMBOL_LOCATION_FUNCS
7494 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
7495 "struct symbol_ops".
7496 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
7497 type to "struct symbol_ops".
7498 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
7499 (struct symbol): Replace ".aux_value.loc.funcs" and
7500 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
7501 (SYMBOL_OBJFILE): Delete macro.
7502 (SYMBOL_LOCATION_FUNCS): Delete macro.
7503 (SYMBOL_LOCATION_BATON): Update.
7504 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
7505 intead of SYMBOL_LOCATION_FUNCS.
7506 * ax-gdb.c (gen_var_ref): Ditto.
7507 * printcmd.c (address_info): Ditto.
7508 * findvar.c (read_var_value): Ditto.
7509 (symbol_read_needs_frame): Ditto.
7511 2004-01-26 Andrew Cagney <cagney@redhat.com>
7513 * dwarf2read.c (read_func_scope): Document frame-base hack.
7515 2004-01-25 Mark Kettenis <kettenis@gnu.org>
7517 * infcmd.c (print_return_value): Plug memory leak; delete
7518 ui_stream object. Rename argument `structure_return' to
7521 2004-01-25 Mark Kettenis <kettenis@gnu.org>
7523 * infcmd.c (print_return_value): Wrap long lines.
7524 (finish_command_continuation, finish_command): Remove unused
7525 variable `funcaddr'. Fix some coding-standards problems.
7527 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
7528 SECT_SIZE is large enough, not whether it's exactly the right size.
7529 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
7530 TDEP->fpregset to zero.
7532 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
7533 floating-point registers for traditional NetBSD core files.
7534 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
7535 TDEP->sizeof_fpregset here.
7537 2004-01-25 Mark Kettenis <kettenis@gnu.org>
7539 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
7540 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
7541 function with code split out from
7542 sparc32nbsd_sigcontext_frame_cache.
7543 (sparc32nbsd_sigcontext_frame_cache): Use
7544 sparc32nbsd_sigcontext_saved_regs.
7545 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
7547 * sparcobsd-tdep.c: New file.
7548 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
7549 (sparcobsd-tdep.o): New dependency.
7550 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
7551 * config/sparc/obsd.mt: New file.
7553 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
7554 TDEP->fpregset to be initialized to enable core file register
7557 2004-01-24 Mark Kettenis <kettenis@gnu.org>
7559 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
7560 Add opaque declarations.
7561 (sparc64nbsd_sigcontext_saved_regs): New prototype.
7562 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
7563 function with code split out from
7564 sparc64nbsd_sigcontext_frame_cache.
7565 (sparc64nbsd_sigcontext_frame_cache): Use
7566 sparc64nbsd_sigcontext_saved_regs.
7567 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
7569 * sparc64obsd-tdep.c: New file.
7570 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
7571 (sparc64obsd-tdep.o): New dependency.
7572 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
7573 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
7574 * config/sparc/obsd64.mt: New file.
7576 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
7577 read the instruction at PC.
7579 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
7580 value of GDB_OSABI_DEFAULT.
7581 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
7582 instead of GDB_OSABI_NETBSD_AOUT.
7584 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
7586 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
7589 2004-01-23 Andrew Cagney <cagney@redhat.com>
7591 * printcmd.c (display_command): Replace tui_set_display call with
7592 tui_set_layout_for_display_command.
7593 * tui/tui.h (enum tui_win_type): Define.
7594 (tui_set_layout): Delete declaration.
7595 (tui_set_layout_for_display_command): Rename set_tui_layout.
7596 * tui/tui-data.h (enum tui_layout_type): Define.
7597 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
7599 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
7600 (tui_default_win_height): Rename tuiDefaultWinHeight.
7601 (tui_default_win_viewport_height): Rename
7602 tuiDefaultWinViewportHeight.
7603 (tui_set_layout): RenametuiSetLayout.
7604 * tui/tui-layout.c: Update references.
7605 * tui/tui.c: Update references.
7606 * tui/tui-disasm.c: Update references.
7608 2004-01-23 David Carlton <carlton@kealia.com>
7610 Partial workaround for PR c++/1511:
7611 * cp-namespace.c: Include frame.h.
7612 (cp_lookup_transparent_type): New
7613 (cp_lookup_transparent_type_loop): New.
7614 * cp-support.h: Declare cp_lookup_transparent_type.
7615 * symtab.c (basic_lookup_transparent_type): Renamed from
7616 lookup_transparent_type.
7617 (lookup_transparent_type): Replace old body by a call to
7618 current_language->la_lookup_transparent_type.
7619 * symtab.h: Update copyright. Declare
7620 basic_lookup_transparent_type.
7621 * language.h: Update copyright.
7622 (struct language_defn): Add la_lookup_transparent_type.
7623 * language.c: Update copyright.
7624 (unknown_language_defn): Add basic_lookup_transparent_type.
7625 (auto_language_defn): Add basic_lookup_transparent_type.
7626 (local_language_defn): Add basic_lookup_transparent_type.
7627 * ada-lang.c: Update copyright.
7628 (ada_language_defn): Add basic_lookup_transparent_type.
7629 * c-lang.c: Update copyright.
7630 (c_language_defn): Add basic_lookup_transparent_type.
7631 (cplus_language_defn): Add basic_lookup_transparent_type.
7632 (asm_language_defn): Add basic_lookup_transparent_type.
7633 (minimal_language_defn): Add basic_lookup_transparent_type.
7634 * f-lang.c: Update copyright.
7635 (f_language_defn): Add basic_lookup_transparent_type.
7636 * jv-lang.c: Update copyright.
7637 (java_language_defn): Add basic_lookup_transparent_type.
7638 * m2-lang.c: Update copyright.
7639 (m2_language_defn): Add basic_lookup_transparent_type.
7640 * objc-lang.c: Update copyright.
7641 (objc_language_defn): Add basic_lookup_transparent_type.
7642 * p-lang.c: Update copyright.
7643 (p_language_defn): Add basic_lookup_transparent_type.
7644 * scm-lang.c: Update copyright.
7645 (scm_language_defn): Add basic_lookup_transparent_type.
7646 * Makefile.in (cp-namespace.o): Depend on frame.h.
7648 2004-01-23 David Carlton <carlton@kealia.com>
7650 Patch for PR c++/1520:
7651 * dwarf2read.c (read_func_scope): Set processing_current_prefix
7652 properly if we have a specification die.
7653 (determine_prefix_aux): Rename from determine_prefix.
7654 (determine_prefix): Like the old determine_prefix, but never
7657 2004-01-23 Theodore A. Roth <troth@openavr.org>
7659 * avr-tdep.c: Update copyright.
7660 (avr_iaddr_p): Delete unused function.
7661 (avr_saddr_p): Delete unused function.
7663 2004-01-23 David Carlton <carlton@kealia.com>
7665 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
7666 Fix for PR symtab/1534.
7668 2004-01-23 Mark Kettenis <kettenis@gnu.org>
7670 * NEWS (New native configurations): Mention OpenBSD/sparc and
7672 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
7673 * configure.host: Likewise.
7674 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
7675 handler for OpenBSD.
7676 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
7678 2004-01-22 Mark Kettenis <kettenis@gnu.org>
7680 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
7681 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
7683 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
7684 * cli/cli-cmds.c (shell_escape): Likewise.
7686 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
7687 OpenBSD .note.openbsd.ident sections.
7689 2004-01-22 David Carlton <carlton@kealia.com>
7691 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
7692 get_scope_pc_bounds.
7693 (read_file_scope): Ditto.
7694 (get_scope_pc_bounds): New function, produced by extracting code
7695 from the above two functions, consolidating it, and adding support
7696 for DW_TAG_namespace.
7698 2004-01-22 Mark Kettenis <kettenis@gnu.org>
7700 * osabi.c (MAX_NOTESZ): New define.
7701 (check_note): New function.
7702 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
7705 2004-01-21 Roland McGrath <roland@redhat.com>
7707 * MAINTAINERS (write after approval): Add myself.
7709 2004-01-21 Eli Zaretskii <eliz@gnu.org>
7711 * utils.c (init_page_info): Move declarations of `rows' and
7712 `cols' before the __GO32__-specific code. Move the closing brace
7713 outside the #ifdef __GO32__..#endif block.
7714 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
7716 2004-01-21 Paul Brook <paul@codesourcery.com>
7718 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
7719 BPSTAT_WHAT_CHECK_SHLIBS.
7721 2004-01-21 Paul Brook <paul@codesourcery.com>
7723 * MAINTAINERS: Add myself to write-after-approval.
7725 2004-01-20 Andrew Cagney <cagney@redhat.com>
7727 * ax-gdb.c (print_axs_value): Delete unused function.
7728 * jv-lang.c (java_lookup_type): Delete unused function.
7729 * cli/cli-dump.c (dump_filetype): Delete unused function.
7730 * remote-mips.c (remote_mips_insert_hw_breakpoint)
7731 (remote_mips_remove_hw_breakpoint): Delete unused functions.
7732 (mips_getstring): Delete unused function.
7733 (pmon_insert_breakpoint): Delete #if0ed function.
7734 (PMON_MAX_BP): Delete #if0ed MACRO.
7735 (mips_pmon_bp_info): Delete #if0ed variable.
7736 (pmon_remove_breakpoint): Delete #if0ed function.
7737 * monitor.c (monitor_write_even_block): Delete unused function.
7738 (monitor_write_memory_block): Delete #if0ed code.
7739 * dink32-rom.c (dink32_load): Delete unused function.
7740 (_initialize_dink32_rom): Delete #if0ed code.
7741 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
7743 * tui/tui-command.c: Update references.
7744 * tui/tui-io.c: Update references.
7745 * tui/tui-command.h: Update copyright.
7746 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
7748 * source.c (ambiguous_line_spec): Delete never-defined function.
7749 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
7750 * gdbtypes.c (add_name, add_mangled_type): Ditto.
7751 * cli/cli-cmds.c (validate_comname): Ditto.
7753 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
7755 (tui_set_disassem_content): Rename tuiSetDisassemContent.
7756 (tui_show_disassem): Rename tuiShowDisassem.
7757 (tui_show_disassem_and_update_source): Rename
7758 tuiVerticalDisassemScroll.
7759 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
7760 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
7761 * tui/tui.h: Update copyright.
7762 (enum tui_status): Define.
7763 * tui/tui-data.h (enum tui_scroll_direction): Define.
7764 * tui/tui-disasm.c: Update copyright. Update references.
7765 * tui/tui-winsource.c: Update copyright. Update references.
7766 * tui/tui-win.c: Update references.
7767 * tui/tui-layout.c: Update references.
7769 2004-01-20 Andrew Cagney <cagney@redhat.com>
7771 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
7772 sym2 to start of block.
7774 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
7776 * MAINTAINERS: Delete mmalloc.
7777 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
7778 * NEWS: Mention removal of --with-malloc.
7779 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
7780 * config.in: Regenerate.
7781 * configure: Regenerate.
7782 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
7783 USE_MMALLOC, MMCHECK_FORCE.
7784 * gdbinit.in: Remove mmalloc.
7785 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
7786 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
7787 * config/i386/go32.mh: Likewise.
7788 * config/i386/interix.mh: Likewise.
7789 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
7791 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
7793 * linespec.c (decode_variable, symtab_from_filename): Call
7794 error_silent with error message instead of throwing an exception
7796 * defs.h (error_silent, error_output_message): Add prototypes.
7797 (catch_exceptions_with_msg): Ditto.
7798 * utils.c (error_silent, error_output_message): New functions.
7799 * top.c (catch_exceptions_with_msg): New function.
7801 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
7803 * mi/mi-cmds.h (enum print_values): Add definition.
7805 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
7806 type and value for simple data types and just the name and type
7807 for complex ones, if required.
7809 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
7810 children, if required.
7812 2004-01-19 Kevin Buettner <kevinb@redhat.com>
7814 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
7815 unused declarations.
7817 2004-01-19 Andrew Cagney <cagney@redhat.com>
7819 * top.h (mapped_symbol_files): Delete declaration.
7820 * main.c (captured_main): Delete option "m" and "mapped".
7821 * objfiles.c (mapped_symbol_files): Delete variable.
7822 * symfile.c (symbol_file_command): Delete mmap code.
7823 (symbol_file_add_with_addrs_or_offsets): Ditto.
7824 (add_symbol_file_command, reread_separate_symbols): Ditto.
7825 * objfiles.h (OBJF_MAPPED): Delete.
7826 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
7827 (free_objfile) [USE_MMALLOC]: Ditto.
7828 (open_existing_mapped_file): Delete function.
7829 (open_mapped_file): Delete function.
7830 (map_to_file): Delete function.
7832 2004-01-19 Kevin Buettner <kevinb@redhat.com>
7834 * infrun.c (step_into_function): Account for possible breakpoint
7835 adjustment when computing ``stop_func_start''.
7837 2004-01-19 Kevin Buettner <kevinb@redhat.com>
7839 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
7840 the region size against the size of a pointer, not the size of
7841 a register as given by DEPRECATED_REGISTER_SIZE.
7843 2004-01-19 Andrew Cagney <cagney@redhat.com>
7845 * tui/tui-regs.h: Include "tui-data.h".
7846 (tuiFirstRegElementNoInLine): Delete declaration.
7847 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
7848 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
7849 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
7850 (tui_calculate_regs_column_count): Rename
7851 tuiCalculateRegsColumnCount.
7852 (tui_check_register_values): Rename tuiCheckRegisterValues.
7853 (tui_show_registers): Rename tuiShowRegisters.
7854 (tui_display_registers_from_line): Rename
7855 tuiDisplayRegistersFromLine.
7856 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
7857 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
7858 (tui_first_reg_element_no_inline): Rename
7859 tuiFirstRegElementNoInLine.
7860 * tui/tui-data.h: Update copyright.
7861 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
7862 * tui/tui-windata.c: Update copyright, update references.
7863 * tui/tui-regs.c: Update copyright, update references.
7864 * tui/tui-win.c: Update copyright, update references.
7865 * tui/tui-layout.c: Update copyright, update references.
7867 2004-01-18 Andrew Cagney <cagney@redhat.com>
7869 * tui/tui-io.c: Update copyright.
7870 (key_is_end_sequence, key_is_backspace): New functions.
7871 (key_is_command_char, key_is_start_sequence): New function.
7872 (tui_getc): Update references.
7873 * tui/tui-io.h: Update copyright.
7874 (m_tuiStartNewLine): Delete macro.
7875 (m_isBackspace, m_isDeleteChar): Delete macros.
7876 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
7877 (m_isNextPage, m_isPrevPage): Delete macros.
7878 (m_isLeftArrow, m_isRightArrow): Delete macros.
7879 (m_isXdbStyleCommandChar): Delete macro.
7880 (key_is_start_sequence): Declare, replace m_isStartSequence.
7881 (key_is_end_sequence): Declare, replace m_isEndSequence.
7882 (key_is_backspace): Declare ,replace m_isBackspace.
7883 (key_is_command_char): Declare, replace m_isCommandChar.
7884 * tui/tui-command.c: Update copyright.
7885 (tuiDispatchCtrlChar): Update references.
7887 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
7890 * tui/tui-command.c: Rename tui/tuiCommand.c.
7891 * tui/tui-command.h: Rename tui/tuiCommand.h.
7892 * tui/tui-data.c: Rename tui/tuiData.c.
7893 * tui/tui-data.h: Rename tui/tuiData.h.
7894 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
7895 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
7896 * tui/tui-io.c: Rename tui/tuiIO.c.
7897 * tui/tui-io.h: Rename tui/tuiIO.h.
7898 * tui/tui-layout.c: Rename tui/tuiLayout.c.
7899 * tui/tui-layout.h: Rename tui/tuiLayout.h.
7900 * tui/tui-regs.c: Rename tui/tuiRegs.c.
7901 * tui/tui-regs.h: Rename tui/tuiRegs.h.
7902 * tui/tui-source.c: Rename tui/tuiSource.c.
7903 * tui/tui-source.h: Rename tui/tuiSource.h.
7904 * tui/tui-stack.c: Rename tui/tuiStack.c.
7905 * tui/tui-stack.h: Rename tui/tuiStack.h.
7906 * tui/tui-win.c: Rename tui/tuiWin.c.
7907 * tui/tui-win.h: Rename tui/tuiWin.h.
7908 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
7909 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
7910 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
7911 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
7912 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
7913 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
7914 * tui/tui-file.c: Update includes.
7915 * tui/tui-hooks.c: Update includes.
7916 * tui/tui-interp.c: Update includes.
7917 * tui/tui.c: Update includes.
7918 * Makefile.in: Update all tui/ dependencies.
7919 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
7921 * Makefile.in: Update copyright. Update dependencies.
7923 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
7926 2004-01-18 Andrew Cagney <cagney@redhat.com>
7928 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
7929 instead of register_gdbarch_init.
7931 * remote-sds.c (tohex): Delete unused function. Update copyright.
7932 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
7933 * v850-tdep.c (v850_register_virtual_size): Ditto.
7934 * target.c (normal_target_post_startup_inferior): Ditto.
7935 * source.c (ambiguous_line_spec): Ditto.
7936 * remote.c (adapt_remote_get_threadinfo): Ditto.
7937 * mi/mi-out.c (out_field_fmt): Ditto.
7938 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
7939 (output_control_change_notification): Ditto.
7940 * m68k-tdep.c (m68k_register_byte): Ditto.
7941 (m68k_remote_breakpoint_from_pc): Ditto.
7942 * ui-out.c (init_ui_out_state): Delete unused declaration.
7943 * stabsread.c (search_value): Ditto.
7944 * mi/mi-cmd-env.c (env_cli_command): Ditto.
7945 * maint.c (print_section_table): Ditto.
7946 * infrun.c (set_follow_fork_mode_command): Ditto.
7948 2004-01-18 Mark Kettenis <kettenis@gnu.org>
7950 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
7951 DW_CFA_def_cfa_exporession. Add support for
7952 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
7953 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
7955 2004-01-18 Andrew Cagney <cagney@redhat.com>
7957 * ocd.c: Update copyright.
7958 (bdm_read_register_command): Delete unused function.
7959 (_initialize_remote_ocd): Delete commented out reference.
7960 (get_quoted_char, reset_packet): Delete #if0ed function.
7961 (output_packet, put_quoted_char): Delete #if0ed function.
7962 (stu_put_packet, stu_get_packet): Delete #if0ed function.
7963 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
7964 (BDM_BREAKPOINT): Delete #if0ed macro.
7965 (remote_timeout): Delete #if0ed variable.
7967 2004-01-18 Mark Kettenis <kettenis@gnu.org>
7969 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
7970 (core-sol2.o): Remove dependency.
7971 * core-sol2.c: Remove file.
7973 2004-01-17 Andrew Cagney <cagney@redhat.com>
7975 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
7976 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
7979 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
7981 * remote.c: Update copyright years.
7983 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
7985 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
7987 2004-01-17 Andrew Cagney <cagney@redhat.com>
7989 * mdebugread.c: Update copyright.
7990 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
7991 (parse_type, parse_procedure): Ditto.
7992 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
7994 * cris-tdep.c (cris_store_struct_return): Put back accidently
7997 * gdbarch.sh: Update copyright year.
7998 * gdbarch.h, gdbarch.c: Re-generate.
8000 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
8002 Suggested by George Anzinger.
8003 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
8004 correct stack offset. Include unknown opcode numbers in the error
8007 2004-01-17 Andrew Cagney <cagney@redhat.com>
8009 * x86-64-tdep.c (x86_64_init_abi): No need to clear
8010 extract_struct_value_address, i386 does not set it.
8011 * sparc64-tdep.c (sparc64_init_abi): Do not set
8012 extract_struct_value_address, never called.
8013 (sparc64_extract_struct_value_address): Delete function.
8014 * m68hc11-tdep.c: Update copyright.
8015 (m68hc11_gdbarch_init): Delete redundant assignment of
8016 extract_struct_value_address.
8017 * i386-tdep.c: Update copyright.
8018 (i386_gdbarch_init): Do not set extract_struct_value_address,
8020 (i386_extract_struct_value_address): Delete function.
8021 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
8022 extract_struct_value_address, never called.
8023 (sparc32_extract_struct_value_address): #if 0 function. Add
8024 comments explaining its future.
8026 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
8028 * arm-tdep.c (arm_write_pc): New function.
8029 (arm_gdbarch_init): Call set_gdbarch_write_pc.
8031 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
8033 * breakpoint.c (must_shift_inst_regs): Delete.
8034 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
8035 and SHIFT_INST_REGS.
8036 * infcmd.c (step_1, step_1_continuation): Delete references to
8038 * infrun.c (keep_going): Likewise.
8039 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
8040 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
8042 2004-01-17 Andrew Cagney <cagney@redhat.com>
8044 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8045 * gdbarch.h, gdbarch.c: Re-generate.
8046 * infcmd.c (print_return_value): Delete reference to
8047 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8049 * cris-tdep.c (cris_gdbarch_init): Do not set
8050 deprecated_extract_struct_value_address.
8052 * xstormy16-tdep.c: Update copyright.
8053 (xstormy16_extract_struct_value_address): Update to current
8054 extract struct value address interface.
8055 (xstormy16_gdbarch_init): Set extract_struct_value_address.
8056 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
8057 current extract struct value address interface.
8058 (sh64_gdbarch_init): Set extract_struct_value_address.
8060 * cris-tdep.c: Update copyright.
8061 (cris_extract_struct_value_address): Delete function.
8062 (struct_return_address): Delete variable.
8063 (cris_store_struct_return): Do not set struct_return_address.
8065 * mcore-tdep.c: Update copyright.
8066 (mcore_extract_struct_value_address): Delete function. Update
8068 (mcore_gdbarch_init): Update.
8069 * mn10300-tdep.c: Update copyright.
8070 (mn10300_extract_struct_value_address): Delete function.
8071 (mn10300_gdbarch_init): Update.
8072 * v850-tdep.c: Update copyright.
8073 (v850_extract_struct_value_address): Delete.
8074 (v850_gdbarch_init): Update.
8075 * ns32k-tdep.c: Update copyright.
8076 (ns32k_extract_struct_value_address): Delete.
8077 (ns32k_gdbarch_init): Update.
8078 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
8079 (hppa_gdbarch_init): Update.
8080 * vax-tdep.c: Update copyright.
8081 (vax_extract_struct_value_address): Delete.
8082 (vax_gdbarch_init): Update.
8084 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
8085 * gdbarch.h, gdbarch.c: Re-generate.
8086 * procfs.c (procfs_fetch_registers): Delete reference to
8087 DEPRECATED_NPC_REGNUM.
8088 (procfs_store_registers): Ditto.
8089 * regcache.c (generic_target_write_pc): Simplify.
8090 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
8092 * core-sol2.c (fetch_core_registers): Replace
8093 DEPRECATED_NPC_REGNUM with equivalent tdep value.
8095 * hppa-tdep.c: Update copyright year.
8096 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
8098 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
8100 * mips-tdep.c (mips_write_pc): New function.
8101 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
8102 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
8103 (mips_find_saved_regs, mips_software_single_step: Ditto.
8104 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
8105 mips_init_extra_frame_info, mips_pop_frame): Ditto.
8107 2004-01-17 Andrew Cagney <cagney@redhat.com>
8109 * mips-tdep.c: Re-indent. Group functions by ABI.
8111 2004-01-17 Andrew Cagney <cagney@redhat.com>
8113 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
8114 * gdbarch.c: Re-generate.
8115 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8116 DECR_PC_AFTER_BREAK to zero.
8117 * vax-tdep.c (vax_gdbarch_init): Ditto.
8118 * v850-tdep.c (v850_gdbarch_init): Ditto.
8119 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
8120 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8121 * sh-tdep.c (sh_gdbarch_init): Ditto.
8122 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8123 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8124 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8125 * mips-tdep.c (mips_gdbarch_init): Ditto.
8126 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8127 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8128 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
8129 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8130 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
8131 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8132 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8133 * frv-tdep.c (frv_gdbarch_init): Ditto.
8134 * cris-tdep.c (cris_gdbarch_init): Ditto.
8135 * avr-tdep.c (avr_gdbarch_init): Ditto.
8136 * arm-tdep.c (arm_gdbarch_init): Ditto.
8137 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
8139 2004-01-17 J. Brobecker <brobecker@gnat.com>
8141 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
8142 Delete, no longer used.
8143 (read_subrange_type): New function, mostly extracted from
8145 (read_array_type): Replace extracted code by call to
8146 read_subrange_type().
8147 (dwarf2_get_attr_constant_value): New function.
8148 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
8149 (add_partial_symbol): Likewise.
8150 (process_die): Likewise.
8151 (new_symbol): Likewise.
8152 (read_type_die): Likewise.
8154 2004-01-16 Andrew Cagney <cagney@redhat.com>
8156 * symfile.c: Update copyright year.
8157 (compare_symbols): Delete unused function.
8158 * stabsread.c: Update copyright year.
8159 (lrs_general_complaint): Delete unused function.
8160 (ref_search_value): Ditto.
8161 (get_substring): Delete declaration.
8162 * sh64-tdep.c: Update copyright year.
8163 (sh64_get_gdb_regnum): Delete unused function.
8164 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
8165 Delete unused function.
8167 2004-01-17 Mark Kettenis <kettenis@gnu.org>
8169 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
8170 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
8172 2004-01-16 Andrew Cagney <cagney@redhat.com>
8174 Changes from Peter Schauer.
8175 * rs6000-tdep.c: Update copyright year.
8176 (rs6000_push_dummy_call): Update the stack pointer before
8177 accessing the corresponding stack region.
8178 * rs6000-nat.c: Update copyright year.
8179 (set_host_arch): Set "info.abfd" to "exec_bfd".
8181 2004-01-15 Mark Kettenis <kettenis@gnu.org>
8183 * blockframe.c: Update copyright year.
8184 (inside_entry_func): Don't treat a zero PC specially.
8186 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
8188 * gcore.c (gcore_copy_callback): Use paddr_d to print size
8190 (gcore_create_callback): Ditto. Skip any memory segment that has
8193 2004-01-14 David Carlton <carlton@kealia.com>
8195 Change symbols for C++ nested types to contain the fully qualified
8196 name, if possible. (At least in the DWARF-2 case.) Partial fix
8197 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
8199 * c-exp.y (qualified_type): Handle types nested within classes.
8200 * cp-namespace.c: Update comments.
8201 (cp_set_block_scope): Delete #if 0.
8202 (cp_lookup_nested_type): Handle types nested within classes.
8203 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
8205 (add_partial_symbol): Add the name of the enclosing namespace to
8207 (pdi_needs_namespace): New.
8208 (add_partial_namespace): Tweak comment.
8209 (add_partial_structure): New.
8210 (psymtab_to_symtab_1): Initialize processing_current_prefix
8212 (process_die): instead of here.
8213 (read_structure_scope): Try to figure out the name of the class or
8214 namespace that the structure might be defined within.
8215 (read_enumeration): Generate fully-qualified names, if possible.
8216 (read_namespace): Don't set name to NULL.
8217 (die_specification): New.
8218 (new_symbol): Generate fully-qualified names for types.
8219 (read_type_die): Determine appropriate prefix.
8220 (determine_prefix): New.
8221 (typename_concat): New.
8223 * valops.c (value_aggregate_elt): Pass NOSIDE to
8224 value_struct_elt_for_reference.
8225 (value_struct_elt_for_reference): Make static, add NOSIDE
8226 parameter, call value_maybe_namespace_elt as a last resort.
8227 (value_namespace_elt): Break out code into
8228 value_maybe_namespace_elt.
8229 (value_maybe_namespace_elt): New.
8231 2004-01-12 Andrew Cagney <cagney@redhat.com>
8233 * mips-tdep.c (mips_convert_register_p): Handle both raw and
8234 cooked floating-point registers.
8235 (mips_gdbarch_init): Set convert_register_p, register_to_value,
8236 and value_to_register.
8238 2004-01-13 Andrew Cagney <cagney@redhat.com>
8240 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
8241 * gdbarch.c: Re-generate.
8242 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8243 FUNCTION_START_OFFSET.
8244 * v850-tdep.c (v850_gdbarch_init): Ditto.
8245 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
8246 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
8247 * sh-tdep.c (sh_gdbarch_init): Ditto.
8248 * s390-tdep.c (s390_gdbarch_init): Ditto.
8249 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8250 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8251 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8252 * mips-tdep.c (mips_gdbarch_init): Ditto.
8253 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8254 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8255 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8256 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
8257 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8258 * i386-tdep.c (i386_gdbarch_init): Ditto.
8259 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8260 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8261 * frv-tdep.c (frv_gdbarch_init): Ditto.
8262 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8263 * cris-tdep.c (cris_gdbarch_init): Ditto.
8264 * avr-tdep.c (avr_gdbarch_init): Ditto.
8265 * arm-tdep.c (arm_gdbarch_init): Ditto.
8266 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8268 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
8270 * infrun.c (follow_fork_mode_ask): Remove.
8271 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
8272 (follow_fork): Simplify and remove internal error for
8273 follow_fork_mode_ask.
8274 (_initialize_infrun): Update "set follow-fork-mode" help text.
8276 2004-01-13 Andrew Cagney <cagney@redhat.com>
8278 * configure.in: Update copyright year.
8279 (build_warnings): Add -Wunused-label.
8280 * configure: Re-generate.
8282 2004-01-12 Andrew Cagney <cagney@redhat.com>
8284 * exec.h (exec_ops): Make "extern".
8286 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
8287 the function is void.
8288 (mips_pseudo_register_write): Ditto.
8290 2004-01-12 Andrew Cagney <cagney@redhat.com>
8292 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
8293 call. Never defined.
8294 * sparc-tdep.h (struct frame_info): Add opaque declaration.
8295 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
8296 (struct sparc_gregset, struct regcache): Ditto.
8297 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
8299 2004-01-12 Andrew Cagney <cagney@redhat.com>
8301 * mi/ChangeLog: Delete file. Renamed to ...
8302 * mi/ChangeLog-1999-2003: New file.
8303 * tui/ChangeLog: Delete file. Renamed to ...
8304 * tui/ChangeLog-1998-2003: New file.
8306 2004-01-11 Mark Kettenis <kettenis@gnu.org>
8308 * sparc64nbsd-tdep.c: Include "regset.h".
8309 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
8311 (fetch_core_registers): Remove function.
8312 (sparc64nbsd_core_fns): Remove variable.
8313 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
8315 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
8316 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
8317 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
8319 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
8320 sparc_extract_struct_value_address.
8321 (sparc32_gdbarch_init): Set extract_struct_value_address.
8322 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
8324 (sparc64_init_abi): Set extract_struct_value_address. Don't set
8325 return_value_on_stack.
8327 * NEWS: Mention that %cs and %ss have been added to the AMD64
8330 * frame.c: Update copyright year.
8331 (get_prev_frame): Improve comment.
8333 * sparc64fbsd-tdep.c: Include "regset.h".
8334 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
8336 (fetch_core_registers): Remove function.
8337 (sparc64fbsd_core_fns): Remove variable.
8338 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
8340 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
8341 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
8342 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
8344 * sparcnbsd-tdep.c: Include "regset.h".
8345 (fetch_core_registers): Remove function.
8346 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
8347 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
8349 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
8351 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
8353 * sparc-tdep.h (struct regset): Provide opaque declaration.
8354 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
8355 fpregset and sizeof_fpregset members.
8356 * sparc-tdep.c (struct regset): Provide opaque declaration.
8357 (sparc_regset_from_core_section): New function.
8358 (sparc32_gdbarch_init): Initialize TDEP->gregset,
8359 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
8360 Set regset_from_core_section when appropriate.
8362 2004-01-10 Mark Kettenis <kettenis@gnu.org>
8364 * x86-64-tdep.c (amd64_non_pod_p): New function.
8365 (amd64_classify_aggregate): Return class memory for non-POD
8366 C++ structure types.
8368 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
8369 argument. Use it to reserve a register if necessary.
8370 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
8371 amd64_push_arguments.
8373 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
8375 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
8376 register numbers in comments.
8377 * x86-64-tdep.h: Update copyright year.
8378 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
8379 Adjust for addition of %cs and %ss.
8380 * amd64fbsd-nat.c: Update copyright year.
8381 (reg_offset): Add register offsets for %cs and %ss.
8382 * amd64fbsd-tdep.c: Update copyright year.
8383 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
8384 (amd64fbsd_sc_reg_offset): Likewise.
8385 * x86-64-linux-nat.c: Update copyright year.
8386 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
8388 * amd64nbsd-nat.c: Update copyright year.
8389 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
8390 * amd64nbsd-tdep.c: Update copyright year.
8391 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
8392 * x86-64-linux-tdep.c: Update copyright year.
8393 (user_to_gdb_regmap): Add mapping for %cs and %ss.
8394 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
8395 * regformats/reg-x86-64.dat: Add %cs and %ss.
8397 * blockframe.c (inside_entry_func): Reformat. Introduce new local
8398 variables to prevent long lines. Update comments to reflect
8401 2004-01-09 David Carlton <carlton@kealia.com>
8403 Checked in by Elena Zannoni <ezannoni@redhat.com>.
8404 * dwarf2read.c (read_namespace): Pull out name-generating code
8405 into namespace_name. Rename previous_namespace to previous_prefix
8406 and processing_current_namespace to processing_current_prefix..
8407 (namespace_name): New function.
8408 (add_partial_symbol): Substitute uses of pdi->name with
8410 * cp-support.h: Rename processing_current_namespace to
8411 processing_current_prefix.
8412 Update copyright year.
8413 * cp-namespace.c: Rename processing_current_namespace to
8414 processing_current_prefix.
8415 Update copyright year.
8417 2004-01-09 Andrew Cagney <cagney@redhat.com>
8419 * jv-valprint.c, ser-unix.c: Add missing copyright years.
8421 2004-01-09 Mark Kettenis <kettenis@gnu.org>
8423 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
8425 (process_one_symbol): Deal with N_PATCH stabs.
8427 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
8429 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
8431 Update copyright year.
8433 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
8435 * config/pa/tm-hppa.h: Update extern declarations for
8436 hppa32_hpux_frame_saved_pc_in_sigtramp,
8437 hppa32_hpux_frame_base_before_sigtramp, and
8438 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
8440 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
8442 * config/pa/tm-hppah.h: Update copyright years.
8444 2004-01-08 Andrew Cagney <cagney@redhat.com>
8446 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
8447 (mips_o32_reg_struct_has_addr): Delete function.
8448 (mips_gdbarch_init): Update.
8449 (mips_extract_struct_value_address): Delete function.
8451 2004-01-08 David Mosberger <davidm@hpl.hp.com>
8453 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
8456 2004-01-07 Andrew Cagney <cagney@redhat.com>
8458 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
8459 architecture's elf flags (when available).
8461 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
8462 FPU to the start, check the MIPS FPU when looking for an old
8464 (set_mipsfpu_single_command): Update the architecture.
8465 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
8467 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
8468 (mips_mask_address_p): Add "tdep" parameter.
8469 (show_mask_address, mips_addr_bits_remove): Update.
8470 (mips_dump_tdep): Update.
8471 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
8472 (MIPS_STACK_ARGSIZE): Delete macro.
8473 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
8474 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
8475 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
8476 (mips_dump_tdep): Update.
8477 (MIPS_SAVED_REGSIZE): Delete macro.
8478 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
8479 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
8480 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
8481 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
8482 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
8483 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
8484 (mips_pop_frame, return_value_location): Update.
8485 (mips_n32n64_return_value, mips_dump_tdep): Update.
8487 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
8490 * mips-tdep.c: Update copyright.
8491 (mips_gdbarch_init): Merge two code blocks handling the register
8492 name and number layout.
8494 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
8496 * tracepoint.c (validate_actionline): Fix segv at EOF
8498 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
8500 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
8501 properly for static fields.
8503 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
8504 Jason Molenda <jmolenda@apple.com>
8506 * disasm.c: Update copyright to include 2004.
8507 (do_mixed_source_and_assembly): For uiout asm list
8508 and tuple cleanups, initialize to null_cleanup instead of
8509 NULL and do so prior to loop. Only reset when we close off
8510 the tuple/list. Move check for whether to close off the
8511 asm tuple/list to after dump_insns call where it will be run
8512 on each loop iteration.
8514 2004-01-05 Andrew Cagney <cagney@redhat.com>
8516 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
8517 should be a switch case and not a label.
8518 * mips-tdep.c (mips32_next_pc): Delete unused labels
8519 "greater_equal_branch" and "less_zero_branch".
8520 * jv-valprint.c (java_print_value_fields): Delete unused label
8523 * target.c (unpush_target): Only close a target that is in the
8526 2004-01-05 Mark Kettenis <kettenis@gnu.org>
8528 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
8529 address from [sp + 64] instead of %o2.
8531 * frame.c (get_prev_frame): Don't try to unwind the PC. This
8532 fixes PR backtrace/1476.
8534 2004-01-05 Andrew Cagney <cagney@redhat.com>
8536 * libunwind-frame.h (struct frame_id): Add opaque declaration,
8537 move to start of file.
8538 * i386-tdep.h (struct regcache): Add opaque declaration.
8539 * config/ia64/nm-linux.h (struct target_ops): Add opaque
8541 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
8542 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
8543 * win32-nat.c (fake_create_process): Use ISO C style definition.
8544 * stabsread.c (define_symbol): Delete #ifndef
8545 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
8546 stabs_argument_has_addr call, macro never defined.
8548 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
8550 * op50-rom.c: Delete.
8551 * w89k-rom.c: Delete.
8552 * Makefile.in: Remove references.
8554 2004-01-04 Mark Kettenis <kettenis@gnu.org>
8556 * x86-64-tdep.c: Update copyright year.
8557 (struct amd64_register_info): Rename from x86_64_register_info.
8558 (amd64_register_info): Rename from x86_64_register_info.
8559 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
8560 (amd64_register_name): Rename from x86_64_register_name.
8561 (amd64_register_type): Rename from x86_64_register_type.
8562 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
8563 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
8564 (amd64_dwarf_reg_to_regnum): Rename from
8565 x86_64_dwarf_reg_to_regnum.
8566 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
8567 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
8568 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
8569 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
8570 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
8571 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
8572 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
8573 (amd64_frame_cache): Rename from x86_64_frame_cache.
8574 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
8575 (amd64_frame_prev_register): Rename from
8576 x86_64_frame_prev_register.
8577 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
8578 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
8579 (amd64_sigtramp_frame_cache): Rename from
8580 x86_64_sigtramp_frame_cache.
8581 (amd64_sigtramp_frame_prev_register): Rename from
8582 x86_64_sigtramp_frame_prev_register.
8583 (amd64_sigtramp_frame_unwind): Rename from
8584 x86_64_sigtramp_frame_unwind.
8585 (amd64_sigtramp_frame_sniffer): Rename from
8586 x86_64_sigtramp_frame_sniffer.
8587 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
8588 (amd64_frame_base): Rename from x86_64_frame_base.
8589 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
8590 (amd64_frame_align): Rename from x86_64_frame_align.
8591 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
8592 (amd64_regset_from_core_section): Rename from
8593 x86_64_regset_from_core_section.
8594 (x86_64_init_abi): Update comments.
8596 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
8598 * MAINTAINERS (write after approval): Add myself.
8600 2004-01-04 Mark Kettenis <kettenis@gnu.org>
8602 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8605 2004-01-04 Mark Kettenis <kettenis@gnu.org>
8607 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
8608 such that it mentions a specific version of GCC that exhibits this
8611 2004-01-03 Mark Kettenis <kettenis@gnu.org>
8613 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
8614 structure that has a single `float' member, store it in %f1 in
8617 * sparc-sol2-nat.c: Add missing '\'.
8619 * sparc-tdep.c (sparc32_return_value): New function.
8620 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
8622 (sparc32_gdbarch_init): Set return_value, don't set
8623 extract_return_value, store_return_value, use_struct_convention
8624 and return_value_on_stack.
8626 * sparc-sol2-nat.c: Add missing ')'.
8628 2004-01-03 J. Brobecker <brobecker@gnat.com>
8630 * infrun.c (handle_step_into_function): New function.
8631 (handle_inferior_event): Extract out some code into the new
8634 2004-01-03 J. Brobecker <brobecker@gnat.com>
8636 * infrun.c (handle_inferior_event): Move the declaration of
8637 real_stop_pc inside the if blocks where it is used.
8639 2004-01-03 Mark Kettenis <kettenis@gnu.org>
8641 * sparc64-tdep.c (sparc64_16_byte_align_p)
8642 (sparc64_store_floating_fields, sparc64_store_floating_fields):
8643 Use check_typedef to get subtypes of structures and unions.
8644 (sparc64_store_return_value): Fix calculation of the appropriate
8645 offset into VALBUF when storing a structure or union.
8646 (sparc64_return_value): New function.
8647 (sparc64_use_struct_convention): Remove function.
8648 (sparc64_init_abi): Set return_value, don't set
8649 extract_return_value, store_return_value and
8650 use_struct_convention.
8652 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
8654 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
8655 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
8656 gdb/config/alpha/xm-alphaosf.h,
8657 gdb/config/powerpc/tm-ppcle-eabi.h,
8658 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
8659 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
8660 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
8661 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
8662 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
8663 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
8664 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
8665 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
8666 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
8667 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
8668 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
8669 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
8670 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
8671 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
8672 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
8673 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
8674 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
8675 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
8676 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
8677 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
8678 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
8679 Remove lines for .cvsignore files.
8681 2004-01-03 J. Brobecker <brobecker@gnat.com>
8683 * infrun.c: Back out the previous change.
8685 2004-01-03 Mark Kettenis <kettenis@gnu.org>
8687 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
8688 sparc-*-sunos4* to the list of REMOVED configurations.
8690 * configure.tgt: Add back sparc-*-vxworks*.
8691 * remote-vxsparc.c: Remove all includes except for "defs.h",
8692 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
8693 Include "sparc-tdep.h".
8694 (SPARC_R_G1): New define.
8695 (vxsparc_gregset): New variable.
8696 (ext_format_sparc): Remove extern declaration.
8697 (vx_read_register): Rewrite to use sparc32_supply_gregset and
8698 sparc32_supply_fpregset.
8699 (vx_write_register): Rewrite to use sparc32_collect_gregset,
8700 sparc_collect_rwindow and sparc32_collect_fpregset.
8701 * config/sparc/tm-vxworks.h: New file, based on recently removed
8703 * config/sparc/vxworks.mt: New file, based on recently removed
8706 2004-01-03 J. Brobecker <brobecker@gnat.com>
8708 * infrun.c (handle_step_into_function): New function.
8709 (handle_inferior_event): Extract out some code into the new
8712 2004-01-02 Mark Kettenis <kettenis@gnu.org>
8714 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
8715 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
8716 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
8717 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
8718 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
8719 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
8720 (sparc_nat_h): New variable.
8721 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
8722 (tm-sun4os4.h): Remove dependency.
8723 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
8724 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
8725 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
8726 sparc-tdep.o): Update dependencies.
8727 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
8728 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
8729 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
8731 * configure.host: Remove existing sparc-*-lynxos*,
8732 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
8733 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
8734 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
8735 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
8737 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
8738 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
8739 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
8740 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
8741 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
8742 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
8743 sparc64-*-solaris2* and sparc64-*-* triplets.
8744 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
8745 "symtab.h" and "objfiles.h".
8746 (BIAS): Remove define.
8747 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
8748 (X_DISP19): Remove macros.
8749 (sparc_fetch_instruction): Remove function.
8750 (struct gdbarch_tdep): Remove definition.
8751 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
8752 (sparc_breakpoint_from_pc): Remove function.
8753 (struct sparc64_frame_cache): Remove definition.
8754 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
8755 sparc64_unwind_pc): Remove functions.
8756 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
8757 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
8758 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
8759 (sparc64_frame_cache): Change return type to `struct
8760 sparc_frame_cache *'. Simply call sparc_frame_cache.
8761 (sparc64_frame_this_id, sparc64_frame_prev_register,
8762 sparc64_frame_base_address): Use `struct sparc_frame_cache'
8763 instead of `struct sparc64_frame_cache.
8764 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
8765 sparc_analyze_control_transfer, sparc_software_single_step,
8766 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
8767 _initialize_sparc64_tdep): Remove functions.
8768 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
8769 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
8771 (sparc64_supply_gregset, sparc64_collect_gregset,
8772 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
8773 (sparc64_init_abi): New function.
8774 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
8775 inclusion guard. Include "sparc-tdep.h".
8777 (r_tstate_offset, r_fprs_offset): New defines.
8778 (enum sparc_regnum): Remove defenition.
8779 (enum sparc64_regnum): Reformat.
8780 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
8781 (sparc64_init_abi, sparc64_supply_gregset,
8782 sparc64_collect_gregset, sparc64_supply_fpregset,
8783 sparc64_collect_fpregset): New prototypes.
8784 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
8785 Add extern declarations.
8786 (sparc64_sol2_init_abi): New prototype.
8787 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
8788 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
8790 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
8792 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
8794 (_initialize_sparc64fbsd_nat): Remove initialization of
8795 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
8796 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
8797 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
8798 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
8799 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
8800 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
8801 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
8802 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
8803 (sparc64fbsd_r_y_offset): Remove variables.
8804 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
8805 Make static and const.
8806 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
8807 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
8809 (sparc64fbsd_gregset): New variable.
8810 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
8811 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
8812 and sparc64_supply_fpregset.
8813 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
8814 (sparc64fbsd_sigtramp_frame_this_id)
8815 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
8816 (sparc64fbsd_sigtramp_frame_unwind): New variable.
8817 (sparc64fbsd_sigtramp_frame_sniffer): New function.
8818 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
8819 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
8820 * sparcnbsd-tdep.c: Update copyright year. Include
8821 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
8822 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
8823 "value.h" and "sparcnbsd-tdep.h".
8824 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
8825 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
8826 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
8827 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
8829 (sparcnbsd_gregset): New variable.
8830 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
8831 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
8832 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
8833 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
8834 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
8836 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
8837 (sparc32nbsd_sigcontext_frame_this_id)
8838 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
8839 (sparc32nbsd_sigcontext_frame_unwind): New variable.
8840 (sparc32nbsd_sigtramp_frame_sniffer): New function.
8841 (sparcnbsd_get_longjmp_target_32,
8842 sparcnbsd_get_longjmp_target_64): Remove functions.
8843 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
8844 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
8845 sparcnbsd_init_elf): Remove.
8846 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
8847 (sparcnbsd_elf_init_abi): New functions.
8848 (_initialize_sparcnbsd_tdep): New prototype.
8849 (_initialize_sparnbsd_tdep): Update.
8850 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
8851 corelow.o. Add sparc64-nat.o and sparc-nat.o.
8852 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
8853 * config/sparc/linux.mh: Update comment.
8854 (XM_FILE, HOST_IPC): Remove variables.
8855 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
8857 * config/sparc/linux.mt: Update comment.
8858 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
8859 * config/sparc/nbsd.mt: Reformat.
8860 * config/sparc/nbsd64.mh: Update comment.
8861 (NATDEPFILES): Add sparc-nat.o.
8862 * config/sparc/nbsd64.mt: Update comment.
8863 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
8864 (TM_FILE): Set to tm-nbsd.h.
8865 * config/sparc/nbsdelf.mh: Update comment.
8866 (NATDEPFILES): Add sparc-nat.o.
8868 * config/sparc/nbsdaout.mh: Update comment.
8869 (NATDEPFILES): Add sparc-nat.o
8871 * config/sparc/nm-linux.h: Update copyright year. Don't include
8872 "config/nm-svr4.h" and "solib.h". Add protection against multiple
8874 (KERNEL_U_SIZE): Remove define.
8875 (kernel_u_size): Remove prototype.
8876 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
8877 * config/sparc/nm-nbsd.h: Update copyright. Don't include
8879 (CHILD_PREPARE_TO_STORE): Remove define.
8880 * config/sparc/nm-nbsdaout.h: Tweak some comments.
8881 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
8882 sparcnbsd-nat.c: Rewrite files.
8883 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
8884 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
8885 sparcnbsd-tdep.h: Remove files.
8886 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
8887 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
8888 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
8889 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
8890 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
8891 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
8892 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
8893 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
8894 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
8895 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
8896 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
8897 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
8898 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
8899 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
8900 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
8901 * config/sparc/linux64.mh, config/sparc/linux64.mt,
8902 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
8903 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
8904 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
8906 2004-01-02 Andrew Cagney <cagney@redhat.com>
8908 From 2003-12-18 Kazuhiro Inaoka:
8909 * configure.host: Add m32r-linux target.
8911 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
8913 * top.c (print_gdb_version): Update year to 2004.
8915 2004-01-02 Mark Mitchell <mark@codesourcery.com>
8917 * MAINTAINERS: Add myself to the write-after-approval category.
8919 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
8921 From Bernardo Innocenti <bernie@develer.com>:
8922 * configure.tgt: Add uClinux target.
8924 2004-01-02 Andrew Cagney <cagney@redhat.com>
8926 * utils.c (do_my_cleanups): Make static, add forward declaration.
8927 * defs.h (do_my_cleanups): Delete declaration.
8929 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
8931 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
8934 2004-01-02 Mark Kettenis <kettenis@gnu.org>
8936 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
8938 * configure, config.in: Regenerate.
8940 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
8941 tui/ChangeLog-1998-2003.
8947 version-control: never