1 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
3 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
5 * breakpoint.c (bpstat_stop_status): Move check for ignoring
6 untriggered watchpoints to a separate if clause. Update function
7 comment regarding STOPPED_BY_WATCHPOINT argument.
9 2004-06-22 Jim Blandy <jimb@redhat.com>
11 * gdbarch.sh: Doc fix.
13 2004-06-21 Martin Hunt <hunt@redhat.com>
14 Kevin Buettner <kevinb@redhat.com>
16 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
17 * mips-tdep.h (MIPS_SP_REGNUM): Define.
18 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
19 to set_gdbarch_sp_regnum(). Use cooked register number.
20 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
22 2004-06-21 Andrew Cagney <cagney@gnu.org>
24 * gdbarch.sh: When the macro field is empty, do not generate a
25 macro definition. When the macro field is "=", generate the macro
26 name from the upper-case function name.
27 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
28 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
29 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
30 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
31 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
32 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
33 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
34 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
35 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
36 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
37 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
38 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
39 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
40 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
41 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
42 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
43 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
44 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
45 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
46 (DEPRECATED_USE_STRUCT_CONVENTION)
47 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
48 (DEPRECATED_FRAME_INIT_SAVED_REGS)
49 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
50 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
51 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
52 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
53 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
54 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
55 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
56 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
57 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
58 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
59 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
60 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
61 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
62 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
63 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
64 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
66 2004-06-21 Andrew Cagney <cagney@gnu.org>
68 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
69 macro name, and the function rather than macro value. Only wrap
70 macro print statements in #ifdef. Move format logic to where it
72 * gdbarch.c: Re-generate.
74 * gdbarch.sh (read): Delete "print_p" and "description", add
75 "garbage_at_eol". Check for non-empty garbage at end-of-line.
76 Delete references to print_p.
77 (TARGET_ARCHITECTURE): Delete print predicate.
78 * gdbarch.c: Re-generate.
80 * gdbarch.sh: Check that multi-arch methods do not provide a
82 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
83 (print_registers_info, print_float_info, print_vector_info)
84 (adjust_breakpoint_address, remote_translate_xfer_address)
85 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
86 (address_class_type_flags_to_name, unwind_sp): Remove the macro
87 name from the multi-arch definition.
89 2004-06-20 Andrew Cagney <cagney@gnu.org>
91 * gdbarch.sh: Sort by the function, instead of macro name.
92 * gdbarch.c: Re-generate.
94 2004-06-20 Andrew Cagney <cagney@gnu.org>
96 * gdbarch.sh: Use the function, instead of macro name in
97 errors and the log file.
98 (return_value): Remove stray ":" in spec.
100 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
101 * gdbarch.h, gdbarch.c: Re-generate.
102 * Makefile.in (arch-utils.o): Update dependencies.
103 * values.c (using_struct_return): Move code calling
104 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
105 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
106 to legacy_return_value, simplify.
107 * infcmd.c (print_return_value): Move code calling
108 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
109 to legacy_return_value, simplify.
110 * infcall.c (call_function_by_hand): Move code calling
111 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
112 * arch-utils.c: Update copyright. Include "gdbcore.h".
113 (legacy_return_value): New function.
114 * arch-utils.h: Update copyright.
115 (legacy_return_value): Declare.
117 2004-06-20 Andrew Cagney <cagney@gnu.org>
119 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
120 * gdbarch.h, gdbarch.c: Re-generate.
121 * values.c (using_struct_return): Update call.
122 * mcore-tdep.c: Update comment.
123 * infcall.c (call_function_by_hand): Update comment.
124 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
125 * arch-utils.h (always_use_struct_convention): Update.
126 * v850-tdep.c (v850_gdbarch_init): Update.
127 * sh64-tdep.c (sh64_gdbarch_init): Update.
128 * sh-tdep.c (sh_gdbarch_init): Update.
129 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
130 * mips-tdep.c (mips_gdbarch_init): Update.
131 * mcore-tdep.c (mcore_gdbarch_init): Update.
132 * m32r-tdep.c (m32r_gdbarch_init): Update.
133 * ia64-tdep.c (ia64_gdbarch_init): Update.
134 * h8300-tdep.c (h8300_gdbarch_init): Update.
135 * frv-tdep.c (frv_gdbarch_init): Update.
136 * cris-tdep.c (cris_gdbarch_init): Update.
137 * arm-tdep.c (arm_gdbarch_init): Update.
138 * alpha-tdep.c (alpha_gdbarch_init): Update.
140 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
142 * PROBLEMS: Add more specific information, and a work-around,
145 2004-06-18 Andrew Cagney <cagney@gnu.org>
147 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
148 * gdbarch.h, gdbarch.c: Re-generate.
149 * ada-lang.c (ada_finish_decode_line_1): Update.
150 * infrun.c (handle_inferior_event): Update.
151 * infcall.c (find_function_addr): Update.
152 * linespec.c (minsym_found): Update.
153 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
155 * blockframe.c (legacy_frameless_look_for_prologue): Update.
156 * cli/cli-cmds.c (disassemble_command): Update.
157 * vax-tdep.c (vax_gdbarch_init): Update.
160 2004-06-18 Mark Kettenis <kettenis@gnu.org>
162 * i386-tdep.c (i386_collect_fpregset): Fix comment.
164 2004-06-17 Andrew Cagney <cagney@gnu.org>
166 GDB 6.1.1 released from the GDB 6.1 branch.
167 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
170 2004-06-16 Daniel Jacobowitz <dan@debian.org>
173 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
174 operation as a uleb128. Found by Michael Coulter.
176 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
178 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
180 * ada-lang.h (task_control_block): declaration moved from ada-task.c
181 to ada-lang.h; this is needed to be able to implement the kill command
186 (ada_build_task_list): Ditto.
188 * ada-lang.c: Conditionalize routines and data structures related
189 to breakpoints, exceptions, completion, and symbol caching on
190 GNAT_GDB, since these are not yet used in the submitted public sources.
191 (ada_main_name): Editorial: Move definition out of exception-related
194 2004-06-15 Andrew Cagney <cagney@gnu.org>
196 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
197 deprecated_pc_in_call_dummy.
199 2004-06-15 Alan Modra <amodra@bigpond.net.au>
201 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
202 bfd_get_section_size_before_reloc or _raw_size.
203 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
204 * dwarf2read.c (dwarf2_locate_sections): Likewise.
205 (dwarf2_read_section): Likewise.
206 * elfread.c (elf_locate_sections): Likewise.
207 * gcore.c (derive_heap_segment): Likewise.
208 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
209 * remote-e7000.c (e7000_load): Likewise.
210 * remote-m32r-sdi.c (m32r_load): Likewise.
211 * remote-mips.c (mips_load_srec): Likewise.
212 (pmon_load_fast): Likewise.
213 * remote.c (compare_sections_command): Likewise.
214 * symfile.c (add_section_size_callback): Likewise.
215 (load_section_callback): Likewise.
216 (pc_in_unmapped_range): Likewise.
217 (pc_in_mapped_range): Likewise.
218 (sections_overlap): Likewise.
219 (list_overlays_command): Likewise.
220 (simple_overlay_update_1): Likewise.
221 (simple_overlay_update): Likewise.
222 * tracepoint.c (remote_set_transparent_ranges): Likewise.
223 * win32-nat.c (core_section_load_dll_symbols): Likewise.
225 2004-06-14 Randolph Chung <tausq@debian.org>
227 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
228 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
230 (hppa_hpux_inferior_created): New function.
231 (hppa_hpux_init_abi): Register observer.
232 * symfile.c (hp_cxx_exception_support_initialized)
233 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
234 (symbol_file_add_main_1, symbol_file_clear): Likewise.
236 2004-06-14 Randolph Chung <tausq@debian.org>
238 * MAINTAINERS (Write After Approval): Alphabetize my entry
241 2004-06-14 Andrew Cagney <cagney@gnu.org>
243 * MAINTAINERS (testsuite): List Michael Chastain as the lead
244 testsuite maintainer.
246 2004-06-13 Andrew Cagney <cagney@gnu.org>
248 * infcmd.c (print_return_value): Fix logic, allow
249 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
251 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
253 * gdbarch.h: Re-generate.
255 * gdbarch.sh: Delete "level" attribute. Only check for a macro
256 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
257 * gdbarch.h: Re-generate.
259 * values.c (generic_use_struct_convention): Don't check gcc_p.
261 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
262 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
263 * gdbarch.h, gdbarch.c: Regenerate.
264 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
265 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
266 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
267 deprecated_max_register_raw_size and
268 deprecated_max_register_virtual_size.
269 * v850-tdep.c (v850_gdbarch_init): Ditto.
270 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
271 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
272 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
273 * cris-tdep.c (cris_gdbarch_init): Ditto.
275 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
276 * gdbarch.h, gdbarch.c: Re-generate.
277 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
278 (m68hc11_use_struct_convention): Delete function.
279 (m68hc11_extract_struct_value_address): Delete function.
280 (m68hc11_return_value): New function.
281 (m68hc11_gdbarch_init): Instead of store_return_value,
282 extract_return_value, return_value_on_stack,
283 deprecated_extract_struct_value_address and use_struct_convention,
285 * values.c (using_struct_return): Do not call
286 RETURN_VALUE_ON_STACK.
287 * arch-utils.h (generic_return_value_on_stack_not): Delete
289 * arch-utils.c (generic_return_value_on_stack_not): Delete
292 2004-06-12 Andrew Cagney <cagney@gnu.org>
294 * values.c (register_value_being_returned): Delete function.
295 * infcmd.c (legacy_return_value): Delete function.
296 * infcall.c (call_function_by_hand): Inline
297 "register_value_being_returned", simplify.
298 * values.c (using_struct_return): Update comment, refer to
299 print_return_value instead of register_value_being_returned.
300 * infcmd.c (print_return_value): Inline calls to
301 register_value_being_returned and legacy_return_value. Simplify.
303 2004-06-11 Randolph Chung <tausq@debian.org>
305 * somread.c (som_symtab_read): Exclude gcc local symbols.
307 2004-06-11 Randolph Chung <tausq@debian.org>
309 * infrun.c (handle_inferior_event): Handle the case when a
310 trampoline ends up in the runtime resolver, and if the trampoline
311 has no name. Rearrange the code so that all the trampoline
312 processing happens before other step-out-of-range handling.
314 2004-06-11 Martin Hunt <hunt@redhat.com>
316 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
319 2004-06-10 Andrew Cagney <cagney@gnu.org>
321 * blockframe.c (legacy_inside_entry_func): Delete.
322 (legacy_frame_chain_valid): Inline call to
323 legacy_inside_entry_func, simplify.
325 2004-06-10 Bob Rossi <bob@brasko.net>
327 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
328 * dwarf2read.c (partial_die_info): Add dirname field.
329 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
330 (read_partial_die): Save away DW_AT_comp_dir.
331 * defs.h (symtab_to_filename): Removed.
332 * source.c (find_and_open_source): Added.
333 (open_source_file): Just calls find_and_open_source.
334 (symtab_to_filename): Removed.
335 (symtab_to_fullname, psymtab_to_fullname): Added.
336 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
337 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
339 * symtab.h (partial_symtab): Add dirname field.
340 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
341 (mi_cmd_file_list_exec_source_file): Call new function
342 symtab_to_fullname to find fullname.
343 (mi_cmd_file_list_exec_source_files): Added.
344 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
345 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
347 2004-06-10 Andrew Cagney <cagney@gnu.org>
349 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
350 to generic_use_struct_convention, the default value.
352 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
355 * ns32k-tdep.c (ns32k_push_arguments): New function.
356 (ns32k_gdbarch_init): Set deprecated_push_arguments.
357 * infcall.c (call_function_by_hand): Call error instead of
358 legacy_push_arguments.
359 * value.h (legacy_push_arguments): Delete declaration.
360 * valops.c (legacy_push_arguments): Delete function.
361 (value_push): Delete function.
363 2004-06-10 Brian Ford <ford@vss.fsi.com>
365 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
366 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
368 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
370 2004-06-10 Andrew Cagney <cagney@gnu.org>
372 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
373 * gdbarch.h, gdbarch.c: Re-generate.
374 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
376 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
377 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
378 deprecated_pc_in_call_dummy instead of
379 DEPRECATED_PC_IN_CALL_DUMMY.
380 (arm_skip_prologue): Ditto.
381 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
382 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
383 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
384 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
386 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
387 (sh64_init_extra_frame_info, sh64_get_saved_register)
388 (sh64_pop_frame): Ditto.
389 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
390 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
391 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
392 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
393 (h8300_pop_frame): Ditto.
394 * blockframe.c (legacy_inside_entry_func)
395 (legacy_frame_chain_valid): Ditto.
396 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
397 to deprecated_pc_in_call_dummy.
399 2004-06-09 Andrew Cagney <cagney@gnu.org>
401 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
402 provide a default value.
403 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
404 * gdbarch.h, gdbarch.c: Re-generate.
405 * arch-utils.c (generic_convert_register_p): Rename
406 legacy_convert_register_p
407 (legacy_register_to_value, legacy_value_to_register): Delete
409 * arch-utils.h (generic_convert_register_p): Rename
410 legacy_convert_register_p.
411 (legacy_register_to_value, legacy_value_to_register): Delete
414 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
415 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
416 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
417 * gdbarch.h, gdbarch.c: Re-generate.
418 * infcmd.c (default_print_registers_info): Simplify.
419 * findvar.c (value_of_register): Simplify.
420 * mi/mi-main.c (get_register): Simplify.
421 * arch-utils.c (legacy_convert_register_p): Always return 0.
422 (legacy_register_to_value, legacy_value_to_register): Always call
425 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
426 #ifdef CLEAR_INSN_CACHE code.
427 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
428 Delete #ifdef CLEAR_DEFERRED_STORES code.
430 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
432 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
434 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
436 * config/mips/mipsv4.mh: Delete file.
438 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
440 (hpread_adjust_stack_address): Delete declaration.
442 2004-06-08 Andrew Cagney <cagney@gnu.org>
444 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
445 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
446 PTRACE_ATTACH / PTRACE_DETACH available call error.
447 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
448 * infttrace.c (update_thread_state_after_attach, attach, detach):
449 Remove #ifdef wrappers.
450 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
451 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
452 * config/nm-bsd.h (ATTACH_DETACH): Delete.
453 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
454 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
455 * config/nm-linux.h (ATTACH_DETACH): Delete.
456 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
457 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
458 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
459 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
460 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
462 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
464 * configure.in: Set $configdir to the right OS specific value.
465 Use value when setting $tcldir and $tkdir.
466 * configure: Regenerate.
468 2004-06-06 Paul Brook <paul@codesourcery.com>
470 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
473 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
475 * ada-lang.c (lookup_symbol_in_language): New function to allow
476 re-use of another language's symbol lookup code. (Placed here
477 temporarily while Ada support is being integrated into the public
479 (restore_language): New auxiliary function for
480 lookup_symbol_in_language.
481 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
482 temporarily while Ada support is being integrated into the public
485 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
487 * Makefile.in (check//%): New.
489 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
490 (mn10300_store_return_value): Rewrite.
491 (mn10300_type_align): New.
492 (mn10300_use_struct_convention): Rewrite.
493 (mn10300_return_value): New, using all of the above.
494 (mn10300_pop_frame_regular): Add saved_regs_size.
495 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
497 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
498 regs if PC is on movm.
500 2004-06-07 Jim Blandy <jimb@redhat.com>
502 Add native Linux support for the PowerPC E500.
503 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
504 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
505 all architectures except the E500.
506 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
508 (struct gdb_evrregset_t): New type.
509 (have_ptrace_getsetevrregs): New variable.
510 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
511 fetch_spe_registers): New functions.
512 (fetch_register): Call fetch_spe_register as appropriate.
513 Assert that we're only passed raw register numbers.
514 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
515 Don't fetch gprs if they're pseudoregisters.
516 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
517 store_spe_registers): New functions.
518 (store_register): Call store_spe_register as appropriate.
519 Assert that we're only passed raw register numbers.
520 (store_ppc_registers): Call store_spe_registers as appropriate.
521 Don't store gprs if they're pseudoregisters.
523 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
525 * thread-db.c (thread_get_info_callback): Fill in the thread_info
526 struct if one exists, even if we are dealing with a zombie thread.
528 2004-06-07 Andrew Cagney <cagney@gnu.org>
530 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
531 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
532 Rename PC_REQUIRES_RUN_BEFORE_USE.
533 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
536 2004-06-07 Randolph Chung <tausq@debian.org>
538 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
539 unwinding after sp has been saved to the stack but before the end
540 of the prologue, and after the fp has been modified but before it has
541 been saved to the stack.
542 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
543 Remove superfluous definitions.
544 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
546 2004-06-07 Guy Martin <gmsoft@gentoo.org>
548 Committed by Randolph Chung.
549 * hppa-linux-nat.c: Include the correct version of the header file
550 depending on the kernel version.
552 2004-06-06 Randolph Chung <tausq@debian.org>
554 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
555 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
557 2004-06-06 Randolph Chung <tausq@debian.org>
559 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
560 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
561 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
562 * hppa-tdep.c (hppa_symbol_address): New function definition.
563 * hppa-tdep.h (hppa_symbol_address): New function declaration.
565 2004-06-06 Randolph Chung <tausq@debian.org>
567 * hppa-tdep.h (struct value): Forward declaration.
568 (gdbarch_tdep): Define tdep find_global_pointer method.
569 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
570 associated with the function we are trying to call, and write it
572 (hppa32_convert_from_funct_ptr_addr): New function.
573 (hppa_find_global_pointer): New function.
574 (hppa_gdbarch_init): Set default find_global_pointer method; set
575 convert_from_func_ptr_addr method.
576 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
577 (hppa_linux_init_abi): Set find_global_pointer method.
578 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
580 2004-06-06 Randolph Chung <tausq@debian.org>
582 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
583 to struct value *function.
584 * gdbarch.c: Regenerate.
585 * gdbarch.h: Likewise.
586 * infcall.c (call_function_by_hand): Pass entire function value
589 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
590 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
591 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
592 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
593 * arm-tdep.c (arm_push_dummy_call): Likewise.
594 * avr-tdep.c (avr_push_dummy_call): Likewise.
595 * cris-tdep.c (cris_push_dummy_call): Likewise.
596 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
597 * frv-tdep.c (frv_push_dummy_call): Likewise.
598 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
599 * hppa-tdep.c (hppa32_push_dummy_call)
600 (hppa64_push_dummy_call): Likewise.
601 * i386-tdep.c (i386_push_dummy_call): Likewise.
602 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
603 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
604 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
605 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
606 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
607 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
608 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
609 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
610 (ppc64_sysv_abi_push_dummy_call): Likewise.
611 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
612 (ppc64_sysv_abi_push_dummy_call): Likewise.
613 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
614 * s390-tdep.c (s390_push_dummy_call): Likewise.
615 * sh-tdep.c (sh_push_dummy_call_fpu)
616 (sh_push_dummy_call_nofpu): Likewise.
617 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
618 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
619 * vax-tdep.c (vax_push_dummy_call): Likewise.
621 2004-06-04 Jim Blandy <jimb@redhat.com>
623 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
624 gdbarch argument to register_size.
626 * rs6000-tdep.c (rs6000_store_return_value): Use
627 regcache_cooked_write_part instead of
628 deprecated_write_register_bytes.
629 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
630 not gdbarch_deprecated_store_return_value.
632 * ppc-linux-nat.c (store_register, fetch_register): Remove
633 incorrect assertions. Simplify and generalize handling of
634 transfers whose sizes are not multiples of, or less than, sizeof
637 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
639 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
640 as a new thread event.
641 * thread_db.c (thread_get_info_callback): If the thread is a
642 zombie, return TD_THR_ZOMBIE.
643 * (thread_from_lwp): If thread_get_info_callback returns
644 TD_THR_ZOMBIE, check if the thread is still on the thread list
645 and return a -1 ptid if not found.
646 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
647 change the status to TARGET_WAITKIND_SPURIOUS.
649 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
651 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
652 double values in little endian mode.
654 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
656 Committed by Andrew Cagney.
657 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
658 after last enum constant to avoid error from IBM C
661 2004-06-02 Jim Blandy <jimb@redhat.com>
663 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
664 to 'message', and make it local to the lone block that uses it.
666 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
668 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
670 * ada-exp.y: Synchronize with current ACT sources.
674 * ada-tasks.c: Ditto.
675 * ada-typeprint.c: Ditto.
676 * ada-valprint.c: Ditto.
678 2004-06-01 Jim Blandy <jimb@redhat.com>
680 * ppc-tdep.h: Delete unused 'regoff' member.
681 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
683 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
686 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
687 (hpread_read_struct_type): Likewise.
689 2004-06-01 Andrew Cagney <cagney@gnu.org>
691 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
692 instead of xasprintf.
693 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
694 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
695 (mi_cmd_data_list_register_names)
696 (mi_cmd_data_list_changed_registers)
697 (mi_cmd_data_list_register_values)
698 (get_register, mi_cmd_data_write_register_values)
699 (mi_cmd_data_write_register_values)
700 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
701 (mi_cmd_target_download, mi_cmd_target_select)
702 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
703 (mi_execute_cli_command, mi_execute_async_cli_command)
704 (mi_execute_async_cli_command): Ditto.
705 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
706 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
708 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
709 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
710 error_last_message instead of mi_error_last_message.
711 * mi/mi-main.c (mi_error_last_message): Delete function.
713 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
714 "invalid number of columns" error. Delete redundant "out of
717 2004-05-31 Mark Kettenis <kettenis@gnu.org>
719 * i386bsd-nat.c: Don't include <sys/procfs.h>.
720 (gregset_t, fpregset_t): Remove typedefs.
721 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
722 (REG_OFFSET): Rename argument.
723 (i386bsd_r_reg_offset): Rename from reg_offset.
724 (REG_ADDR): Remove macro.
725 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
727 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
728 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
729 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
730 instead of supply_gregset.
731 (store_inferior_registers): Use `struct reg' and `struct fpreg'
732 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
733 instead of fill_gregset.
734 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
736 * i386bsd-nat.c: Don't include "gregset.h".
737 (supply_gregset, fill_gregset): Make static.
738 (supply_fpregset, fill_fpregset): Remove.
739 * Makefile.in (i386bsd-nat.o): Update dependencies.
741 2004-05-30 Mark Kettenis <kettenis@gnu.org>
743 * fbsd-proc.c: Include "regcache.h", "regset.h" and
744 "gdb_assert.h". Con't include "gregset.h".
745 (fbsd_make_corefile_notes): Use regset-based core file support
746 instead off fill_gregset and fill_fpregset.
747 * Makefile.in (fbsd-proc.o): Update dependencies.
749 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
751 (m88k_frame_prev_register): Simplify code a bit.
753 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
754 (amd64_collect_fpregset): New function.
755 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
757 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
759 * i386-tdep.c (i386_supply_gregset): Adjust comment.
760 (i386_collect_gregset): New function.
761 (i386_supply_fpregset): Adjust comment.
762 (i386_collect_fpregset): New function.
763 (i386_regset_from_core_section): Use i386_collect_gregset and
764 i386_collect_fpregset.
766 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
767 handle VALUEP being null.
769 * regset.h (collect_regset_ftype): Unconstify fourth argument.
771 2004-05-29 Mark Kettenis <kettenis@gnu.org>
773 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
775 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
776 assembler in OpenBSD 3.5-current.
777 (amd64obsd_sigcontext_addr): Likewise.
779 2004-05-28 Jim Blandy <jimb@redhat.com>
781 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
782 register set, so our regcache isn't declared "legacy" and our E500
783 pseudoregister read and write functions aren't ignored.
784 (rs6000_register_byte, rs6000_register_raw_size,
785 rs6000_register_virtual_type, rs6000_register_convertible,
786 rs6000_register_convert_to_virtual,
787 rs6000_register_convert_to_raw): Deleted.
788 (rs6000_register_type, rs6000_convert_register_p,
789 rs6000_register_to_value, rs6000_value_to_register): New
791 (rs6000_gdbarch_init): Don't register
792 gdbarch_deprecated_register_size,
793 gdbarch_deprecated_register_bytes,
794 gdbarch_deprecated_register_byte,
795 gdbarch_deprecated_register_raw_size,
796 gdbarch_deprecated_register_virtual_type,
797 gdbarch_deprecated_register_convertible,
798 gdbarch_deprecated_register_convert_to_virtual, or
799 gdbarch_deprecated_register_convert_to_raw methods. Instead,
800 register gdbarch_register_type, gdbarch_convert_register_p,
801 gdbarch_register_to_value, and gdbarch_value_to_register methods.
803 2004-05-26 Jim Blandy <jimb@redhat.com>
805 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
806 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
807 functions, updated to match the register numberings used in GCC.
808 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
809 rs6000_dwarf2_reg_to_regnum as register number conversions
810 functions for STABS and Dwarf2.
812 2004-05-26 Randolph Chung <tausq@debian.org>
814 * infttrace.h (target_waitkind): Forward declare type instead of pulling
817 2004-05-25 Joel Brobecker <brobecker@gnat.com>
819 * NEWS: Document new "start" command.
821 2004-05-25 Randolph Chung <tausq@debian.org>
823 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
826 2004-05-25 Randolph Chung <tausq@debian.org>
828 * hppa-hpux-tdep.c (offsetof): Define.
829 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
830 (hppa32_hpux_frame_base_before_sigtramp)
831 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
832 (hppa64_hpux_frame_saved_pc_in_sigtramp)
833 (hppa64_hpux_frame_base_before_sigtramp)
834 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
836 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
837 (hppa_hpux_sigtramp_frame_unwind_cache)
838 (hppa_hpux_sigtramp_frame_this_id)
839 (hppa_hpux_sigtramp_frame_prev_register)
840 (hppa_hpux_sigtramp_frame_unwind)
841 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
842 (hppa_hpux_init_abi): Register sigtramp unwinder.
843 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
845 2004-05-25 Randolph Chung <tausq@debian.org>
847 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
848 and multiple stack unwinds.
849 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
851 2004-05-25 Andrew Cagney <cagney@gnu.org>
853 * symfile.h (symbol_file_add_from_memory): Delete declaration.
854 * symfile-mem.h: Delete file.
855 * symfile-mem.c: Do not include "symfile-mem.h".
856 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
857 "struct bfd_section". When an error do not bother returning NULL.
858 (add_symbol_file_from_memory_command): Use "struct bfd" and
859 "struct bfd_section".
860 * Makefile.in (symfile_mem_h): Delete.
861 (symfile-mem.o): Update dependencies.
863 2004-05-25 Nick Roberts <nickrob@gnu.org>
865 * gdb-mi.el: New file.
867 2004-05-25 Andrew Cagney <cagney@gnu.org>
869 * inftarg.c: Include "observer.h".
870 (child_attach, child_create_inferior): Notify inferior_created.
871 * corelow.c: Include "observer.h".
872 (core_open): Notify inferior_created.
873 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
875 2004-05-25 Andrew Cagney <cagney@gnu.org>
877 * target.h (struct target_ops): Add from_tty to
879 (target_create_inferior, find_default_create_inferior): Update.
880 * infcmd.c (run_command): Update.
881 * wince.c (child_create_inferior): Update.
882 * win32-nat.c (child_create_inferior): Update.
883 * uw-thread.c (uw_thread_create_inferior): Update.
884 * thread-db.c (thread_db_create_inferior): Update.
885 * target.c (debug_to_create_inferior)
886 (find_default_create_inferior): Update.
887 (maybe_kill_then_create_inferior): Update.
888 * sol-thread.c (sol_thread_create_inferior): Update.
889 * remote.c (extended_remote_async_create_inferior)
890 (extended_remote_create_inferior): Update.
891 * remote-vx.c (vx_create_inferior): Update.
892 * remote-st.c (st2000_create_inferior): Update.
893 * remote-sim.c (gdbsim_create_inferior): Update.
894 * remote-sds.c (sds_create_inferior): Update.
895 * remote-rdp.c (remote_rdp_create_inferior): Update.
896 * remote-rdi.c (arm_rdi_create_inferior): Update.
897 * remote-m32r-sdi.c (m32r_create_inferior): Update.
898 * remote-e7000.c (e7000_create_inferior): Update.
899 * procfs.c (procfs_create_inferior): Update.
900 * ocd.c (ocd_create_inferior): Update.
901 * ocd.h (ocd_create_inferior): Update.
902 * nto-procfs.c (procfs_create_inferior): Update.
903 * monitor.c (monitor_create_inferior): Update.
904 * lin-lwp.c (lin_lwp_create_inferior): Update.
905 * inftarg.c (child_create_inferior): Update.
906 * hpux-thread.c (hpux_thread_create_inferior): Update.
907 * gnu-nat.c (gnu_create_inferior): Update.
909 2004-05-25 Andrew Cagney <cagney@gnu.com>
911 * MAINTAINERS: Update e-mail address.
913 2004-05-24 Randolph Chung <tausq@debian.org>
915 * thread.c (info_threads_command, thread_apply_all_command)
916 (thread_apply_command, thread_command, do_captured_thread_select):
917 Remove HPUXHPPA-specific code.
919 2004-05-24 Randolph Chung <tausq@debian.org>
921 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
923 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
926 2004-05-24 Joel Brobecker <brobecker@gnat.com>
928 * infcmd.c (kill_if_already_running): New function, extracted
930 (run_command): Replace extracted code by call to
931 kill_if_already_running().
932 (start_command): New function.
933 (_initialize_infcmd): Add "start" command.
935 2004-05-24 Mark Kettenis <kettenis@gnu.org>
937 Add OpenBSD/m88k support.
938 * NEWS (New native configurations): Mention OpenBSD/m88k.
939 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
940 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
941 * Makefile.in (m88k_tdep_h): New variable.
942 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
943 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
944 * configure.host: Add m88*-*-openbsd*.
945 * configure.tgt: Add m88*-*-openbsd*.
947 2004-05-24 Jim Blandy <jimb@redhat.com>
949 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
952 2004-05-24 Kevin Buettner <kevinb@redhat.com>
954 * symtab.c (fixup_section): Search section table when lookup by
957 2004-05-24 Randolph Chung <tausq@debian.org>
959 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
962 2004-05-24 Mark Kettenis <kettenis@gnu.org>
964 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
965 register number in regcache_raw_collect call.
966 (m68kbsd_collect_fpregset): Likewise.
967 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
969 * regset.h (struct regset): Add back `regset' member.
971 2004-05-23 Mark Kettenis <kettenis@gnu.org>
973 * configure.in: Check for td_pcb in `struct thread'.
974 * configure, config.in: Regenerated.
976 * dpx2-nat.c: Remove file.
977 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
978 (dpx2-nat.o): Remove dependencies.
980 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
981 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
982 (amd64obsd_supply_pcb): New function.
983 (_initialize_amd64obsd_nat): Enable libkvm interface.
984 * Makefile.in (amd64obsd-nat.o): Update dependencies.
985 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
986 (LOADLIBES): New variable.
988 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
989 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
990 (sparc32nbsd_supply_pcb): New function.
991 (_initialize_sparcnbsd_nat): Enable libkvm interface.
992 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
993 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
994 (LOADLIBES): New variable.
996 2004-05-22 Mark Kettenis <kettenis@gnu.org>
998 * bsd-kvm.c, bsd-kvm.h: New files.
999 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1001 (i386fbsd_supply_pcb): New function.
1002 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
1003 (i386fbsd-nat.o): Update dependencies.
1004 (bsd_kvm_h): New variable.
1005 (bsd-kvm.o): New dependency.
1006 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
1007 (LOADLIBES): New variable.
1009 * regset.c: Tweak comment.
1010 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
1012 * regset.h: Update copyright year.
1013 (struct regset): Remove `descr' member, add `gdbarch' member.
1014 (regset_alloc): Adjust prototype and comment.
1015 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
1016 (i386_supply_fpregset): Likewise.
1017 (i386_regset_from_core_section): Update call to regset_alloc.
1018 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
1020 (i386obsd_aout_regset_from_core_section): Update call to
1022 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
1024 (i386nbsd_aout_regset_from_core_section): Update call to
1026 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
1028 (amd64_regset_from_core_section): Update call to regset_alloc.
1029 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
1031 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
1032 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
1033 &sparc32nbsd_gregset in sparc32_supply_gregset call.
1034 (sparc32nbsd_init_abi): Update call to regset_alloc.
1035 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
1036 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
1037 (sparc64obsd_init_abi): Update call to regset_alloc.
1038 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
1039 &sparc64nbsd_gregset in sparc64_supply_gregset call.
1040 (sparc64nbsd_init_abi): Update call to regset_alloc.
1041 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
1042 &sparc64fbsd_gregset in sparc64_supply_gregset call.
1043 (sparc64fbsd_init_abi): Update call to regset_alloc.
1045 2004-05-22 Jim Blandy <jimb@redhat.com>
1047 * ppc-tdep.h (spe_register_p): New declaration.
1048 (struct gdbarch_tdep): New members: ppc_acc_regnum and
1050 * rs6000-tdep.c (spe_register_p): New function.
1051 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
1053 (rs6000_gdbarch_init): Initialize the new members of the tdep
1056 2004-05-21 Jim Blandy <jimb@redhat.com>
1058 * ppc-linux-nat.c (fetch_register): Move code back to be next
1059 to the comment that describes it. (Moved code, instead of
1060 comment, for symmetry with store_register.)
1062 Allocate regset structures in the gdbarch's obstack, not using
1064 * regset.c (regset_alloc): Renamed from regset_xmalloc.
1065 Add 'arch' argument. Allocate the regset on arch's obstack, not
1067 * regset.h (regset_alloc): Update declaration.
1068 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
1070 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
1071 * i386-tdep.c (i386_regset_from_core_section): Same.
1072 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
1073 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
1074 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
1075 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
1076 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
1077 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
1079 2004-05-21 Joel Brobecker <brobecker@gnat.com>
1081 * config/djgpp/fnchange.lst: Undo previous change, was useless.
1083 2004-05-21 Jim Blandy <jimb@redhat.com>
1085 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
1086 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
1088 2004-05-20 Jim Blandy <jimb@redhat.com>
1090 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
1092 2004-05-20 Mark Kettenis <kettenis@gnu.org>
1094 * regset.h: Make prototype const-correct.
1095 * regset.c (regset_xmalloc): Make const-correct.
1097 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
1099 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
1100 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
1101 (symbol_search_name): Declare.
1103 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
1104 (iter_name_next_hashed): Ditto.
1105 (iter_name_next_linear): Ditto.
1106 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
1108 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
1109 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
1110 (symbol_search_name): New function.
1112 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
1114 * minsyms.c (build_minimal_symbol_hash_tables): Change
1115 test for adding to demangled hash table to check for difference
1116 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
1118 2004-05-19 Jim Blandy <jimb@redhat.com>
1120 Use a constructor function to create regset structures.
1121 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
1122 (struct regset): Use supply_regset_ftype. Add new
1123 'collect_regset' member.
1124 (regset_xmalloc): New declaration.
1125 * regset.c: New file.
1126 * am64-tdep.c (amd64_regset_from_core_section): Use
1127 regset_xmalloc to construct regset structures.
1128 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
1129 * i386-tdep.c (i386_regset_from_core_section): Same.
1130 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
1131 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
1132 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
1133 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
1134 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
1135 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
1136 * Makefile.in (COMMON_OBS): Add regset.o.
1137 (regset.o): New rule.
1139 2004-05-19 Joel Brobecker <brobecker@gnat.com>
1141 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
1142 and pthread_cond_wait.c.
1144 2004-05-18 Jim Blandy <jimb@redhat.com>
1146 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
1147 before the mach-specific switch, and then let the individual cases
1148 override the defaults, rather than leaving them uninitialized
1149 until the switch and then setting them in each case.
1151 2004-05-18 Randolph Chung <tausq@debian.org>
1153 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
1154 millicode functions.
1156 2004-05-18 Randolph Chung <tausq@debian.org>
1158 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
1159 references to dld_flags_buffer consistent.
1161 2004-05-18 Randolph Chung <tausq@debian.org>
1163 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
1164 it for unwinding the stack.
1166 2004-05-18 Randolph Chung <tausq@debian.org>
1168 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
1169 Undefine these so we can overide them using gdbarch.
1171 2004-05-18 Randolph Chung <tausq@debian.org>
1173 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
1174 handling for 64-bit HPUX (elf).
1176 2004-05-18 Daniel Jacobowitz <dan@debian.org>
1178 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
1180 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1181 * ia64-tdep.c (examine_prologue): Likewise.
1182 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
1183 * v850-tdep.c (v850_fix_call_dummy): Likewise.
1185 2004-05-18 Mark Kettenis <kettenis@gnu.org>
1187 * vax-tdep.c (vax_return_value): Implement
1188 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1190 2004-05-17 Mark Kettenis <kettenis@gnu.org>
1192 * vax-tdep.c (vax_return_value): Fix typo.
1194 2004-05-17 Andrew Cagney <cagney@redhat.com>
1196 * MAINTAINERS: Mark Salter was also responsible for
1199 * NEWS: Mention signal fixes.
1201 2004-05-17 Randolph Chung <tausq@debian.org>
1203 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
1204 check to see if we are unwinding an export stub. Export stubs clobber
1205 the %rp in the call path and stores the original rp in a stack slot.
1207 2004-05-17 Jim Blandy <jimb@redhat.com>
1209 * MAINTAINERS: Update address for J.T. Conklin.
1211 2004-05-17 Randolph Chung <tausq@debian.org>
1213 * hppa-tdep.c: Remove superfluous #include's.
1214 * Makefile.in (hppa-tdep.o): Update dependencies.
1216 2004-05-17 Randolph Chung <tausq@debian.org>
1218 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
1219 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
1220 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
1221 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
1222 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
1223 Remove static function declarations.
1225 2004-05-17 Mark Kettenis <kettenis@gnu.org>
1227 * alphabsd-nat.c: Update copyright year.
1228 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
1230 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
1233 * m68k-tdep.c (m68k_svr4_return_value): Implement
1234 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1236 2004-05-16 Mark Kettenis <kettenis@gnu.org>
1238 * sol-thread.c Update copyright year. Fix various coding
1239 standards violations. Tweak a few comments.
1240 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
1243 2004-05-15 Randolph Chung <tausq@debian.org>
1245 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
1246 as pointer instead of array reference since HPUX compiler does
1247 not accept unsized array arguments.
1248 * somsolib.c (dld_flags_buffer): Use constant array size.
1250 2004-05-15 Mark Kettenis <kettenis@gnu.org>
1252 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
1253 offset with decimal offset.
1254 (amd64obsd_sigcontext_addr): Return correct address for entire
1257 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
1258 instead of get_frame_base.
1260 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
1261 (fill_gregset): Use regcache_raw_collect.
1263 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
1266 * config/sparc/tm-nbsd64.h: Remove file.
1267 * config/tm-sunos.h: Remove file.
1269 2004-05-15 Joel Brobecker <brobecker@gnat.com>
1271 * rs6000-tdep.c (store_param_on_stack_p): New function,
1272 an improved version of some code extracted from skip_prologue().
1273 (skip_prologue): Use store_param_on_stack_p() to detect
1274 instructions saving a parameter on the stack. Detect when r0
1275 is used to save a parameter.
1276 Do not mark "li rx, SIMM" instructions as part of the prologue,
1277 unless the following instruction is also part of the prologue.
1279 2004-05-14 Andrew Cagney <cagney@redhat.com>
1281 * infrun.c (handle_inferior_event): Simplify
1282 STEP_OVER_UNDEBUGGABLE.
1284 * infrun.c (handle_step_into_function): Delete function.
1285 (handle_inferior_event): Inline calls to
1286 handle_step_into_function.
1288 2004-05-14 Jerome Guitton <guitton@rome.act-europe.fr>
1290 * rs6000-nat.c: Fix a comment.
1292 2004-05-12 David Anderson <davea@sgi.com>
1294 Committed by Jim Blandy <jimb@redhat.com>:
1295 * regcache.c (struct regcache_descr): fix comment spelling.
1297 2004-05-13 J. Brobecker <brobecker@gnat.com>
1299 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
1300 Fixes a link link failure.
1302 2004-05-13 J. Brobecker <brobecker@gnat.com>
1304 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
1305 error that was causing the build to fail.
1307 2004-05-13 J. Brobecker <brobecker@gnat.com>
1309 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
1310 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
1312 2004-05-13 Andrew Cagney <cagney@redhat.com>
1314 * infrun.c (handle_inferior_event): Check for
1315 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
1316 calls. Update comments.
1318 2004-05-13 Jim Blandy <jimb@redhat.com>
1320 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
1321 (fetch_regs_user_thread, fetch_regs_kernel_thread)
1322 (store_regs_user_thread, store_regs_kernel_thread): Use
1323 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
1324 * ppc-linux-nat.c (fill_gregset): Same.
1325 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1326 (ppc_linux_sigtramp_cache): Same.
1327 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
1328 (ppcnbsd_sigtramp_cache_init): Same.
1329 * rs6000-nat.c (fetch_core_registers): Same.
1330 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
1331 (rs6000_frame_cache): Same.
1333 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
1334 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
1335 of assuming that the gprs are numbered starting with zero.
1336 * ppc-linux-nat.c (fill_gregset): Same.
1337 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
1338 * ppcnbsd-nat.c (getregs_supplies): Same.
1339 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
1340 * rs6000-nat.c (fetch_core_registers): Same.
1341 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
1343 2004-05-07 Michael Snyder <msnyder@redhat.com>
1345 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
1346 LOC_COMPUTED_ARG, and LOC_INDIRECT.
1348 2004-05-13 Andrew Cagney <cagney@redhat.com>
1350 * infrun.c (handle_inferior_event): Use frame_unwind_id.
1352 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
1354 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
1355 base_address for shared libraries.
1357 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
1359 * MAINTAINERS (write after approval): Add myself.
1361 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
1363 * breakpoint.c (bpstat_stop_status): Add new argument
1364 STOPPED_BY_WATCHPOINT. Use it instead of testing
1365 target_stopped_data_address agaist 0 to check whether
1366 or not we stopped due to a hardware watchpoint.
1367 * breakpoint.h (bpstat_stop_status): Adapt prototype.
1368 * infrun.c (handle_inferior_event): Call bpstat_stop_status
1371 2004-05-12 Jim Blandy <jimb@redhat.com>
1373 * configure.in: When checking whether we should use the -bbigtoc
1374 option, don't forget to restore the original value of LDFLAGS.
1375 * configure: Regenerated.
1377 2004-05-12 Andrew Cagney <cagney@redhat.com>
1379 * thread.c (load_infrun_state): Delete step_sp.
1380 * infrun.c (context_switch): Ditto.
1381 * inferior.h (step_sp): Ditto.
1382 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
1383 * gdbthread.h (struct thread_info, save_infrun_state)
1384 (restore_infrun_state): Ditto.
1386 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
1388 * MAINTAINERS (write after approval): Add myself.
1390 2004-05-12 Andrew Cagney <cagney@redhat.com>
1392 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
1393 eliminate reference to step_sp.
1394 (struct execution_control_state, init_execution_control_state)
1395 (handle_inferior_event, keep_going): Delete update_step_sp and
1397 * infcmd.c (step_sp): Note that variable is unused.
1399 2004-05-11 Andrew Cagney <cagney@redhat.com>
1401 * infrun.c (step_over_function): Delete function.
1402 (handle_step_into_function): Use insert_step_resume_breakpoint.
1403 (insert_step_resume_breakpoint): Fix assertion.
1405 2004-05-11 Nick Roberts <nickrob@gnu.org>
1407 * utils.c (defaulted_query): Just use the normal query input type
1408 when printing the annotations.
1410 2004-05-11 Andrew Cagney <cagney@redhat.com>
1412 * infrun.c (handle_inferior_event): Simplify code handling
1413 step-into or return-from a signal trampoline.
1415 2004-05-11 Andrew Cagney <cagney@redhat.com>
1417 * ppcnbsd-tdep.c: Include "gdb_assert.h".
1418 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
1420 2004-05-10 Jim Blandy <jimb@redhat.com>
1422 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
1423 with a call to internal_error.
1425 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
1426 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
1427 processor variant lacks those registers.
1428 (ppc_floating_point_unit_p): Change description to make it clear
1429 that this returns info about the ISA, not the ABI.
1430 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
1431 return true or false by checking tdep->ppc_fp0_regnum and
1432 tdep->ppc_fpscr_regnum. The original code replicated the BFD
1433 arch/mach switching done in rs6000_gdbarch_init; it's better to
1434 keep that logic there, and just check the results here.
1435 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
1436 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
1437 floating-point registers.
1438 (ppc_supply_fpregset, ppc_collect_fpregset)
1439 (rs6000_push_dummy_call, rs6000_extract_return_value)
1440 (rs6000_store_return_value): Assert that we have floating-point
1442 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
1443 (rs6000_frame_cache): Don't note the locations at which
1444 floating-point registers were saved if we have no fprs.
1445 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
1447 (fetch_regs_user_thread, fetch_regs_kernel_thread)
1448 (store_regs_user_thread, store_regs_kernel_thread): Only call
1449 supply_fprs / fill_fprs if we actually have floating-point
1451 (special_register_p): Check ppc_fpscr_regnum before matching
1453 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
1454 supply / collect fpscr if we don't have it.
1455 * ppc-bdm.c: #include "gdb_assert.h".
1456 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
1457 have floating-point registers, since I can't test this code on
1458 FP-free systems to adapt it.
1459 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
1460 fpscr and floating point register numbers if they don't exist.
1461 (fetch_register): Assert that we have floating-point registers
1462 before we reach the code that handles them.
1463 (store_register): Same. And use tdep instead of calling
1465 (fill_fpregset): Don't try to collect FP registers and fpscr if we
1467 (ppc_linux_sigtramp_cache): Don't record the saved locations of
1468 fprs and fpscr if we don't have them.
1469 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
1471 * ppcnbsd-nat.c: #include "gdb_assert.h".
1472 (getfpregs_supplies): Assert that we have floating-point registers.
1473 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
1474 * ppcobsd-tdep.c: #include "gdb_assert.h".
1475 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
1476 have floating-point registers.
1477 * rs6000-nat.c (regmap): Don't match against the fpscr and
1478 floating point register numbers if they don't exist.
1479 (fetch_inferior_registers, store_inferior_registers,
1480 fetch_core_registers): Only fetch / store / supply the
1481 floating-point registers and the fpscr if we have them.
1482 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
1483 (ppcobsd-tdep.o): Update dependencies.
1485 2004-05-10 Andrew Cagney <cagney@redhat.com>
1487 * infrun.c (through_sigtramp_breakpoint): Delete variable.
1488 (context_switch): Do not switch through_sigtramp_breakpoint.
1489 * gdbthread.h (save_infrun_state, load_infrun_state)
1490 (struct thread_info): Delete through_sigtramp_breakpoint parameter
1491 and structure member.
1492 * thread.c (load_infrun_state, save_infrun_state): Update.
1494 2004-05-10 Mark Kettenis <kettenis@gnu.org>
1496 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
1498 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1500 * acinclude.m4: Quote macro names being defined by AC_DEFUN
1502 * aclocal.m4: Regenerate.
1504 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
1506 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
1508 2004-05-10 Andrew Cagney <cagney@redhat.com>
1510 * infrun.c (check_sigtramp2): Delete function.
1511 (handle_inferior_event): When single stepping, and taking a
1512 signal, set a breakpoint at the signal return address. Delete
1513 redundant calls to check_sigtramp2.
1514 (insert_step_resume_breakpoint): New function.
1515 (through_sigtramp_breakpoint, handle_inferior_event)
1516 (follow_exec, wait_for_inferior, fetch_inferior_event)
1517 (currently_stepping, keep_going): Delete most uses of
1518 through_sigtramp_breakpoint, not that it should be deleted.
1519 (delete_breakpoint_current_contents): Delete function.
1521 2004-05-10 Randolph Chung <tausq@debian.org>
1523 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
1525 * config/pa/tm-linux.h: New file.
1527 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
1529 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
1530 of prefixes. Don't print the prefix twice in the CLI.
1532 2004-05-10 Jim Blandy <jimb@redhat.com>
1534 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
1535 collect all the gprs.
1537 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
1538 loop collecting gprs.
1540 2004-05-09 Andrew Cagney <cagney@redhat.com>
1542 * remote-vx.c (net_step): Delete step-range code.
1543 * remote.c (remote_resume, init_all_packet_configs)
1544 (set_remote_protocol_E_packet_cmd)
1545 (show_remote_protocol_E_packet_cmd)
1546 (remote_protocol_E, show_remote_cmd, _initialize_remote)
1547 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
1548 (show_remote_protocol_e_packet_cmd): Ditto.
1550 2004-05-09 Mark Kettenis <kettenis@gnu.org>
1552 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
1554 * hppa-tdep.h: Update copyright year.
1555 (struct trad_frame_saved_reg): Add opaque declaration.
1557 * amd64-tdep.c (amd64_return_value): Implement
1558 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1560 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
1561 (m68k_value_to_register): New functions.
1562 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
1565 * defs.h (enum return_value_convention): Add
1566 RETURN_VALUE_ABI_RETURNS_ADDRESS and
1567 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
1568 * infcmd.c (legacy_return_value): New function.
1569 (print_return_value): Rwerite to implement
1570 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1571 * values.c (using_struct_return): Check for inequality to
1572 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
1573 RETURN_VALUE_STRUCT_CONVENTION.
1574 * i386-tdep.c (i386_return_value): Implement
1575 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1577 * vax-tdep.c: Tweak comments. Reorder include files. Don't
1578 include "symtab.h", "opcode/vax.h" and "inferior.h".
1579 (vax_skip_prologue): Replace calls to read_memory_integer by calls
1580 to read_memory_unsigned_integer.
1581 (vax_gdbarch_init): Reorder.
1582 (_initialize_vax_tdep): Spell out prototype.
1583 * Makefile.in (vax-tdep.o): Update dependencies.
1585 2004-05-08 Andrew Cagney <cagney@redhat.com>
1587 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
1588 * target.c (target_detach, target_disconnect): Ditto.
1590 * infcall.c (call_function_by_hand): When no
1591 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
1592 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
1593 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
1594 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1595 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1597 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
1598 * gdbarch.h, gdbarch.c: Re-generate.
1599 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
1600 deprecated_fix_call_dummy.
1601 * v850-tdep.c (v850_gdbarch_init): Ditto.
1602 * infcall.c (call_function_by_hand): Do not call
1603 DEPRECATED_FIX_CALL_DUMMY.
1605 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
1606 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
1607 * gdbarch.h, gdbarch.c: Re-generate.
1608 * arm-linux-tdep.c (arm_linux_call_dummy_words)
1609 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
1610 deprecated_sizeof_call_dummy_words.
1611 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
1612 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1613 * v850-tdep.c (v850_gdbarch_init): Ditto.
1614 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1615 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
1616 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1617 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1618 * arch-utils.h (legacy_call_dummy_words)
1619 (legacy_sizeof_call_dummy_words): Delete declarations.
1620 * arch-utils.c (legacy_call_dummy_words)
1621 (legacy_sizeof_call_dummy_words): Delete variables.
1623 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
1624 * gdbarch.h, gdbarch.c: Re-generate.
1625 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
1626 * infcall.c (call_function_by_hand): Eliminate call to
1627 DEPRECATED_PUSH_DUMMY_FRAME.
1628 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
1630 (ns32k_push_dummy_frame): Delete function.
1632 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
1633 deprecated_call_dummy_breakpoint_offset or
1634 deprecated_call_dummy_start_offset.
1635 * dummy-frame.c, arm-tdep.c: Update comments.
1636 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
1637 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
1638 * gdbarch.h, gdbarch.c: Re-generate.
1640 * infcall.c (legacy_push_dummy_code): Delete function.
1641 (push_dummy_code): Delete call.
1643 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
1644 * gdbarch.h, gdbarch.c: Re-generate.
1645 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
1646 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
1647 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
1648 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
1650 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
1651 (struct frame_info): Delete opaque declaration.
1652 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
1653 * frame.c (get_frame_type): Delete call.
1655 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
1657 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
1658 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
1660 2004-05-08 Mark Kettenis <kettenis@gnu.org>
1662 * alphanbsd-tdep.c: Include "gdb_string.h".
1663 * armnbsd-tdep.c: Update copyright year.
1664 Include "gdb_string.h".
1665 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
1668 * delta68-nat.c: Remove file.
1669 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
1670 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
1671 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
1672 (delta68-nat.o): Remove dependency.
1674 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
1676 (m68k_gdbarch_init): Don't set
1677 deprecated_frameless_function_invocation.
1679 2004-05-07 Randolph Chung <tausq@debian.org>
1681 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
1682 read_memory_nobpt for code reading when doing frame unwinding.
1683 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
1685 2004-05-07 Randolph Chung <tausq@debian.org>
1687 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
1688 instead of sp, handle sigaltstack case.
1689 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
1690 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
1691 signal handler and not that of the caller.
1692 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
1693 hppa_linux_sigtramp_find_sigcontext.
1695 2004-05-07 Randolph Chung <tausq@debian.org>
1697 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
1699 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
1700 * hppa-linux-nat.c (fetch_register, store_register): Define.
1701 (fetch_inferior_registers, store_inferior_registers): Define.
1702 (supply_gregset): Add comment and clean up some unneeded code.
1703 (fill_gregset): Add comment and fix so that it saves registers in
1704 the right place in the gregset.
1705 (fill_fpregset): Fix buffer overrun problem.
1706 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
1708 2004-05-07 Randolph Chung <tausq@debian.org>
1710 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
1711 do common handling of the pcoqt register.
1712 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
1713 to use helper function.
1714 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
1715 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
1716 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
1717 generic fallback unwinder when all else fails.
1718 (hppa_gdbarch_init): Add fallback sniffer.
1719 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
1720 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
1721 to use helper function.
1723 2004-05-08 Joel Brobecker <brobecker@gnat.com>
1725 * config/djgpp/fnchange.lst: Add translation rules for
1726 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
1728 2004-05-08 Mark Kettenis <kettenis@gnu.org>
1730 * frame.c (get_prev_frame_1): Work around GCC bug.
1731 * frame.h: Add comment about GCC bug.
1733 2004-05-07 Andrew Cagney <cagney@redhat.com>
1735 * observer.c: Include "commands.h" and "gdbcmd.h".
1736 (observer_debug, _initialize_observer): Add the
1737 command "set/show debug observer".
1738 * observer.sh: When observer debugging, log notify calls.
1739 * Makefile.in (observer.o): Update dependencies.
1741 2004-05-07 Jason Molenda (jmolenda@apple.com)
1743 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
1745 2004-05-07 Jim Blandy <jimb@redhat.com>
1747 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
1748 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
1749 to recognize gpr regnums, instead of assuming that
1750 tdep->ppc_fp0_regnum marks the end of the general-purpose
1753 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
1754 the given architecture has floating-point registers.
1756 2004-05-07 Andrew Cagney <cagney@redhat.com>
1758 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
1760 * gdbarch.h, gdbarch.c: Re-generate.
1761 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
1762 deprecated_use_generic_dummy_frames.
1764 2004-05-07 Brian Ford <ford@vss.fsi.com>
1766 * NEWS: Mention Cygwin DWARF 2 support.
1768 2004-05-07 Andrew Cagney <cagney@redhat.com>
1770 * objfiles.h (struct entry_info): Delete unused fields
1771 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
1772 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
1773 * mipsread.c (mipscoff_symfile_read): Update.
1774 * mdebugread.c (parse_partial_symbols): Update.
1775 * dwarfread.c (read_file_scope): Update.
1776 * dwarf2read.c (read_file_scope): Update.
1777 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
1778 * coffread.c (complete_symtab): Update.
1780 2004-05-07 Mark Kettenis <kettenis@gnu.org>
1782 * infcall.c (_initialize_infcall): Fix typo.
1784 2004-05-07 Andrew Cagney <cagney@redhat.com>
1786 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
1787 * command.h (add_setshow_zinteger_cmd): Declare.
1789 2004-05-06 Randolph Chung <tausq@debian.org>
1791 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
1792 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
1793 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
1794 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
1795 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
1796 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
1797 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
1799 * hppa-tdep.h: ... to here, with HPPA_ prefix.
1800 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
1801 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
1802 (hppa64_hpux_frame_find_saved_regs_in_sig)
1803 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
1804 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
1805 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
1806 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
1807 (hppa_linux_sigtramp_frame_prev_register): Likewise.
1808 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
1809 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
1810 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
1811 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
1812 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
1813 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
1814 (hppa32_register_type, hppa_cannot_store_register)
1815 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
1816 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
1817 * hpread.c (hpread_process_one_debug_symbol): Likewise.
1818 * pa64solib.c (pa64_solib_have_load_event)
1819 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
1820 (pa64_solib_unloaded_library_pathname): Likewise.
1821 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
1822 (som_solib_library_pathname): Likewise.
1824 2004-05-05 Jim Ingham <jingham@apple.com>
1826 * breakpoint.c (create_breakpoints): Copy the ignore count and
1827 thread id over from the pended breakpoint to the actual
1830 2004-05-05 Andrew Cagney <cagney@redhat.com>
1832 * gdbarch.sh (PARM_BOUNDARY): Delete.
1833 gdbarch.h, gdbarch.c: Re-generate.
1834 * valops.c (PARM_BOUNDARY): Delete macro.
1835 (value_push): Delete PARM_BOUNDARY code.
1836 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
1838 2004-05-04 Jim Blandy <jimb@redhat.com>
1840 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
1841 Don't assume that the gprs, fprs, and UISA sprs are
1842 contiguous, start at register number zero, and end with fpscr.
1843 Instead, use the numbers from the tdep structure.
1845 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
1846 should no longer be used in code specific to the RS6000 and its
1848 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
1849 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
1850 tdep->ppc_fp0_regnum.
1851 (ppc_supply_fpregset, ppc_collect_fpregset)
1852 (rs6000_push_dummy_call, rs6000_extract_return_value)
1853 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
1854 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
1856 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
1857 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
1859 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
1860 bdm_ppc_store_registers): Same.
1861 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
1862 (store_register, fill_fpregset): Same.
1863 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
1864 (ppc_linux_supply_fpregset): Same.
1865 * ppcnbsd-nat.c (getfpregs_supplies): Same.
1866 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
1868 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
1869 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
1870 ppc64_sysv_abi_return_value): Same.
1871 * rs6000-nat.c (regmap, fetch_inferior_registers)
1872 (store_inferior_registers, fetch_core_registers): Same.
1874 2004-05-01 Mark Kettenis <kettenis@gnu.org>
1876 * m68knbsd-nat.c: Remove file.
1877 * m68knbsd-tdep.c: Remove file.
1878 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
1880 * configure.host: Add m68k-*-netbsdelf*.
1881 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
1882 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
1883 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
1885 * config/m68k/nbsdelf.mh: New file.
1886 * config/m68k/nbsd.mt: New file.
1887 * config/m68k/nbsdaout.mt: Remove file.
1888 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
1889 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
1890 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
1891 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
1892 (use_struct_convention): Remove prototype.
1893 (USE_STRUCT_CONVENTION): Remove define.
1894 * config/m68k/xm-nbsd.h: Remove file.
1896 2004-05-04 Michael Snyder <msnyder@redhat.com>
1898 * m68k-tdep.c (m68k_gdbarch_init): Default to using
1899 reg_struct_return method (as gcc usually does for cross targets).
1901 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1903 Committed by Andrew Cagney.
1904 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
1905 alignment padding when accessing ucontext struct members.
1907 2004-05-04 Jim Blandy <jimb@redhat.com>
1909 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
1910 'ppc_gplast_regnum' member.
1911 (ppc_num_gprs): New enum constant.
1912 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
1913 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
1914 * rs6000-nat.c (regmap, fetch_inferior_registers,
1915 store_inferior_registers): Same.
1916 * rs6000-tdep.c (e500_pseudo_register_read)
1917 (e500_pseudo_register_write): Same.
1918 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
1920 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
1921 * ppc-tdep.h (ppc_num_fprs): New enum constant.
1922 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
1923 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
1925 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
1927 * ppc-linux-nat.c (ppc_register_u_addr): Same.
1928 * rs6000-nat.c (regmap, fetch_inferior_registers)
1929 (store_inferior_registers): Same.
1931 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
1934 2004-05-03 Joel Brobecker <brobecker@gnat.com>
1936 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
1937 failure detected by recent versions of GCC.
1938 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
1939 to be consistent with the usage in dwarf2_create_include_psymtab.
1941 2004-05-03 Michael Snyder <msnyder@redhat.com>
1943 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
1944 (heuristic_proc_start): Whitespace cleanup.
1946 2004-05-04 Mark Kettenis <kettenis@gnu.org>
1948 * sun3-nat.c: Remove file.
1949 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
1951 (ALLDEPFILES): Remove sun3-nat.c.
1952 (sun3-nat.o): Remove dependencies.
1954 * i386-interix-nat.c, i386-interix-tdep.c,
1955 config/i386/nm-interix.h, config/i386/interix.mh,
1956 config/i386/interix.mt: Remove files.
1957 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
1960 2004-05-03 Mark Kettenis <kettenis@gnu.org>
1962 * m68k-tdep.h (struct gdbarch_tdep): Add member
1963 struct_value_regnum.
1964 (m68k_svr4_init_abi): New prototype.
1965 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
1966 different calling conventions.
1967 (m68k_extract_return_value): Remove code dealing with single-field
1969 (m68k_store_return_value): Remove code dealing with single-field
1970 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
1971 (m68k_extract_struct_value_address): Remove function.
1972 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
1973 (m68k_reg_struct_return_p, m68k_return_value)
1974 (m68k_svr4_return_value): New functions.
1975 (m68k_use_struct_convention): Remove function.
1976 (m68k_push_dummy_call): Use new struct_value_regnum member of
1977 `struct gdbarch_tdep' instead of hardcoded register number to
1979 (m68k_svr4_init_abi): New function.
1980 (m68k_gdbarch_init): Don't set extract_return_value,
1981 store_return_values, deprecated_extract_struct_value_address and
1982 use_struct_convention. Set return_value instead. Initialize new
1983 struct_value_regnum member of `struct gdbarch_tdep'.
1984 * m68klinux-tdep.c: Update copyright year.
1985 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
1986 (m68k_linux_extract_struct_value_address): Remove function.
1987 (m68k_linux_init_abi): Don't set extract_return_value,
1988 store_return_values, deprecated_extract_struct_value_address and
1989 use_struct_convention. Call m68k_svr4_init_abi but override the
1990 new struct_value_regnum member of `struct gdbarch_tdep'.
1991 * Makefile.in (m68k-tdep.o): Update dependencies.
1993 2004-05-03 J. Brobecker <brobecker@gnat.com>
1995 * dwarf2read.c (line_header): Add new included_p field in
1997 (partial_die_info): New field has_stmt_list. New field line_offset.
1998 (dwarf2_create_include_psymtab): New function.
1999 (dwarf2_build_include_psymtabs): New function.
2000 (add_file_name): Add forward declaration. Initialize new field.
2001 (dwarf_decode_lines): Add new parameter. Enhance this procedure
2002 to be able to determine the list of files included by the
2003 given unit, and build their associated psymtabs.
2004 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
2006 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
2007 (read_file_scope): Update call to dwarf_decode_lines.
2008 (read_partial_die): Handle DW_AT_stmt_list attributes.
2010 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
2013 * configure.in: Revert special case for osf5.*.
2014 * configure: Regenerate.
2016 2004-05-02 Jim Blandy <jimb@redhat.com>
2018 Move the symbol-file-from-memory functions into their own file.
2019 * symfile-mem.c, symfile-mem.h: New files.
2020 * symfile.c (symbol_file_add_from_bfd): New function.
2021 (symbol_file_add): Call symbol_file_add_from_bfd.
2022 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
2023 Moved to symfile-mem.c.
2024 (_initialize_symfile): Move definition of
2025 add-symbol-file-from-memory command to symfile-mem.c.
2026 * symfile.h (symbol_file_add_from_bfd): New declaration.
2027 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
2028 * config/powerpc/linux.mt (TDEPFILES): Same.
2029 * Makefile.in (SFILES): Add symfile-mem.c.
2030 (symfile_mem_h): New variable.
2031 (HFILES_NO_SRCDIR): Add symfile-mem.h.
2032 (symfile-mem.o): New rule.
2034 2004-05-01 Andrew Cagney <cagney@redhat.com>
2036 * breakpoint.c (insert_bp_location): Use get_frame_id, and
2037 frame_find_by_id instead of frame_relative_level.
2038 (do_enable_breakpoint): Ditto.
2039 * thread.c: Update copyright.
2040 (info_threads_command): Ditto, simplify.
2042 * frame.c (deprecated_generic_get_saved_register): Delete
2043 function, moved to "xstormy16-tdep.c".
2044 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
2045 deprecated_generic_get_saved_register from "frame.c".
2046 (xstormy16_frame_saved_register): Call
2047 xstormy16_get_saved_register.
2048 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
2050 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
2051 * frame.h (deprecated_generic_get_saved_register): Delete.
2053 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
2055 * dwarfread.c: Update documentation on the state of dwarf-1.
2057 2004-05-01 Andrew Cagney <cagney@redhat.com>
2059 * stack.c (select_frame_command): Delete call to
2060 frame_relative_level.
2061 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
2063 (frame_info): Do not print FRAMELESS.
2064 (print_block_frame_labels): Replace DEPRECATED_STREQ.
2065 (catch_info): Delete #if0 code.
2067 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
2068 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
2069 of frame_relative_level.
2070 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
2072 * frame.h (enum frame_type): Add SENTINEL_FRAME.
2073 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
2074 frame_relative_level.
2076 * frame.h (deprecated_set_frame_type): Delete declaration.
2077 * frame.c (deprecated_set_frame_type): Delete function, update
2080 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
2081 * gdbarch.h, gdbarch.c: Re-generate.
2082 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
2083 (shnbsd_pc_in_sigtramp): Delete.
2084 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
2086 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
2088 * frame.h: Update comments.
2089 * ppc-linux-tdep.c: Update comments.
2090 * breakpoint.c (bpstat_what): Update comments.
2092 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
2093 m68klinux-tdep.o's dependencies, were previously added to
2096 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
2097 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
2098 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
2099 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
2100 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
2102 * Makefile.in (m68klinux-nat.o): Update dependencies.
2103 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
2104 (m68k_linux_sigtramp_frame_cache)
2105 (m68k_linux_sigtramp_frame_this_id)
2106 (m68k_linux_sigtramp_frame_prev_register)
2107 (m68k_linux_sigtramp_frame_unwind)
2108 (m68k_linux_sigtramp_frame_sniffer)
2109 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
2110 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
2111 names, use trad-frame.h.
2112 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
2113 (struct m68k_sigtramp_info): Delete.
2114 * m68k-tdep.c (m68k_sigtramp_frame_cache)
2115 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
2116 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
2117 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
2120 * infrun.c (check_sigtramp2): Delete check for
2121 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
2123 2004-05-01 Mark Kettenis <kettenis@gnu.org>
2125 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
2127 2004-05-01 Andrew Cagney <cagney@redhat.com>
2129 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
2130 (frv_linux_sigtramp_frame_cache)
2131 (frv_linux_sigtramp_frame_this_id)
2132 (frv_linux_sigtramp_frame_prev_register)
2133 (frv_linux_sigtramp_frame_unwind)
2134 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
2135 include "linux" in function and variable names, directly call
2136 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
2137 the latest trad-frame code.
2138 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
2139 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
2140 * Makefile.in (frv-linux-tdep.o): Update dependencies.
2141 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
2142 * frv-tdep.c (frv_sigtramp_frame_cache)
2143 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
2144 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
2146 (frv_gdbarch_init): Do not append a sigtramp sniffer.
2147 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
2148 (frv_set_sigcontext_reg_addr): Delete function.
2150 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
2151 (DEPRECATED_SIGTRAMP_END): Delete.
2152 * gdbarch.h, gdbarch.c: Re-generate.
2153 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
2154 * config/vax/tm-vaxbsd.h: Update copyright.
2155 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
2156 (DEPRECATED_IN_SIGTRAMP): Define.
2157 * config/m68k/tm-nbsd.h: Update copyright.
2158 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
2159 (DEPRECATED_IN_SIGTRAMP): Define.
2161 2004-05-01 Mark Kettenis <kettenis@gnu.org>
2163 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
2164 encondings. Fixes PR gdb/1628.
2166 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
2167 DW_CFA_restore state without a matching DW_CFA_remember_state
2168 instead of aborting. Fixes PR backtrace/1589.
2170 2004-04-30 Joel Brobecker <brobecker@gnat.com>
2172 * MAINTAINERS: Add self as AIX maintainer.
2173 Update my e-mail address in write-after-approval section.
2175 2004-04-30 Andrew Cagney <cagney@redhat.com>
2177 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
2178 (legacy_get_prev_frame): Ditto.
2180 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
2181 (mips_gdbarch_init): Do not set pc_in_sigtramp.
2182 * mipsread.c (sigtramp_address): Delete extern variable.
2183 (mipscoff_new_init): Delete reference.
2184 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
2185 (fixup_sigtramp): Delete function.
2186 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
2187 (fixup_sigtramp): Delete declarations.
2189 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
2190 deprecated_pc_in_sigtramp.
2191 (ppcnbsd_pc_in_sigtramp): Delete function.
2193 2004-05-01 Mark Kettenis <kettenis@gnu.org>
2195 * config/m68k/nm-nbsd.h: Tweak comments.
2196 * config/m68k/nm-nbsdaout.h: Likewise.
2198 2004-04-30 Andrew Cagney <cagney@redhat.com>
2200 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
2201 legacy_pc_in_sigtramp.
2202 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
2204 2004-05-01 Mark Kettenis <kettenis@gnu.org>
2206 Add OpenBSD/m68k support.
2207 * NEWS (New native configurations): Mention OpenBSD/m68k.
2208 * m68kbsd-tdep.c: New file.
2209 * m68kbsd-nat.c: New file.
2210 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
2211 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
2212 * configure.host: Add m68k-*-openbsd.
2213 * configure.tgt: Add m68k-*-openbsd.
2214 * config/m68k/tm-obsd.h: New file.
2215 * config/m68k/obsd.mt: New file.
2216 * config/m68k/obsd.mh: New file.
2217 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
2220 2004-04-30 Andrew Cagney <cagney@redhat.com>
2222 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
2223 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
2225 2004-04-30 Mark Kettenis <kettenis@gnu.org>
2227 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
2228 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
2230 2004-04-30 Brian Ford <ford@vss.fsi.com>
2232 Revert 2004-04-16 change.
2233 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
2234 (i386_coff_init_abi): Remove.
2235 * i386-tdep.h (i386_coff_init_abi): Remove.
2236 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
2238 2004-04-30 Andrew Cagney <cagney@redhat.com>
2240 * blockframe.c (find_pc_partial_function): Delete use of
2241 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
2242 DEPRECATED_SIGTRAMP_END.
2244 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
2245 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
2246 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
2247 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
2248 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
2250 * defs.h (deprecated_inside_entry_file): Delete declaration.
2251 * blockframe.c (deprecated_inside_entry_file): Delete function.
2252 (legacy_frame_chain_valid): Delete call.
2253 * sh64-tdep.c (sh64_frame_chain): Delete call.
2254 * objfiles.h: Update comments.
2255 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
2257 * frame.c (get_prev_frame): Delete call, update comments.
2259 2004-04-30 Brian Ford <ford@vss.fsi.com>
2261 * MAINTAINERS (Write After Approval): Add myself.
2263 2004-04-30 Andrew Cagney <cagney@redhat.com>
2265 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
2266 * gdbarch.h, gdbarch.c: Re-generate.
2267 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
2270 2004-04-30 Andrew Cagney <cagney@redhat.com>
2272 * gdb-events.sh (selected_thread_changed)
2273 (selected_frame_level_changed, target_changed): Delete.
2274 * gdb-events.h, gdb-events.c: Re-generate.
2275 * valops.c (value_assign): Update.
2276 * stack.c (select_frame_command, up_silently_base)
2277 (down_silently_base): Update.
2279 2004-04-29 Andrew Cagney <cagney@redhat.com>
2281 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
2282 registers correctly.
2283 (print_gp_register_row, mips32_heuristic_proc_desc)
2284 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
2285 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
2286 references to mips_isa_regsize.
2288 2004-04-29 Andrew Cagney <cagney@redhat.com>
2290 * mips-tdep.c (struct gdbarch_tdep): Delete
2291 mips_fp_register_double.
2292 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
2294 (mips_gdbarch_init): Do not set mips_fp_register_double.
2295 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
2297 2004-04-29 Joel Brobecker <brobecker@gnat.com>
2299 Committed by Andrew Cagney.
2300 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
2303 2004-04-29 Andrew Cagney <cagney@redhat.com>
2305 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
2306 gdbarch, use mips_abi, update callers.
2307 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
2308 mips_abi_regsize, update callers.
2309 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
2310 mips_default_abi_regsize.
2311 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
2312 mips_default_abi_regsize.
2314 2004-04-29 Andrew Cagney <cagney@redhat.com>
2316 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
2317 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
2318 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
2319 mips_default_abi_regsize.
2320 (mips_isa_regsize): Rename mips_regisze.
2321 * mipsnbsd-tdep.c: Update.
2322 * mips-linux-tdep.c: Update.
2323 * irix5-nat.c: Update.
2324 * mips-tdep.h (mips_isa_regsize): Update.
2326 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
2327 Delete all disabled code.
2328 * gdb-events.h, gdb-events.c: Re-generate.
2330 2004-04-19 Jerome Guitton <guitton@gnat.com>
2331 Mark Kettenis <kettenis@gnu.org>
2333 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
2334 the function begins with a branch instruction.
2336 2004-04-29 Mark Kettenis <kettenis@gnu.org>
2338 * i386-tdep.c: Fix spelling mistakes.
2340 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2341 Andrew Cagney <cagney@redhat.com>
2343 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
2345 * acconfig.h: Provide default _KMEMUSER value.
2346 * config.in, configure: Re-generate.
2347 * NEWS: Mention fix.
2349 2004-04-24 Randolph Chung <tausq@debian.org>
2351 * configure.host (hppa*-*-linux*): New target.
2352 * configure.tgt (hppa*-*-linux*): Likewise.
2353 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
2354 gdbarch_init_osabi() call earlier so that osabi-specific frame
2355 unwinders can be registered first.
2356 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
2358 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
2359 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
2360 * config/pa/linux.mh: New file.
2361 * config/pa/linux.mt: New file.
2362 * config/pa/nm-linux.h: New file.
2363 * config/pa/xm-linux.h: New file.
2364 * hppa-linux-nat.c: New file.
2365 * hppa-linux-tdep.c: New file.
2367 2004-04-28 Randolph Chung <tausq@debian.org>
2369 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
2371 (hppa32_push_dummy_call): Fix small struct and floating point argument
2372 passing, and make sure the stack frame is properly aligned.
2374 2004-04-28 Andrew Cagney <cagney@redhat.com>
2376 * stack.c (print_stack_frame): Fix description.
2378 * NEWS: Mention gdb/gdbserver/configure execute permission
2379 changed. PR server/519.
2381 2004-04-28 Andrew Cagney <cagney@redhat.com>
2383 * stack.c (print_stack_frame_stub): Delete declaration.
2384 (struct print_stack_frame_args, print_stack_frame)
2385 (print_frame_info, print_frame): Replace "source" with print what.
2386 Replace "print" with "print_level". Replace "args" with
2388 * frame.h (show_and_print_stack_frame, print_stack_frame)
2389 (print_frame_info): Update declarations.
2390 * stack.c (select_and_print_frame, frame_command)
2391 (current_frame_command, up_command, down_command): Update calls -
2392 use get_selected_frame, pass "enum print_what" for source, do not
2393 call frame_relative_level.
2394 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
2395 * remote-rdp.c (remote_rdp_open): Ditto.
2396 * remote-mips.c (common_open): Ditto.
2397 * remote-e7000.c (e7000_start_remote): Ditto.
2398 * ocd.c (ocd_start_remote): Ditto.
2399 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
2400 * infrun.c (normal_stop): Ditto.
2401 * inflow.c (kill_command): Ditto.
2402 * infcmd.c (finish_command): Ditto.
2403 * corelow.c (core_open): Ditto.
2404 * tracepoint.c (finish_tfind_command): Ditto.
2405 * thread.c (info_threads_command, info_threads_command)
2406 (restore_current_thread, do_captured_thread_select): Ditto.
2407 * ada-tasks.c (task_command): Ditto.
2409 2004-04-26 Orjan Friberg <orjanf@axis.com>
2411 * frame.c: Include "observer.h".
2412 (frame_observer_target_changed): New function.
2413 (_initialize_frame): Attach target_changed observer.
2414 * regcache.c: Include "observer.h".
2415 (regcache_observer_target_changed): New function.
2416 (_initialize_regcache): Attach target_changed observer.
2417 * valops.c: Include "observer.h".
2418 (value_assign): Notify target_changed event when modifying register.
2419 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
2421 2004-04-26 Orjan Friberg <orjanf@axis.com>
2423 From Paul Koning <pkoning@equallogic.com>:
2424 * breakpoint.c (free_valchain): New function.
2425 (insert_bp_location, delete_breakpoint): Use free_valchain.
2426 (remove_breakpoint): Do not remove the valchain.
2427 (bpstat_stop_status): If not stopped by watchpoint, skip
2428 watchpoints when generating stop status list.
2429 * infrun.c (handle_inferior_event): Make
2430 stepped_after_stopped_by_watchpoint a global variable.
2431 * remote.c (remote_stopped_data_address): Return watch data
2432 address rather than zero if stepped_after_stopped_by_watchpoint is
2435 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
2438 * configure.in: Check for curses after termcap.
2439 On osf5.*, do not check for ncurses.
2440 * configure: Regenerate.
2442 2004-04-25 Mark Kettenis <kettenis@gnu.org>
2444 * ppcobsd-nat.c: Include "ppc-tdep.h".
2445 * Makefile.in (ppcobsd-nat.o): Update dependencies.
2447 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
2448 Fixes PR tdep/1623 and PR tdep/1624.
2450 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
2452 * xmodem.h, xmodem.c: Remove files.
2453 * Makefile.in: Remove references to xmodem.h, xmodem.c.
2455 2004-04-23 Randolph Chung <tausq@debian.org>
2457 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
2458 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
2459 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
2460 for handling stackless frames.
2461 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
2463 2004-04-23 Randolph Chung <tausq@debian.org>
2465 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
2466 starts at a pc before the frame is created.
2468 2004-04-23 Joel Brobecker <brobecker@gnat.com>
2470 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
2472 2004-04-23 Jerome Guitton <guitton@gnat.fr>
2474 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
2475 use convert_typed_floating to get the appropriate format.
2477 2004-04-22 Randolph Chung <tausq@debian.org>
2479 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
2480 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
2481 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
2482 (hppa_sign_extend): Add prototype.
2483 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
2484 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
2485 (sign_extend): Rename with hppa_ prefix and make non-static. Other
2486 hppa targets will also use these functions.
2487 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
2488 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
2489 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
2490 (hppa_gdbarch_init): Remove gdbarch setting of
2491 skip_trampoline_code, in_solib_call_trampoline and
2492 in_solib_return_trampoline.
2493 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2494 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
2495 hppa_in_solib_call_trampoline.
2496 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
2497 Moved from hppa-tdep.c.
2498 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
2499 in_solib_call_trampoline and in_solib_return_trampoline.
2501 2004-04-22 Randolph Chung <tausq@debian.org>
2503 * hppa-tdep.c (hppa_debug): New variable.
2504 (find_unwind_entry, hppa_frame_cache): Add debug output.
2505 (_initialize_hppa_tdep): Add command to set debug flag.
2507 2004-04-22 Andrew Cagney <cagney@redhat.com>
2509 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
2511 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
2512 signal trampoline unwinder.
2513 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
2515 2004-04-22 Mark Kettenis <kettenis@gnu.org>
2517 Add OpenBSD/powerpc support.
2518 * NEWS (New native configurations): Mention OpenBSD/powerpc.
2519 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
2520 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
2521 (ppc_collect_fpregset): New prototypes.
2522 * ppcobsd-nat.c: New file.
2523 * ppcobsd-tdep.c: New file.
2524 * ppcobsd-tdep.h: New file.
2525 * rs6000-tdep.c: Include "regset.h".
2526 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
2527 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
2529 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
2530 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
2531 (rs6000-tdep.o): Update dependencies.
2532 * configure.host: Add powerpc-*-openbsd.
2533 * configure.tgt: Add powerpc-*-openbsd.
2534 * config/powerpc/obsd.mh: New file.
2535 * config/powerpc/nm-obsd.h: New file.
2536 * config/powerpc/obsd.mt: New file.
2538 2004-04-22 Andrew Cagney <cagney@redhat.com>
2540 * frame.h (show_frame_info): Delete declaration.
2542 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
2543 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
2544 * m32r-tdep.c (m32r_frame_this_id): Ditto.
2545 * frv-tdep.c (frv_frame_this_id): Ditto.
2546 * avr-tdep.c (avr_frame_this_id): Ditto.
2548 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
2550 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
2552 2004-04-22 Jim Blandy <jimb@redhat.com>
2554 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
2555 register number zero.
2557 2004-04-21 Michael Snyder <msnyder@redhat.com>
2559 * mips-tdep.c (heuristic_proc_start):
2560 Warning() already prefixes "Warning: ".
2562 2004-04-21 Andrew Cagney <cagney@redhat.com>
2564 * annotate.h (deprecated_annotate_starting_hook)
2565 (deprecated_annotate_stopped_hook)
2566 (deprecated_annotate_exited_hook)
2567 (deprecated_annotate_signal_hook)
2568 (deprecated_annotate_signalled_hook): Deprecate.
2569 * tracepoint.h (deprecated_create_tracepoint_hook)
2570 (deprecated_delete_tracepoint_hook)
2571 (deprecated_modify_tracepoint_hook)
2572 (deprecated_trace_find_hook)
2573 (deprecated_trace_start_stop_hook): Deprecate.
2574 * target.h (deprecated_target_new_objfile_hook): Deprecate.
2575 * remote.h (deprecated_target_resume_hook)
2576 (deprecated_target_wait_loop_hook): Deprecate.
2577 * gdbcore.h (deprecated_exec_file_display_hook)
2578 (deprecated_file_changed_hook): Deprecate.
2579 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
2580 * defs.h (deprecated_modify_breakpoint_hook)
2581 (deprecated_command_loop_hook, deprecated_show_load_progress)
2582 (deprecated_print_frame_info_listing_hook)
2583 (deprecated_query_hook, deprecated_warning_hook)
2584 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
2585 (deprecated_delete_breakpoint_hook)
2586 (deprecated_interactive_hook, deprecated_registers_changed_hook)
2587 (deprecated_readline_begin_hook, deprecated_readline_hook)
2588 (deprecated_readline_end_hook, deprecated_register_changed_hook)
2589 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
2590 (deprecated_context_hook, deprecated_target_wait_hook)
2591 (deprecated_attach_hook, deprecated_detach_hook)
2592 (deprecated_call_command_hook, deprecated_set_hook)
2593 (deprecated_error_hook, deprecated_error_begin_hook)
2594 (deprecated_ui_load_progress_hook): Deprecate.
2595 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
2596 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
2597 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
2598 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
2599 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
2600 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
2601 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
2602 * annotate.c, aix-thread.c: Update.
2604 2004-04-21 Andrew Cagney <cagney@redhat.com>
2606 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
2607 * vaxnbsd-tdep.c: Include "gdb_string.h".
2609 * symfile.c (symbol_file_add_from_memory): #if 0 function.
2610 (add_symbol_file_from_memory_command): #if 0 function body, call
2613 2004-04-21 Andrew Cagney <cagney@redhat.com>
2615 * gdbcore.h: Update copyright.
2616 (deprecated_add_core_fns): Rename add_core_fns.
2617 * win32-nat.c (_initialize_core_win32): Update.
2618 * sun3-nat.c (_initialize_core_sun3): Update.
2619 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
2620 * rs6000-nat.c (_initialize_core_rs6000): Update.
2621 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
2622 * nto-tdep.c (_initialize_nto_tdep): Update.
2623 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
2624 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
2625 * mips-nat.c (_initialize_core_mips): Update.
2626 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
2627 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
2628 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
2629 * lynx-nat.c (_initialize_core_lynx): Update.
2630 * irix5-nat.c (_initialize_core_irix5): Update.
2631 * i386-interix-nat.c (_initialize_core_interix): Update.
2632 * cris-tdep.c (_initialize_cris_tdep): Update.
2633 * corelow.c (deprecated_add_core_fns): Update.
2634 * core-regset.c (_initialize_core_regset): Update.
2635 * core-aout.c (_initialize_core_aout): Update.
2636 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
2637 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
2638 * alpha-nat.c (_initialize_core_alpha): Update.
2640 2004-04-21 Jim Blandy <jimb@redhat.com>
2642 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
2644 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
2646 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
2648 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
2649 (read_attribute_value): Update calls to dwarf_alloc_block.
2650 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
2652 (psymtab_to_symtab_1): Likewise. Clean up using
2653 free_stack_comp_unit.
2654 (add_to_cu_func_list): Use the comp_unit_obstack.
2656 2004-04-19 Joel Brobecker <brobecker@gnat.com>
2658 * dwarf2read.c (dwarf2_flag_true_p): New function.
2659 (die_is_declaration): Use the function above. Add some comments.
2661 2004-04-19 Mark Kettenis <kettenis@gnu.org>
2663 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
2664 architecture when registering sparcnbsd_core_osabi_sniffer.
2667 2004-04-18 Mark Kettenis <kettenis@gnu.org>
2669 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
2672 Based on a patch from Brian Ford <ford@vss.fsi.com>:
2673 * i386-tdep.c: Correct register numbering scheme comments
2675 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
2676 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
2677 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
2678 (i386_gdb_arch_init): Likewise.
2680 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
2681 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
2684 * m68k-tdep.h: Tweak comments.
2685 * m68k-tdep.c: Tweak comment.
2687 2004-04-17 Randolph Chung <tausq@debian.org>
2689 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
2690 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
2691 (hppa_hpux_som_init_abi): Set is_elf to 0.
2692 (hppa_hpux_elf_init_abi): Set is_elf to 1.
2693 * hppa-tdep.c (low_text_segment_address): Remove global.
2694 (record_text_segment_lowaddr): Pass in low address as parameter. Use
2695 section offset to calculate segment address.
2696 (internalize_unwinds): Define low_text_segment_address as local and
2697 pass to record_text_segment_lowaddr for ELF targets.
2698 (hppa_gdbarch_init): Zero fill tdep structure.
2699 (hppa_dump_tdep): Print tdep structure.
2700 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
2702 2004-04-17 Randolph Chung <tausq@debian.org>
2704 * hppa-tdep.c (hppa_pseudo_register_read): Define.
2705 (hppa_gdbarch_init): Set pseudo_register_read.
2706 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
2707 * regcache.c (supply_register): Remove check for
2708 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
2710 2004-04-17 Randolph Chung <tausq@debian.org>
2712 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
2713 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
2714 (hpread_adjust_stack_address): Move to hpread.c.
2715 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
2716 obj_private_struct): Move from tm-hppa.h.
2717 * hpread.c (hppa-tdep.h): Include.
2718 (hpread_adjust_stack_address): Move from hppa-tdep.c.
2719 (hpread_read_function_type, hpread_read_doc_function_type)
2720 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
2722 * pa64solib.c (hppa-tdep.h): Include.
2723 * somsolib.c (hppa-tdep.h): Include.
2724 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
2725 inferior_status): Remove unused forward declarations.
2726 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
2727 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
2728 obj_private_struct): Move to hppa-tdep.h.
2729 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
2731 2004-04-17 Randolph Chung <tausq@debian.org>
2733 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
2734 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
2735 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
2736 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
2737 Remove forward declaration and make static.
2738 (hppa_reg_struct_has_addr): Remove.
2740 2004-04-16 Joel Brobecker <brobecker@gnat.com>
2742 * observer.sh: Move comments in sed command to first column.
2744 2004-04-16 Jason Molenda (jmolenda@apple.com)
2746 * frame.c: Minor typeo corrections in comments.
2748 2004-04-16 Joel Brobecker <brobecker@gnat.com>
2750 * observer.c (observer_test_first_notification_function): Update
2752 (observer_test_second_notification_function): Likewise.
2753 (observer_test_third_notification_function): Likewise.
2755 2004-04-16 Mark Kettenis <kettenis@gnu.org>
2757 From Brian Ford <ford@vss.fsi.com>:
2758 * i386-tdep.c (i386_coff_init_abi): New function.
2759 * i386-tdep.h (i386_coff_init_abi): New prototype.
2760 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
2761 register number translation functions for DWARF and DWARF 2.
2763 2004-04-16 Joel Brobecker <brobecker@gnat.com>
2765 * dwarf2read.c: Back out my previous change, it was incorrect.
2767 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
2769 * dwarf2read.c: Include "hashtab.h".
2770 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
2772 (struct partial_die_info): Add comments. Use bitfields to reduce
2773 memory footprint. Add scope, scope_set, has_specification,
2774 spec_offset, die_parent, die_child, and die_sibling.
2775 (peek_die_abbrev): Add prototype.
2776 (partial_read_comp_unit_head): New function, broken out from
2777 dwarf2_build_psymtabs_hard.
2778 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
2779 Use partial_read_comp_unit_head. Initialize the CU and
2780 comp_unit_obstack. Update calls to read_partial_die and
2781 scan_partial_symbols. Use free_stack_comp_unit and
2783 (scan_partial_symbols): Change PDI to a pointer. Use the child and
2784 sibling pointers to walk partial DIEs. Call fixup_partial_die.
2785 Update calls to helper functions. Remove NAMESPACE argument.
2787 (partial_die_parent_scope, partial_die_full_name): New functions.
2788 (add_partial_symbol): Remove namespace argument. Update call to
2789 pdi_needs_namespace. Use partial_die_full_name. Handle
2790 DW_TAG_namespace. Check has_namespace_info flag.
2791 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
2792 tag. Handle namespaces.
2793 (add_partial_namespace, add_partial_enumeration): Simplify.
2794 (guess_structure_name): New function, derived from
2795 add_partial_structure.
2796 (add_partial_structure): Remove.
2797 (determine_class_name): Update comment.
2798 (dwarf2_read_abbrevs): Set has_namespace_info flag.
2799 (is_type_tag_for_partial, load_partial_dies): New functions.
2800 (read_partial_die): Pass abbrev and abbrev_len as arguments.
2801 Record specifications instead of following them immediately.
2802 (find_partial_die_in_comp_unit, find_partial_die)
2803 (fixup_partial_die, free_stack_comp_unit)
2804 (hashtab_obstack_allocate, dummy_obstack_deallocate)
2805 (partial_die_hash, partial_die_eq): New functions.
2806 * Makefile.in (hashtab_h): Define.
2807 (dwarf2read.o): Update dependencies.
2808 (observer_inc, observer_h): Move to the correct section.
2810 2004-04-15 Joel Brobecker <brobecker@gnat.com>
2812 * dwarf2read.c (dwarf2_attribute_true_p): New function.
2813 (die_is_declaration): Use the function above. Add comment.
2815 2004-04-15 Joel Brobecker <brobecker@gnat.com>
2817 * dwarf2read.c (read_structure_scope): Identify stub types
2818 using die_is_declaration() only.
2820 2004-04-15 Roland McGrath <roland@redhat.com>
2822 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
2823 argument instead of NAME.
2824 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
2825 in call to symbol_file_add_with_addrs_or_offsets.
2826 (build_addr_info): New function, helper for ...
2827 (symbol_file_add_from_memory): New function.
2828 (add_symbol_file_from_memory_command): New function using that.
2829 (_initialize_symfile): Register it for add-symbol-file-from-memory.
2830 (pre_add_symbol_hook): Add const to argument type.
2831 * symfile.h (symbol_file_add_from_memory): Declare it.
2833 2004-04-15 Mark Kettenis <kettenis@gnu.org>
2835 * NEWS (New native configurations): Mention OpenBSD/vax.
2836 * configure.host: Add vax-*-openbsd*.
2837 * config/vax/obsd.mh: New file.
2838 * config/vax/nm-obsd.h: New file.
2840 * vax-tdep.c: Include "regset.h".
2841 (vax_supply_gregset): New function.
2842 (vax_gregset): New variable.
2843 (vax_regset_from_core_section): New function.
2844 (vax_gdbarch_init): Set regset_from_core_section.
2845 * Makefile.in (vax-tdep.o): Update dependencies.
2847 2004-04-15 Andrew Cagney <cagney@redhat.com>
2849 * observer.c (normal_stop_subject, observer_notify_normal_stop)
2850 (observer_normal_stop_notification_stub)
2851 (observer_attach_normal_stop, observer_detach_normal_stop):
2852 Delete, replaced by #include "observer.inc".
2853 * infrun.c (normal_stop): Pass "stop_bpstat" to
2854 observer_notify_normal_stop.
2855 * Makefile.in (observer_inc): Define.
2856 (observer.o): Update dependencies.
2857 (observer.h, observer.inc): New rules.
2858 * observer.h: Delete file.
2859 * observer.sh: New file.
2861 2004-04-15 Mark Kettenis <kettenis@gnu.org>
2863 * vax-tdep.c (vax_frame_cache): Fix typo.
2865 2004-04-14 Mark Kettenis <kettenis@gnu.org>
2867 * NEWS (New native configurations): Mention NetBSD/vax.
2868 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
2869 * config/vax/nbsdelf.mh: New file.
2870 * config/vax/nbsdaout.mh: New file.
2871 * config/vax/nm-nbsd.h: New file.
2872 * config/vax/nm-nbsdaout.h: New file.
2874 * vaxnbsd-tdep.c: New file.
2875 * Makefile.in (vaxnbsd-tdep.o): New dependency.
2876 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
2877 * config/vax/nbsd.mt: New file.
2878 * config/vax/tm-nbsd.h: New file.
2880 * Makefile.in (vaxbsd-nat.o): New dependency.
2882 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
2883 * vax-tdep.c (vax_store_arguments): Remove struct_return and
2884 struct_addr arguments. Don't push return value address.
2885 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
2886 arguments to vax_store_arguments. Store return value address in
2888 (vax_store_struct_return, vax_extract_return_value)
2889 (vax_store_return_value): Remove functions.
2890 (vax_return_value): New function.
2891 (vax_gdbarch_init): Set return value. Don't set
2892 deprecated_store_struct_return, deprecated_extract_struct_return
2893 and deprecated_store_return_value.
2895 2004-04-14 Andreas Schwab <schwab@suse.de>
2897 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
2899 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
2901 2004-04-14 Mark Kettenis <kettenis@gnu.org>
2903 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
2904 (vax_unwind_dummy_id): New functions.
2905 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
2906 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
2908 (vax_fix_call_dummy): Remove function.
2909 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
2910 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
2911 call_dummy_location, deprecated_call_dummy_words,
2912 deprecated_sizeof_call_dummy_words,
2913 deprecated_call_dummy_breakpoint_offset,
2914 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
2915 and deprecated_dummy_write_sp.
2917 2004-04-13 David Carlton <carlton@kealia.com>
2919 * MAINTAINERS: Move myself to "paper trail" section.
2921 2004-04-12 Mark Kettenis <kettenis@gnu.org>
2923 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
2925 (vax_frame_init_saved_regs): Remove function.
2926 (vax_sigtramp_saved_pc): Remove function.
2927 (vax_frame_saved_pc): Remove function.
2928 (vax_frame_args_address): Remove function.
2929 (vax_frame_num_args): Rewrite.
2930 (vax_frame_chain): Remove function.
2931 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
2933 (vax_pop_frame): Likewise.
2934 (vax_saved_pc_after_call): Remove function.
2935 (struct vax_frame_cache): New structure.
2936 (vax_frame_cache): New function.
2937 (vax_frame_this_id): New function.
2938 (vax_frame_prev_register): New function.
2939 (vax_frame_unwind): New variable.
2940 (vax_frame_sniffer): New function.
2941 (vax_frame_base_address): New function.
2942 (vax_frame_args_address): New function.
2943 (vax_frame_base): New variable.
2944 (vax_unwind_pc): New function.
2945 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
2946 deprecated_fp_regnum, deprecated_saved_pc_after_call,
2947 deprecated_frame_chain, deprecated_frame_saved_pc,
2948 deprecated_frame_args_address and
2949 deprecated_frame_init_saved_regs.
2950 * Makefile.in (vax-tdep.o): Update dependencies.
2952 * vaxbsd-nat.c: New file.
2954 * vax-tdep.h: Update copyright year. Adjust comments.
2955 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
2956 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
2957 (vax_regnum): New enum. Replacing...
2958 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
2959 (VAX_PS_REGNUM): ... these removed macros.
2960 * vax-tdep.c (vax_register_name): Remove prototype.
2961 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
2962 (vax_register_byte, vax_register_raw_size,
2963 vax_register_virtual_size, vax_register_virtual_type): Remove
2965 (vax_register_type): New function.
2966 (vax_breakpoint_from_pc): Reorganize.
2967 (vax_gdbarch_init): Set register_type. Don't set
2968 deprecated_register_size, deprecated_register_bytes,
2969 deprecated_register_byte, deprecated_register_raw_size,
2970 deprecated_max_register_raw_size,
2971 deprecated_register_virtual_size,
2972 deprecated_max_register_virtual_size and
2973 deprecated_register_virtual_type. Add comment on stack direction.
2975 2004-04-11 Mark Kettenis <kettenis@gnu.org>
2977 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
2978 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
2979 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
2981 2004-04-10 Randolph Chung <tausq@debian.org>
2983 * MAINTAINERS (write after approval): Add myself.
2985 2004-04-07 Randolph Chung <tausq@debian.org>
2987 * hppa-tdep.c (hppa_inner_than): Remove.
2988 (is_pa_2): Remove unused static variable.
2989 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
2991 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
2993 * language.h (language_defn): Add new la_post_parser field.
2994 * parser-defs.h (null_post_parser): New declaration (default for
2997 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
2998 insert call to that function.
2999 (parse_exp_in_context): New function, including code formerly in
3000 parse_exp_1. Calls language-dependent post-parser after
3002 (parse_expression_in_context): New exported function.
3003 (null_post_parser): New definition.
3004 * expression.h (parse_expression_in_context): Add declaration.
3006 * p-lang.c (pascal_language_defn): Add trivial post-parser.
3007 * c-lang.c (c_language_defn): Ditto.
3008 (cplus_language_defn): Ditto.
3009 (asm_language_defn): Ditto.
3010 (minimal_language_defn): Ditto.
3011 * f-lang.c (f_language_defn): Ditto.
3012 * jv-lang.c (java_language_defn): Ditto.
3013 * language.c (unknown_language_defn): Ditto.
3014 (auto_language_defn): Ditto.
3015 (local_language_defn): Ditto.
3016 * m2-lang.c (m2_language_defn): Ditto.
3017 * scm-lang.c (scm_language_defn): Ditto.
3018 * obj-lang.c (objc_language_defn): Ditto.
3020 2004-04-10 Mark Kettenis <kettenis@gnu.org>
3022 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
3023 (amd64nbsd_mcontext_addr): New function.
3024 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
3025 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
3026 with amd64nbsd_r_reg_offset, instead of building it on the fly.
3028 * corelow.c (core_xfer_partial): Fix coding standards violation.
3029 Add support for TARGET_OBJECT_WCOOKIE.
3031 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
3032 deprecated_pc_in_sigtramp.
3033 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
3034 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
3035 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
3036 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
3037 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
3038 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
3039 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
3041 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
3042 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
3045 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
3046 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
3047 (amd64_collect_fxsave): Likewise.
3049 * i386-sol2-tdep.c: Include "gdb_string.h".
3050 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
3052 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
3054 2004-04-10 Mark Kettenis <kettenis@gnu.org>
3056 * i386-sol2-tdep.c: Include "solib-svr4.h".
3057 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
3058 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
3059 * config/i386/tm-i386sol2.h: Include :solib.h".
3060 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
3061 solib-svr4.o and solib-legacy.o.
3062 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
3065 2004-04-09 Mark Kettenis <kettenis@gnu.org>
3067 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
3068 whether a register is supplied by PTRACE_GETFPREGS.
3069 (store_inferior_registers): Likewise.
3070 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
3071 whether a register is supplied by PT_GETFPREGS.
3072 (store_inferior_registers): Likewise.
3074 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
3075 * config/i386/linux64.mt (TDEPFILES): Likewise.
3077 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
3079 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
3080 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
3081 the program counter is in the range specified by `struct
3083 * amd64-linux-tdep.c: Include "symtab.h".
3084 (amd64_linux_pc_in_sigtramp): Remove function.
3085 (amd64_linux_sigtramp_p): New function.
3086 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
3087 deprecated_pc_in_sigtramp.
3088 * amd64nbsd-tdep.c: Include "symtab.h".
3089 (amd64nbsd_sigtramp_p): New function.
3090 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
3091 deprecated_pc_in_sigtramp.
3092 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
3094 (amd64obsd_pc_in_sigtramp): Remove function.
3095 (amd64obsd_sigtramp_p): New function.
3096 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
3097 deprecated_pc_in_sigtramp.
3098 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
3099 (i386bsd_pc_ins_sigtramp): Remove prototype.
3100 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
3101 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
3102 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
3103 the program counter is in the range specified by `struct
3105 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
3106 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
3107 (i386_go32_pc_in_sigtramp): Remove function.
3108 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
3109 Initialize TDEP->sigtramp_p.
3110 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
3111 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
3112 deprecated_pc_in_sigtramp.
3113 * i386-linux-tdep.c: Adjust comments.
3114 (i386_linux_pc_in_sigtramp): Remove function.
3115 (i386_linux_sigtramp_p): New function.
3116 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
3117 deprecated_pc_in_sigtramp.
3118 * i386-nto-tdep.c: Update copyright year.
3119 (i386nto_pc_in_sigtramp): Remove function.
3120 (i386nto_sigtramp_p): New function.
3121 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
3123 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
3124 deprecated_pc_in_sigtramp.
3125 * i386-sol2-tdep.c: Update copyright year.
3126 (i386_sol2_pc_in_sigtramp): Remove function.
3127 (i386_sol2_sigtramp_p): New function.
3128 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
3129 deprecated_pc_in_sigtramp.
3130 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
3131 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
3132 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
3133 deprecated_sigtramp_start and deprecated_sigtramp_end.
3134 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
3135 (i386nbsd_pc_in_sigtramp): Remove function.
3136 (i386nbsd_sigtramp_p): New function.
3137 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
3138 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
3139 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
3140 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
3141 (i386obsd_pc_in_sigtramp): Remove function.
3142 (i386obsd_sigtramp_p): New function.
3143 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
3145 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
3146 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
3148 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
3149 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
3152 * config/i386/i386aout.mt: Remove file.
3154 * configure.tgt: Remove i[34567]86-*-go32*,
3155 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
3156 and i[34567]86-*-isc*. Set gdb_target to i386 for
3157 i[34567]86-*-netware* and i[34567]86-*-*.
3158 * config/i386/i386.mt: New file.
3159 * config/i386/embed.mt: Remove file.
3160 * config/i386/go32.mt: Remove file.
3161 * config/i386/i386nw.mt: Remove file.
3162 * config/i386/i386v.mt: Remove file.
3163 * config/i386/tm-go32.h: Remove file.
3165 * tui/tui-hooks.c: Include "readline/readline.h" after
3166 "gdb_curses.h" instead of before.
3167 * tui/tui-io.c: Likewise.
3169 * tui/tui.c: Fix typo in comment.
3171 * sparc64-tdep.c (sparc_address_from_register): Remove function.
3173 2004-04-08 Andrew Cagney <cagney@redhat.com>
3175 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
3176 (deprecated_exception_support_initialized): Declare.
3177 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
3178 (initialize_hp_cxx_exception_support)
3179 (child_enable_exception_callback): Update.
3180 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
3181 (deprecated_exception_support_initialized): Rename
3182 deprecated_exception_catchpoints_are_fragile and
3183 deprecated_exception_support_initialized.
3184 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
3186 * symtab.c (deprecated_hp_som_som_object_present): Rename
3187 hp_som_som_object_present.
3188 * symtab.h (deprecated_hp_som_som_object_present): Declare.
3189 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
3190 Update. Delete extern declaration.
3191 * valops.c (hp_som_som_object_present): Ditto.
3192 * parse.c (deprecated_hp_som_som_object_present)
3193 (parse_nested_classes_for_hpacc): Ditto.
3194 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
3195 * hppa-hpux-tdep.c (hp_som_som_object_present)
3196 (initialize_hp_cxx_exception_support): Ditto.
3197 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
3198 * cp-valprint.c (hp_som_som_object_present)
3199 (cp_print_class_method): Ditto.
3200 * c-typeprint.c (hp_som_som_object_present):
3201 (c_type_print_base): Ditto.
3202 * c-exp.y (hp_som_som_object_present): Ditto.
3204 2004-04-08 Andrew Cagney <cagney@redhat.com>
3206 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
3207 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
3208 (frame_unwind_find_by_frame): Re-implement the unwind code so
3209 that it can both prepend and append sniffers. Replace
3210 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
3211 * tramp-frame.c (tramp_frame_append): Use
3212 frame_unwind_prepend_unwinder.
3213 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
3214 frame_unwind_register_unwinder.
3215 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
3217 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
3218 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
3219 (mips_linux_init_abi): Update.
3221 2004-04-08 Kevin Buettner <kevinb@redhat.com>
3223 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
3224 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
3227 2004-04-07 Kevin Buettner <kevinb@redhat.com>
3229 * ia64-tdep.c (elf.h): Don't include.
3230 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
3232 2004-04-07 Jason Molenda (jmolenda@apple.com)
3234 * frame.h: Typeo corrections in comments.
3236 2004-04-07 Jim Blandy <jimb@redhat.com>
3238 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
3241 2004-04-07 Mark Kettenis <kettenis@gnu.org>
3243 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
3244 * config/sparc/linux64.mt (TDEPFILES): Likewise.
3245 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3246 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
3248 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
3250 * config/sparc/tm-sol2.h: Update copyright year. Include
3253 * sparc-sol2-tdep.c: Update copyright year. Include
3255 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
3256 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
3257 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
3258 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
3261 2004-04-06 Andrew Cagney <cagney@redhat.com>
3263 * infttrace.c: Include "infttrace.h".
3264 * infttrace.h: Include "target.h".
3265 * Makefile.in (infttrace_h): Update.
3266 (infttrace.o): Update.
3268 2004-04-06 Andrew Cagney <cagney@redhat.com>
3270 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
3271 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
3272 move extern declarations from here ...
3273 * infttrace.h: ... to here.
3274 * Makefile.in (hppah-nat.o): Update dependencies.
3276 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
3277 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
3278 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
3279 (hppa_breakpoint_from_pc): Delete.
3281 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
3283 2004-04-05 Andrew Cagney <cagney@redhat.com>
3285 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
3286 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
3289 2004-04-06 Randolph Chung <tausq@debian.org>
3291 Committed by Andrew Cagney (mechanical change).
3292 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
3293 exception_catchpoints_are_fragile, find_stub_with_shl_get,
3294 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
3295 child_enable_exception_callback, current_ex_event,
3296 null_symtab_and_line, child_get_current_exception_event,
3297 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
3298 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
3299 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
3300 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
3301 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
3302 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
3303 Move hpux-specific definitions ...
3304 * hppa-hpux-tdep.c: ... to here.
3306 2004-04-05 Andrew Cagney <cagney@redhat.com>
3308 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
3309 skip_prologue_using_sal.
3311 2004-04-05 Andrew Cagney <cagney@redhat.com>
3313 * config/i386/tm-i386.h: Delete file.
3314 * config/i386/tm-vxworks.h: Update copyright, do not include
3316 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
3317 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
3318 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
3319 * config/i386/ncr3000.mt (TM_FILE): Delete.
3320 * config/i386/interix.mt (TM_FILE): Delete.
3321 * config/i386/i386v.mt (TM_FILE): Delete.
3322 * config/i386/i386nw.mt (TM_FILE): Delete.
3323 * config/i386/i386gnu.mt (TM_FILE): Delete.
3324 * config/i386/i386aout.mt (TM_FILE): Delete.
3325 * config/i386/embed.mt (TM_FILE): Delete.
3327 2004-04-05 Kevin Buettner <kevinb@redhat.com>
3329 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
3330 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
3331 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
3332 (accg7_regnum): New constants.
3333 (last_spr_regnum, last_pseudo_regnum): Update.
3334 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
3335 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
3336 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
3338 (frv_register_sim_regno): Update spr_map[].
3340 2004-04-04 Andrew Cagney <cagney@redhat.com>
3342 * config/mips/xm-riscos.h: Delete.
3343 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
3344 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
3345 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
3346 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
3347 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
3348 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
3349 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
3350 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
3351 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
3352 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
3353 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
3354 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
3355 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
3356 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
3357 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
3358 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
3359 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
3360 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
3361 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
3362 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
3363 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
3364 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
3365 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
3366 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
3367 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
3368 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
3370 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
3371 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
3372 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
3373 * configure.host: Remove m680[01]0-sun-sunos3*,
3374 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
3375 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
3376 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
3377 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
3379 * NEWS: Mention removed systems.
3381 2004-04-04 Andrew Cagney <cagney@redhat.com>
3383 GDB 6.1 release created from 6.1 branch.
3385 2004-04-04 Andrew Cagney <cagney@redhat.com>
3387 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
3388 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3389 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
3391 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
3392 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
3393 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
3395 2004-04-03 Jim Blandy <jimb@redhat.com>
3397 * MAINTAINERS: Chris Faylor has changed employers; add him to
3398 "paper trail" section, and update his E-mail address.
3400 2004-04-03 Andrew Cagney <cagney@redhat.com>
3402 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
3403 generic dummy frames.
3404 * dummy-frame.c: Update copyright.
3405 (dummy_frame_sniffer): Delete check for generic dummy frames.
3407 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
3408 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
3409 (REG_PARM_STACK_SPACE): Delete.
3410 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
3411 Inline reference to REG_PARM_STACK_SPACE.
3413 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
3414 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
3415 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3416 (FRAME_BASE_BEFORE_SIGTRAMP)
3417 (hppa32_hpux_frame_base_before_sigtramp)
3418 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
3419 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
3420 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
3421 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
3422 (FRAME_BASE_BEFORE_SIGTRAMP)
3423 (hppa64_hpux_frame_base_before_sigtramp)
3424 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
3426 2004-04-03 Andrew Cagney <cagney@redhat.com>
3428 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
3430 2004-04-02 Andrew Cagney <cagney@redhat.com>
3432 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
3433 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
3434 * dummy-frame.h: Delete out-of-date comments.
3435 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
3436 * gdbarch.h, gdbarch.c: Re-generate.
3438 2004-04-02 Joel Brobecker <brobecker@gnat.com>
3440 Committed by Andrew Cagney <cagney@redhat.com>.
3441 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
3442 into account an instruction saving a register if we have already
3443 seen an earlier instruction saving that same register.
3445 2004-04-02 Andrew Cagney <cagney@redhat.com>
3447 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
3448 * gdbarch.h, gdbarch.c: Re-generate.
3449 * frame.c (legacy_get_prev_frame): Delete references to
3450 DEPRECATED_INIT_FRAME_PC_FIRST.
3452 * infrun.c (pc_in_sigtramp): Delete function.
3453 (check_sigtramp2): Inline call to pc_in_sigtramp, use
3456 2004-04-02 Andrew Cagney <cagney@redhat.com>
3458 * infrun.c (handle_step_into_function): Delete code conditional on
3460 (handle_inferior_event, step_over_function): Ditto.
3462 2004-04-02 Andrew Cagney <cagney@redhat.com>
3464 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
3465 "previous frame inner to this frame" test.
3467 2004-04-02 Andrew Cagney <cagney@redhat.com>
3469 * frame.c (safe_frame_unwind_memory): New function.
3470 * frame.h (safe_frame_unwind_memory): Declare. Update description
3472 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
3473 "next_frame". Use safe_frame_unwind_memory.
3474 (tramp_frame_sniffer): Update call to tramp_frame_start.
3476 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
3478 * dwarf2read.c (dwarf2_objfile_data_key): New.
3479 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
3480 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
3481 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
3482 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
3483 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
3484 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
3485 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
3487 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
3488 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
3489 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
3490 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
3491 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
3492 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
3494 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
3496 (dwarf2_locate_sections, dwarf2_build_psymtabs)
3497 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
3498 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
3499 (read_partial_die, read_full_die, read_indirect_string)
3500 (dwarf_decode_line_header, dwarf_decode_macros)
3501 (dwarf2_symbol_mark_computed): Remove use of removed macros.
3502 Update uses of removed variables.
3503 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
3505 (_initialize_dwarf2_read): New function.
3506 * symfile.h (dwarf2_has_info): Update prototype.
3507 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
3508 * elfread.c (elf_symfile_read): Likewise.
3510 2004-04-01 Jim Blandy <jimb@redhat.com>
3512 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
3513 function for register numbers on all the rs6000-derived targets.
3514 (rs6000_gdbarch_init): Don't register a separate
3515 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
3516 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
3519 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
3522 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3524 * valarith.c: Update copyright notice.
3525 (value_add): Handle range types.
3527 (value_equal): Ditto.
3528 (value_less): Ditto.
3530 (value_complement): Ditto.
3531 (value_binop): Simplify slightly by using is_integral_type and
3532 eliminiating unnecessary COERCE_ENUMs.
3534 2004-03-31 Andrew Cagney <cagney@redhat.com>
3536 * frame.h (frame_unwind_id): Declare.
3537 * frame.c (frame_unwind_id): New function.
3538 (get_prev_frame_1): New function.
3539 (frame_debug_got_null_frame): New function.
3540 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
3541 code proper to prev_frame, update description.
3542 * infrun.c (step_over_function): Use frame_unwind_id.
3544 2004-04-31 J. Brobecker <brobecker@gnat.com>
3546 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
3547 (hppa64_push_dummy_call): Likewise.
3549 2004-03-30 Jim Blandy <jimb@redhat.com>
3551 From Ulrich Weigand:
3552 * utils.c (query): Do not use a va_list variable multiple times.
3554 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
3556 * Makefile.in (linux_nat_h): Update dependencies.
3557 * configure.in: Check for <gnu/libc-version.h>.
3558 * configure: Regenerate.
3559 * config.in: Regenerate.
3560 * linux-nat.h: Include "target.h". Add waitstatus field to
3562 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
3563 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
3565 (lin_lwp_handle_extended): New function. Handle clone events.
3566 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
3568 (child_wait): Handle clone events.
3569 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
3570 * linux-nat.c (linux_enable_event_reporting): Turn on
3571 PTRACE_O_TRACECLONE.
3572 (linux_handle_extended_wait): Handle clone events.
3573 * thread-db.c: Include <gnu/libc-version.h>.
3574 (struct private_thread_info): Add dying flag.
3575 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
3577 (attach_thread): Update comments. Handle dying threads.
3578 (detach_thread): Set the dying flag.
3579 (check_event): Always call attach_thread.
3581 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
3583 * mips-tdep.c (mips_pdr_data): New.
3584 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
3585 (_initialize_mips_tdep): Initialize mips_pdr_data.
3587 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
3589 * minsyms.c (install_minimal_symbols): Move dropping leading
3590 char from linkage name from here...
3591 (prim_record_minimal_symbol_and_info): ...to here. Simplify
3592 test for "__gnu_compiled*" symbols.
3594 2004-03-28 Jim Blandy <jimb@redhat.com>
3596 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
3597 registers to temp register r0 and byte stores as prologue
3600 2004-03-28 Andrew Cagney <cagney@redhat.com>
3602 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
3605 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
3607 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
3608 and switch the layout to force a display of register window.
3610 2004-02-26 J. Brobecker <brobecker@gnat.com>
3612 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
3613 of the INTEGER class.
3615 2004-03-26 Jim Blandy <jimb@redhat.com>
3617 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
3618 bytes long on PPC GNU/Linux.
3620 2004-03-26 David Carlton <carlton@kealia.com>
3622 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
3624 2004-03-25 Andrew Cagney <cagney@redhat.com>
3626 * PROBLEMS: Add general section titles, remove references to
3629 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
3631 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
3633 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
3634 FP_REGISTER_VIRTUAL_SIZE.
3635 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
3636 of DEPRECATED_REGISTER_RAW_SIZE.
3637 (arm_register_type): Add gdbarch argument.
3638 (arm_register_raw_size, arm_register_virtual_size): Delete.
3639 (arm_register_byte, arm_extract_return_value)
3640 (arm_store_return_value, arm_get_longjmp_target): Update references
3641 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
3642 (arm_gdbarch_init): Likewise. Don't set
3643 deprecated_register_raw_size, deprecated_register_virtual_size,
3644 deprecated_max_register_raw_size,
3645 deprecated_max_register_virtual_size, or
3646 deprecated_max_register_virtual_type. Do set register_type.
3647 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
3648 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
3649 (FP_REGISTER_VIRTUAL_SIZE): Delete.
3650 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
3651 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
3652 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
3654 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
3655 (remote_rdp_store_register): Likewise.
3657 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
3659 * Makefile.in (mips-linux-tdep.o): Update dependencies.
3660 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
3661 to after osabi initialization.
3662 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
3663 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
3665 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
3666 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
3668 (mips_linux_init_abi): Append signal trampoline unwinders.
3670 2004-03-24 Andrew Cagney <cagney@redhat.com>
3672 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
3673 * tramp-frame.c: Include "gdb_assert.h".
3674 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
3676 (tramp_frame_append): Validate the tramp frame's instructions.
3677 * Makefile.in (tramp-frame.o): Update dependencies.
3679 2004-03-23 Andrew Cagney <cagney@redhat.com>
3681 * trad-frame.h (trad_frame_set_reg_addr): Declare.
3683 2004-03-23 Andrew Cagney <cagney@redhat.com>
3685 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
3686 Nasser as past testsuite/lib/ (and other) maintainers.
3688 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
3690 * infcmd.c (attach_command): Reread symbols if we already have
3693 2004-03-23 Andrew Cagney <cagney@redhat.com>
3695 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
3697 2004-03-23 Andrew Cagney <cagney@redhat.com>
3699 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
3700 * gdbarch.h, gdbarch.c: Re-generate.
3701 * i386obsd-tdep.c (i386obsd_init_abi): Update.
3702 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
3703 * i386bsd-tdep.c (i386bsd_init_abi): Update.
3704 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
3705 (DEPRECATED_SIGTRAMP_START): Update.
3706 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
3707 (DEPRECATED_SIGTRAMP_START): Update.
3708 * blockframe.c (find_pc_sect_partial_function): Update.
3709 * arch-utils.c (legacy_pc_in_sigtramp): Update.
3711 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
3713 * remote.c (remote_open_1): Reopen the exec file and reread symbols
3716 2004-03-23 Andrew Cagney <cagney@redhat.com>
3718 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
3719 predicate, deprecate.
3720 * gdbarch.h, gdbarch.c: Re-generate.
3721 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
3722 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
3723 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
3724 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
3725 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
3726 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
3727 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
3728 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
3729 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
3730 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
3731 * blockframe.c (find_pc_partial_function): Update.
3732 * breakpoint.c (bpstat_what): Update.
3733 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
3734 * frv-linux-tdep.c (frv_linux_init_abi): Update.
3735 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
3736 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
3737 * i386-interix-tdep.c (i386_interix_init_abi): Update.
3738 * i386-linux-tdep.c (i386_linux_init_abi): Update.
3739 * i386-nto-tdep.c (i386nto_init_abi): Update.
3740 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
3741 * i386-tdep.c (i386_sigtramp_frame_sniffer)
3742 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
3743 * i386bsd-tdep.c (i386bsd_init_abi): Update.
3744 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
3745 * i386obsd-tdep.c (i386obsd_init_abi): Update.
3746 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
3747 * infrun.c (pc_in_sigtramp): Update.
3748 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
3749 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
3750 * mips-tdep.c (mips_gdbarch_init): Update.
3751 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
3752 * ppc-linux-tdep.c: Update comment.
3753 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
3754 * shnbsd-tdep.c (shnbsd_init_abi): Update.
3755 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
3756 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
3757 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
3758 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
3759 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
3760 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
3761 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
3762 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
3764 2004-03-23 Andrew Cagney <cagney@redhat.com>
3766 * tramp-frame.h, tramp-frame.h: New files.
3767 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
3768 Update rules to include "tramp-frame.h" and "tramp-frame.c".
3770 * Makefile.in: Update all dependencies.
3772 2004-03-23 Andrew Cagney <cagney@redhat.com>
3774 * Makefile.in (trad_frame_h): Add $(frame_h).
3775 * trad-frame.h: Update copyright. Include "frame.h".
3776 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
3777 (trad_frame_set_id, trad_frame_get_id): Declare.
3778 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
3779 * trad-frame.c: Update copyright.
3780 (struct trad_frame_cache): Define.
3781 (trad_frame_cache_zalloc): New function.
3782 (trad_frame_set_id, trad_frame_get_id): New functions.
3783 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
3785 2004-03-22 Andrew Cagney <cagney@redhat.com>
3787 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
3788 s390_pltstub_unwind_cache.
3789 (s390_stub_frame_unwind_cache): Rename
3790 s390_pltstub_frame_unwind_cache.
3791 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
3792 (s390_stub_frame_prev_register): Rename
3793 s390_pltstub_frame_prev_register.
3794 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
3795 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
3797 From Ulrich Weigand:
3798 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
3799 pointer calls like PLT calls.
3801 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
3803 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
3804 PC rather than the partial function start address. Use the start
3805 address to sanity check the found PDR.
3807 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
3809 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
3810 linux_handle_extended_wait.
3812 2004-03-22 Andrew Cagney <cagney@redhat.com>
3814 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
3817 * frame.h (generic_pop_current_frame): Delete declaration.
3818 (deprecate_pop_dummy_frame): Deprecate
3819 generic_pop_dummy_frame.
3820 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
3821 (generic_pop_current_frame): Delete function.
3822 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
3823 generic_pop_current_frame.
3824 * v850-tdep.c (v850_pop_frame): Update.
3825 * mcore-tdep.c (mcore_pop_frame): Update.
3826 * sh64-tdep.c (sh64_pop_frame): Update.
3827 * h8300-tdep.c (h8300_pop_frame): Update.
3829 2004-03-22 Andrew Cagney <cagney@redhat.com>
3831 * frame.h (deprecated_pc_in_call_dummy): Rename
3832 generic_pc_in_call_dummy.
3833 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
3834 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
3835 generic_pc_in_call_dummy.
3836 (pc_in_dummy_frame): Make static.
3837 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
3838 * gdbarch.h, gdbarch.c: Re-generate.
3839 * dummy-frame.c (dummy_frame_sniffer): Simplify.
3840 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
3841 (legacy_get_prev_frame): Ditto.
3842 * inferior.h: Delete reference to generic_pc_in_call_dummy in
3845 2004-03-21 Andrew Cagney <cagney@redhat.com>
3847 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
3848 declaration and out-of-date comment.
3849 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3851 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
3852 deprecated_pc_in_call_dummy.
3854 * infrun.c (handle_inferior_event): For non legacy frames, use the
3855 frame ID and frame type to identify a signal trampoline. Update
3858 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
3860 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
3861 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
3863 2004-03-21 Andrew Cagney <cagney@redhat.com>
3865 * frame-unwind.h: Update copyright.
3866 (struct frame_data): Add opaque declaration.
3867 (frame_sniffer_ftype): Declare.
3868 (struct frame_unwind): Add "unwind_data" and "sniffer".
3869 (frame_unwind_register_unwinder): Declare.
3870 (frame_unwind_find_by_frame): Add parameter "this_cache".
3871 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
3872 (legacy_get_prev_frame, legacy_get_prev_frame)
3873 (get_frame_type): Pass the prologue_cache to
3874 frame_unwind_find_by_frame.
3875 * frame-unwind.c (struct frame_unwind_table_entry): Add field
3877 (frame_unwind_register_unwinder): New function.
3878 (frame_unwind_find_by_frame): Handle an unwind sniffer.
3880 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
3882 * bcache.c (print_percentage): Use floating point to avoid
3883 incorrect results when portion*100 overflows.
3885 2004-03-19 Kevin Buettner <kevinb@redhat.com>
3887 * ppc_tdep.h (ppc_linux_frame_saved_pc)
3888 (ppc_linux_init_extra_frame_info)
3889 (ppc_linux_frameless_function_invocation)
3890 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
3891 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
3892 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
3893 (rs6000_frame_chain): Delete declarations.
3894 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
3895 (ppc_linux_init_extra_frame_info)
3896 (ppc_linux_frameless_function_invocation)
3897 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
3898 (ppc_linux_init_abi): Remove registration of above deleted functions.
3899 * rs6000-tdep.c (rs6000_init_extra_frame_info)
3900 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
3901 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
3902 (rs6000_pop_frame, rs6000_frameless_function_invocation)
3903 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
3904 (rs6000_gdbarch_init): Remove registration of above deleted functions.
3905 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
3906 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
3907 frame management for all OSABIs.
3909 2004-03-19 Andrew Cagney <cagney@redhat.com>
3911 Committed by Kevin Buettner <kevinb@redhat.com>.
3913 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
3915 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
3916 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
3917 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
3918 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
3919 unwinders. #ifdef legacy frame code.
3920 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
3922 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
3923 (struct rs6000_frame_cache, rs6000_frame_cache)
3924 (rs6000_frame_this_id, rs6000_frame_prev_register)
3925 (rs6000_frame_sniffer, rs6000_frame_unwind)
3926 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
3927 (rs6000_frame_base): Implement a traditional frame unwinder.
3928 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
3931 2004-03-19 Kevin Buettner <kevinb@redhat.com>
3933 * breakpoint.c (adjust_breakpoint_address): Don't adjust
3934 breakpoint address for watchpoints or the catch eventpoints.
3935 Add new paramter ``bptype''. Adjust all callers.
3937 2004-03-19 Andrew Cagney <cagney@redhat.com>
3939 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
3941 * PROBLEMS: Delete note that ARM does not use frame code, problem
3944 2004-03-18 Andrew Cagney <cagney@redhat.com>
3946 * stack.c (return_command): Delete code wrapped in #ifdef
3947 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
3949 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
3951 2004-03-18 Andrew Cagney <cagney@redhat.com>
3953 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
3954 DEPRECATED_IN_SIGTRAMP.
3955 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3956 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
3957 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3958 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3959 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3960 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3961 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3962 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3963 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
3964 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
3966 2004-03-18 Andrew Cagney <cagney@redhat.com>
3968 * frame-base.c: Update copyright. Include "gdb_obstack.h".
3969 (struct frame_base_table_entry): Define.
3970 (struct frame_base_table): Re-implement as a linked list.
3971 (frame_base_init): Re-implement.
3972 (frame_base_table): Delete function.
3973 (append_predicate): Delete function.
3974 (frame_base_append_sniffer): Update.
3975 (frame_base_set_default): Update.
3976 (frame_base_find_by_frame): Update.
3977 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
3978 * Makefile.in (frame-base.o): Update dependencies.
3980 2004-03-17 Andrew Cagney <cagney@redhat.com>
3982 * frame.c (legacy_get_prev_frame): Pass correct frame to
3983 frame_unwind_find_by_frame.
3985 2004-03-17 David Carlton <carlton@kealia.com>
3987 * NEWS: Mention C++ nested types and namespaces
3989 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
3991 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
3992 and "Regressions since gdb 5.3.". Add known regressions since
3995 2004-03-16 David Carlton <carlton@kealia.com>
3997 * dwarf2read.c (process_structure_scope): Process children even
3998 when we're a declaration.
4000 2004-03-16 Andrew Cagney <cagney@redhat.com>
4002 * symtab.h (find_pc_sect_partial_function): Delete declaration.
4003 * blockframe.c (find_pc_partial_function)
4004 (find_pc_sect_partial_function): Merge into a single
4005 find_pc_partial_function.
4007 2004-03-16 Mark Kettenis <kettenis@gnu.org>
4009 * i386bsd-nat.c: s/regno/regnum/g.
4010 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
4012 (store_inferior_registers): Likewise.
4014 2004-03-16 Mark Kettenis <kettenis@gnu.org>
4016 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
4018 (store_inferior_registers): Call i387_collect_fsave and
4019 i387_collect_fxsave instead of i387_fill_fsave and
4022 2004-03-15 Andrew Cagney <cagney@redhat.com>
4024 * Makefile.in (frame-unwind.o): Update dependencies.
4025 * frame-unwind.c: Include "gdb_obstack.h".
4026 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
4028 (append_predicate): Delete function.
4029 (struct frame_unwind_table_entry): New structure.
4030 (struct frame_unwind_table): Replace "sniffer" with "head" and
4032 (frame_unwind_append_sniffer): Update.
4033 (frame_unwind_find_by_frame): Update.
4034 (_initialize_frame_unwind): Registe frame_unwind_init using
4035 gdbarch_data_register_pre_init.
4037 2004-03-15 Mark Kettenis <kettenis@gnu.org>
4039 * i386bsd-nat.c: Update copyright year.
4040 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
4041 define unconditionally.
4043 2004-03-15 Mark Kettenis <kettenis@gnu.org>
4045 * i387-tdep.h (i387_collect_fsave): New prototype.
4046 * i387-tdep.c (i387_collect_fsave): New function containing most
4047 of the code from i387_fill_fsave.
4048 (i387_fill_fsave): Call i387_collect_fsave.
4050 2004-03-15 Mark Kettenis <kettenis@gnu.org>
4052 * i386-linux-tdep.c: Update copyright year.
4053 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
4054 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
4055 svr4_ilp32_link_map_offsets instead of
4056 i386_linux_svr4_fetch_link_map_offsets.
4058 2004-03-15 David Carlton <carlton@kealia.com>
4060 Fix for PR c++/1553:
4061 * dwarf2read.c (read_structure_type): Determine type name by
4062 calling determine_class_name.
4063 (determine_class_name): New.
4064 (determine_prefix): Look at TYPE_TAG_NAME and call
4065 determine_class_name when appropriate.
4066 (determine_prefix_aux, class_name): Delete.
4067 (read_namespace): Set die->type.
4069 2004-03-15 Kevin Buettner <kevinb@redhat.com>
4071 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
4072 unused macro definition. The definition in target.h (or perhaps
4073 elsewhere) takes precedence.
4075 2004-03-15 Andrew Cagney <cagney@redhat.com>
4077 * ppc-tdep.h: Update copyright.
4078 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
4079 function signatures to match "regsets.h".
4080 * ppc-linux-tdep.c: Include "regset.h".
4081 (ELF_GREGSET_SIZE): Delete.
4082 (right_supply_register): New function.
4083 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
4084 using right_supply_register.
4085 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
4087 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
4088 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
4089 (_initialize_ppc_linux_tdep): Do not register
4090 ppc_linux_regset_core_fns.
4091 (ppc_linux_regset_from_core_section): Replace
4092 fetch_core_registers.
4093 (ppc_linux_regset_core_fns): Delete.
4094 * ppc-linux-nat.c: (right_fill_reg): New function.
4095 (supply_gregset): Update call to ppc_linux_supply_gregset.
4096 (fill_gregset): Clear the register set, use right_fill_reg.
4097 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
4098 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
4100 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
4103 2004-03-15 Andrew Cagney <cagney@redhat.com>
4105 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
4106 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
4107 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
4108 and register_gdbarch_data.
4109 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
4110 (struct gdbarch_data): Replace "init" by "pre_init" and
4112 * gdbarch.h, gdbarch.c: Re-generate.
4113 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
4114 with"obstack", use OBSTACK_ZALLOC.
4115 (dwarf2_frame_ops): Delete.
4116 (dwarf2_frame_set_init_reg): Use gdbarch_data.
4117 (dwarf2_frame_init_reg): Use gdbarch_data.
4118 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
4119 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
4120 (_initialize_svr4_solib): Update.
4121 * user-regs.c (_initialize_user_regs): Update.
4122 * reggroups.c (_initialize_reggroup): Update.
4123 * regcache.c (_initialize_regcache): Update.
4124 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
4125 * libunwind-frame.c (_initialize_libunwind_frame): Update.
4126 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4127 * frame-unwind.c (_initialize_frame_unwind): Update.
4128 * frame-base.c (_initialize_frame_base): Update.
4129 * user-regs.c (user_reg_add): Update.
4130 * reggroups.c (reggroup_add): Update.
4131 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
4132 * libunwind-frame.c (libunwind_frame_set_descr): Update.
4133 * frame-unwind.c (frame_unwind_append_sniffer): Update.
4134 * frame-base.c (frame_base_table): Update.
4135 * remote.c (_initialize_remote): Update.
4136 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
4138 2004-03-15 Andrew Cagney <cagney@redhat.com>
4140 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
4142 2004-03-15 Kevin Buettner <kevinb@redhat.com>
4144 * Makefile.in (frv-linux-tdep.o): Add dependencies.
4145 * frv-linux-tdep.c: New file.
4146 * frv-tdep.c (struct gdbarch_tdep): Add new field
4147 ``sigcontext_reg_addr''.
4148 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
4149 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
4150 (frv_sigramp_frame_sniffer): New functions.
4151 (frv_sigtramp_frame_unwind): New static global.
4152 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
4154 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
4155 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
4157 2004-03-15 Kevin Buettner <kevinb@redhat.com>
4159 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
4160 but not via a call to error(), when unable to read memory.
4162 2004-03-15 Kevin Buettner <kevinb@redhat.com>
4164 * frv-tdep.c (frv_call_dummy_words): Delete.
4165 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
4167 2004-03-15 Andrew Cagney <cagney@redhat.com>
4169 * infrun.c (handle_step_into_function, step_over_function): Only
4170 update and use STEP_FRAME_ID when the system is using legacy
4171 frames. Update comments.
4173 2004-03-14 Mark Kettenis <kettenis@gnu.org>
4175 * amd64-linux-tdep.h: Remove file.
4176 * amd64-linux-tdep.c: Don't include "inferior.h" and
4177 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
4178 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
4179 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
4180 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
4181 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
4183 (user_to_gdb_regmap): Remove variable.
4184 (amd64_linux_gregset_reg_offset): New variable.
4185 (amd64_core_fns): Remove variable.
4186 (fetch_core_registers): Remove function.
4187 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
4189 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
4190 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
4191 * Makefile.in (amd64_linux_tdep_h): Remove.
4192 (amd64-linux-nat.o): Update dependencies.
4193 (amd64-linux-tdep.o): Update dependencies.
4195 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
4196 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
4198 (fetch_inferior_registers, store_inferior_registers): Rewrite.
4200 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
4201 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
4203 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
4205 * dwarf2read.c (read_structure_type): Rename from
4206 read_structure_scope. Don't create a symbol or call process_die.
4207 Return immediately if die->type is set. Call read_type_die before
4208 dwarf2_add_member_fn.
4209 (process_structure_scope): New function.
4210 (read_enumeration_type, process_enumeration_scope): New functions,
4211 broken out from read_enumeration. Don't create the enumeration
4212 type if it has already been created.
4213 (read_enumeration): Removed.
4214 (process_die): Call read_structure_type, process_structure_scope,
4215 read_enumeration_type, and process_enumeration_scope. Just call
4216 new_symbol for base and subrange types. Add a comment about other
4218 (read_type_die): Call read_enumeration_type.
4219 (add_partial_structure, new_symbol): Update comments.
4221 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
4223 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
4225 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
4227 * tui/tui-win.h (tui_get_cmd_list): Declare.
4228 * tui/tui-win.c (tui_command): New function.
4229 (tui_get_cmd_list): New function.
4230 (_initialize_tui_win): Moved initialization of tui command in
4233 * tui/tui-data.c (init_content_element): Setup new data members.
4234 (init_win_info): Likewise.
4235 (free_content_elements): Free it.
4236 * tui/tui-data.h (struct tui_data_element): Store the register
4238 (struct tui_data_info): Keep the current register group.
4240 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
4242 * tui/tui-regs.h (tui_show_registers): Update prototype.
4243 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
4244 (tui_resize_all): No need to calculate anything for register window.
4245 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
4246 (tui_set_register_element, tui_set_general_regs_content): Remove.
4247 (tui_set_special_regs_content): Remove.
4248 (tui_set_general_and_special_regs_content): Remove.
4249 (tui_set_float_regs_content): Remove.
4250 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
4251 (tui_set_regs_content): Remove.
4252 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
4253 (tui_v_show_registers_command_support): Remove.
4254 (tui_show_registers): Use a reggroup to specify the registers to show.
4255 (tui_show_register_group): New function.
4256 (tui_display_registers_from): Compute the layout of register window
4257 and refresh with new API; be sure to delete old register windows.
4258 (tui_check_register_values): Update to use tui_get_register and
4260 (tui_display_register): Just refresh the register window part.
4261 (tui_register_format): Format registers and save in tui_data_element.
4262 (tui_get_register): New to combine tui_reg_value_has_changed and
4263 tui_get_register_raw_value; fix to use the new gdb API.
4264 (tui_show_float_command): Renamed tui_reg_float_command.
4265 (tui_show_general_command): Renamed tui_reg_general_command.
4266 (tui_show_special_command): Renamed tui_reg_system_command.
4267 (_initialize_tui_regs): Remove unused commands.
4269 2004-03-13 Mark Kettenis <kettenis@gnu.org>
4271 * NEWS (New native configurations): Mention OpenBSD/amd64.
4273 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
4274 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
4276 * config/i386/nm-fbsd64.h: Likewise.
4277 * config/i386/nm-obsd.h: Likewise.
4278 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
4279 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
4281 2004-03-12 Kevin Buettner <kevinb@redhat.com>
4283 * frv-tdep.c (set_variant_scratch_registers): New function.
4284 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
4287 From Richard Sandiford <rsandifo@redhat.com>:
4288 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
4290 2004-03-12 Kevin Buettner <kevinb@redhat.com>
4292 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
4293 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
4294 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
4295 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
4296 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
4297 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
4298 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
4299 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
4300 definitions from frv-tdep.c to frv-tdep.h.
4302 2004-03-12 Kevin Buettner <kevinb@redhat.com>
4304 Add shared library support for FR-V FDPIC ABI:
4305 * Makefile.in (solib-frv.o): Add dependencies.
4306 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
4308 (frv_push_dummy_call): Add support for FDPIC ABI.
4309 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
4311 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
4312 (frv_fdpic_find_canonical_descriptor): Declare.
4313 * solib-frv.c: New file.
4314 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
4315 * config/frv/tm-frv.h (solib.h): Include.
4317 2004-03-12 Kevin Buettner <kevinb@redhat.com>
4319 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
4320 (frv-tdep.o): Update dependencies.
4321 * frv-tdep.h: New file.
4322 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
4323 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
4325 (struct gdbarch_tdep): Add new member ``frv_abi''.
4326 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
4328 (new_variant): Set ``frv_abi'' field.
4329 (gdb_arch_init): Detect FDPIC executables.
4331 2004-03-12 Mark Kettenis <kettenis@gnu.org>
4333 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
4336 2004-03-11 Andrew Cagney <cagney@redhat.com>
4338 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
4340 2004-03-11 Kevin Buettner <kevinb@redhat.com>
4342 * solist.h (master_so_list): New function.
4343 * solib.c (master_so_list): Likewise.
4344 * solib-svr4.c (enable_break): Iterate over so_list entries
4345 obtained from master list instead of entries obtained directly
4346 via svr4_current_sos().
4348 2004-03-10 Ben Elliston <bje@gnu.org>
4350 * MAINTAINERS: Update my mail address.
4352 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
4354 * remote-m32r-sdi.c: Support hardware watchpoint.
4356 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4358 * user-regs.c: Update copyright years.
4359 (struct user_regs): Rename to gdb_user_regs.
4360 (append_user_reg, builtin_user_regs, user_regs_init)
4361 (user_reg_add, user_reg_map_name_to_regnum)
4362 (usernum_to_user_reg): Update.
4364 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4366 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
4367 (skip_children): New functions.
4368 (locate_pdi_sibling): Call skip_children.
4370 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4372 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
4373 * gdbtypes.c (check_typedef): Update comments.
4375 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4377 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
4378 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
4379 pointer. Update comment about comp_unit_head.
4380 (struct abbrev_info): Shorten two int flags.
4381 (dwarf_alloc_abbrev): Take a CU argument.
4382 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
4383 each time through the loop. Update cleanup argument.
4384 (psymtab_to_symtab_1): Update cleanup call.
4385 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
4387 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
4388 Just call obstack_free and clear the pointer.
4390 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4392 * infrun.c (handle_inferior_event): Remove short-circuit code for
4393 events in a different thread.
4395 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4397 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
4398 print the whole transfer.
4399 (initialize_targets): Update description of "set debug target".
4401 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4403 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
4405 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
4407 * MAINTAINERS (write after approval): Add myself.
4409 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
4411 * sh-tdep.c (sh_print_registers_info): Use for loop.
4412 Don't skip multiple registers when a float register is encountered.
4414 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
4417 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
4418 to official SH documentation.
4420 2004-03-07 Andrew Cagney <cagney@redhat.com>
4422 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
4425 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
4427 * arm-tdep.c (thumb_get_next_pc): Handle BX.
4428 (arm_get_next_pc): Handle BX and BLX.
4430 2004-03-07 Andrew Cagney <cagney@redhat.com>
4432 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
4433 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
4435 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
4436 (hppa_target_read_fp): Delete.
4437 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
4438 register_virtual_size, max_register_raw_size,
4439 max_register_virtual_size, register_byte, register_size,
4440 target_read_fp, fp_regnum, and register_bytes. Set register_type
4441 instead of register_virtual_type.
4442 (hppa32_register_type, hppa64_register_type): Replace
4443 hppa32_register_virtual_type and hppa64_register_virtual_type.
4444 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
4445 (HPPA_FP_REGNUM): Define.
4447 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
4449 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
4450 (pa_do_registers_info): Delete.
4451 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
4452 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
4453 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
4455 * infcall.c (legacy_push_dummy_code): Delete #ifdef
4456 GDB_TARGET_IS_HPPA code.
4457 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
4458 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
4459 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
4460 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
4461 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
4462 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
4463 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
4464 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
4465 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
4466 (hppa_frameless_function_invocation, hppa64_store_return_value)
4467 (hppa_store_struct_return, hppa64_extract_return_value)
4468 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
4469 (hppa32_call_dummy_length, hppa64_call_dummy_length)
4470 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
4471 (find_proc_framesize, deposit_21, restore_pc_queue)
4472 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
4473 (rp_saved, pc_in_linker_stub): Delete.
4475 Unconditionally enable 64-bit frame and ABI code.
4476 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
4477 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
4478 push_dummy_frame, fix_call_dummy, push_arguments,
4479 call_dummy_location, extract_return_value, use_struct_convention,
4480 store_return_value, store_struct_return, saved_pc_after_call,
4481 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
4482 frame_chain, frame_chain_valid, frameless_function_invocation,
4483 frame_saved_pc, and pop_frame.
4485 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
4486 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
4487 (hppa_gdbarch_init): Do not set PC_REGNUM.
4489 2004-03-06 Mark Kettenis <kettenis@gnu.org>
4491 * config/alpha/tm-fbsd.h: Remove file.
4492 * config/alpha/fbsd.mt: Tweak comment.
4493 (TM_FILE): Set to tm-alpha.h.
4495 2004-03-05 Andrew Cagney <cagney@redhat.com>
4497 * infrun.c (step_over_function): When non-legacy code, and no
4498 step_frame_id, use the unwinder to get the caller's frame ID.
4500 2004-03-05 Mark Kettenis <kettenis@gnu.org>
4502 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
4503 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
4504 bfd_arch_unknown. Adjust comment.
4506 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
4507 * i386obsd-tdep.c: Correct spelling in comment.
4508 * i386nbsd-tdep.c: Correct spelling in comment.
4509 * sparc-tdep.c: Correct spelling in comments.
4511 2004-03-05 David Carlton <carlton@kealia.com>
4513 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
4516 2004-03-05 Mark Kettenis <kettenis@gnu.org>
4518 * sparc-tdep.c: Fix typo in comment.
4520 2004-03-04 J. Brobecker <brobecker@gnat.com>
4522 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
4524 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
4526 * dwarf2read.c: Add comment describing memory lifetimes.
4527 (struct dwarf2_pinfo): Update comment.
4528 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
4529 (read_enumeration, new_symbol): Don't use obsavestring.
4531 2004-03-04 Mark Kettenis <kettenis@gnu.org>
4533 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
4534 instead of amd64_fill_fxsave.
4535 * amd64bsd-nat.c (store_inferior_registers): Likewise.
4536 * amd64fbsd-nat.c (fill_fpregset): Likewise.
4538 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
4539 Reorganize code a bit.
4541 2004-03-04 Orjan Friberg <orjanf@axis.com>
4543 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
4544 when the frame pointer is pushed. Don't set the frame pointer's
4545 address on the stack unless it's actually located there.
4546 Set the SRP's address on the stack correctly when the PC is still in
4548 (cris_return_value): New function.
4549 (cris_gdbarch_init): Clear deprecated store_return_value,
4550 extract_return_value.
4552 2004-03-02 Jim Blandy <jimb@redhat.com>
4554 * stabsread.c (reg_value_complaint): The maximum register number
4555 is one less than the number of registers.
4557 2004-03-02 Andrew Cagney <cagney@redhat.com>
4559 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
4560 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
4561 trailing comma and redundant assignment of I386_ST0_REGNUM.
4562 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
4563 32-bit segment registers.
4565 2004-03-01 Andrew Cagney <cagney@redhat.com>
4567 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
4568 use frame_relative_level and get_next_frame.
4570 2004-02-29 Andrew Cagney <cagney@redhat.com>
4572 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
4573 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
4574 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
4577 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
4579 * inflow.c (terminal_inferior): Don't give up the terminal if we
4580 previously couldn't get the inferior's terminal state.
4582 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
4584 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
4587 2004-02-28 Andrew Cagney <cagney@redhat.com>
4589 * NEWS: Refer to GDB 6.1.
4590 * README: Refer to GDB 6.1.
4591 * PROBLEMS: Refer to GDB 6.1.
4593 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
4595 * thread-db.c (disable_thread_signals): Remove unused function.
4597 2004-02-28 Mark Kettenis <kettenis@gnu.org>
4599 * amd64-nat.c: Include "gdb_string.h".
4600 (amd64_collect_native_gregset): Zero-extend the 32-bit
4601 general-purpose registers and %eip.
4603 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
4604 * amd64-tdep.c (amd64_collect_fxsave): New function.
4605 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
4607 * i387-tdep.h: Update copyright year.
4608 (i387_collect_fxsave): New prototype.
4609 * i387-tdep.c: Update copyright year.
4610 (i387_collect_fxsave): New function containing most of the code
4611 from i387_fill_fxsave.
4612 (i387_fill_fxsave): Call i387_collect_fxsave.
4614 2004-02-28 Andrew Cagney <cagney@redhat.com>
4616 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
4617 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
4619 2004-02-28 Mark Kettenis <kettenis@gnu.org>
4621 * amd64-tdep.c (amd64_frame_cache): Fix comment.
4623 2004-02-28 Andrew Cagney <cagney@redhat.com>
4625 * utils.c: Use "", instead of <>, to include readline.
4626 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
4627 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
4628 * source.c, solib.c, exec.c, event-top.c: Ditto.
4629 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
4630 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
4631 * Makefile.in: Update all dependencies.
4632 (readline_tilde_h, readline_history_h): Define.
4633 (readline_headers): Delete.
4635 2004-02-28 Mark Kettenis <kettenis@gnu.org>
4637 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
4638 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
4639 "config/i386/tm-lx64.h".
4641 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
4642 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
4643 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
4645 2004-02-28 Andrew Cagney <cagney@redhat.com>
4647 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
4649 * breakpoint.c (_initialize_breakpoint): Use
4650 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
4651 Add help to show command.
4653 2004-02-28 Mark Kettenis <kettenis@gnu.org>
4655 * i386-nat.c: Reformat to be closer to coding standards.
4656 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
4657 `retval'. Make variables `align' and `size' local to while-loop.
4658 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
4659 (_initialize_i386_nat): New prototype.
4661 * tui/tui.c: Include <readline/readline.h> instead of
4662 "readline/readline.h". Include it after <term.h> and
4665 2004-02-27 Andrew Cagney <cagney@redhat.com>
4667 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
4668 the new frame unwind code.
4669 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
4670 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
4673 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
4674 "return_value" and "push_dummy_call".
4675 (hppa32_use_struct_convention): Delete unused function.
4676 (hppa32_store_return_value): Delete unused function.
4677 (hppa32_extract_return_value): Delete unused function.
4678 (hppa32_stack_align): Delete function.
4680 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
4682 * coffread.c (enter_linenos): Don't let rawptr reference memory
4683 outside linetab[]'s limits.
4685 2004-02-27 Andrew Cagney <cagney@redhat.com>
4687 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
4688 inferior stack space - the stack needs to grow upwards.
4689 (hppa32_frame_align): New function.
4690 (hppa64_frame_align): Replace hppa_frame_align.
4691 (hppa_gdbarch_init): Update.
4693 2004-02-26 Orjan Friberg <orjanf@axis.com>
4695 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
4696 (dwarf2-frame.h): Include.
4697 (enum cris_regnums): New enum CRIS_FP_REGNUM.
4698 Remove static variables related to ABI setting.
4699 (struct gdbarch_tdep): Remove cris_abi member.
4700 (struct frame_extra_info): Remove.
4701 (cris_unwind_cache, stack_item): New structs.
4702 (cris_frame_unwind, cris_frame_base): New variables.
4703 (push_stack_item, pop_stack_item)
4704 (cris_frame_unwind_cache, cris_frame_this_id)
4705 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
4706 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
4707 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
4708 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
4709 (cris_reg_struct_has_addr): New functions.
4710 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
4711 (cris_frame_saved_pc, cris_saved_pc_after_call,
4712 (cris_store_struct_return, cris_frameless_function_invocation)
4713 (cris_pop_frame, cris_skip_prologue_main)
4714 (cris_abi_original_store_return_value)
4715 (cris_abi_v2_store_return_value)
4716 (cris_abi_original_extract_return_value)
4717 (cris_abi_v2_extract_return_value)
4718 (cris_abi_original_reg_struct_has_addr)
4719 (cris_abi_v2_reg_struct_has_addr)
4720 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
4721 (cris_push_return_address, cris_abi_update): Remove.
4722 (_initialize_cris_tdep): Remove ABI command.
4723 (cris_dump_tdep): Ditto.
4724 (cris_gdbarch_init): Remove ABI command.
4725 Set store_return_value, extract_return_value, push_dummy_code,
4726 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
4727 frame_unwind_append_sniffer, frame_base_set_default.
4728 Clear deprecated init_frame_pc, push_arguments, store_return_value,
4729 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
4730 sizeof_call_dummy_words, get_saved_register, push_return_address,
4731 pop_frame, store_struct_return, frame_init_saved_regs,
4732 init_extra_frame_info, frameless_function_invocation, frame_chain,
4733 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
4736 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
4738 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
4739 * valprint.c (print_hex_chars): Change from static to external.
4740 (print_char_chars): New function.
4741 * printcmd.c (print_scalar_formatted): For integer and enum types
4742 that are longer than LONGEST, perform processing via appropriate
4743 print_*_chars routines.
4745 2004-02-26 Andrew Cagney <cagney@redhat.com>
4747 * Makefile.in: Update dependencies.
4748 Changes from Ulrich Weigand,
4749 * s390-tdep.c: Include "dwarf2-frame.h".
4750 (s390_dwarf2_frame_init_reg): New function.
4751 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
4752 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
4754 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
4756 * breakpoint.c (pending_break_support): New setting variable.
4757 (break_command_1): Account for pending_break_support setting
4758 when creating pending breakpoints.
4759 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
4760 (_initialize_breakpoint): Add "set breakpoint pending" and
4761 "show breakpoint pending" commands.
4763 2004-02-26 Andrew Cagney <cagney@redhat.com>
4766 * charset.c (backslashable, backslashed, represented): Remove 'e'
4767 from list of escaped characters, not part of ISO-C.
4769 2004-02-25 J. Brobecker <brobecker@gnat.com>
4771 From Peter Schauer <schauer@pdf.de>:
4772 * tui/tui.c: Move system header includes after local includes.
4773 Fixes a build failure on solaris systems.
4775 2004-02-25 J. Brobecker <brobecker@gnat.com>
4777 * configure.in: Refine the previous change.
4778 * configure: Regenerate.
4780 2004-02-25 Mark Kettenis <kettenis@gnu.org>
4782 * amd64-tdep.h: Renamed from x86-64-tdep.h.
4783 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
4784 "amd64-tdep.h" instead of "x86-64-tdep.h".
4785 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
4786 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
4787 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
4788 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
4789 and "x86-64-tdep.c".
4790 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
4791 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
4792 and "x86-64-tdep.c".
4793 * amd64bsd-nat.c: Update copyright year.
4794 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
4795 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
4797 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
4799 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
4801 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
4803 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
4805 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
4807 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
4808 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
4809 * Makefile.in (amd64_linux_tdep_h): Renamed from
4810 x86_64_linux_tdep_h.
4811 (amd64_tdep_h): Renamed from x86_64_tdep_h.
4812 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
4813 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
4814 (amd64obsd-tdep.o): Update dependencies.
4815 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
4817 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
4819 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
4820 amd64-linux-nat.c amd64-linux-tdep.c.
4821 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
4822 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
4823 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
4824 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
4825 amd64-tdep.o and amd64-linux-tdep.o.
4826 (TM_FILE): Set to tm-linux64.h.
4827 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
4828 (NAT_FILE): Set to nm-linux64.h.
4829 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
4830 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
4832 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
4834 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
4837 2004-02-25 Roland McGrath <roland@redhat.com>
4839 * remote.c (remote_protocol_qPart_auxv): New variable.
4840 (init_all_packet_configs): Initialize it.
4841 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
4842 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
4843 (show_remote_cmd): Call it.
4844 (_initialize_remote): Initialize commands.
4845 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
4846 service TARGET_OBJECT_AUXV requests.
4848 2004-02-25 J. Brobecker <brobecker@gnat.com>
4850 * configure.in: Make sure that the wborder function is available.
4851 Otherwise, search for it in the cur_colr library.
4852 * configure: Regenerate.
4854 2004-02-25 Andrew Cagney <cagney@redhat.com>
4856 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
4858 2004-02-25 Mark Kettenis <kettenis@gnu.org>
4860 * config/i386/tm-x86-64linux.h: Tweak comments.
4862 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
4864 * MAINTAINERS: Add self to write-after-approval list.
4866 2004-02-25 Andrew Cagney <cagney@redhat.com>
4868 PR cli/1566. Problem found, and fix suggested by David Allan.
4869 * cli/cli-script.c (execute_control_command): Unconditionally
4870 install a cleanup. Default "ret" to "invalid_control". Use
4871 "break" instead of "return" to escape from the switch.
4873 2004-02-24 J. Brobecker <brobecker@gnat.com>
4875 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
4876 with the lines macro defined in term.h on AiX.
4877 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
4878 a collision with the label_width macro defined in term.h on AiX.
4880 2004-02-23 David Mosberger <davidm@hpl.hp.com>
4882 Committed by Kevin Buettner <kevinb@redhat.com>.
4884 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
4885 * ia64-tdep.c (ia64_write_pc): Make it a global function.
4886 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
4887 instead of ia64_write_pc().
4888 * ia64-linux-tdep.c (regcache.h): Include.
4889 (ia64_linux_write_pc): New function.
4891 2004-02-23 Roland McGrath <roland@redhat.com>
4893 * auxv.c (info_auxv_command): Fix typos in error messages.
4895 2004-02-23 Mark Kettenis <kettenis@gnu.org>
4897 * x86-64-tdep.h: Tweak comment.
4898 (enum amd64_regnum): New.
4899 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
4900 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
4901 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
4902 (X86_64_XMM1_REGNUM): Removed.
4903 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
4904 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
4905 prototypes for renamed functions.
4906 * x86-64-tdep.c: Fix typo.
4907 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
4909 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
4910 Use constants from `enum amd64_regnum' for register numbers.
4911 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
4912 (amd64_analyze_prologue, amd64_frame_cache,
4913 amd64_sigtramp_frame_cache): Use constants from `enum
4914 amd64_regnum' for register numbers.
4915 (amd64_supply_fpregset): Adjust for renamed functions.
4916 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
4917 `enum amd64_regnum' for register numbers.
4918 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
4919 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
4920 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
4921 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
4922 (amd64_linux_fill_gregset): Adjust for renamed macros.
4923 (fetch_core_registers): Adjust for renamed functions.
4924 (amd64_linux_init_abi): Adjust for renamed functions.
4925 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
4927 * amd64-nat.c: Adjust for renamed macros.
4928 * amd64bsd-nat.c (fetch_inferior_registers)
4929 (store_inferior_registers): Use constants from `enum amd64_regnum'
4930 for register numbers. Adjust for renamed variables.
4931 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
4933 (_initialize_amd64fbsd_nat): Use constants from `enum
4934 amd64_regnum' for register numbers.
4935 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
4936 `enum amd64_regnum' for register numbers.
4937 (amd64fbsd_init_abi): Adjust for renamed functions.
4938 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
4939 `enum amd64_regnum' for register numbers.
4940 (amd64nbsd_init_abi): Adjust for renamed functions.
4941 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
4942 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
4943 `enum amd64_regnum' for register numbers.
4944 (amd64obsd_init_abi): Adjust for renamed functions.
4945 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
4947 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
4949 * breakpoint.c (print_one_breakpoint): Do not output spaces
4950 after printing <PENDING> for a pending breakpoint.
4952 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
4954 * printcmd.c (print_scalar_formatted): Initialize val_long
4955 to remove compiler warning message.
4957 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
4959 * defs.h (nquery, yquery): New prototypes.
4960 * breakpoint.c (break_command_1): Use new nquery interface.
4961 * utils.c (defaulted_query, nquery, yquery): New functions.
4963 2004-02-23 Andrew Cagney <cagney@redhat.com>
4965 * hppa-tdep.c (hppa_frame_align): New function.
4966 (hppa32_push_dummy_call): New function.
4967 (hppa64_push_dummy_call): New function.
4968 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
4971 * infcall.c (legacy_push_dummy_code): Don't call deprecated
4972 FIX_CALL_DUMMY when push_dummy_call is available.
4973 (call_function_by_hand, push_dummy_code): Ditto.
4975 2004-02-22 Andrew Cagney <cagney@redhat.com>
4977 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
4978 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
4979 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
4980 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
4981 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
4982 call_dummy_location to ON_STACK.
4984 2004-02-22 Mark Kettenis <kettenis@gnu.org>
4986 * x86-64-linux-tdep.c: Tweak comment.
4987 (amd64_linux_supply_gregset): Renamed from
4988 x86_64_linux_supply_gresget.
4989 (amd64_linux_fill_gregset): Renamed from
4990 x86_64_linux_fill_gregset.
4991 (fetch_core_registers): Adjust for renamed functions.
4992 (amd64_core_fns): Renamed from x86_64_core_fns.
4993 (amd64_linux_sigtramp_start): Renamed from
4994 x86_64_linux_sigtramp_start.
4995 (amd64_linux_pc_in_sigtramp): Renamed from
4996 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
4997 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
4998 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
4999 (amd64_linux_sigcontext_addr): Renamed from
5000 x86_64_linux_sigcontext_addr.
5001 (amd64_linux_sc_reg_offset): Renamed from
5002 x86_64_linux_sc_reg_offset.
5003 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
5004 Adjust for renamed functions and variables.
5005 (_initialize_amd64_linux_tdep): Renamed from
5006 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
5008 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
5009 Adjust for renamed functions.
5011 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
5012 from x86_64_linux_gregset64_reg_offset.
5013 (amd64_linux_gregset32_reg_offset): Rename from
5014 x86_64_linux_gregset64_reg_offset.
5015 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
5016 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
5017 (amd64_linux_dr_set_control): Renamed from
5018 x86_64_linux_dr_set_control. Adjust for renamed functions.
5019 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
5020 Adjust for renamed functions.
5021 (amd64_linux_dr_reset_addr): Renamed from
5022 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
5023 (amd64_linux_dr_get_status): Renamed from
5024 x86_64_linux_dr_get_status. Adjust for renamed functions.
5025 (_initialize_amd64_linux_nat): Renamed from
5026 _initialize_x86_64_linux_nat. Adjust for renamed variables and
5028 * config/i386/nm-x86-64linux.h: Update copyright year.
5029 Adjust for renamed functions.
5031 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
5032 amd64fbsd_sigtramp_start.
5033 (amd64fbsd_sigtramp_end_addr): Renamed from
5034 amd64fbsd_sigtramp_end.
5035 (amd64fbsd_init_abi): Adjust for renamed variables.
5036 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
5038 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
5039 amd64fbsd_sigtramp_start.
5040 (amd64fbsd_sigtramp_end_addr): Renamed from
5041 amd64fbsd_sigtramp_end.
5043 2004-02-22 Andrew Cagney <cagney@redhat.com>
5045 * hppa-tdep.c (hppa32_return_value): New function.
5046 (hppa64_return_value): New function.
5047 (hppa_gdbarch_init): Set return_value; keep disabled.
5049 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
5050 struct-return and inferior function call methods.
5052 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
5054 (struct hppa_frame_cache): Define.
5055 (hppa_frame_cache, hppa_frame_this_id): New functions.
5056 (hppa_frame_prev_register): New function.
5057 (hppa_frame_unwind, hppa_frame_base): New variables.
5058 (hppa_frame_unwind_sniffer): New function.
5059 (hppa_frame_base_address, hppa_unwind_pc): New function.
5060 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
5061 sniffer, and frame base sniffer; keep disabled.
5062 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
5063 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
5065 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
5066 to predicates for "seriously old code".
5068 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
5071 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
5073 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
5075 * config/pa/tm-hppa.h: Update copyright.
5076 (DEPRECATED_INIT_FRAME_PC): Delete macro.
5077 (deprecated_init_frame_pc_default): Delete declaration.
5078 (hppa_frame_init_saved_regs): Delete declaration.
5079 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
5080 * hppa-tdep.c: Include "arch-utils.h".
5081 (hppa_gdbarch_init): Set deprecated init_frame_pc
5082 and deprecated frame_init_saved_regs.
5083 (hppa_frame_init_saved_regs): Make static.
5085 2004-02-22 Mark Kettenis <kettenis@gnu.org>
5087 Remove old 386BSD support.
5088 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
5089 * configure.host: Remove i[34567]86-*-bsd*.
5090 * configure.tgt: Remove i[34567]86-*-bsd*.
5091 * i386b-nat.c: Removed.
5092 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
5093 (i386b-nat.o): Remove dependencies.
5095 * config/i386/i386bsd.mh: Removed.
5096 * config/i386/i386bsd.mt: Removed.
5097 * config/i386/nm-i386bsd.h: Removed.
5098 * config/i386/tm-i386bsd.h: Removed.
5099 * config/i386/xm-i386bsd.h: Removed.
5101 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
5103 * amd64fbsd-tdep.c: Include "solib-svr4.h".
5104 (amd64fbsd_init_abi): Set link map offsets.
5105 * amd64nbsd-tdep.c: Include "slib-svr4.h".
5106 (amd64nbsd_init_abi): Set link map offsets.
5107 * amd64obsd-tdep.c: Include "solib-svr4.h".
5108 (amd64obsd_init_abi): Set link map offsets.
5109 * i386fbsd-tdep.c: Include "solib-svr4.h".
5110 (i386fbsd_init_abi): Set link map offsets.
5111 * i386nbsd-tdep.c: Include "solib-svr4.h".
5112 (i386nbsdelf_init_abi): Set link map offsets.
5113 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
5114 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
5115 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
5116 solib-legacy.o and core-aout.o. Reformat.
5117 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
5118 solib-svr4.o, solib-legacy.o. Reformat.
5119 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
5120 * config/i386/nbsdelf.mh: Reformat.
5121 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
5122 solib-svr4.o, solib-legacy.o and corelow.o.
5123 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
5124 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
5125 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
5126 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
5127 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
5128 (TM_FILE): Set to tm-fbsd.h.
5129 * config/i386/nbsd.mt (TDEPFILES): Reformat.
5130 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
5132 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
5134 (TM_FILE): Set to nm-nbsd.h.
5135 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
5136 Simplify shared library support. Don't include "elf/common.h".
5137 (SVR4_SHARED_LIBS): Don't define.
5138 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
5140 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
5141 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
5142 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
5143 Don't include "i386/tm-i386.h". Include "solib.h".
5144 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
5145 Don't include "i386/tm-i386.h".
5146 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
5147 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
5148 Include "i386/xm-i386.h".
5149 (HOST_LONG_DOUBLE_FORMAT): Remove.
5151 Fix OpenBSD/i386 sigtramp recognition.
5152 * i386-tdep.h: Update copyright year.
5153 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
5154 (i386bsd_sigtramp_end): New prototypes.
5155 (i386fbsd_sigtramp_start_addr): Renamed from
5156 i386fbsd_sigtramp_start.
5157 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
5158 (i386obsd_sigtramp_start_addr): Renamed from
5159 i386obsd_sigtramp_start.
5160 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
5161 * i386bsd-tdep.c: Update copyright year.
5162 (i386bsd_pc_in_sigtramp): Make public.
5163 * i386fbsd-nat.c: Update copyright year.
5164 (_initialize_i386fbsd_nat): Adjust for renamed variables.
5165 * i386fbsd-tdep.c: Update copyright year.
5166 (i386fbsd_sigtramp_start_addr): Renamed from
5167 i386fbsd_sigtramp_start.
5168 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
5169 (i386fbsdaout_init_abi): Adjust for renamed variables.
5170 * i386obsd-nat.c: Update copyright year.
5171 (_initialize_i386obsd_nat): Adjust for renamed variables.
5172 * i386obsd-tdep.c: Include "target.h".
5173 (i386obsd_page_size): New variable.
5174 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
5175 (i386obsd_sigtramp_end): New functions.
5176 (i386obsd_sigtramp_start_addr): Renamed from
5177 i386obsd_sigtramp_start.
5178 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
5179 (i386obsd_init_abi): Adjust for renamed variables. Set
5180 pc_in_sigtramp, sigtramp_start and sigtramp_end.
5181 * Makefile.in (i386obsd-tdep.o): Update dependencies.
5183 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
5184 trampoline change in OpenBSD kernel.
5186 * amd64-nat.c: Update copyright year.
5187 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
5188 architecture from REGCACHE.
5190 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
5191 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
5193 2004-02-21 Mark Kettenis <kettenis@gnu.org>
5195 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
5196 i[34567]86-*-openbsd3.[0-3].
5197 * config/i386/obsdaout.mh: New file.
5199 * config/i386/obsd.mh (MH_FLAGS): Remove.
5202 * i386obsd-tdep.c: Update copyright years. Include
5204 (i386obsd_init_abi): Don't set regset_from_core_section here.
5205 (i386obsd_aout_init_abi): New function. Set
5206 regset_from_core_section here.
5207 (i386obsd_elf_init_abi): New function.
5208 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
5209 * Makefile.in (i386obsd-tdep.o): Update dependecies.
5210 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
5211 (TM_FILE): Set to tm-nbsd.h.
5213 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
5216 * solib-svr4.h: Update copyright year.
5217 (svr4_ilp32_fetch_link_map_offsets)
5218 (svr4_lp64_fetch_link_map_offsets): New prototype.
5219 * solib-svr4.c: Update copyright year.
5220 (svr4_ilp32_fetch_link_map_offsets)
5221 (svr4_lp64_fetch_link_map_offsets): New function.
5223 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
5225 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
5226 to the partial symbol table.
5228 2004-02-20 J. brobecker <brobecker@gnat.com>
5230 * PROBLEMS: Add description of problem documented under gdb/1560.
5232 2004-02-20 Mark Kettenis <kettenis@gnu.org>
5234 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
5236 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
5238 (amd64obsd_init_abi): Reorder initializations. Use
5239 amd64obsd_r_reg_offset to initialize the general-purpose register
5240 set details. Set regset_from_core_section.
5241 (_initialize_amd64obsd_tdep): Rename from
5242 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
5243 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
5244 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
5246 * NEWS (New native configurations): Mention OpenBSD/alpha.
5247 * configure.tgt: Add alpha*-*-openbsd*.
5248 * configure.host: Add alpha*-*-openbsd*.
5249 * alphanbsd-tdep.c: Update copyright year.
5250 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
5252 2004-02-20 Andrew Cagney <cagney@redhat.com>
5255 * configure.tgt: Delete target "none-*-*".
5256 * configure.host: Delete host "none-*-*".
5257 * config/none/none.mh: Delete file.
5258 * config/none/none.mt: Delete file.
5259 * config/none/xm-none.h: Delete file.
5260 * config/none/tm-none.h: Delete file.
5261 * config/none/nm-none.h: Delete file.
5263 2004-02-19 Fred Fish <fnf@redhat.com>
5265 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
5266 cache->uses_fp prior to setting it.
5268 2004-02-19 Fred Fish <fnf@redhat.com>
5270 Fix for PR breakpoint/1558.
5271 * sh-tdep.c (IS_JSR): New macro.
5272 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
5274 2004-02-19 Jim Blandy <jimb@redhat.com>
5276 * findvar.c (value_from_register): Doc fix.
5278 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
5280 * printcmd.c (print_scalar_formatted): Do not check for sizeof
5281 type being greater than sizeof of host's LONGEST. Always use
5282 unpack_long() unless format 'f' chosen.
5284 2004-02-19 Joel Brobecker <brobecker@gnat.com>
5286 Committed by Elena Zannoni <ezannoni@redhat.com>
5288 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
5289 contains a symbol wich is the best, non-exact match for the given
5290 pc. Update comments.
5292 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
5294 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
5295 macro, which was part of the now removed Mach 3 port.
5296 * utils.c (request_quit): Ditto.
5298 2004-02-18 Mark Kettenis <kettenis@gnu.org>
5300 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
5301 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
5303 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5305 Committed by Mark Kettenis <kettenis@gnu.org>.
5307 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
5310 2004-02-18 Andrew Cagney <cagney@redhat.com>
5312 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
5313 CONFIG_INSTALL and CONFIG_UNINSTALL.
5314 * configure: Re-generate.
5315 * interps.h (INTERP_TUI): Define.
5316 * Makefile.in: Update dependencies.
5318 (tui-main.o): Specify dependencies.
5319 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
5320 * tui/tui-main.c: New file.
5322 2004-02-18 Mark Kettenis <kettenis@gnu.org>
5324 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
5325 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
5327 * configure.host: Add x86_64-*-openbsd*.
5328 * configure.tgt: Add x86_64-*-openbsd*.
5329 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
5331 * tui/tui.c: Don't include <malloc.h>.
5333 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
5334 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
5337 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
5338 static. Remove extraneous whitespace.
5339 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
5342 2004-02-17 Jim Blandy <jimb@redhat.com>
5344 * findvar.c (value_from_register): Doc fix.
5346 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5348 Committed by Jim Blandy <jimb@redhat.com>.
5350 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
5351 CORE_ADDR as type for selectors. Correct types for GNU run time
5352 message lookup function to use double indirection.
5353 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
5354 * objc-lang.h (lookup_child_selector): Adapt prototype.
5356 * s390-nat.c (SUBOFF): New macro.
5357 (supply_gregset, fill_gregset): Use it to handle debugging
5358 of 32-bit exectuables running under a 64-bit kernel.
5359 * s390-tdep.c: Include "solib-svr4.h".
5360 (s390_svr4_fetch_link_map_offset): New function.
5361 (s390x_svr_fetch_link_map_offset): Likewise.
5362 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
5363 * Makefile.in (s390-tdep.o): Update dependencies.
5365 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
5367 (s390_readinstruction): Reformat. Use read_memory_nobpt.
5368 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
5369 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
5370 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
5371 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
5372 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
5373 S390_SIGNAL_FRAMESIZE,
5374 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
5375 (struct frame_extra_info): Remove.
5376 (s390_memset_extra_info): Remove.
5377 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
5378 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
5379 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
5380 (is_rse): Renamed to ...
5381 (is_rsy): ... this. Support long displacements.
5382 (is_rxe): Renamed to ...
5383 (is_rxy): ... this. Support long displacements.
5384 (compute_x_addr): Support long displacements.
5385 (struct s390_prologue_data): New data type.
5386 (s390_on_stack): Change API to use struct s390_prologue_data.
5387 (s390_store): Reimplement.
5388 (s390_load): New function.
5389 (s390_get_signal_frame_info): Remove.
5390 (s390_get_frame_info): Remove, replace by ...
5391 (s390_analyze_prolog): ... this new function.
5392 (s390_check_function_end): Remove.
5393 (s390_function_start): Remove.
5394 (s390_frameless_function_invokation): Remove.
5395 (s390_is_sigreturn): Remove.
5396 (s390_init_frame_pc_first): Remove.
5397 (s390_init_frame_extra_info): Remove.
5398 (s390_frame_init_saved_regs): Remove.
5399 (s390_frame_saved_pc_nofix): Remove.
5400 (s390_frame_saved_pc): Remove.
5401 (s390_frame_chain): Remove.
5402 (s390_fp_regnum, s390_read_fp): Remove.
5403 (s390_pop_frame_regular, s390_pop_frame): Remove.
5404 (s390_saved_pc_after_call): Remove.
5405 (s390_skip_prologue): Reimplement.
5406 (s390_in_function_epilogue_p): Support long displacements.
5407 (struct s390_unwind_cache): New data structure.
5408 (s390_frame_unwind_cache): New function.
5409 (s390_prologue_frame_unwind_cache): Likewise.
5410 (s390_backchain_frame_unwind_cache): Likewise.
5411 (s390_frame_this_id, s390_frame_prev_register): Likewise.
5412 (s390_frame_unwind): Define.
5413 (s390_frame_sniffer): New function.
5414 (struct s390_pltstub_unwind_cache): New data structure.
5415 (s390_pltstub_frame_unwind_cache): New function.
5416 (s390_pltstub_frame_this_id): Likewise.
5417 (s390_pltstub_frame_prev_register): Likewise.
5418 (s390_pltstub_frame_unwind): Define.
5419 (s390_pltstub_frame_sniffer): New function.
5420 (struct s390_sigtramp_unwind_cache): New data structure.
5421 (s390_sigtramp_frame_unwind_cache): New function.
5422 (s390_sigtramp_frame_this_id): Likewise.
5423 (s390_sigtramp_frame_prev_register): Likewise.
5424 (s390_sigtramp_frame_unwind): Define.
5425 (s390_sigtramp_frame_sniffer): New function.
5426 (s390_frame_base_address, s390_local_base_address): New functions.
5427 (s390_frame_base): Define.
5428 (s390_unwind_pc, s390_unwind_sp): New function.
5429 (s390_push_dummy_call): Use new frame base location.
5430 (s390_unwind_dummy_id): Likewise.
5431 (s390_gdbarch_init): Remove calls to:
5432 set_gdbarch_frameless_function_invocation,
5433 set_gdbarch_deprecated_init_frame_pc,
5434 set_gdbarch_deprecated_frame_chain,
5435 set_gdbarch_deprecated_frame_init_saved_regs,
5436 set_gdbarch_deprecated_pop_frame,
5437 set_gdbarch_deprecated_init_extra_frame_info,
5438 set_gdbarch_deprecated_init_frame_pc_first,
5439 set_gdbarch_deprecated_target_read_fp,
5440 set_gdbarch_deprecated_frame_saved_pc,
5441 set_gdbarch_deprecated_saved_pc_after_call,
5442 set_gdbarch_deprecated_fp_regnum.
5444 set_gdbarch_in_solib_call_trampoline,
5445 frame_unwind_append_sniffer,
5446 frame_base_set_default,
5447 set_gdbarch_unwind_pc,
5448 set_gdbarch_unwind_sp.
5449 * Makefile.in (s390-tdep.o): Update dependencies.
5451 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
5452 (S390_STACK_FRAME_OVERHEAD): Remove.
5453 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
5454 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
5455 (s390_promote_integer_argument): Remove.
5456 (s390_cannot_extract_struct_value_address): Remove.
5457 (s390_use_struct_convention, s390_store_struct_return): Remove.
5458 (s390_extract_return_value, s390_store_return_value): Remove.
5459 (s390_return_value_convention, s390_return_value): New functions.
5460 (is_float_singleton): Handle typedefs.
5461 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
5462 Remove, replace by ...
5463 (s390_function_arg_pass_by_reference, s390_function_arg_float,
5464 s390_function_arg_integer): ... these new functions.
5465 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
5466 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
5467 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
5470 set_gdbarch_deprecated_store_struct_return,
5471 set_gdbarch_deprecated_extract_return_value,
5472 set_gdbarch_deprecated_store_return_value,
5473 set_gdbarch_use_struct_convention,
5474 set_gdbarch_extract_struct_value_address,
5475 set_gdbarch_deprecated_pc_in_call_dummy,
5476 set_gdbarch_deprecated_push_arguments,
5477 set_gdbarch_deprecated_save_dummy_frame_tos,
5478 set_gdbarch_deprecated_push_return_address,
5479 set_gdbarch_deprecated_sizeof_call_dummy_words,
5480 set_gdbarch_deprecated_call_dummy_words,
5481 set_gdbarch_deprecated_dummy_write_sp.
5483 set_gdbarch_push_dummy_call,
5484 set_gdbarch_unwind_dummy_id,
5485 set_gdbarch_return_value.
5487 * config/s390/nm-linux.h: Update comments.
5488 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
5489 (STOPPED_BY_WATCHPOINT): Redefine.
5490 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
5491 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
5492 (s390_stopped_by_watchpoint): Likewise.
5493 (watch_area_cnt): Remove.
5494 * s390-nat.c: Update comments.
5495 (watch_area): Remove typedef.
5496 Global replace watch_area by struct watch_area.
5497 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
5498 (s390_stopped_by_watchpoint): Remove pid argument,
5499 use s390_inferior_tid. Add short-cut for the no watchpoint case.
5500 (s390_fix_watch_points): Remove pid argument,
5501 use s390_inferior_tid. Recompute area spanned by watchpoints.
5502 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
5503 argument. Reimplement.
5505 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
5506 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
5507 (FETCH_INFERIOR_REGISTERS): Define.
5508 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
5510 * config/s390/s390x.mt: Remove.
5511 * config/s390/tm-s390.h: Remove.
5512 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
5513 (TARGET_ELF64): Remove.
5514 (SKIP_TRAMPOLINE_CODE): Do not undefine.
5515 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
5516 s390*-*-* case; always set gdb_target to s390.
5517 * regformats/reg-s390.dat: Remove control registers.
5518 * regformats/reg-s390x.dat: Likewise.
5519 * s390-tdep.h: New file.
5520 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
5521 Include "inferior.h" and "s390-tdep.h".
5522 Remove private definition of offsetof.
5523 (s390_register_u_addr): Remove.
5524 (regmap_gregset, regmap_fpregset): Define.
5525 (supply_gregset, fill_gregset): Reimplement.
5526 (supply_fpregset, fill_fpregset): Likewise.
5527 (s390_inferior_tid): New function.
5528 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
5529 (fetch_inferior_registers, store_inferior_registers): Likewise.
5530 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
5531 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
5532 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
5533 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
5534 (struct gdbarch_tdep): Define.
5535 (struct s390_register_info): Define.
5536 (s390_register_info): New variable.
5537 (s390_register_name): Reimplement.
5538 (s390_register_type): New function.
5539 (s390_register_raw_size, s390x_register_raw_size): Remove.
5540 (s390_cannot_fetch_register): Remove.
5541 (s390_register_byte): Remove.
5542 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
5543 (s390_dwarf_regmap): New variable.
5544 (s390_dwarf_reg_to_regnum): New function.
5545 (s390_stab_reg_to_regnum): Remove.
5546 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
5547 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
5548 (s390_convert_register_p): Likewise.
5549 (s390_register_to_value, s390_value_to_register): Likewise.
5550 (s390_register_reggroup_p): Likewise.
5551 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
5552 s390_gregset, s390x_gregset, s390_fpregset): New variables.
5553 (s390_supply_regset, s390_regset_from_core_section): New functions.
5554 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
5555 (S390_FPR_SIZE): Likewise.
5556 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
5557 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
5558 (S390_NUM_GPRS): Move here from tm-s390.h.
5559 (S390_NUM_FPRS): Likewise.
5560 (s390_in_function_epilogue_p): New function.
5561 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
5562 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
5563 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
5564 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
5565 Replace S390_FP_REGNUM by S390_SP_REGNUM.
5567 set_gdbarch_deprecated_max_register_raw_size,
5568 set_gdbarch_deprecated_max_register_virtual_size,
5569 set_gdbarch_deprecated_register_byte,
5570 set_gdbarch_cannot_fetch_register,
5571 set_gdbarch_cannot_store_register,
5572 set_gdbarch_deprecated_register_size,
5573 set_gdbarch_deprecated_register_raw_size,
5574 set_gdbarch_deprecated_register_virtual_size,
5575 set_gdbarch_deprecated_register_virtual_type,
5576 set_gdbarch_deprecated_register_bytes.
5578 set_gdbarch_num_pseudo_regs,
5579 set_gdbarch_register_type,
5580 set_gdbarch_convert_register_p,
5581 set_gdbarch_register_to_value,
5582 set_gdbarch_value_to_register,
5583 set_gdbarch_register_reggroup_p,
5584 set_gdbarch_regset_from_core_section,
5585 set_gdbarch_pseudo_register_read,
5586 set_gdbarch_pseudo_register_write,
5587 set_gdbarch_in_function_epilogue_p.
5588 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
5589 (s390_tdep_h): New variable.
5591 2004-02-17 Jim Blandy <jimb@redhat.com>
5593 * findvar.c (value_from_register): If the type has no length, just
5594 return an acceptable value --- don't report an internal error.
5596 * stabsread.c (read_type): If we find any type numbers that are
5597 forward references, complain if the references aren't resolved by
5598 the time we're finished reading.
5599 (cleanup_undefined_types): Make error message more appropriate for
5602 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
5604 * Makefile.in (defs_h): Remove dependency on progress_h.
5605 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
5607 * main.c (captured_main): Delete use of START_PROGRESS and
5610 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
5612 * objfiles.c (terminate_minimal_symbol_table): Add back
5613 initialization of MSYMBOL_TYPE.
5615 2004-02-17 David Mosberger <davidm@hpl.hp.com>
5617 Committed by Andrew Cagney.
5618 * Makefile.in (ia64_tdep_h): New macro.
5619 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
5620 (ia64-tdep.o): Likewise.
5621 * ia64-tdep.h: New file.
5622 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
5623 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
5624 (ia64_aix_sigcontext_register_address): Likewise.
5625 (ia64_linux_getunwind_table): Delete declaration.
5626 * ia64-linux-tdep.c: Likewise.
5628 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
5630 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
5631 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
5632 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
5634 2004-02-17 Andrew Cagney <cagney@redhat.com>
5636 * symtab.c (skip_prologue_using_sal): New function.
5637 * symtab.h (skip_prologue_using_sal): Declare.
5638 * frv-tdep.c: Include "symtab.h".
5639 (skip_prologue_using_sal): Delete function.
5640 * mips-tdep.c (skip_prologue_using_sal): Delete function.
5641 * rs6000-tdep.c (refine_prologue_limit): Mention
5642 skip_prologue_using_sal.
5643 * ia64-tdep.c (refine_prologue_limit): Ditto.
5644 * Makefile.in: Update dependencies.
5646 2004-02-16 Andrew Cagney <cagney@redhat.com>
5648 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
5649 START_INFERIOR_TRAPS_EXPECTED.
5650 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
5651 START_INFERIOR_TRAPS_EXPECTED.
5652 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
5654 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
5655 macro, moved to "nm-osf.h". Update copyright.
5656 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
5659 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
5660 and function replacing FRAMELESS_FUNCTION_INVOCATION.
5661 * blockframe.c (legacy_frameless_look_for_prologue): Rename
5662 frameless_look_for_prologue.
5663 * frame.h (legacy_frameless_look_for_prologue): Rename
5664 frameless_look_for_prologue.
5665 * gdbarch.h, gdbarch.c: Re-generate.
5666 * sh64-tdep.c (sh64_gdbarch_init): Update.
5667 * sh-tdep.c (sh_gdbarch_init): Update.
5668 * s390-tdep.c (s390_gdbarch_init): Update.
5669 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5670 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
5671 * m68k-tdep.c (m68k_gdbarch_init): Update.
5672 (delta68_frame_args_address): Update.
5673 * m32r-tdep.c (m32r_gdbarch_init): Update.
5674 * hppa-tdep.c (hppa_gdbarch_init): Update.
5675 * h8300-tdep.c (h8300_gdbarch_init): Update.
5676 * frv-tdep.c (frv_gdbarch_init): Update.
5677 (frv_frameless_function_invocation): Update.
5678 * cris-tdep.c (cris_gdbarch_init): Update.
5679 (cris_frameless_function_invocation): Update.
5680 * avr-tdep.c (avr_gdbarch_init): Update.
5681 * arm-tdep.c (arm_gdbarch_init): Update.
5682 * stack.c (frame_info): Update, call predicate.
5683 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
5684 * frame.c (legacy_get_prev_frame): Update, call predicate..
5685 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
5686 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
5687 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
5689 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5690 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5691 * vax-tdep.c (vax_gdbarch_init): Ditto.
5693 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
5696 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
5698 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
5701 2004-02-16 Andrew Cagney <cagney@redhat.com>
5703 * tui/tui-windata.c: Include "gdb_string.h".
5704 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
5705 * tui/tui-layout.c, tui/tui-command.c: Ditto.
5706 * Makefile.in: Update dependencies.
5708 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
5710 * Makefile.in (infrun.o): Add $(gdb_assert_h).
5711 * infrun.c: Include "gdb_assert.h".
5712 (singlestep_ptid, saved_singlestep_ptid)
5713 (stepping_past_singlestep_breakpoint): New variables.
5714 (resume): Set singlestep_ptid. Check for singlestep thread
5716 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
5717 (handle_inferior_event): Handle singlestep thread hop.
5719 2004-02-16 Andrew Cagney <cagney@redhat.com>
5721 * dwarf2-frame.c (dwarf2_frame_ops): New function.
5722 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
5723 (dwarf2_frame_init_reg): Ditto.
5725 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
5726 suggested by Joshua Neuheisel
5728 * configure.in: Always check for curses, including pdcurses.
5729 Warn, instead of error, when no curses are found. Enable TUI when
5730 curses is available.
5731 * configure: Re-generate.
5733 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
5735 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
5736 sh_sh4_register_convert_to_virtual.
5737 (sh_register_convert_to_raw): Rename from
5738 sh_sh4_register_convert_to_raw.
5739 (sh_pseudo_register_read): Accomodate above name change.
5740 (sh_pseudo_register_write): Ditto.
5742 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
5744 * sh-tdep.c (sh_generic_register_name): Remove.
5745 (sh_gdbarch_init): Use sh_sh_register_name in default case.
5747 2004-02-15 Andrew Cagney <cagney@redhat.com>
5749 * configure.in (build_warnings): Add -Wunused-function.
5750 * configure: Re-generate.
5752 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
5753 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
5755 * procfs.c (procfs_init_inferior): Assume that
5756 START_INFERIOR_TRAPS_EXPECTED is defined.
5757 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
5758 * config/ns32k/tm-nbsd.h: Delete file,
5759 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
5761 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
5762 * config/vax/tm-vax.h: Delete file.
5764 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5765 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5766 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5767 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5768 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
5769 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5770 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
5772 2004-02-15 Mark Kettenis <kettenis@gnu.org>
5774 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
5775 * dwarf2-frame.c (dwarf2_frame_data): New variable.
5776 (struct dwarf2_frame_ops): New.
5777 (dwarf2_frame_default_init_reg): New function, based on
5778 dwarf2_frame_init_reg.
5779 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
5780 (dwarf2_frame_init_reg): Call architecture-specific function.
5781 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
5782 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
5783 instead of dwarf2_frame_data.
5784 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
5785 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
5787 2004-02-15 Andrew Cagney <cagney@redhat.com>
5789 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
5790 register_gdbarch_swap.
5791 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
5792 * f-lang.c (_initialize_f_language): Update, use
5793 DEPRECATED_REGISTER_GDBARCH_SWAP.
5794 * remote.c (_initialize_remote): Ditto.
5795 * regcache.c (_initialize_regcache): Ditto.
5796 * parse.c (_initialize_parse): Ditto.
5797 * infrun.c (_initialize_infrun): Ditto.
5798 * mi/mi-main.c (_initialize_mi_main): Ditto.
5799 * gdbtypes.c (_initialize_gdbtypes): Ditto.
5801 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
5802 poking .cacheable directly.
5803 * symfile.c (symfile_bfd_open): Ditto.
5805 * Makefile.in: Update all dependencies.
5807 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
5808 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
5809 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
5810 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
5811 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
5813 2004-02-14 Andrew Cagney <cagney@redhat.com>
5815 * arch-utils.c (legacy_convert_register_p): Check
5816 DEPRECATED_REGISTER_CONVERTIBLE_P.
5817 * findvar.c (value_of_register): Ditto.
5819 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
5820 * gdbarch.h, gdbarch.c: Re-generate.
5821 * arch-utils.c (deprecated_register_convertible_not): Delete.
5822 * arch-utils.h (deprecated_register_convertible_not): Delete.
5823 * mi/mi-main.c (get_register): Update. Update copyright.
5824 * infcmd.c (default_print_registers_info): Update.
5826 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
5827 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
5828 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
5829 * gdbarch.h, gdbarch.c: Re-generate.
5830 * frame.c (deprecated_get_next_frame_hack): Delete function.
5831 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
5832 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
5834 * infcall.c (call_function_by_hand): Update.
5836 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
5838 * symfile.c (init_entry_point_info, entry_point_address): Move
5840 * objfiles.c (init_entry_point_info, entry_point_address):..to
5842 * symfile.h (init_entry_point_info, entry_point_address): Remove
5844 * objfiles.h (init_entry_point_info, entry_point_address):Add
5846 * cris-tdep.c: Remove include of symfile.h. Add include of
5849 * mcore-tdep.c: Ditto.
5850 * mn10300-tdep.c: Ditto.
5851 * sh64-tdep.c: Ditto.
5852 * v850-tdep.c: Ditto.
5853 * arm-tdep.c: Remove include of symfile.h.
5854 * blockframe.c: Ditto.
5855 * coffread.c: Ditto.
5857 * dwarf2read.c: Ditto.
5858 * dwarfread.c: Ditto.
5859 * frv-tdep.c: Ditto.
5860 * ia64-tdep.c: Ditto.
5861 * mdebugread.c: Ditto.
5862 * mipsread.c: Ditto.
5863 * rs6000-tdep.c: Ditto.
5864 * s390-tdep.c: Ditto.
5866 * xstormy16-tdep.c: Ditto.
5867 * gdbarch.sh: Remove include of symfile.h.
5868 * gdbarch.c: Regenerate.
5869 * solib-irix.c (enable_break): Use entry_point_address().
5870 Add comment about include file.
5871 * xcoffread.c: Add comment about include file.
5872 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
5873 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
5874 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
5875 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
5876 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
5878 2004-02-13 Andrew Cagney <cagney@redhat.com>
5880 * corelow.c (core_xfer_partial): Use "struct bfd_section".
5881 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
5883 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
5885 2004-02-12 Fred Fish <fnf@redhat.com>
5887 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
5888 set_gdbarch_store_return_value.
5890 2004-02-12 Andrew Cagney <cagney@redhat.com>
5892 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
5893 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
5894 (interrupt_query): Ditto.
5895 (ofunc): Delete unused variable.
5896 * cris-tdep.c (cris_abi): Delete unused function.
5897 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
5898 (cris_get_wide_opcode, cris_get_short_size): Ditto.
5899 (cris_get_asr_quick_shift_steps): Ditto.
5900 (cris_skip_prologue_frameless_p): Ditto.
5901 * arm-tdep.c (arm_push_return_address): Delete unused function.
5902 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
5903 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
5904 * s390-tdep.c (s390_function_start): Delete unused function.
5906 2004-02-12 Andrew Cagney <cagney@redhat.com>
5908 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
5909 gdbarch.h, gdbarch.c: Re-generate.
5910 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
5911 to generic_prologue_frameless_p.
5912 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
5913 * arch-utils.c (generic_prologue_frameless_p): Delete function.
5915 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
5917 * mips-linux-tdep.c: Include "frame.h".
5918 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
5919 (mips_linux_skip_resolver): New functions.
5920 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
5921 and set_gdbarch_in_solib_call_trampoline.
5922 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
5923 to after set_gdbarch_in_solib_return_trampoline. Only set the
5924 solib hooks to mips16 functions if the OS ABI is unknown.
5925 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
5926 including "config/tm-linux.h".
5927 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
5928 * Makefile.in (mips-linux-tdep.o): Update.
5930 2004-02-11 David Carlton <carlton@kealia.com>
5932 * linespec.c (decode_compound): Only look for a class symbol when
5933 considering all but the rightmost component.
5935 2004-02-11 Andrew Cagney <cagney@redhat.com>
5937 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
5938 abi code are are separatly grouped.
5940 2004-02-11 Andrew Cagney <cagney@redhat.com>
5942 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
5943 * gdbarch.h, gdbarch.c: Re-generate.
5944 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5945 * v850-tdep.c (v850_gdbarch_init): Update.
5946 * sh64-tdep.c (sh64_gdbarch_init): Update.
5947 * sh-tdep.c (sh_gdbarch_init): Update.
5948 * s390-tdep.c (s390_gdbarch_init): Update.
5949 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5950 * mips-tdep.c (mips_gdbarch_init): Update.
5951 * mcore-tdep.c (mcore_gdbarch_init): Update.
5952 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5953 * m32r-tdep.c (m32r_gdbarch_init): Update.
5954 * ia64-tdep.c (ia64_gdbarch_init): Update.
5955 * hppa-tdep.c (hppa_gdbarch_init): Update.
5956 * h8300-tdep.c (h8300_gdbarch_init): Update.
5957 * frv-tdep.c (frv_gdbarch_init): Update.
5958 * d10v-tdep.c (d10v_gdbarch_init): Update.
5959 * cris-tdep.c (cris_gdbarch_init): Update.
5960 * avr-tdep.c (avr_gdbarch_init): Update.
5961 * arm-tdep.c (arm_gdbarch_init): Update.
5962 * alpha-tdep.c (alpha_gdbarch_init): Update.
5964 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
5966 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
5968 (sh_sh4al_dsp_register_name): Ditto.
5970 2004-02-10 Andrew Cagney <cagney@redhat.com>
5972 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
5973 (mips_init_frame_pc_first): Delete function.
5974 (mips_frame_saved_pc): Delete function.
5975 (mips_frame_chain): Delete function.
5976 (mips_init_extra_frame_info): Delete function.
5977 (mips_xfer_register): Delete unused variable "reg".
5978 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
5979 (mips_n32n64_return_value): Delete unused variable "reg".
5980 (mips_n32n64_return_value): Delete unused variable "pos".
5981 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
5982 (mips_o32_return_value): Delete unused variable "pos".
5983 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
5984 (mips_print_fp_register): Delete unused variable "namelen"
5985 (mips_print_fp_register): Delete unused variable "flt2"
5986 (get_frame_pointer): Delete function.
5987 (cached_proc_desc): Delete static variable.
5988 (mips_pop_frame): Delete function.
5989 (mips_find_saved_regs): Delete function.
5990 (mips_get_saved_register): Delete function.
5991 (mips_saved_pc_after_call): Delete function.
5992 (SIGFRAME_BASE): Delete macro.
5993 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
5994 (SIGFRAME_PC_OFF): Delete macro.
5995 (SIGFRAME_REGSAVE_OFF): Delete macro.
5996 (mips_dump_tdep): Do not print deleted macro definitions.
5998 2004-02-10 Andrew Cagney <cagney@redhat.com>
6000 * Makefile.in (SFILES): Remove explictly listed tui files.
6001 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
6003 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
6005 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
6006 to use paddr functions to format ia64 addresses and long values.
6007 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
6008 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
6009 (get_kernel_table, ia64_find_proc_info_x): Ditto.
6010 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
6011 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
6013 2004-02-10 Andrew Cagney <cagney@redhat.com>
6015 * defs.h: Do not include "tui.h".
6016 * gdb_curses.h: New file.
6017 * tui/tui-hooks.h: New file.
6018 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
6019 (tui_install_hooks, tui_remove_hooks): Delete declarations.
6020 (tui_initialize_io): Delete declaration.
6021 (tui_initialize_readline: Delete redundant declaration.
6022 (struct tui_point): Delete definition.
6023 * tui/tui-data.h (struct tui_point): Define.
6024 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
6025 * utils.c: Include "tui/tui.h".
6026 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
6027 * printcmd.c [TUI]: Include "tui/tui.h".
6028 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
6029 * tui/tui-command.c: Include "gdb_curses.h".
6030 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
6031 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
6032 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
6033 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
6034 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
6035 * Makefile.in: Update all dependencies.
6036 (tui_hooks_h, gdb_curses_h): Define.
6037 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
6039 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
6041 * objfiles.h (struct objfile): Remove unused fields auxf1 and
6042 auxf2. Add comments about some other rarely used fields.
6044 2004-02-10 Andrew Cagney <cagney@redhat.com>
6046 * Makefile.in (init.c): Fix script removing duplicates. Problem
6047 reported by Peter Schauer.
6049 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
6051 * bcache.c (bcache_xmalloc): Use obstack_init instead of
6052 obstack_specify_allocation.
6053 * objfiles.c (allocate_objfile): Ditto.
6054 * solib-sunos.c (solib_add_common_symbols)
6055 (allocate_rt_common_objfile): Ditto.
6056 * symfile.c (reread_symbols): Ditto.
6057 * gdb_obstack.h: Add comment.
6059 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
6061 * linespec.c (decode_line_1, locate_first_half)
6062 (decode_compound, lookup_prefix_sym): Update comments. Delete old
6065 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
6067 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
6070 2004-02-09 Andrew Cagney <cagney@redhat.com>
6072 * blockframe.c (find_pc_partial_function): If find_pc_overlay
6073 fails, try find_pc_section. Fix PR c++/1267.
6074 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
6075 instead of find_pc_mapped_section.
6076 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
6077 not default to the section containing PC. Fix PR symtab/1519.
6079 2004-02-09 Andrew Cagney <cagney@redhat.com>
6081 * Makefile.in (mips-tdep.o): Update dependencies.
6082 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
6084 (mips_unwind_pc): Return the pseudo PC register.
6085 (mips_unwind_dummy_id): New function.
6086 (mips16_fetch_instruction): New function.
6087 (mips32_fetch_instruction): New function.
6088 (struct mips_frame_cache): Define.
6089 (mips_mdebug_frame_cache): New function.
6090 (mips_mdebug_frame_this_id): New function.
6091 (mips_mdebug_frame_prev_register): New function.
6092 (mips_mdebug_frame_unwind): Define.
6093 (mips_mdebug_frame_sniffer): New function.
6094 (mips_mdebug_frame_base_address): New function.
6095 (mips_mdebug_frame_base): Define.
6096 (mips_mdebug_frame_base_sniffer): New function.
6097 (mips_gdbarch_init): Append unwind and base sniffers. Set
6100 2004-02-08 Andrew Cagney <cagney@redhat.com>
6102 * frame.c: Print both the register number and name.
6104 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
6105 and a sed into a single sed. Make .c and .o patterns more robust.
6107 (INIT_FILES): Replace OBS with COMMON_OBS.
6108 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
6110 2004-02-08 Mark Kettenis <kettenis@gnu.org>
6112 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
6113 the PT_WCOOKIE request.
6115 2004-02-08 Andrew Cagney <cagney@redhat.com>
6117 * mips-tdep.c (mips_unwind_pc): New function.
6118 (mips_gdbarch_init): Set mips_unwind_pc.
6120 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
6121 (get_frame_id): Allow the UNKNOWN_FRAME.
6122 (frame_register_unwind, get_frame_type): Ditto.
6124 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
6125 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
6126 unwind_dummy_id indicates a legacy frame.
6128 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
6129 * configure: Re-generate.
6131 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
6134 2004-02-08 Andrew Cagney <cagney@redhat.com>
6136 * configure.in (CONFIG_ALL): Set to Makefile target, and not
6138 * configure: Re-generate.
6139 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
6140 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
6141 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
6142 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
6143 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
6144 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
6145 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
6146 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
6147 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
6148 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
6150 2004-02-07 Andrew Cagney <cagney@redhat.com>
6152 * Makefile.in: Update all dependencies.
6154 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
6155 * configure: Re-generate.
6156 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
6157 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
6158 (COMMON_OBS): Add "main.o" and "annotate.o".
6159 (ANNOTATE_OBS): Delete.
6160 (OBS): Remove ANNOTATE_OBS.
6161 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
6163 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
6164 against CONFIG_OBS and "main.o".
6165 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
6166 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
6168 * tui/tui-command.c: Include "gdb_string.h", delete register
6169 attribute, use ISO-C function signatures.
6170 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
6171 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
6172 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
6175 * tui/tui-command.c: Change variable and function names to lower
6177 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
6178 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
6179 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
6180 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
6181 * tui/tui-winsource.c, tui/tui.c: Ditto.
6183 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
6185 * buildsym.c (free_pending_blocks, finish_block)
6186 (record_pending_block, make_blockvector, end_symtab): Replace
6187 symbol_obstack with objfile_obstack.
6188 * coffread.c (process_coff_symbol, coff_read_struct_type)
6189 (coff_read_enum_type): Ditto.
6190 * cp-namespace.c (initialize_namespace_symtab)
6191 (check_one_possible_namespace_symbol): Ditto.
6192 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
6193 (dwarf2_symbol_mark_computed): Ditto.
6194 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
6195 * elfread.c (elf_symtab_read): Ditto.
6196 * hpread.c (hpread_symfile_init, hpread_symfile_init)
6197 (hpread_read_enum_type, hpread_read_function_type)
6198 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
6200 * jv-lang.c (get_java_class_symtab, add_class_symbol)
6201 (java_link_class_type): Ditto.
6202 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
6203 (new_symbol): Ditto.
6204 * minsyms.c (install_minimal_symbols): Ditto.
6205 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
6206 (terminate_minimal_symbol_table): Replace symbol_obstack with
6208 (free_objfile): Remove freeing of symbol_obstack.
6209 * objfiles.h: Remove symbol_obstack field.
6210 * pa64solib.c (add_to_solist): Replace symbol_obstack with
6212 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
6214 (solib_add_common_symbols): Replace symbol_obstack with
6216 * somsolib.c (som_solib_add): Ditto.
6217 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6218 (common_block_start, common_block_end): Ditto.
6219 * symfile.c (reread_symbols): Remove freeing and init of
6221 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
6222 * symfile.h: Update comment.
6223 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
6225 * symtab.c (symbol_set_names): Replace symbol_obstack with
6227 * symtab.h (struct general_symbol_info, struct minimal_symbol):
6229 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
6230 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
6233 2004-02-07 Andrew Cagney <cagney@redhat.com>
6235 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
6236 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
6237 fields and variables.
6238 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
6239 (m_beInvisible): Delete macro.
6240 * tui/tui-data.h: Fix case case fields and variables.
6241 (m_genWinPtrIsNull): Delete macro.
6242 (tui_win_list): Rename winList.
6243 (TUI_SRC_WIN): Rename srcWin.
6244 (TUI_DISASM_WIN): Rename disassemWin.
6245 (TUI_DATA_WIN): Rename dataWin.
6246 (TUI_CMD_WIN): Rename cmdWin.
6247 (m_genWinPtrNotNull): Delete macro.
6248 (m_winPtrIsNull): Delete macro.
6249 (m_winPtrNotNull): Delete macro.
6250 (tui_win_is_source_type): Replace m_winIsSourceType
6251 (tui_win_is_auxillary): Replace m_winIsAuzillary.
6252 (tui_win_has_locator): Replace m_hasLocator.
6253 (tui_set_win_highlight): Replace m_setWinHighlightOn and
6254 m_setWinHighlightOff.
6255 * tui/tui-data.c: Update references.
6256 (tui_win_is_source_type, tui_set_win_highlight): New functions.
6257 (tui_win_has_locator, tui_win_is_auxillary): New functions.
6258 * tui/tui-command.c, tui/tui-disasm.c: Update references.
6259 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
6260 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
6261 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
6262 * tui/tui-winsource.c, tui/tui.c: Ditto.
6264 2004-02-07 Mark Kettenis <kettenis@gnu.org>
6266 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
6267 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
6270 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
6271 variable `i6' to `i7'.
6272 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
6274 2004-02-07 Andrew Cagney <cagney@redhat.com>
6276 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
6277 (TuiPoint, TuiPointPtr): Ditto.
6278 (TuiStatus, TuiStatusPtr): Ditto.
6279 (TuiWinType, TuiWinTypePtr): Ditto.
6280 (struct tui_point): Rename _TuiPoint.
6281 (tui_get_low_disassembly_address): Rename
6282 tuiGetLowDisassemblyAddress.
6283 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
6284 (tuiFree): Delete declaration.
6285 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
6286 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
6287 * tui/tui.c (tuiFree): Delete function.
6288 * cli/cli-cmds.c (disassemble_command): Update references.
6289 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
6290 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
6291 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
6292 * tui/tui-winsource.c: Ditto.
6294 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
6296 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
6297 coffstab_build_psymtabs, elfstab_build_psymtabs)
6298 (stabsect_build_psymtabs): Replace psymbol_obstack with
6300 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
6301 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
6303 * dwarfread.c (scan_compilation_units): Ditto.
6304 * elfread.c (elfstab_offset_sections): Ditto.
6305 * hppa-tdep.c (read_unwind_info): Ditto.
6306 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
6307 (hpread_end_psymtab): Ditto.
6308 * mdebugread.c (mdebug_build_psymtabs, add_pending)
6309 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
6311 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6312 * objfiles.c (add_to_objfile_sections)
6313 (build_objfile_section_table): Ditto.
6314 (allocate_objfile): Remove init of psymbol_obstack.
6315 (free_objfile): Remove freeing of psymbol_obstack.
6316 * objfiles.h (struct objfile): Remove field
6317 psymbol_obstack. Update comments.
6318 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
6319 psymbol_obstack with objfile_obstack.
6320 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
6322 * somread.c (som_symfile_offsets, init_import_symbols)
6323 (init_export_symbols): Replace psymbol_obstack with
6325 * somsolib.c (som_solib_add_solib_objfile): Ditto.
6326 * symfile.c (default_symfile_offsets, syms_from_objfile)
6327 (reread_symbols): Remove freeing and init of psymbol_obstack.
6328 (cashier_psymtab): Update comment.
6329 * symmisc.c (print_objfile_statistics): Don't report stats for
6331 * symtab.h (struct general_symbol_info, struct partial_symtab):
6333 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
6334 (xcoff_symfile_offsets): Replace psymbol_obstack with
6337 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
6339 * objfiles.h (struct objfile): Add objfile_obstack field.
6340 Remove type_obstack field.
6342 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
6343 read_structure_scope read_enumeration, new_symbol): Replace
6344 type_obstack with objfile_obstack.
6345 * dwarfread.c (struct_type, enum_type): Ditto.
6346 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
6347 (lookup_fundamental_type): Ditto.
6348 * gdbtypes.h (TYPE_ALLOC): Ditto.
6349 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
6350 (hpread_read_doc_function_type, hpread_read_struct_type)
6351 (fix_static_member_physnames, hpread_read_array_type)
6352 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
6353 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
6354 (java_link_class_type): Ditto.
6355 * mdebugread.c (parse_type): Ditto.
6356 * objfiles.c (allocate_objfile, free_objfile): Ditto.
6357 * solib-sunos.c (solib_add_common_symbols): Ditto.
6358 * stabsread.c (define_symbol, read_type, read_member_functions,
6359 read_cpp_abbrev, read_one_struct_field): Ditto.
6360 * symfile.c (reread_symbols): Ditto.
6361 * symmisc.c (print_objfile_statistics): Ditto.
6363 2004-02-07 Andrew Cagney <cagney@redhat.com>
6365 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
6366 (tui_exec_info_content): Rename TuiExecInfoContent.
6367 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
6368 (TuiWinInfo, TuiWinInfoPtr): Ditto.
6369 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
6370 (TuiList, TuiListPtr): Ditto.
6371 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
6372 (TuiDataType, TuiDataTypePtr): Ditto.
6373 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
6374 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
6375 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
6376 (TuiSourceElement, TuiSourceElementPtr): Ditto.
6377 (TuiDataElement, TuiDataElementPtr): Ditto.
6378 (TuiWinElement, TuiWinElementPtr): Ditto.
6379 (TuiDataInfo, TuiDataInfoPtr): Ditto.
6380 (TuiCommandElement, TuiCommandElementPtr): Ditto.
6381 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
6382 (TuiWhichElement, TuiWhichElementPtr): Ditto.
6383 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
6384 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
6385 * tui/tui-command.c, tui/tui-data.c: Update references.
6386 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
6387 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
6388 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
6389 * tui/tui-winsource.c, tui/tui.c: Ditto.
6391 2004-02-07 Mark Kettenis <kettenis@gnu.org>
6393 * dwarf2-frame.h: Update copyright.
6394 (enum dwarf2_frame_reg_rule): New.
6395 (struct dwarf2_frame_state_reg): New.
6396 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
6397 * dwarf2-frame.c: Update copyright.
6398 (enum dwarf2_reg_rule): Remove.
6399 (struct dwarf2_frame_state): Remove defenition of `struct
6400 dwarf2_frame_state_reg'.
6401 (read_reg): Call get_frame_arch to get the architecture instead of
6402 using CURRENT_GDBARCH.
6403 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
6405 (dwarf2_frame_init_reg): New function.
6406 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
6407 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
6408 initialize the register state. Prefix old `enum dwarf2_reg_rule'
6409 tags with DWARF2_FRAME_.
6410 (dwarf2_frame_prev_register): Call get_frame_arch to get the
6411 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
6412 dwarf2_reg_rule' tags with DWARF2_FRAME_.
6414 2004-02-06 Andrew Cagney <cagney@redhat.com>
6416 * tui/tui-data.h (struct tui_list): Rename _TuiList.
6417 (enum tui_data_type): Rename _TuiDataType.
6418 (struct tui_layout_def): Rename _TuiLayoutDef.
6419 (struct tui_source_element): Rename _TuiSourceElement.
6420 (struct tui_data_element): Rename _TuiDataElement.
6421 (struct tui_command_element): Rename _TuiCommandElement.
6422 (struct tui_locator_element): Rename _TuiLocatorElement.
6423 (union tui_which_element): Define.
6424 (struct tui_win_element): Rename _TuiWinElement.
6425 (struct tui_data_info): Rename _TuiDataInfo.
6426 (struct tui_source_info): Rename _TuiSourceInfo.
6427 (struct tui_command_info): Rename _TuiCommandInfo.
6428 (tui_initialize_static_data): Rename initializeStaticData.
6429 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
6430 (tui_alloc_win_info): Rename allocWinInfo.
6431 (tui_init_generic_part): Rename initGenericPart.
6432 (tui_init_win_info): Rename initWinInfo.
6433 (tui_alloc_content): Rename allocContent.
6434 (tui_add_content_elements): Rename addContentElements.
6435 (tui_init_content_element): Rename initContentElement.
6436 (tui_free_window): Rename freeWindow.
6437 (tui_free_win_content): Rename freeWinContent.
6438 (tui_free_data_content): Rename freeDataContent.
6439 (tui_free_all_source_wins_content): Rename
6440 freeAllSourceWinsContent.
6441 (tui_del_window): Rename tuiDelWindow.
6442 (tui_del_data_windows): Rename tuiDelDataWindows.
6443 (tui_partial_win_by_name): Rename partialWinByName.
6444 (tui_win_name): Rename winName.
6445 (tui_current_layout): Rename currentLayout.
6446 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
6447 (tui_term_height): Rename termHeight.
6448 (tui_set_term_height_to): Rename setTermHeightTo.
6449 (tui_term_width): Rename termWidth.
6450 (tui_set_term_width_to): Rename setTermWidthTo.
6451 (tui_set_gen_win_origin): Rename setGenWinOrigin.
6452 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
6453 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
6454 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
6455 (tui_source_windows): Rename sourceWindows.
6456 (tui_clear_source_windows): Rename clearSourceWindows.
6457 (tui_clear_source_windows_detail): Rename
6458 clearSourceWindowsDetail.
6459 (tui_clear_win_detail): Rename clearWinDetail.
6460 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
6461 (tui_default_tab_len): Rename tuiDefaultTabLen.
6462 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
6463 (tui_win_with_focus): Rename tuiWinWithFocus.
6464 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
6465 (tui_layout_def): Rename tuiLayoutDef.
6466 (tui_win_resized): Rename tuiWinResized.
6467 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
6468 (tui_next_win): Rename tuiNextWin.
6469 (tui_prev_win): Rename tuiPrevWin.
6470 (tui_add_to_source_windows): Rename addToSourceWindows.
6471 * tui/tui-winsource.c, tui/tui-win.c: Update references.
6472 * tui/tui-layout.c, tui/tui-source.c: Ditto.
6473 * tui/tui-stack.c, tui/tui-io.c: Ditto.
6474 * tui/tui.c, tui/tui-data.c: Ditto.
6475 * tui/tui-interp.c, tui/tui-data.c: Ditto.
6476 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
6478 * tui/tui-source.h: Update copyright. Include "tui-data.h".
6479 (struct symtab): Declare.
6480 (tui_set_source_content): Rename tuiSetSourceContent.
6481 (tui_show_symtab_source): Rename tuiShowSource.
6482 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
6483 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
6484 * tui/tui-source.c: Update copyright. Update references.
6485 * tui/tui-win.c, tui/tui-winsource.c: Update references.
6486 * tui/tui-stack.c: Update references.
6488 * tui/tui-win.h: Update copyright. Include "tui-data.h".
6489 (struct tui_win_info): Declare.
6490 (tui_scroll_forward): Rename tuiScrollForward.
6491 (tui_scroll_backward): Rename tuiScrollBackward.
6492 (tui_scroll_left): Rename tuiScrollLeft.
6493 (tui_scroll_right): Rename tuiScrollRight.
6494 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
6495 (tui_resize_all): Rename tuiResizeAll.
6496 (tui_refresh_all_win): Rename tuiRefreshAll.
6497 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
6498 * tui/tui-layout.c, * tui/tui-io.c: Update references.
6499 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
6500 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
6502 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
6503 (tui_erase_data_content): Rename tuiEraseDataContent.
6504 (tui_display_all_data): Rename tuiDisplayAllData.
6505 (tui_check_data_values): Rename tuiCheckDataValues.
6506 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
6507 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
6508 (tui_first_data_element_no_in_line): Rename
6509 tuiFirstDataElementNoInLine.
6510 (tui_delete_data_content_windows): Rename
6511 tuiDeleteDataContentWindows.
6512 (tui_refresh_data_win): Rename tuiRefreshDataWin.
6513 (tui_display_data_from): Rename tuiDisplayDataFrom.
6514 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
6515 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
6516 * tui/tui-win.c, tui/tui-regs.c: Update references.
6517 * tui/tui-layout.c, tui/tui.c: Update references.
6519 * tui/tui-wingeneral.h: Update copyright.
6520 (m_allBeVisible): Delete macro.
6521 (m_allBeInvisible): Delete macro.
6522 (struct tui_gen_win_info): Declare.
6523 (struct tui_win_info): Declare.
6524 (tui_unhighlight_win): Rename unhighlightWin.
6525 (tui_make_visible, tui_make_invisible): Replace makeVisible.
6526 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
6527 (tui_make_window): Rename makeWindow.
6528 (tui_copy_win): Rename copyWin.
6529 (tui_box_win): Rename boxWin.
6530 (tui_highlight_win): Rename highlightWin.
6531 (tui_check_and_display_highlight_if_needed): Rename
6532 checkAndDisplayHighlightIfNeeded.
6533 (tui_refresh_all): Rename refreshAll.
6534 (tui_delete_win): Rename tuiDelwin.
6535 (tui_refresh_win): Rename tuiRefreshWin.
6536 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
6537 (tui_make_visible, tui_make_invisible): New functions.
6538 (tui_make_all_visible, tui_make_all_invisible): New functions.
6539 (make_all_visible): Rename makeAllVisible.
6540 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
6541 * tui/tui-data.c, tui/tui-winsource.c: Update references.
6542 * tui/tui-windata.c, tui/tui-win.c: Update references.
6543 * tui/tui-regs.c, tui/tui-layout.c: Update references.
6544 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
6546 2004-02-06 Mark Kettenis <kettenis@gnu.org>
6548 * proc-api.c (write_with_trace): Initialize local variable to
6549 silence compiler warning.
6551 2004-02-06 Andrew Cagney <cagney@redhat.com>
6553 * tui/tui-source.h: Do not include "defs.h".
6554 (struct tui_win_info): Declare.
6555 (tui_set_source_content_nil): Declare.
6556 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
6557 (union tui_line_or_address): Rename _TuiLineOrAddress.
6558 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
6559 (tui_update_source_window): Rename tuiUpdateSourceWindow.
6560 (tui_update_source_window_as_is): Rename
6561 tuiUpdateSourceWindowAsIs.
6562 (tui_update_source_windows_with_addr): Rename
6563 tuiUpdateSourceWindowsWithAddr.
6564 (tui_update_source_windows_with_line): Rename
6565 tuiUpdateSourceWindowsWithLine.
6566 (tui_clear_source_content): Rename tuiClearSourceContent.
6567 (tui_erase_source_content): Rename tuiEraseSourceContent.
6568 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
6569 (tui_show_source_content): Rename tuiShowSourceContent.
6570 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
6571 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
6572 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
6573 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
6574 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
6575 (tui_update_exec_info): Rename tuiUpdateExecInfo.
6576 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
6577 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
6578 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
6579 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
6580 (struct tui_win_info): Declare.
6581 * tui/tui-stack.c: Update references.
6582 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
6583 * tui/tui-win.c, tui/tui-source.c: Ditto.
6584 * tui/tui.c, tui/tui-disasm.c: Ditto.
6586 2004-02-06 Mark Kettenis <kettenis@gnu.org>
6588 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
6589 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
6591 2004-02-05 Mark Kettenis <kettenis@gnu.org>
6593 * infrun.c (handle_inferior_event): Allow for breakpoint
6594 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
6595 and SIGEMT. Update comments.
6596 * NEWS (Revised SPARC target): Mention support for non-executable
6599 2004-02-04 Mark Kettenis <kettenis@gnu.org>
6601 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
6602 * inftarg.c: Update copyright year.
6603 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
6604 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
6605 (sparc_xfer_wcookie): New function.
6606 * sparc-tdep.c (sparc_fetch_wcookie): New function.
6607 * Makefile.in (sparc-nat.o): Update dependencies.
6608 * config/sparc/nm-nbsd.h: Include "target.h".
6609 (NATIVE_XFER_WCOOKIE): New define.
6610 (sparc_xfer_wcookie): New prototype.
6612 2004-02-04 Andrew Cagney <cagney@redhat.com>
6614 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
6615 SYSCALL_TRAP function.
6616 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
6618 2004-02-04 Andrew Cagney <cagney@redhat.com>
6619 Daniel Jacobowitz <drow@mvista.com>
6621 * objfiles.h: Delete comments refering to inside_entry_func and
6622 DEPRECATED_FRAME_CHAIN_VALID.
6623 * defs.h (inside_entry_func): Update prototype..
6624 * blockframe.c (inside_entry_func): Rename to
6625 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
6626 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
6628 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
6630 * breakpoint.c (struct captured_parse_breakpoint_args): Move
6631 outside of #ifdef SOLIB_ADD region.
6632 (do_restore_lang_radix_cleanup): Ditto.
6633 (resolve_pending_breakpoint): Ditto.
6635 2004-02-03 Andrew Cagney <cagney@redhat.com>
6637 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
6638 (process_note_abi_tag_sections): Delete unused function.
6639 (ia64_read_fp): Delete unused function.
6640 (gdbarch_extract_struct_value_address): Delete declaration.
6642 2004-02-02 Andrew Cagney <cagney@redhat.com>
6644 * vax-tdep.c (vax_frame_chain): Delete call to
6645 deprecated_inside_entry_file.
6646 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
6648 2004-02-02 Mark Kettenis <kettenis@gnu.org>
6650 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
6651 column that's "empty" or "same value" when eliminating REG_RA
6654 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
6656 * NEWS: Add information about new pending breakpoint support.
6658 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
6660 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
6661 and pending fields for pending breakpoint support.
6662 * breakpoint.c (breakpoint_enabled): Add check for not pending.
6663 (condition_command): Only parse condition if not a pending
6665 (print_one_breakpoint): Add support for pending breakpoints.
6666 (describe_other_breakpoints): Add checks to verify we are not
6667 dealing with pending breakpoints.
6668 (check_duplicates): Don't check pending breakpoints.
6669 (set_raw_breakpoint): Initialize pending flag.
6670 (do_restore_lang_radix_cleanup): New cleanup routine.
6671 (resolve_pending_breakpoint): New function.
6672 (re_enable_breakpoints_in_shlibs): Try and resolve any
6673 pending breakpoints via resolve_pending_breakpoint.
6674 (mention): Add pending breakpoint support.
6675 (parse_breakpoint_sals): Add new parameter to pass to
6676 decode_line_1 to indicate silent errors when files or functions
6677 are not found. Change all callers.
6678 (do_captured_parse_breakpoint): New function.
6679 (break_command_1): Change prototype to return an rc value and to
6680 take an optional pending breakpoint pointer. Support creating
6681 a pending breakpoint if a "not found" form of error occurs when
6682 parsing the breakpoint. Also support resolving an existing pending
6683 breakpoint and be silent if the resolution fails.
6684 (create_breakpoints): Change prototype to take pending breakpoint
6685 pointer. When resolving a pending breakpoint, use the new pointer
6686 to provide a conditional or commands added by the end-user.
6687 (delete_breakpoint): Add appropriate check for pending.
6688 (breakpoint_re_set_one): Ditto.
6689 (do_enable_breakpoint): Ditto.
6691 2004-02-02 David Carlton <carlton@kealia.com>
6693 * valops.c (enum oload_classification): New.
6694 (find_overload_match): Break implementation into separate
6695 functions; delete #if 0'd code; look for symbols within
6697 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
6698 (find_oload_champ,oload_method_static,classify_oload_match): New.
6699 * cp-support.h: Add declaration for cp_func_name; update
6700 declaration for make_symbol_overload_list.
6701 * cp-support.c (cp_func_name): New.
6702 (overload_list_add_symbol): Fix comment, use
6703 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
6704 (make_symbol_overload_list): Take a function name and a namespace
6705 instead of a symbol; change implementation.
6706 (make_symbol_overload_list_using): New.
6707 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
6709 2004-02-02 Fred Fish <fnf@redhat.com>
6711 * main.c (gdb_stdtarg): Move definition to group with other
6712 gdb_stdtarg definitions and update copyright years.
6713 * remote-sim.c (gdb_os_write_stderr): Write output to
6714 gdb_stdtargerr stream instead of gdb_stdtarg stream.
6715 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
6716 gdb_stderr stream and update copyright years.
6718 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
6720 * Makefile.in (mips-linux-nat.o): Update dependencies.
6721 * mips-linux-nat.c: Include mips-tdep.h.
6723 2004-02-01 Roland McGrath <roland@redhat.com>
6725 * sol-thread.c (sol_thread_xfer_partial): New function.
6726 (init_sol_thread_ops): Use that for to_xfer_partial hook.
6727 (init_sol_core_ops): Likewise.
6729 * procfs.c (procfs_xfer_partial): New function.
6730 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
6731 * Makefile.in (procfs.o): Add $(auxv_h) dep.
6733 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
6734 procfs_xfer_auxv function.
6736 * procfs.c (procfs_make_note_section): If we can read
6737 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
6738 * linux-proc.c (linux_make_note_section): Likewise.
6742 * Makefile.in (auxv_h): New variable.
6743 (COMMON_OBS): Add auxv.o here.
6744 (auxv.o): New target.
6746 * corelow.c (core_xfer_partial): New function.
6747 (init_core_ops): Use it for core_ops.to_xfer_partial.
6749 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
6750 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
6751 macro if that is defined.
6753 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
6755 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
6756 and check the specified thread for each breakpoint.
6757 * breakpoint.h (bpstat_stop_status): Update prototype.
6758 * infrun.c (handle_inferior_event): Update calls to
6761 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
6763 * Makefile.in (cli-cmds.o): Add $(readline_h).
6765 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
6767 * cli/cli-cmds.c: Include readline.h.
6768 (complete_command): Pass the start of the last word to
6771 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
6773 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
6774 argument, and change first argument to a CORE_ADDR.
6775 * breakpoint.h (bpstat_stop_status): Update prototype.
6776 * infrun.c (adjust_pc_after_break): Add a new comment.
6777 (handle_inferior_event): Update calls to bpstat_stop_status.
6779 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
6781 * breakpoint.h: Update copyright years.
6783 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
6785 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
6786 (bpstat_stop_status): Don't decrement PC.
6787 * breakpoint.h (software_breakpoint_inserted_here_p): Add
6789 * infrun.c (adjust_pc_after_break): New function.
6790 (handle_inferior_event): Call it, early. Remove later references
6791 to DECR_PC_AFTER_BREAK.
6792 (normal_stop): Add commentary.
6794 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
6796 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
6797 2004-01-27 double-free fix.
6799 2004-01-31 Mark Kettenis <kettenis@gnu.org>
6801 * sparc-tdep.c (sparc_fetch_wcookie): New function.
6802 (sparc32_frame_prev_register): Handle StackGhost.
6803 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
6805 2004-01-29 Roland McGrath <roland@redhat.com>
6807 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
6808 * configure: Regenerated.
6810 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
6811 * Makefile.in (procfs.o): Add dep.
6813 2004-01-28 Andrew Cagney <cagney@redhat.com>
6815 * tui/tui-stack.h: Update copyright.
6816 (struct frame_info): Add opaque declaration.
6817 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
6818 (tui_show_locator_content): Rename tuiShowLocatorContent.
6819 (tui_show_frame_info): Rename tuiShowFrameInfo.
6820 * tui/tui-stack.c: Update copyright. Update references.
6821 * tui/tui-winsource.c: Update references.
6822 * tui/tui-win.c: Update references.
6823 * tui/tui-layout.c: Update references.
6824 * tui/tui-hooks.c: Update copyright, update references.
6825 * tui/tui.c: Update copyright, update references.
6826 * tui/tui-disasm.c: Update references.
6828 2004-01-28 David Carlton <carlton@kealia.com>
6830 * dwarf2read.c (add_partial_structure): Use demangled name if
6831 namespace equals "".
6833 2004-01-27 Jim Blandy <jimb@redhat.com>
6835 Clean up misapplied patch:
6836 * dwarf2read.c (determine_prefix): Change one of the two forward
6837 declarations for 'determine_prefix_aux' to a declaration for this.
6838 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
6839 argument to 'die_specification'.
6841 * dwarf2read.c (read_func_scope): Re-indent comment.
6843 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
6845 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
6846 b->exp to NULL after freeing so that error during re-parsing or
6847 evaluation of expressions associated with breakpoint don't
6848 eventually lead to re-freeing of storage.
6849 Committed by Andrew Cagney.
6851 2004-01-27 Andrew Cagney <cagney@redhat.com>
6853 * source.c (ambiguous_line_spec): Delete undefined declaration.
6854 * m32r-rom.c (m32r_set_board_address): Delete unused function.
6855 (m32r_set_server_address, m32r_set_download_path): Ditto.
6856 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
6858 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
6860 * dwarf2read.c: Update calls to changed and renamed functions, and
6861 references to moved variables.
6863 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
6864 language, language_defn, list_in_scope, and ftypes members.
6865 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
6866 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
6867 (baseaddr): Remove globals.
6869 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
6870 (set_cu_language, die_is_declaration, die_specification)
6871 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
6872 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
6873 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
6874 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
6876 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
6877 cu.list_in_scope. Don't initialize cu_header_offset.
6878 (add_partial_symbol): Add local baseaddr.
6879 (psymtab_to_symtab_1): Add local baseaddr. Use
6880 objfile->section_offsets for consistency. Don't initialize
6881 cu_header_offset; do initialize cu.header.offset and
6883 (read_file_scope, read_func_scope, read_lexical_block_scope)
6884 (dwarf_decode_lines, new_symbol): Add local baseaddr.
6886 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
6888 * PROBLEMS: Add gdb/1516.
6890 2003-12-29 Robert Millan <robertmh@gnu.org>
6892 Patch committed by Andrw Cagney.
6893 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
6894 * configure.tgt: Match knetbsd*-gnu.
6896 2004-01-26 Andrew Cagney <cagney@redhat.com>
6898 * breakpoint.c (catch_command_1): Delete #ifdef code.
6899 (catch_fork_command_1): Delete #ifdef wrapper.
6900 (catch_exec_command_1): Ditto.
6901 (catch_load_command_1): Ditto.
6902 (catch_unload_command_1): Ditto.
6904 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
6905 (catch_breakpoint): Delete #if0ed function.
6906 (disable_catch_breakpoint): Ditto.
6907 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
6908 (disable_catch, enable_catch, delete_catch): Ditto.
6910 2004-01-26 Andrew Cagney <cagney@redhat.com>
6912 * remote.c (echo_check, quit_flag): Delete variables.
6913 (cisco_kernel_mode): Delete variable.
6914 (minitelnet_return, tty_input, escape_count): Delete variables.
6915 (remote_cisco_mode): Delete variable.
6916 (remote_cisco_open, remote_cisco_close): Delete function.
6917 (remote_cisco_mourn, remote_cisco_wait): Delete function.
6918 (init_remote_cisco_ops): Delete function.
6919 (_initialize_remote): Do not install "remote cisco" code.
6920 (read_frame): Delete cisco specific code.
6921 (remote_info_process): Delete function.
6922 (remote_wait): Delete cisco specific code.
6923 (remote_cisco_section_offsets): Delete function.
6924 (remote_cisco_objfile_relocate): Delete function.
6925 (remote_async_wait): Delete cisco specific code.
6926 (minitelnet, readtty, readsocket): Delete function.
6928 2004-01-26 Andrew Cagney <cagney@redhat.com>
6930 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
6931 comments mentioning extract_returned_value_address.
6932 * infcmd.c (print_return_value): Update. Add comments on
6933 extract_returned_value_address.
6934 * stack.c (return_command): Add comments on
6935 extract_returned_value_address.
6936 * values.c: Update comment.
6937 * m32r-tdep.c: Update comment.
6938 * sparc-tdep.c: Update comment.
6939 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
6940 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6941 * sh64-tdep.c (sh64_gdbarch_init): Update.
6942 * sh-tdep.c (sh_gdbarch_init): Update.
6943 * s390-tdep.c (s390_gdbarch_init): Update.
6944 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6945 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6946 * m68k-tdep.c (m68k_gdbarch_init): Update.
6947 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6948 * m32r-tdep.c (m32r_gdbarch_init): Update.
6949 * ia64-tdep.c (ia64_gdbarch_init): Update.
6950 * h8300-tdep.c (h8300_gdbarch_init): Update.
6951 * frv-tdep.c (frv_gdbarch_init): Update.
6952 * arm-tdep.c (arm_gdbarch_init): Update.
6953 * alpha-tdep.c (alpha_gdbarch_init): Update.
6955 2004-01-26 Andrew Cagney <cagney@redhat.com>
6957 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
6958 SYMBOL_LOCATION_FUNCS
6959 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
6960 "struct symbol_ops".
6961 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
6962 type to "struct symbol_ops".
6963 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
6964 (struct symbol): Replace ".aux_value.loc.funcs" and
6965 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
6966 (SYMBOL_OBJFILE): Delete macro.
6967 (SYMBOL_LOCATION_FUNCS): Delete macro.
6968 (SYMBOL_LOCATION_BATON): Update.
6969 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
6970 intead of SYMBOL_LOCATION_FUNCS.
6971 * ax-gdb.c (gen_var_ref): Ditto.
6972 * printcmd.c (address_info): Ditto.
6973 * findvar.c (read_var_value): Ditto.
6974 (symbol_read_needs_frame): Ditto.
6976 2004-01-26 Andrew Cagney <cagney@redhat.com>
6978 * dwarf2read.c (read_func_scope): Document frame-base hack.
6980 2004-01-25 Mark Kettenis <kettenis@gnu.org>
6982 * infcmd.c (print_return_value): Plug memory leak; delete
6983 ui_stream object. Rename argument `structure_return' to
6986 2004-01-25 Mark Kettenis <kettenis@gnu.org>
6988 * infcmd.c (print_return_value): Wrap long lines.
6989 (finish_command_continuation, finish_command): Remove unused
6990 variable `funcaddr'. Fix some coding-standards problems.
6992 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
6993 SECT_SIZE is large enough, not whether it's exactly the right size.
6994 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
6995 TDEP->fpregset to zero.
6997 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
6998 floating-point registers for traditional NetBSD core files.
6999 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
7000 TDEP->sizeof_fpregset here.
7002 2004-01-25 Mark Kettenis <kettenis@gnu.org>
7004 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
7005 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
7006 function with code split out from
7007 sparc32nbsd_sigcontext_frame_cache.
7008 (sparc32nbsd_sigcontext_frame_cache): Use
7009 sparc32nbsd_sigcontext_saved_regs.
7010 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
7012 * sparcobsd-tdep.c: New file.
7013 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
7014 (sparcobsd-tdep.o): New dependency.
7015 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
7016 * config/sparc/obsd.mt: New file.
7018 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
7019 TDEP->fpregset to be initialized to enable core file register
7022 2004-01-24 Mark Kettenis <kettenis@gnu.org>
7024 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
7025 Add opaque declarations.
7026 (sparc64nbsd_sigcontext_saved_regs): New prototype.
7027 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
7028 function with code split out from
7029 sparc64nbsd_sigcontext_frame_cache.
7030 (sparc64nbsd_sigcontext_frame_cache): Use
7031 sparc64nbsd_sigcontext_saved_regs.
7032 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
7034 * sparc64obsd-tdep.c: New file.
7035 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
7036 (sparc64obsd-tdep.o): New dependency.
7037 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
7038 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
7039 * config/sparc/obsd64.mt: New file.
7041 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
7042 read the instruction at PC.
7044 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
7045 value of GDB_OSABI_DEFAULT.
7046 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
7047 instead of GDB_OSABI_NETBSD_AOUT.
7049 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
7051 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
7054 2004-01-23 Andrew Cagney <cagney@redhat.com>
7056 * printcmd.c (display_command): Replace tui_set_display call with
7057 tui_set_layout_for_display_command.
7058 * tui/tui.h (enum tui_win_type): Define.
7059 (tui_set_layout): Delete declaration.
7060 (tui_set_layout_for_display_command): Rename set_tui_layout.
7061 * tui/tui-data.h (enum tui_layout_type): Define.
7062 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
7064 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
7065 (tui_default_win_height): Rename tuiDefaultWinHeight.
7066 (tui_default_win_viewport_height): Rename
7067 tuiDefaultWinViewportHeight.
7068 (tui_set_layout): RenametuiSetLayout.
7069 * tui/tui-layout.c: Update references.
7070 * tui/tui.c: Update references.
7071 * tui/tui-disasm.c: Update references.
7073 2004-01-23 David Carlton <carlton@kealia.com>
7075 Partial workaround for PR c++/1511:
7076 * cp-namespace.c: Include frame.h.
7077 (cp_lookup_transparent_type): New
7078 (cp_lookup_transparent_type_loop): New.
7079 * cp-support.h: Declare cp_lookup_transparent_type.
7080 * symtab.c (basic_lookup_transparent_type): Renamed from
7081 lookup_transparent_type.
7082 (lookup_transparent_type): Replace old body by a call to
7083 current_language->la_lookup_transparent_type.
7084 * symtab.h: Update copyright. Declare
7085 basic_lookup_transparent_type.
7086 * language.h: Update copyright.
7087 (struct language_defn): Add la_lookup_transparent_type.
7088 * language.c: Update copyright.
7089 (unknown_language_defn): Add basic_lookup_transparent_type.
7090 (auto_language_defn): Add basic_lookup_transparent_type.
7091 (local_language_defn): Add basic_lookup_transparent_type.
7092 * ada-lang.c: Update copyright.
7093 (ada_language_defn): Add basic_lookup_transparent_type.
7094 * c-lang.c: Update copyright.
7095 (c_language_defn): Add basic_lookup_transparent_type.
7096 (cplus_language_defn): Add basic_lookup_transparent_type.
7097 (asm_language_defn): Add basic_lookup_transparent_type.
7098 (minimal_language_defn): Add basic_lookup_transparent_type.
7099 * f-lang.c: Update copyright.
7100 (f_language_defn): Add basic_lookup_transparent_type.
7101 * jv-lang.c: Update copyright.
7102 (java_language_defn): Add basic_lookup_transparent_type.
7103 * m2-lang.c: Update copyright.
7104 (m2_language_defn): Add basic_lookup_transparent_type.
7105 * objc-lang.c: Update copyright.
7106 (objc_language_defn): Add basic_lookup_transparent_type.
7107 * p-lang.c: Update copyright.
7108 (p_language_defn): Add basic_lookup_transparent_type.
7109 * scm-lang.c: Update copyright.
7110 (scm_language_defn): Add basic_lookup_transparent_type.
7111 * Makefile.in (cp-namespace.o): Depend on frame.h.
7113 2004-01-23 David Carlton <carlton@kealia.com>
7115 Patch for PR c++/1520:
7116 * dwarf2read.c (read_func_scope): Set processing_current_prefix
7117 properly if we have a specification die.
7118 (determine_prefix_aux): Rename from determine_prefix.
7119 (determine_prefix): Like the old determine_prefix, but never
7122 2004-01-23 Theodore A. Roth <troth@openavr.org>
7124 * avr-tdep.c: Update copyright.
7125 (avr_iaddr_p): Delete unused function.
7126 (avr_saddr_p): Delete unused function.
7128 2004-01-23 David Carlton <carlton@kealia.com>
7130 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
7131 Fix for PR symtab/1534.
7133 2004-01-23 Mark Kettenis <kettenis@gnu.org>
7135 * NEWS (New native configurations): Mention OpenBSD/sparc and
7137 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
7138 * configure.host: Likewise.
7139 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
7140 handler for OpenBSD.
7141 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
7143 2004-01-22 Mark Kettenis <kettenis@gnu.org>
7145 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
7146 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
7148 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
7149 * cli/cli-cmds.c (shell_escape): Likewise.
7151 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
7152 OpenBSD .note.openbsd.ident sections.
7154 2004-01-22 David Carlton <carlton@kealia.com>
7156 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
7157 get_scope_pc_bounds.
7158 (read_file_scope): Ditto.
7159 (get_scope_pc_bounds): New function, produced by extracting code
7160 from the above two functions, consolidating it, and adding support
7161 for DW_TAG_namespace.
7163 2004-01-22 Mark Kettenis <kettenis@gnu.org>
7165 * osabi.c (MAX_NOTESZ): New define.
7166 (check_note): New function.
7167 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
7170 2004-01-21 Roland McGrath <roland@redhat.com>
7172 * MAINTAINERS (write after approval): Add myself.
7174 2004-01-21 Eli Zaretskii <eliz@gnu.org>
7176 * utils.c (init_page_info): Move declarations of `rows' and
7177 `cols' before the __GO32__-specific code. Move the closing brace
7178 outside the #ifdef __GO32__..#endif block.
7179 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
7181 2004-01-21 Paul Brook <paul@codesourcery.com>
7183 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
7184 BPSTAT_WHAT_CHECK_SHLIBS.
7186 2004-01-21 Paul Brook <paul@codesourcery.com>
7188 * MAINTAINERS: Add myself to write-after-approval.
7190 2004-01-20 Andrew Cagney <cagney@redhat.com>
7192 * ax-gdb.c (print_axs_value): Delete unused function.
7193 * jv-lang.c (java_lookup_type): Delete unused function.
7194 * cli/cli-dump.c (dump_filetype): Delete unused function.
7195 * remote-mips.c (remote_mips_insert_hw_breakpoint)
7196 (remote_mips_remove_hw_breakpoint): Delete unused functions.
7197 (mips_getstring): Delete unused function.
7198 (pmon_insert_breakpoint): Delete #if0ed function.
7199 (PMON_MAX_BP): Delete #if0ed MACRO.
7200 (mips_pmon_bp_info): Delete #if0ed variable.
7201 (pmon_remove_breakpoint): Delete #if0ed function.
7202 * monitor.c (monitor_write_even_block): Delete unused function.
7203 (monitor_write_memory_block): Delete #if0ed code.
7204 * dink32-rom.c (dink32_load): Delete unused function.
7205 (_initialize_dink32_rom): Delete #if0ed code.
7206 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
7208 * tui/tui-command.c: Update references.
7209 * tui/tui-io.c: Update references.
7210 * tui/tui-command.h: Update copyright.
7211 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
7213 * source.c (ambiguous_line_spec): Delete never-defined function.
7214 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
7215 * gdbtypes.c (add_name, add_mangled_type): Ditto.
7216 * cli/cli-cmds.c (validate_comname): Ditto.
7218 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
7220 (tui_set_disassem_content): Rename tuiSetDisassemContent.
7221 (tui_show_disassem): Rename tuiShowDisassem.
7222 (tui_show_disassem_and_update_source): Rename
7223 tuiVerticalDisassemScroll.
7224 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
7225 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
7226 * tui/tui.h: Update copyright.
7227 (enum tui_status): Define.
7228 * tui/tui-data.h (enum tui_scroll_direction): Define.
7229 * tui/tui-disasm.c: Update copyright. Update references.
7230 * tui/tui-winsource.c: Update copyright. Update references.
7231 * tui/tui-win.c: Update references.
7232 * tui/tui-layout.c: Update references.
7234 2004-01-20 Andrew Cagney <cagney@redhat.com>
7236 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
7237 sym2 to start of block.
7239 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
7241 * MAINTAINERS: Delete mmalloc.
7242 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
7243 * NEWS: Mention removal of --with-malloc.
7244 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
7245 * config.in: Regenerate.
7246 * configure: Regenerate.
7247 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
7248 USE_MMALLOC, MMCHECK_FORCE.
7249 * gdbinit.in: Remove mmalloc.
7250 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
7251 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
7252 * config/i386/go32.mh: Likewise.
7253 * config/i386/interix.mh: Likewise.
7254 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
7256 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
7258 * linespec.c (decode_variable, symtab_from_filename): Call
7259 error_silent with error message instead of throwing an exception
7261 * defs.h (error_silent, error_output_message): Add prototypes.
7262 (catch_exceptions_with_msg): Ditto.
7263 * utils.c (error_silent, error_output_message): New functions.
7264 * top.c (catch_exceptions_with_msg): New function.
7266 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
7268 * mi/mi-cmds.h (enum print_values): Add definition.
7270 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
7271 type and value for simple data types and just the name and type
7272 for complex ones, if required.
7274 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
7275 children, if required.
7277 2004-01-19 Kevin Buettner <kevinb@redhat.com>
7279 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
7280 unused declarations.
7282 2004-01-19 Andrew Cagney <cagney@redhat.com>
7284 * top.h (mapped_symbol_files): Delete declaration.
7285 * main.c (captured_main): Delete option "m" and "mapped".
7286 * objfiles.c (mapped_symbol_files): Delete variable.
7287 * symfile.c (symbol_file_command): Delete mmap code.
7288 (symbol_file_add_with_addrs_or_offsets): Ditto.
7289 (add_symbol_file_command, reread_separate_symbols): Ditto.
7290 * objfiles.h (OBJF_MAPPED): Delete.
7291 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
7292 (free_objfile) [USE_MMALLOC]: Ditto.
7293 (open_existing_mapped_file): Delete function.
7294 (open_mapped_file): Delete function.
7295 (map_to_file): Delete function.
7297 2004-01-19 Kevin Buettner <kevinb@redhat.com>
7299 * infrun.c (step_into_function): Account for possible breakpoint
7300 adjustment when computing ``stop_func_start''.
7302 2004-01-19 Kevin Buettner <kevinb@redhat.com>
7304 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
7305 the region size against the size of a pointer, not the size of
7306 a register as given by DEPRECATED_REGISTER_SIZE.
7308 2004-01-19 Andrew Cagney <cagney@redhat.com>
7310 * tui/tui-regs.h: Include "tui-data.h".
7311 (tuiFirstRegElementNoInLine): Delete declaration.
7312 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
7313 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
7314 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
7315 (tui_calculate_regs_column_count): Rename
7316 tuiCalculateRegsColumnCount.
7317 (tui_check_register_values): Rename tuiCheckRegisterValues.
7318 (tui_show_registers): Rename tuiShowRegisters.
7319 (tui_display_registers_from_line): Rename
7320 tuiDisplayRegistersFromLine.
7321 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
7322 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
7323 (tui_first_reg_element_no_inline): Rename
7324 tuiFirstRegElementNoInLine.
7325 * tui/tui-data.h: Update copyright.
7326 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
7327 * tui/tui-windata.c: Update copyright, update references.
7328 * tui/tui-regs.c: Update copyright, update references.
7329 * tui/tui-win.c: Update copyright, update references.
7330 * tui/tui-layout.c: Update copyright, update references.
7332 2004-01-18 Andrew Cagney <cagney@redhat.com>
7334 * tui/tui-io.c: Update copyright.
7335 (key_is_end_sequence, key_is_backspace): New functions.
7336 (key_is_command_char, key_is_start_sequence): New function.
7337 (tui_getc): Update references.
7338 * tui/tui-io.h: Update copyright.
7339 (m_tuiStartNewLine): Delete macro.
7340 (m_isBackspace, m_isDeleteChar): Delete macros.
7341 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
7342 (m_isNextPage, m_isPrevPage): Delete macros.
7343 (m_isLeftArrow, m_isRightArrow): Delete macros.
7344 (m_isXdbStyleCommandChar): Delete macro.
7345 (key_is_start_sequence): Declare, replace m_isStartSequence.
7346 (key_is_end_sequence): Declare, replace m_isEndSequence.
7347 (key_is_backspace): Declare ,replace m_isBackspace.
7348 (key_is_command_char): Declare, replace m_isCommandChar.
7349 * tui/tui-command.c: Update copyright.
7350 (tuiDispatchCtrlChar): Update references.
7352 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
7355 * tui/tui-command.c: Rename tui/tuiCommand.c.
7356 * tui/tui-command.h: Rename tui/tuiCommand.h.
7357 * tui/tui-data.c: Rename tui/tuiData.c.
7358 * tui/tui-data.h: Rename tui/tuiData.h.
7359 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
7360 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
7361 * tui/tui-io.c: Rename tui/tuiIO.c.
7362 * tui/tui-io.h: Rename tui/tuiIO.h.
7363 * tui/tui-layout.c: Rename tui/tuiLayout.c.
7364 * tui/tui-layout.h: Rename tui/tuiLayout.h.
7365 * tui/tui-regs.c: Rename tui/tuiRegs.c.
7366 * tui/tui-regs.h: Rename tui/tuiRegs.h.
7367 * tui/tui-source.c: Rename tui/tuiSource.c.
7368 * tui/tui-source.h: Rename tui/tuiSource.h.
7369 * tui/tui-stack.c: Rename tui/tuiStack.c.
7370 * tui/tui-stack.h: Rename tui/tuiStack.h.
7371 * tui/tui-win.c: Rename tui/tuiWin.c.
7372 * tui/tui-win.h: Rename tui/tuiWin.h.
7373 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
7374 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
7375 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
7376 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
7377 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
7378 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
7379 * tui/tui-file.c: Update includes.
7380 * tui/tui-hooks.c: Update includes.
7381 * tui/tui-interp.c: Update includes.
7382 * tui/tui.c: Update includes.
7383 * Makefile.in: Update all tui/ dependencies.
7384 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
7386 * Makefile.in: Update copyright. Update dependencies.
7388 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
7391 2004-01-18 Andrew Cagney <cagney@redhat.com>
7393 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
7394 instead of register_gdbarch_init.
7396 * remote-sds.c (tohex): Delete unused function. Update copyright.
7397 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
7398 * v850-tdep.c (v850_register_virtual_size): Ditto.
7399 * target.c (normal_target_post_startup_inferior): Ditto.
7400 * source.c (ambiguous_line_spec): Ditto.
7401 * remote.c (adapt_remote_get_threadinfo): Ditto.
7402 * mi/mi-out.c (out_field_fmt): Ditto.
7403 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
7404 (output_control_change_notification): Ditto.
7405 * m68k-tdep.c (m68k_register_byte): Ditto.
7406 (m68k_remote_breakpoint_from_pc): Ditto.
7407 * ui-out.c (init_ui_out_state): Delete unused declaration.
7408 * stabsread.c (search_value): Ditto.
7409 * mi/mi-cmd-env.c (env_cli_command): Ditto.
7410 * maint.c (print_section_table): Ditto.
7411 * infrun.c (set_follow_fork_mode_command): Ditto.
7413 2004-01-18 Mark Kettenis <kettenis@gnu.org>
7415 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
7416 DW_CFA_def_cfa_exporession. Add support for
7417 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
7418 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
7420 2004-01-18 Andrew Cagney <cagney@redhat.com>
7422 * ocd.c: Update copyright.
7423 (bdm_read_register_command): Delete unused function.
7424 (_initialize_remote_ocd): Delete commented out reference.
7425 (get_quoted_char, reset_packet): Delete #if0ed function.
7426 (output_packet, put_quoted_char): Delete #if0ed function.
7427 (stu_put_packet, stu_get_packet): Delete #if0ed function.
7428 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
7429 (BDM_BREAKPOINT): Delete #if0ed macro.
7430 (remote_timeout): Delete #if0ed variable.
7432 2004-01-18 Mark Kettenis <kettenis@gnu.org>
7434 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
7435 (core-sol2.o): Remove dependency.
7436 * core-sol2.c: Remove file.
7438 2004-01-17 Andrew Cagney <cagney@redhat.com>
7440 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
7441 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
7444 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
7446 * remote.c: Update copyright years.
7448 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
7450 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
7452 2004-01-17 Andrew Cagney <cagney@redhat.com>
7454 * mdebugread.c: Update copyright.
7455 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
7456 (parse_type, parse_procedure): Ditto.
7457 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
7459 * cris-tdep.c (cris_store_struct_return): Put back accidently
7462 * gdbarch.sh: Update copyright year.
7463 * gdbarch.h, gdbarch.c: Re-generate.
7465 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
7467 Suggested by George Anzinger.
7468 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
7469 correct stack offset. Include unknown opcode numbers in the error
7472 2004-01-17 Andrew Cagney <cagney@redhat.com>
7474 * x86-64-tdep.c (x86_64_init_abi): No need to clear
7475 extract_struct_value_address, i386 does not set it.
7476 * sparc64-tdep.c (sparc64_init_abi): Do not set
7477 extract_struct_value_address, never called.
7478 (sparc64_extract_struct_value_address): Delete function.
7479 * m68hc11-tdep.c: Update copyright.
7480 (m68hc11_gdbarch_init): Delete redundant assignment of
7481 extract_struct_value_address.
7482 * i386-tdep.c: Update copyright.
7483 (i386_gdbarch_init): Do not set extract_struct_value_address,
7485 (i386_extract_struct_value_address): Delete function.
7486 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
7487 extract_struct_value_address, never called.
7488 (sparc32_extract_struct_value_address): #if 0 function. Add
7489 comments explaining its future.
7491 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
7493 * arm-tdep.c (arm_write_pc): New function.
7494 (arm_gdbarch_init): Call set_gdbarch_write_pc.
7496 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
7498 * breakpoint.c (must_shift_inst_regs): Delete.
7499 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
7500 and SHIFT_INST_REGS.
7501 * infcmd.c (step_1, step_1_continuation): Delete references to
7503 * infrun.c (keep_going): Likewise.
7504 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
7505 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
7507 2004-01-17 Andrew Cagney <cagney@redhat.com>
7509 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
7510 * gdbarch.h, gdbarch.c: Re-generate.
7511 * infcmd.c (print_return_value): Delete reference to
7512 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7514 * cris-tdep.c (cris_gdbarch_init): Do not set
7515 deprecated_extract_struct_value_address.
7517 * xstormy16-tdep.c: Update copyright.
7518 (xstormy16_extract_struct_value_address): Update to current
7519 extract struct value address interface.
7520 (xstormy16_gdbarch_init): Set extract_struct_value_address.
7521 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
7522 current extract struct value address interface.
7523 (sh64_gdbarch_init): Set extract_struct_value_address.
7525 * cris-tdep.c: Update copyright.
7526 (cris_extract_struct_value_address): Delete function.
7527 (struct_return_address): Delete variable.
7528 (cris_store_struct_return): Do not set struct_return_address.
7530 * mcore-tdep.c: Update copyright.
7531 (mcore_extract_struct_value_address): Delete function. Update
7533 (mcore_gdbarch_init): Update.
7534 * mn10300-tdep.c: Update copyright.
7535 (mn10300_extract_struct_value_address): Delete function.
7536 (mn10300_gdbarch_init): Update.
7537 * v850-tdep.c: Update copyright.
7538 (v850_extract_struct_value_address): Delete.
7539 (v850_gdbarch_init): Update.
7540 * ns32k-tdep.c: Update copyright.
7541 (ns32k_extract_struct_value_address): Delete.
7542 (ns32k_gdbarch_init): Update.
7543 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
7544 (hppa_gdbarch_init): Update.
7545 * vax-tdep.c: Update copyright.
7546 (vax_extract_struct_value_address): Delete.
7547 (vax_gdbarch_init): Update.
7549 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
7550 * gdbarch.h, gdbarch.c: Re-generate.
7551 * procfs.c (procfs_fetch_registers): Delete reference to
7552 DEPRECATED_NPC_REGNUM.
7553 (procfs_store_registers): Ditto.
7554 * regcache.c (generic_target_write_pc): Simplify.
7555 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
7557 * core-sol2.c (fetch_core_registers): Replace
7558 DEPRECATED_NPC_REGNUM with equivalent tdep value.
7560 * hppa-tdep.c: Update copyright year.
7561 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
7563 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
7565 * mips-tdep.c (mips_write_pc): New function.
7566 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
7567 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
7568 (mips_find_saved_regs, mips_software_single_step: Ditto.
7569 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
7570 mips_init_extra_frame_info, mips_pop_frame): Ditto.
7572 2004-01-17 Andrew Cagney <cagney@redhat.com>
7574 * mips-tdep.c: Re-indent. Group functions by ABI.
7576 2004-01-17 Andrew Cagney <cagney@redhat.com>
7578 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
7579 * gdbarch.c: Re-generate.
7580 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7581 DECR_PC_AFTER_BREAK to zero.
7582 * vax-tdep.c (vax_gdbarch_init): Ditto.
7583 * v850-tdep.c (v850_gdbarch_init): Ditto.
7584 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
7585 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7586 * sh-tdep.c (sh_gdbarch_init): Ditto.
7587 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7588 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7589 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7590 * mips-tdep.c (mips_gdbarch_init): Ditto.
7591 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7592 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7593 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
7594 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7595 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
7596 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7597 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7598 * frv-tdep.c (frv_gdbarch_init): Ditto.
7599 * cris-tdep.c (cris_gdbarch_init): Ditto.
7600 * avr-tdep.c (avr_gdbarch_init): Ditto.
7601 * arm-tdep.c (arm_gdbarch_init): Ditto.
7602 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
7604 2004-01-17 J. Brobecker <brobecker@gnat.com>
7606 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
7607 Delete, no longer used.
7608 (read_subrange_type): New function, mostly extracted from
7610 (read_array_type): Replace extracted code by call to
7611 read_subrange_type().
7612 (dwarf2_get_attr_constant_value): New function.
7613 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
7614 (add_partial_symbol): Likewise.
7615 (process_die): Likewise.
7616 (new_symbol): Likewise.
7617 (read_type_die): Likewise.
7619 2004-01-16 Andrew Cagney <cagney@redhat.com>
7621 * symfile.c: Update copyright year.
7622 (compare_symbols): Delete unused function.
7623 * stabsread.c: Update copyright year.
7624 (lrs_general_complaint): Delete unused function.
7625 (ref_search_value): Ditto.
7626 (get_substring): Delete declaration.
7627 * sh64-tdep.c: Update copyright year.
7628 (sh64_get_gdb_regnum): Delete unused function.
7629 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
7630 Delete unused function.
7632 2004-01-17 Mark Kettenis <kettenis@gnu.org>
7634 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
7635 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
7637 2004-01-16 Andrew Cagney <cagney@redhat.com>
7639 Changes from Peter Schauer.
7640 * rs6000-tdep.c: Update copyright year.
7641 (rs6000_push_dummy_call): Update the stack pointer before
7642 accessing the corresponding stack region.
7643 * rs6000-nat.c: Update copyright year.
7644 (set_host_arch): Set "info.abfd" to "exec_bfd".
7646 2004-01-15 Mark Kettenis <kettenis@gnu.org>
7648 * blockframe.c: Update copyright year.
7649 (inside_entry_func): Don't treat a zero PC specially.
7651 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
7653 * gcore.c (gcore_copy_callback): Use paddr_d to print size
7655 (gcore_create_callback): Ditto. Skip any memory segment that has
7658 2004-01-14 David Carlton <carlton@kealia.com>
7660 Change symbols for C++ nested types to contain the fully qualified
7661 name, if possible. (At least in the DWARF-2 case.) Partial fix
7662 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
7664 * c-exp.y (qualified_type): Handle types nested within classes.
7665 * cp-namespace.c: Update comments.
7666 (cp_set_block_scope): Delete #if 0.
7667 (cp_lookup_nested_type): Handle types nested within classes.
7668 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
7670 (add_partial_symbol): Add the name of the enclosing namespace to
7672 (pdi_needs_namespace): New.
7673 (add_partial_namespace): Tweak comment.
7674 (add_partial_structure): New.
7675 (psymtab_to_symtab_1): Initialize processing_current_prefix
7677 (process_die): instead of here.
7678 (read_structure_scope): Try to figure out the name of the class or
7679 namespace that the structure might be defined within.
7680 (read_enumeration): Generate fully-qualified names, if possible.
7681 (read_namespace): Don't set name to NULL.
7682 (die_specification): New.
7683 (new_symbol): Generate fully-qualified names for types.
7684 (read_type_die): Determine appropriate prefix.
7685 (determine_prefix): New.
7686 (typename_concat): New.
7688 * valops.c (value_aggregate_elt): Pass NOSIDE to
7689 value_struct_elt_for_reference.
7690 (value_struct_elt_for_reference): Make static, add NOSIDE
7691 parameter, call value_maybe_namespace_elt as a last resort.
7692 (value_namespace_elt): Break out code into
7693 value_maybe_namespace_elt.
7694 (value_maybe_namespace_elt): New.
7696 2004-01-12 Andrew Cagney <cagney@redhat.com>
7698 * mips-tdep.c (mips_convert_register_p): Handle both raw and
7699 cooked floating-point registers.
7700 (mips_gdbarch_init): Set convert_register_p, register_to_value,
7701 and value_to_register.
7703 2004-01-13 Andrew Cagney <cagney@redhat.com>
7705 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
7706 * gdbarch.c: Re-generate.
7707 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7708 FUNCTION_START_OFFSET.
7709 * v850-tdep.c (v850_gdbarch_init): Ditto.
7710 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
7711 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7712 * sh-tdep.c (sh_gdbarch_init): Ditto.
7713 * s390-tdep.c (s390_gdbarch_init): Ditto.
7714 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7715 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7716 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7717 * mips-tdep.c (mips_gdbarch_init): Ditto.
7718 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7719 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7720 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7721 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
7722 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7723 * i386-tdep.c (i386_gdbarch_init): Ditto.
7724 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7725 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7726 * frv-tdep.c (frv_gdbarch_init): Ditto.
7727 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7728 * cris-tdep.c (cris_gdbarch_init): Ditto.
7729 * avr-tdep.c (avr_gdbarch_init): Ditto.
7730 * arm-tdep.c (arm_gdbarch_init): Ditto.
7731 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7733 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
7735 * infrun.c (follow_fork_mode_ask): Remove.
7736 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
7737 (follow_fork): Simplify and remove internal error for
7738 follow_fork_mode_ask.
7739 (_initialize_infrun): Update "set follow-fork-mode" help text.
7741 2004-01-13 Andrew Cagney <cagney@redhat.com>
7743 * configure.in: Update copyright year.
7744 (build_warnings): Add -Wunused-label.
7745 * configure: Re-generate.
7747 2004-01-12 Andrew Cagney <cagney@redhat.com>
7749 * exec.h (exec_ops): Make "extern".
7751 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
7752 the function is void.
7753 (mips_pseudo_register_write): Ditto.
7755 2004-01-12 Andrew Cagney <cagney@redhat.com>
7757 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
7758 call. Never defined.
7759 * sparc-tdep.h (struct frame_info): Add opaque declaration.
7760 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
7761 (struct sparc_gregset, struct regcache): Ditto.
7762 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
7764 2004-01-12 Andrew Cagney <cagney@redhat.com>
7766 * mi/ChangeLog: Delete file. Renamed to ...
7767 * mi/ChangeLog-1999-2003: New file.
7768 * tui/ChangeLog: Delete file. Renamed to ...
7769 * tui/ChangeLog-1998-2003: New file.
7771 2004-01-11 Mark Kettenis <kettenis@gnu.org>
7773 * sparc64nbsd-tdep.c: Include "regset.h".
7774 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
7776 (fetch_core_registers): Remove function.
7777 (sparc64nbsd_core_fns): Remove variable.
7778 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
7780 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
7781 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
7782 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
7784 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
7785 sparc_extract_struct_value_address.
7786 (sparc32_gdbarch_init): Set extract_struct_value_address.
7787 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
7789 (sparc64_init_abi): Set extract_struct_value_address. Don't set
7790 return_value_on_stack.
7792 * NEWS: Mention that %cs and %ss have been added to the AMD64
7795 * frame.c: Update copyright year.
7796 (get_prev_frame): Improve comment.
7798 * sparc64fbsd-tdep.c: Include "regset.h".
7799 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
7801 (fetch_core_registers): Remove function.
7802 (sparc64fbsd_core_fns): Remove variable.
7803 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
7805 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
7806 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
7807 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
7809 * sparcnbsd-tdep.c: Include "regset.h".
7810 (fetch_core_registers): Remove function.
7811 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
7812 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
7814 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
7816 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
7818 * sparc-tdep.h (struct regset): Provide opaque declaration.
7819 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
7820 fpregset and sizeof_fpregset members.
7821 * sparc-tdep.c (struct regset): Provide opaque declaration.
7822 (sparc_regset_from_core_section): New function.
7823 (sparc32_gdbarch_init): Initialize TDEP->gregset,
7824 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
7825 Set regset_from_core_section when appropriate.
7827 2004-01-10 Mark Kettenis <kettenis@gnu.org>
7829 * x86-64-tdep.c (amd64_non_pod_p): New function.
7830 (amd64_classify_aggregate): Return class memory for non-POD
7831 C++ structure types.
7833 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
7834 argument. Use it to reserve a register if necessary.
7835 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
7836 amd64_push_arguments.
7838 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
7840 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
7841 register numbers in comments.
7842 * x86-64-tdep.h: Update copyright year.
7843 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
7844 Adjust for addition of %cs and %ss.
7845 * amd64fbsd-nat.c: Update copyright year.
7846 (reg_offset): Add register offsets for %cs and %ss.
7847 * amd64fbsd-tdep.c: Update copyright year.
7848 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
7849 (amd64fbsd_sc_reg_offset): Likewise.
7850 * x86-64-linux-nat.c: Update copyright year.
7851 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
7853 * amd64nbsd-nat.c: Update copyright year.
7854 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
7855 * amd64nbsd-tdep.c: Update copyright year.
7856 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
7857 * x86-64-linux-tdep.c: Update copyright year.
7858 (user_to_gdb_regmap): Add mapping for %cs and %ss.
7859 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
7860 * regformats/reg-x86-64.dat: Add %cs and %ss.
7862 * blockframe.c (inside_entry_func): Reformat. Introduce new local
7863 variables to prevent long lines. Update comments to reflect
7866 2004-01-09 David Carlton <carlton@kealia.com>
7868 Checked in by Elena Zannoni <ezannoni@redhat.com>.
7869 * dwarf2read.c (read_namespace): Pull out name-generating code
7870 into namespace_name. Rename previous_namespace to previous_prefix
7871 and processing_current_namespace to processing_current_prefix..
7872 (namespace_name): New function.
7873 (add_partial_symbol): Substitute uses of pdi->name with
7875 * cp-support.h: Rename processing_current_namespace to
7876 processing_current_prefix.
7877 Update copyright year.
7878 * cp-namespace.c: Rename processing_current_namespace to
7879 processing_current_prefix.
7880 Update copyright year.
7882 2004-01-09 Andrew Cagney <cagney@redhat.com>
7884 * jv-valprint.c, ser-unix.c: Add missing copyright years.
7886 2004-01-09 Mark Kettenis <kettenis@gnu.org>
7888 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
7890 (process_one_symbol): Deal with N_PATCH stabs.
7892 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
7894 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
7896 Update copyright year.
7898 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
7900 * config/pa/tm-hppa.h: Update extern declarations for
7901 hppa32_hpux_frame_saved_pc_in_sigtramp,
7902 hppa32_hpux_frame_base_before_sigtramp, and
7903 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
7905 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
7907 * config/pa/tm-hppah.h: Update copyright years.
7909 2004-01-08 Andrew Cagney <cagney@redhat.com>
7911 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
7912 (mips_o32_reg_struct_has_addr): Delete function.
7913 (mips_gdbarch_init): Update.
7914 (mips_extract_struct_value_address): Delete function.
7916 2004-01-08 David Mosberger <davidm@hpl.hp.com>
7918 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
7921 2004-01-07 Andrew Cagney <cagney@redhat.com>
7923 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
7924 architecture's elf flags (when available).
7926 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
7927 FPU to the start, check the MIPS FPU when looking for an old
7929 (set_mipsfpu_single_command): Update the architecture.
7930 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
7932 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
7933 (mips_mask_address_p): Add "tdep" parameter.
7934 (show_mask_address, mips_addr_bits_remove): Update.
7935 (mips_dump_tdep): Update.
7936 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
7937 (MIPS_STACK_ARGSIZE): Delete macro.
7938 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
7939 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
7940 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
7941 (mips_dump_tdep): Update.
7942 (MIPS_SAVED_REGSIZE): Delete macro.
7943 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
7944 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
7945 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
7946 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
7947 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
7948 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
7949 (mips_pop_frame, return_value_location): Update.
7950 (mips_n32n64_return_value, mips_dump_tdep): Update.
7952 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
7955 * mips-tdep.c: Update copyright.
7956 (mips_gdbarch_init): Merge two code blocks handling the register
7957 name and number layout.
7959 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
7961 * tracepoint.c (validate_actionline): Fix segv at EOF
7963 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
7965 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
7966 properly for static fields.
7968 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
7969 Jason Molenda <jmolenda@apple.com>
7971 * disasm.c: Update copyright to include 2004.
7972 (do_mixed_source_and_assembly): For uiout asm list
7973 and tuple cleanups, initialize to null_cleanup instead of
7974 NULL and do so prior to loop. Only reset when we close off
7975 the tuple/list. Move check for whether to close off the
7976 asm tuple/list to after dump_insns call where it will be run
7977 on each loop iteration.
7979 2004-01-05 Andrew Cagney <cagney@redhat.com>
7981 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
7982 should be a switch case and not a label.
7983 * mips-tdep.c (mips32_next_pc): Delete unused labels
7984 "greater_equal_branch" and "less_zero_branch".
7985 * jv-valprint.c (java_print_value_fields): Delete unused label
7988 * target.c (unpush_target): Only close a target that is in the
7991 2004-01-05 Mark Kettenis <kettenis@gnu.org>
7993 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
7994 address from [sp + 64] instead of %o2.
7996 * frame.c (get_prev_frame): Don't try to unwind the PC. This
7997 fixes PR backtrace/1476.
7999 2004-01-05 Andrew Cagney <cagney@redhat.com>
8001 * libunwind-frame.h (struct frame_id): Add opaque declaration,
8002 move to start of file.
8003 * i386-tdep.h (struct regcache): Add opaque declaration.
8004 * config/ia64/nm-linux.h (struct target_ops): Add opaque
8006 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
8007 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
8008 * win32-nat.c (fake_create_process): Use ISO C style definition.
8009 * stabsread.c (define_symbol): Delete #ifndef
8010 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
8011 stabs_argument_has_addr call, macro never defined.
8013 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
8015 * op50-rom.c: Delete.
8016 * w89k-rom.c: Delete.
8017 * Makefile.in: Remove references.
8019 2004-01-04 Mark Kettenis <kettenis@gnu.org>
8021 * x86-64-tdep.c: Update copyright year.
8022 (struct amd64_register_info): Rename from x86_64_register_info.
8023 (amd64_register_info): Rename from x86_64_register_info.
8024 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
8025 (amd64_register_name): Rename from x86_64_register_name.
8026 (amd64_register_type): Rename from x86_64_register_type.
8027 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
8028 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
8029 (amd64_dwarf_reg_to_regnum): Rename from
8030 x86_64_dwarf_reg_to_regnum.
8031 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
8032 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
8033 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
8034 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
8035 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
8036 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
8037 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
8038 (amd64_frame_cache): Rename from x86_64_frame_cache.
8039 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
8040 (amd64_frame_prev_register): Rename from
8041 x86_64_frame_prev_register.
8042 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
8043 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
8044 (amd64_sigtramp_frame_cache): Rename from
8045 x86_64_sigtramp_frame_cache.
8046 (amd64_sigtramp_frame_prev_register): Rename from
8047 x86_64_sigtramp_frame_prev_register.
8048 (amd64_sigtramp_frame_unwind): Rename from
8049 x86_64_sigtramp_frame_unwind.
8050 (amd64_sigtramp_frame_sniffer): Rename from
8051 x86_64_sigtramp_frame_sniffer.
8052 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
8053 (amd64_frame_base): Rename from x86_64_frame_base.
8054 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
8055 (amd64_frame_align): Rename from x86_64_frame_align.
8056 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
8057 (amd64_regset_from_core_section): Rename from
8058 x86_64_regset_from_core_section.
8059 (x86_64_init_abi): Update comments.
8061 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
8063 * MAINTAINERS (write after approval): Add myself.
8065 2004-01-04 Mark Kettenis <kettenis@gnu.org>
8067 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8070 2004-01-04 Mark Kettenis <kettenis@gnu.org>
8072 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
8073 such that it mentions a specific version of GCC that exhibits this
8076 2004-01-03 Mark Kettenis <kettenis@gnu.org>
8078 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
8079 structure that has a single `float' member, store it in %f1 in
8082 * sparc-sol2-nat.c: Add missing '\'.
8084 * sparc-tdep.c (sparc32_return_value): New function.
8085 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
8087 (sparc32_gdbarch_init): Set return_value, don't set
8088 extract_return_value, store_return_value, use_struct_convention
8089 and return_value_on_stack.
8091 * sparc-sol2-nat.c: Add missing ')'.
8093 2004-01-03 J. Brobecker <brobecker@gnat.com>
8095 * infrun.c (handle_step_into_function): New function.
8096 (handle_inferior_event): Extract out some code into the new
8099 2004-01-03 J. Brobecker <brobecker@gnat.com>
8101 * infrun.c (handle_inferior_event): Move the declaration of
8102 real_stop_pc inside the if blocks where it is used.
8104 2004-01-03 Mark Kettenis <kettenis@gnu.org>
8106 * sparc64-tdep.c (sparc64_16_byte_align_p)
8107 (sparc64_store_floating_fields, sparc64_store_floating_fields):
8108 Use check_typedef to get subtypes of structures and unions.
8109 (sparc64_store_return_value): Fix calculation of the appropriate
8110 offset into VALBUF when storing a structure or union.
8111 (sparc64_return_value): New function.
8112 (sparc64_use_struct_convention): Remove function.
8113 (sparc64_init_abi): Set return_value, don't set
8114 extract_return_value, store_return_value and
8115 use_struct_convention.
8117 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
8119 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
8120 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
8121 gdb/config/alpha/xm-alphaosf.h,
8122 gdb/config/powerpc/tm-ppcle-eabi.h,
8123 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
8124 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
8125 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
8126 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
8127 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
8128 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
8129 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
8130 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
8131 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
8132 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
8133 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
8134 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
8135 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
8136 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
8137 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
8138 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
8139 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
8140 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
8141 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
8142 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
8143 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
8144 Remove lines for .cvsignore files.
8146 2004-01-03 J. Brobecker <brobecker@gnat.com>
8148 * infrun.c: Back out the previous change.
8150 2004-01-03 Mark Kettenis <kettenis@gnu.org>
8152 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
8153 sparc-*-sunos4* to the list of REMOVED configurations.
8155 * configure.tgt: Add back sparc-*-vxworks*.
8156 * remote-vxsparc.c: Remove all includes except for "defs.h",
8157 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
8158 Include "sparc-tdep.h".
8159 (SPARC_R_G1): New define.
8160 (vxsparc_gregset): New variable.
8161 (ext_format_sparc): Remove extern declaration.
8162 (vx_read_register): Rewrite to use sparc32_supply_gregset and
8163 sparc32_supply_fpregset.
8164 (vx_write_register): Rewrite to use sparc32_collect_gregset,
8165 sparc_collect_rwindow and sparc32_collect_fpregset.
8166 * config/sparc/tm-vxworks.h: New file, based on recently removed
8168 * config/sparc/vxworks.mt: New file, based on recently removed
8171 2004-01-03 J. Brobecker <brobecker@gnat.com>
8173 * infrun.c (handle_step_into_function): New function.
8174 (handle_inferior_event): Extract out some code into the new
8177 2004-01-02 Mark Kettenis <kettenis@gnu.org>
8179 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
8180 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
8181 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
8182 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
8183 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
8184 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
8185 (sparc_nat_h): New variable.
8186 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
8187 (tm-sun4os4.h): Remove dependency.
8188 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
8189 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
8190 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
8191 sparc-tdep.o): Update dependencies.
8192 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
8193 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
8194 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
8196 * configure.host: Remove existing sparc-*-lynxos*,
8197 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
8198 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
8199 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
8200 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
8202 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
8203 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
8204 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
8205 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
8206 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
8207 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
8208 sparc64-*-solaris2* and sparc64-*-* triplets.
8209 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
8210 "symtab.h" and "objfiles.h".
8211 (BIAS): Remove define.
8212 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
8213 (X_DISP19): Remove macros.
8214 (sparc_fetch_instruction): Remove function.
8215 (struct gdbarch_tdep): Remove definition.
8216 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
8217 (sparc_breakpoint_from_pc): Remove function.
8218 (struct sparc64_frame_cache): Remove definition.
8219 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
8220 sparc64_unwind_pc): Remove functions.
8221 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
8222 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
8223 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
8224 (sparc64_frame_cache): Change return type to `struct
8225 sparc_frame_cache *'. Simply call sparc_frame_cache.
8226 (sparc64_frame_this_id, sparc64_frame_prev_register,
8227 sparc64_frame_base_address): Use `struct sparc_frame_cache'
8228 instead of `struct sparc64_frame_cache.
8229 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
8230 sparc_analyze_control_transfer, sparc_software_single_step,
8231 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
8232 _initialize_sparc64_tdep): Remove functions.
8233 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
8234 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
8236 (sparc64_supply_gregset, sparc64_collect_gregset,
8237 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
8238 (sparc64_init_abi): New function.
8239 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
8240 inclusion guard. Include "sparc-tdep.h".
8242 (r_tstate_offset, r_fprs_offset): New defines.
8243 (enum sparc_regnum): Remove defenition.
8244 (enum sparc64_regnum): Reformat.
8245 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
8246 (sparc64_init_abi, sparc64_supply_gregset,
8247 sparc64_collect_gregset, sparc64_supply_fpregset,
8248 sparc64_collect_fpregset): New prototypes.
8249 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
8250 Add extern declarations.
8251 (sparc64_sol2_init_abi): New prototype.
8252 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
8253 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
8255 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
8257 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
8259 (_initialize_sparc64fbsd_nat): Remove initialization of
8260 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
8261 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
8262 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
8263 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
8264 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
8265 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
8266 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
8267 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
8268 (sparc64fbsd_r_y_offset): Remove variables.
8269 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
8270 Make static and const.
8271 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
8272 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
8274 (sparc64fbsd_gregset): New variable.
8275 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
8276 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
8277 and sparc64_supply_fpregset.
8278 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
8279 (sparc64fbsd_sigtramp_frame_this_id)
8280 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
8281 (sparc64fbsd_sigtramp_frame_unwind): New variable.
8282 (sparc64fbsd_sigtramp_frame_sniffer): New function.
8283 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
8284 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
8285 * sparcnbsd-tdep.c: Update copyright year. Include
8286 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
8287 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
8288 "value.h" and "sparcnbsd-tdep.h".
8289 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
8290 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
8291 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
8292 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
8294 (sparcnbsd_gregset): New variable.
8295 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
8296 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
8297 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
8298 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
8299 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
8301 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
8302 (sparc32nbsd_sigcontext_frame_this_id)
8303 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
8304 (sparc32nbsd_sigcontext_frame_unwind): New variable.
8305 (sparc32nbsd_sigtramp_frame_sniffer): New function.
8306 (sparcnbsd_get_longjmp_target_32,
8307 sparcnbsd_get_longjmp_target_64): Remove functions.
8308 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
8309 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
8310 sparcnbsd_init_elf): Remove.
8311 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
8312 (sparcnbsd_elf_init_abi): New functions.
8313 (_initialize_sparcnbsd_tdep): New prototype.
8314 (_initialize_sparnbsd_tdep): Update.
8315 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
8316 corelow.o. Add sparc64-nat.o and sparc-nat.o.
8317 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
8318 * config/sparc/linux.mh: Update comment.
8319 (XM_FILE, HOST_IPC): Remove variables.
8320 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
8322 * config/sparc/linux.mt: Update comment.
8323 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
8324 * config/sparc/nbsd.mt: Reformat.
8325 * config/sparc/nbsd64.mh: Update comment.
8326 (NATDEPFILES): Add sparc-nat.o.
8327 * config/sparc/nbsd64.mt: Update comment.
8328 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
8329 (TM_FILE): Set to tm-nbsd.h.
8330 * config/sparc/nbsdelf.mh: Update comment.
8331 (NATDEPFILES): Add sparc-nat.o.
8333 * config/sparc/nbsdaout.mh: Update comment.
8334 (NATDEPFILES): Add sparc-nat.o
8336 * config/sparc/nm-linux.h: Update copyright year. Don't include
8337 "config/nm-svr4.h" and "solib.h". Add protection against multiple
8339 (KERNEL_U_SIZE): Remove define.
8340 (kernel_u_size): Remove prototype.
8341 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
8342 * config/sparc/nm-nbsd.h: Update copyright. Don't include
8344 (CHILD_PREPARE_TO_STORE): Remove define.
8345 * config/sparc/nm-nbsdaout.h: Tweak some comments.
8346 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
8347 sparcnbsd-nat.c: Rewrite files.
8348 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
8349 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
8350 sparcnbsd-tdep.h: Remove files.
8351 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
8352 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
8353 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
8354 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
8355 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
8356 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
8357 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
8358 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
8359 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
8360 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
8361 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
8362 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
8363 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
8364 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
8365 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
8366 * config/sparc/linux64.mh, config/sparc/linux64.mt,
8367 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
8368 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
8369 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
8371 2004-01-02 Andrew Cagney <cagney@redhat.com>
8373 From 2003-12-18 Kazuhiro Inaoka:
8374 * configure.host: Add m32r-linux target.
8376 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
8378 * top.c (print_gdb_version): Update year to 2004.
8380 2004-01-02 Mark Mitchell <mark@codesourcery.com>
8382 * MAINTAINERS: Add myself to the write-after-approval category.
8384 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
8386 From Bernardo Innocenti <bernie@develer.com>:
8387 * configure.tgt: Add uClinux target.
8389 2004-01-02 Andrew Cagney <cagney@redhat.com>
8391 * utils.c (do_my_cleanups): Make static, add forward declaration.
8392 * defs.h (do_my_cleanups): Delete declaration.
8394 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
8396 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
8399 2004-01-02 Mark Kettenis <kettenis@gnu.org>
8401 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
8403 * configure, config.in: Regenerate.
8405 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
8406 tui/ChangeLog-1998-2003.
8412 version-control: never