1 2004-06-14 Randolph Chung <tausq@debian.org>
3 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
4 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
6 (hppa_hpux_inferior_created): New function.
7 (hppa_hpux_init_abi): Register observer.
8 * symfile.c (hp_cxx_exception_support_initialized)
9 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
10 (symbol_file_add_main_1, symbol_file_clear): Likewise.
12 2004-06-14 Randolph Chung <tausq@debian.org>
14 * MAINTAINERS (Write After Approval): Alphabetize my entry
17 2004-06-14 Andrew Cagney <cagney@gnu.org>
19 * MAINTAINERS (testsuite): List Michael Chastain as the lead
22 2004-06-13 Andrew Cagney <cagney@gnu.org>
24 * infcmd.c (print_return_value): Fix logic, allow
25 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
27 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
29 * gdbarch.h: Re-generate.
31 * gdbarch.sh: Delete "level" attribute. Only check for a macro
32 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
33 * gdbarch.h: Re-generate.
35 * values.c (generic_use_struct_convention): Don't check gcc_p.
37 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
38 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
39 * gdbarch.h, gdbarch.c: Regenerate.
40 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
41 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
42 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
43 deprecated_max_register_raw_size and
44 deprecated_max_register_virtual_size.
45 * v850-tdep.c (v850_gdbarch_init): Ditto.
46 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
47 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
48 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
49 * cris-tdep.c (cris_gdbarch_init): Ditto.
51 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
52 * gdbarch.h, gdbarch.c: Re-generate.
53 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
54 (m68hc11_use_struct_convention): Delete function.
55 (m68hc11_extract_struct_value_address): Delete function.
56 (m68hc11_return_value): New function.
57 (m68hc11_gdbarch_init): Instead of store_return_value,
58 extract_return_value, return_value_on_stack,
59 deprecated_extract_struct_value_address and use_struct_convention,
61 * values.c (using_struct_return): Do not call
62 RETURN_VALUE_ON_STACK.
63 * arch-utils.h (generic_return_value_on_stack_not): Delete
65 * arch-utils.c (generic_return_value_on_stack_not): Delete
68 2004-06-12 Andrew Cagney <cagney@gnu.org>
70 * values.c (register_value_being_returned): Delete function.
71 * infcmd.c (legacy_return_value): Delete function.
72 * infcall.c (call_function_by_hand): Inline
73 "register_value_being_returned", simplify.
74 * values.c (using_struct_return): Update comment, refer to
75 print_return_value instead of register_value_being_returned.
76 * infcmd.c (print_return_value): Inline calls to
77 register_value_being_returned and legacy_return_value. Simplify.
79 2004-06-11 Randolph Chung <tausq@debian.org>
81 * somread.c (som_symtab_read): Exclude gcc local symbols.
83 2004-06-11 Randolph Chung <tausq@debian.org>
85 * infrun.c (handle_inferior_event): Handle the case when a
86 trampoline ends up in the runtime resolver, and if the trampoline
87 has no name. Rearrange the code so that all the trampoline
88 processing happens before other step-out-of-range handling.
90 2004-06-11 Martin Hunt <hunt@redhat.com>
92 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
95 2004-06-10 Andrew Cagney <cagney@gnu.org>
97 * blockframe.c (legacy_inside_entry_func): Delete.
98 (legacy_frame_chain_valid): Inline call to
99 legacy_inside_entry_func, simplify.
101 2004-06-10 Bob Rossi <bob@brasko.net>
103 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
104 * dwarf2read.c (partial_die_info): Add dirname field.
105 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
106 (read_partial_die): Save away DW_AT_comp_dir.
107 * defs.h (symtab_to_filename): Removed.
108 * source.c (find_and_open_source): Added.
109 (open_source_file): Just calls find_and_open_source.
110 (symtab_to_filename): Removed.
111 (symtab_to_fullname, psymtab_to_fullname): Added.
112 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
113 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
115 * symtab.h (partial_symtab): Add dirname field.
116 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
117 (mi_cmd_file_list_exec_source_file): Call new function
118 symtab_to_fullname to find fullname.
119 (mi_cmd_file_list_exec_source_files): Added.
120 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
121 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
123 2004-06-10 Andrew Cagney <cagney@gnu.org>
125 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
126 to generic_use_struct_convention, the default value.
128 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
131 * ns32k-tdep.c (ns32k_push_arguments): New function.
132 (ns32k_gdbarch_init): Set deprecated_push_arguments.
133 * infcall.c (call_function_by_hand): Call error instead of
134 legacy_push_arguments.
135 * value.h (legacy_push_arguments): Delete declaration.
136 * valops.c (legacy_push_arguments): Delete function.
137 (value_push): Delete function.
139 2004-06-10 Brian Ford <ford@vss.fsi.com>
141 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
142 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
144 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
146 2004-06-10 Andrew Cagney <cagney@gnu.org>
148 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
149 * gdbarch.h, gdbarch.c: Re-generate.
150 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
152 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
153 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
154 deprecated_pc_in_call_dummy instead of
155 DEPRECATED_PC_IN_CALL_DUMMY.
156 (arm_skip_prologue): Ditto.
157 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
158 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
159 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
160 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
162 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
163 (sh64_init_extra_frame_info, sh64_get_saved_register)
164 (sh64_pop_frame): Ditto.
165 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
166 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
167 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
168 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
169 (h8300_pop_frame): Ditto.
170 * blockframe.c (legacy_inside_entry_func)
171 (legacy_frame_chain_valid): Ditto.
172 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
173 to deprecated_pc_in_call_dummy.
175 2004-06-09 Andrew Cagney <cagney@gnu.org>
177 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
178 provide a default value.
179 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
180 * gdbarch.h, gdbarch.c: Re-generate.
181 * arch-utils.c (generic_convert_register_p): Rename
182 legacy_convert_register_p
183 (legacy_register_to_value, legacy_value_to_register): Delete
185 * arch-utils.h (generic_convert_register_p): Rename
186 legacy_convert_register_p.
187 (legacy_register_to_value, legacy_value_to_register): Delete
190 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
191 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
192 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
193 * gdbarch.h, gdbarch.c: Re-generate.
194 * infcmd.c (default_print_registers_info): Simplify.
195 * findvar.c (value_of_register): Simplify.
196 * mi/mi-main.c (get_register): Simplify.
197 * arch-utils.c (legacy_convert_register_p): Always return 0.
198 (legacy_register_to_value, legacy_value_to_register): Always call
201 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
202 #ifdef CLEAR_INSN_CACHE code.
203 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
204 Delete #ifdef CLEAR_DEFERRED_STORES code.
206 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
208 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
210 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
212 * config/mips/mipsv4.mh: Delete file.
214 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
216 (hpread_adjust_stack_address): Delete declaration.
218 2004-06-08 Andrew Cagney <cagney@gnu.org>
220 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
221 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
222 PTRACE_ATTACH / PTRACE_DETACH available call error.
223 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
224 * infttrace.c (update_thread_state_after_attach, attach, detach):
225 Remove #ifdef wrappers.
226 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
227 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
228 * config/nm-bsd.h (ATTACH_DETACH): Delete.
229 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
230 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
231 * config/nm-linux.h (ATTACH_DETACH): Delete.
232 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
233 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
234 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
235 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
236 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
238 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
240 * configure.in: Set $configdir to the right OS specific value.
241 Use value when setting $tcldir and $tkdir.
242 * configure: Regenerate.
244 2004-06-06 Paul Brook <paul@codesourcery.com>
246 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
249 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
251 * ada-lang.c (lookup_symbol_in_language): New function to allow
252 re-use of another language's symbol lookup code. (Placed here
253 temporarily while Ada support is being integrated into the public
255 (restore_language): New auxiliary function for
256 lookup_symbol_in_language.
257 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
258 temporarily while Ada support is being integrated into the public
261 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
263 * Makefile.in (check//%): New.
265 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
266 (mn10300_store_return_value): Rewrite.
267 (mn10300_type_align): New.
268 (mn10300_use_struct_convention): Rewrite.
269 (mn10300_return_value): New, using all of the above.
270 (mn10300_pop_frame_regular): Add saved_regs_size.
271 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
273 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
274 regs if PC is on movm.
276 2004-06-07 Jim Blandy <jimb@redhat.com>
278 Add native Linux support for the PowerPC E500.
279 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
280 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
281 all architectures except the E500.
282 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
284 (struct gdb_evrregset_t): New type.
285 (have_ptrace_getsetevrregs): New variable.
286 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
287 fetch_spe_registers): New functions.
288 (fetch_register): Call fetch_spe_register as appropriate.
289 Assert that we're only passed raw register numbers.
290 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
291 Don't fetch gprs if they're pseudoregisters.
292 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
293 store_spe_registers): New functions.
294 (store_register): Call store_spe_register as appropriate.
295 Assert that we're only passed raw register numbers.
296 (store_ppc_registers): Call store_spe_registers as appropriate.
297 Don't store gprs if they're pseudoregisters.
299 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
301 * thread-db.c (thread_get_info_callback): Fill in the thread_info
302 struct if one exists, even if we are dealing with a zombie thread.
304 2004-06-07 Andrew Cagney <cagney@gnu.org>
306 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
307 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
308 Rename PC_REQUIRES_RUN_BEFORE_USE.
309 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
312 2004-06-07 Randolph Chung <tausq@debian.org>
314 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
315 unwinding after sp has been saved to the stack but before the end
316 of the prologue, and after the fp has been modified but before it has
317 been saved to the stack.
318 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
319 Remove superfluous definitions.
320 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
322 2004-06-07 Guy Martin <gmsoft@gentoo.org>
324 Committed by Randolph Chung.
325 * hppa-linux-nat.c: Include the correct version of the header file
326 depending on the kernel version.
328 2004-06-06 Randolph Chung <tausq@debian.org>
330 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
331 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
333 2004-06-06 Randolph Chung <tausq@debian.org>
335 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
336 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
337 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
338 * hppa-tdep.c (hppa_symbol_address): New function definition.
339 * hppa-tdep.h (hppa_symbol_address): New function declaration.
341 2004-06-06 Randolph Chung <tausq@debian.org>
343 * hppa-tdep.h (struct value): Forward declaration.
344 (gdbarch_tdep): Define tdep find_global_pointer method.
345 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
346 associated with the function we are trying to call, and write it
348 (hppa32_convert_from_funct_ptr_addr): New function.
349 (hppa_find_global_pointer): New function.
350 (hppa_gdbarch_init): Set default find_global_pointer method; set
351 convert_from_func_ptr_addr method.
352 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
353 (hppa_linux_init_abi): Set find_global_pointer method.
354 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
356 2004-06-06 Randolph Chung <tausq@debian.org>
358 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
359 to struct value *function.
360 * gdbarch.c: Regenerate.
361 * gdbarch.h: Likewise.
362 * infcall.c (call_function_by_hand): Pass entire function value
365 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
366 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
367 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
368 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
369 * arm-tdep.c (arm_push_dummy_call): Likewise.
370 * avr-tdep.c (avr_push_dummy_call): Likewise.
371 * cris-tdep.c (cris_push_dummy_call): Likewise.
372 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
373 * frv-tdep.c (frv_push_dummy_call): Likewise.
374 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
375 * hppa-tdep.c (hppa32_push_dummy_call)
376 (hppa64_push_dummy_call): Likewise.
377 * i386-tdep.c (i386_push_dummy_call): Likewise.
378 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
379 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
380 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
381 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
382 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
383 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
384 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
385 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
386 (ppc64_sysv_abi_push_dummy_call): Likewise.
387 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
388 (ppc64_sysv_abi_push_dummy_call): Likewise.
389 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
390 * s390-tdep.c (s390_push_dummy_call): Likewise.
391 * sh-tdep.c (sh_push_dummy_call_fpu)
392 (sh_push_dummy_call_nofpu): Likewise.
393 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
394 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
395 * vax-tdep.c (vax_push_dummy_call): Likewise.
397 2004-06-04 Jim Blandy <jimb@redhat.com>
399 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
400 gdbarch argument to register_size.
402 * rs6000-tdep.c (rs6000_store_return_value): Use
403 regcache_cooked_write_part instead of
404 deprecated_write_register_bytes.
405 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
406 not gdbarch_deprecated_store_return_value.
408 * ppc-linux-nat.c (store_register, fetch_register): Remove
409 incorrect assertions. Simplify and generalize handling of
410 transfers whose sizes are not multiples of, or less than, sizeof
413 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
415 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
416 as a new thread event.
417 * thread_db.c (thread_get_info_callback): If the thread is a
418 zombie, return TD_THR_ZOMBIE.
419 * (thread_from_lwp): If thread_get_info_callback returns
420 TD_THR_ZOMBIE, check if the thread is still on the thread list
421 and return a -1 ptid if not found.
422 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
423 change the status to TARGET_WAITKIND_SPURIOUS.
425 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
427 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
428 double values in little endian mode.
430 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
432 Committed by Andrew Cagney.
433 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
434 after last enum constant to avoid error from IBM C
437 2004-06-02 Jim Blandy <jimb@redhat.com>
439 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
440 to 'message', and make it local to the lone block that uses it.
442 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
444 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
446 * ada-exp.y: Synchronize with current ACT sources.
450 * ada-tasks.c: Ditto.
451 * ada-typeprint.c: Ditto.
452 * ada-valprint.c: Ditto.
454 2004-06-01 Jim Blandy <jimb@redhat.com>
456 * ppc-tdep.h: Delete unused 'regoff' member.
457 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
459 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
462 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
463 (hpread_read_struct_type): Likewise.
465 2004-06-01 Andrew Cagney <cagney@gnu.org>
467 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
468 instead of xasprintf.
469 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
470 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
471 (mi_cmd_data_list_register_names)
472 (mi_cmd_data_list_changed_registers)
473 (mi_cmd_data_list_register_values)
474 (get_register, mi_cmd_data_write_register_values)
475 (mi_cmd_data_write_register_values)
476 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
477 (mi_cmd_target_download, mi_cmd_target_select)
478 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
479 (mi_execute_cli_command, mi_execute_async_cli_command)
480 (mi_execute_async_cli_command): Ditto.
481 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
482 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
484 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
485 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
486 error_last_message instead of mi_error_last_message.
487 * mi/mi-main.c (mi_error_last_message): Delete function.
489 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
490 "invalid number of columns" error. Delete redundant "out of
493 2004-05-31 Mark Kettenis <kettenis@gnu.org>
495 * i386bsd-nat.c: Don't include <sys/procfs.h>.
496 (gregset_t, fpregset_t): Remove typedefs.
497 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
498 (REG_OFFSET): Rename argument.
499 (i386bsd_r_reg_offset): Rename from reg_offset.
500 (REG_ADDR): Remove macro.
501 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
503 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
504 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
505 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
506 instead of supply_gregset.
507 (store_inferior_registers): Use `struct reg' and `struct fpreg'
508 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
509 instead of fill_gregset.
510 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
512 * i386bsd-nat.c: Don't include "gregset.h".
513 (supply_gregset, fill_gregset): Make static.
514 (supply_fpregset, fill_fpregset): Remove.
515 * Makefile.in (i386bsd-nat.o): Update dependencies.
517 2004-05-30 Mark Kettenis <kettenis@gnu.org>
519 * fbsd-proc.c: Include "regcache.h", "regset.h" and
520 "gdb_assert.h". Con't include "gregset.h".
521 (fbsd_make_corefile_notes): Use regset-based core file support
522 instead off fill_gregset and fill_fpregset.
523 * Makefile.in (fbsd-proc.o): Update dependencies.
525 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
527 (m88k_frame_prev_register): Simplify code a bit.
529 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
530 (amd64_collect_fpregset): New function.
531 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
533 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
535 * i386-tdep.c (i386_supply_gregset): Adjust comment.
536 (i386_collect_gregset): New function.
537 (i386_supply_fpregset): Adjust comment.
538 (i386_collect_fpregset): New function.
539 (i386_regset_from_core_section): Use i386_collect_gregset and
540 i386_collect_fpregset.
542 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
543 handle VALUEP being null.
545 * regset.h (collect_regset_ftype): Unconstify fourth argument.
547 2004-05-29 Mark Kettenis <kettenis@gnu.org>
549 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
551 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
552 assembler in OpenBSD 3.5-current.
553 (amd64obsd_sigcontext_addr): Likewise.
555 2004-05-28 Jim Blandy <jimb@redhat.com>
557 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
558 register set, so our regcache isn't declared "legacy" and our E500
559 pseudoregister read and write functions aren't ignored.
560 (rs6000_register_byte, rs6000_register_raw_size,
561 rs6000_register_virtual_type, rs6000_register_convertible,
562 rs6000_register_convert_to_virtual,
563 rs6000_register_convert_to_raw): Deleted.
564 (rs6000_register_type, rs6000_convert_register_p,
565 rs6000_register_to_value, rs6000_value_to_register): New
567 (rs6000_gdbarch_init): Don't register
568 gdbarch_deprecated_register_size,
569 gdbarch_deprecated_register_bytes,
570 gdbarch_deprecated_register_byte,
571 gdbarch_deprecated_register_raw_size,
572 gdbarch_deprecated_register_virtual_type,
573 gdbarch_deprecated_register_convertible,
574 gdbarch_deprecated_register_convert_to_virtual, or
575 gdbarch_deprecated_register_convert_to_raw methods. Instead,
576 register gdbarch_register_type, gdbarch_convert_register_p,
577 gdbarch_register_to_value, and gdbarch_value_to_register methods.
579 2004-05-26 Jim Blandy <jimb@redhat.com>
581 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
582 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
583 functions, updated to match the register numberings used in GCC.
584 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
585 rs6000_dwarf2_reg_to_regnum as register number conversions
586 functions for STABS and Dwarf2.
588 2004-05-26 Randolph Chung <tausq@debian.org>
590 * infttrace.h (target_waitkind): Forward declare type instead of pulling
593 2004-05-25 Joel Brobecker <brobecker@gnat.com>
595 * NEWS: Document new "start" command.
597 2004-05-25 Randolph Chung <tausq@debian.org>
599 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
602 2004-05-25 Randolph Chung <tausq@debian.org>
604 * hppa-hpux-tdep.c (offsetof): Define.
605 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
606 (hppa32_hpux_frame_base_before_sigtramp)
607 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
608 (hppa64_hpux_frame_saved_pc_in_sigtramp)
609 (hppa64_hpux_frame_base_before_sigtramp)
610 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
612 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
613 (hppa_hpux_sigtramp_frame_unwind_cache)
614 (hppa_hpux_sigtramp_frame_this_id)
615 (hppa_hpux_sigtramp_frame_prev_register)
616 (hppa_hpux_sigtramp_frame_unwind)
617 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
618 (hppa_hpux_init_abi): Register sigtramp unwinder.
619 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
621 2004-05-25 Randolph Chung <tausq@debian.org>
623 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
624 and multiple stack unwinds.
625 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
627 2004-05-25 Andrew Cagney <cagney@gnu.org>
629 * symfile.h (symbol_file_add_from_memory): Delete declaration.
630 * symfile-mem.h: Delete file.
631 * symfile-mem.c: Do not include "symfile-mem.h".
632 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
633 "struct bfd_section". When an error do not bother returning NULL.
634 (add_symbol_file_from_memory_command): Use "struct bfd" and
635 "struct bfd_section".
636 * Makefile.in (symfile_mem_h): Delete.
637 (symfile-mem.o): Update dependencies.
639 2004-05-25 Nick Roberts <nickrob@gnu.org>
641 * gdb-mi.el: New file.
643 2004-05-25 Andrew Cagney <cagney@gnu.org>
645 * inftarg.c: Include "observer.h".
646 (child_attach, child_create_inferior): Notify inferior_created.
647 * corelow.c: Include "observer.h".
648 (core_open): Notify inferior_created.
649 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
651 2004-05-25 Andrew Cagney <cagney@gnu.org>
653 * target.h (struct target_ops): Add from_tty to
655 (target_create_inferior, find_default_create_inferior): Update.
656 * infcmd.c (run_command): Update.
657 * wince.c (child_create_inferior): Update.
658 * win32-nat.c (child_create_inferior): Update.
659 * uw-thread.c (uw_thread_create_inferior): Update.
660 * thread-db.c (thread_db_create_inferior): Update.
661 * target.c (debug_to_create_inferior)
662 (find_default_create_inferior): Update.
663 (maybe_kill_then_create_inferior): Update.
664 * sol-thread.c (sol_thread_create_inferior): Update.
665 * remote.c (extended_remote_async_create_inferior)
666 (extended_remote_create_inferior): Update.
667 * remote-vx.c (vx_create_inferior): Update.
668 * remote-st.c (st2000_create_inferior): Update.
669 * remote-sim.c (gdbsim_create_inferior): Update.
670 * remote-sds.c (sds_create_inferior): Update.
671 * remote-rdp.c (remote_rdp_create_inferior): Update.
672 * remote-rdi.c (arm_rdi_create_inferior): Update.
673 * remote-m32r-sdi.c (m32r_create_inferior): Update.
674 * remote-e7000.c (e7000_create_inferior): Update.
675 * procfs.c (procfs_create_inferior): Update.
676 * ocd.c (ocd_create_inferior): Update.
677 * ocd.h (ocd_create_inferior): Update.
678 * nto-procfs.c (procfs_create_inferior): Update.
679 * monitor.c (monitor_create_inferior): Update.
680 * lin-lwp.c (lin_lwp_create_inferior): Update.
681 * inftarg.c (child_create_inferior): Update.
682 * hpux-thread.c (hpux_thread_create_inferior): Update.
683 * gnu-nat.c (gnu_create_inferior): Update.
685 2004-05-25 Andrew Cagney <cagney@gnu.com>
687 * MAINTAINERS: Update e-mail address.
689 2004-05-24 Randolph Chung <tausq@debian.org>
691 * thread.c (info_threads_command, thread_apply_all_command)
692 (thread_apply_command, thread_command, do_captured_thread_select):
693 Remove HPUXHPPA-specific code.
695 2004-05-24 Randolph Chung <tausq@debian.org>
697 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
699 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
702 2004-05-24 Joel Brobecker <brobecker@gnat.com>
704 * infcmd.c (kill_if_already_running): New function, extracted
706 (run_command): Replace extracted code by call to
707 kill_if_already_running().
708 (start_command): New function.
709 (_initialize_infcmd): Add "start" command.
711 2004-05-24 Mark Kettenis <kettenis@gnu.org>
713 Add OpenBSD/m88k support.
714 * NEWS (New native configurations): Mention OpenBSD/m88k.
715 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
716 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
717 * Makefile.in (m88k_tdep_h): New variable.
718 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
719 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
720 * configure.host: Add m88*-*-openbsd*.
721 * configure.tgt: Add m88*-*-openbsd*.
723 2004-05-24 Jim Blandy <jimb@redhat.com>
725 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
728 2004-05-24 Kevin Buettner <kevinb@redhat.com>
730 * symtab.c (fixup_section): Search section table when lookup by
733 2004-05-24 Randolph Chung <tausq@debian.org>
735 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
738 2004-05-24 Mark Kettenis <kettenis@gnu.org>
740 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
741 register number in regcache_raw_collect call.
742 (m68kbsd_collect_fpregset): Likewise.
743 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
745 * regset.h (struct regset): Add back `regset' member.
747 2004-05-23 Mark Kettenis <kettenis@gnu.org>
749 * configure.in: Check for td_pcb in `struct thread'.
750 * configure, config.in: Regenerated.
752 * dpx2-nat.c: Remove file.
753 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
754 (dpx2-nat.o): Remove dependencies.
756 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
757 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
758 (amd64obsd_supply_pcb): New function.
759 (_initialize_amd64obsd_nat): Enable libkvm interface.
760 * Makefile.in (amd64obsd-nat.o): Update dependencies.
761 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
762 (LOADLIBES): New variable.
764 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
765 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
766 (sparc32nbsd_supply_pcb): New function.
767 (_initialize_sparcnbsd_nat): Enable libkvm interface.
768 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
769 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
770 (LOADLIBES): New variable.
772 2004-05-22 Mark Kettenis <kettenis@gnu.org>
774 * bsd-kvm.c, bsd-kvm.h: New files.
775 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
777 (i386fbsd_supply_pcb): New function.
778 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
779 (i386fbsd-nat.o): Update dependencies.
780 (bsd_kvm_h): New variable.
781 (bsd-kvm.o): New dependency.
782 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
783 (LOADLIBES): New variable.
785 * regset.c: Tweak comment.
786 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
788 * regset.h: Update copyright year.
789 (struct regset): Remove `descr' member, add `gdbarch' member.
790 (regset_alloc): Adjust prototype and comment.
791 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
792 (i386_supply_fpregset): Likewise.
793 (i386_regset_from_core_section): Update call to regset_alloc.
794 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
796 (i386obsd_aout_regset_from_core_section): Update call to
798 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
800 (i386nbsd_aout_regset_from_core_section): Update call to
802 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
804 (amd64_regset_from_core_section): Update call to regset_alloc.
805 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
807 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
808 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
809 &sparc32nbsd_gregset in sparc32_supply_gregset call.
810 (sparc32nbsd_init_abi): Update call to regset_alloc.
811 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
812 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
813 (sparc64obsd_init_abi): Update call to regset_alloc.
814 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
815 &sparc64nbsd_gregset in sparc64_supply_gregset call.
816 (sparc64nbsd_init_abi): Update call to regset_alloc.
817 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
818 &sparc64fbsd_gregset in sparc64_supply_gregset call.
819 (sparc64fbsd_init_abi): Update call to regset_alloc.
821 2004-05-22 Jim Blandy <jimb@redhat.com>
823 * ppc-tdep.h (spe_register_p): New declaration.
824 (struct gdbarch_tdep): New members: ppc_acc_regnum and
826 * rs6000-tdep.c (spe_register_p): New function.
827 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
829 (rs6000_gdbarch_init): Initialize the new members of the tdep
832 2004-05-21 Jim Blandy <jimb@redhat.com>
834 * ppc-linux-nat.c (fetch_register): Move code back to be next
835 to the comment that describes it. (Moved code, instead of
836 comment, for symmetry with store_register.)
838 Allocate regset structures in the gdbarch's obstack, not using
840 * regset.c (regset_alloc): Renamed from regset_xmalloc.
841 Add 'arch' argument. Allocate the regset on arch's obstack, not
843 * regset.h (regset_alloc): Update declaration.
844 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
846 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
847 * i386-tdep.c (i386_regset_from_core_section): Same.
848 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
849 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
850 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
851 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
852 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
853 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
855 2004-05-21 Joel Brobecker <brobecker@gnat.com>
857 * config/djgpp/fnchange.lst: Undo previous change, was useless.
859 2004-05-21 Jim Blandy <jimb@redhat.com>
861 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
862 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
864 2004-05-20 Jim Blandy <jimb@redhat.com>
866 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
868 2004-05-20 Mark Kettenis <kettenis@gnu.org>
870 * regset.h: Make prototype const-correct.
871 * regset.c (regset_xmalloc): Make const-correct.
873 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
875 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
876 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
877 (symbol_search_name): Declare.
879 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
880 (iter_name_next_hashed): Ditto.
881 (iter_name_next_linear): Ditto.
882 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
884 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
885 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
886 (symbol_search_name): New function.
888 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
890 * minsyms.c (build_minimal_symbol_hash_tables): Change
891 test for adding to demangled hash table to check for difference
892 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
894 2004-05-19 Jim Blandy <jimb@redhat.com>
896 Use a constructor function to create regset structures.
897 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
898 (struct regset): Use supply_regset_ftype. Add new
899 'collect_regset' member.
900 (regset_xmalloc): New declaration.
901 * regset.c: New file.
902 * am64-tdep.c (amd64_regset_from_core_section): Use
903 regset_xmalloc to construct regset structures.
904 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
905 * i386-tdep.c (i386_regset_from_core_section): Same.
906 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
907 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
908 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
909 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
910 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
911 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
912 * Makefile.in (COMMON_OBS): Add regset.o.
913 (regset.o): New rule.
915 2004-05-19 Joel Brobecker <brobecker@gnat.com>
917 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
918 and pthread_cond_wait.c.
920 2004-05-18 Jim Blandy <jimb@redhat.com>
922 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
923 before the mach-specific switch, and then let the individual cases
924 override the defaults, rather than leaving them uninitialized
925 until the switch and then setting them in each case.
927 2004-05-18 Randolph Chung <tausq@debian.org>
929 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
932 2004-05-18 Randolph Chung <tausq@debian.org>
934 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
935 references to dld_flags_buffer consistent.
937 2004-05-18 Randolph Chung <tausq@debian.org>
939 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
940 it for unwinding the stack.
942 2004-05-18 Randolph Chung <tausq@debian.org>
944 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
945 Undefine these so we can overide them using gdbarch.
947 2004-05-18 Randolph Chung <tausq@debian.org>
949 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
950 handling for 64-bit HPUX (elf).
952 2004-05-18 Daniel Jacobowitz <dan@debian.org>
954 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
956 * amd64-tdep.c (amd64_skip_prologue): Likewise.
957 * ia64-tdep.c (examine_prologue): Likewise.
958 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
959 * v850-tdep.c (v850_fix_call_dummy): Likewise.
961 2004-05-18 Mark Kettenis <kettenis@gnu.org>
963 * vax-tdep.c (vax_return_value): Implement
964 RETURN_VALUE_ABI_RETURNS_ADDRESS.
966 2004-05-17 Mark Kettenis <kettenis@gnu.org>
968 * vax-tdep.c (vax_return_value): Fix typo.
970 2004-05-17 Andrew Cagney <cagney@redhat.com>
972 * MAINTAINERS: Mark Salter was also responsible for
975 * NEWS: Mention signal fixes.
977 2004-05-17 Randolph Chung <tausq@debian.org>
979 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
980 check to see if we are unwinding an export stub. Export stubs clobber
981 the %rp in the call path and stores the original rp in a stack slot.
983 2004-05-17 Jim Blandy <jimb@redhat.com>
985 * MAINTAINERS: Update address for J.T. Conklin.
987 2004-05-17 Randolph Chung <tausq@debian.org>
989 * hppa-tdep.c: Remove superfluous #include's.
990 * Makefile.in (hppa-tdep.o): Update dependencies.
992 2004-05-17 Randolph Chung <tausq@debian.org>
994 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
995 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
996 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
997 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
998 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
999 Remove static function declarations.
1001 2004-05-17 Mark Kettenis <kettenis@gnu.org>
1003 * alphabsd-nat.c: Update copyright year.
1004 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
1006 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
1009 * m68k-tdep.c (m68k_svr4_return_value): Implement
1010 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1012 2004-05-16 Mark Kettenis <kettenis@gnu.org>
1014 * sol-thread.c Update copyright year. Fix various coding
1015 standards violations. Tweak a few comments.
1016 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
1019 2004-05-15 Randolph Chung <tausq@debian.org>
1021 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
1022 as pointer instead of array reference since HPUX compiler does
1023 not accept unsized array arguments.
1024 * somsolib.c (dld_flags_buffer): Use constant array size.
1026 2004-05-15 Mark Kettenis <kettenis@gnu.org>
1028 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
1029 offset with decimal offset.
1030 (amd64obsd_sigcontext_addr): Return correct address for entire
1033 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
1034 instead of get_frame_base.
1036 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
1037 (fill_gregset): Use regcache_raw_collect.
1039 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
1042 * config/sparc/tm-nbsd64.h: Remove file.
1043 * config/tm-sunos.h: Remove file.
1045 2004-05-15 Joel Brobecker <brobecker@gnat.com>
1047 * rs6000-tdep.c (store_param_on_stack_p): New function,
1048 an improved version of some code extracted from skip_prologue().
1049 (skip_prologue): Use store_param_on_stack_p() to detect
1050 instructions saving a parameter on the stack. Detect when r0
1051 is used to save a parameter.
1052 Do not mark "li rx, SIMM" instructions as part of the prologue,
1053 unless the following instruction is also part of the prologue.
1055 2004-05-14 Andrew Cagney <cagney@redhat.com>
1057 * infrun.c (handle_inferior_event): Simplify
1058 STEP_OVER_UNDEBUGGABLE.
1060 * infrun.c (handle_step_into_function): Delete function.
1061 (handle_inferior_event): Inline calls to
1062 handle_step_into_function.
1064 2004-05-14 Jerome Guitton <guitton@rome.act-europe.fr>
1066 * rs6000-nat.c: Fix a comment.
1068 2004-05-12 David Anderson <davea@sgi.com>
1070 Committed by Jim Blandy <jimb@redhat.com>:
1071 * regcache.c (struct regcache_descr): fix comment spelling.
1073 2004-05-13 J. Brobecker <brobecker@gnat.com>
1075 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
1076 Fixes a link link failure.
1078 2004-05-13 J. Brobecker <brobecker@gnat.com>
1080 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
1081 error that was causing the build to fail.
1083 2004-05-13 J. Brobecker <brobecker@gnat.com>
1085 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
1086 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
1088 2004-05-13 Andrew Cagney <cagney@redhat.com>
1090 * infrun.c (handle_inferior_event): Check for
1091 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
1092 calls. Update comments.
1094 2004-05-13 Jim Blandy <jimb@redhat.com>
1096 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
1097 (fetch_regs_user_thread, fetch_regs_kernel_thread)
1098 (store_regs_user_thread, store_regs_kernel_thread): Use
1099 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
1100 * ppc-linux-nat.c (fill_gregset): Same.
1101 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1102 (ppc_linux_sigtramp_cache): Same.
1103 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
1104 (ppcnbsd_sigtramp_cache_init): Same.
1105 * rs6000-nat.c (fetch_core_registers): Same.
1106 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
1107 (rs6000_frame_cache): Same.
1109 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
1110 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
1111 of assuming that the gprs are numbered starting with zero.
1112 * ppc-linux-nat.c (fill_gregset): Same.
1113 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
1114 * ppcnbsd-nat.c (getregs_supplies): Same.
1115 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
1116 * rs6000-nat.c (fetch_core_registers): Same.
1117 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
1119 2004-05-07 Michael Snyder <msnyder@redhat.com>
1121 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
1122 LOC_COMPUTED_ARG, and LOC_INDIRECT.
1124 2004-05-13 Andrew Cagney <cagney@redhat.com>
1126 * infrun.c (handle_inferior_event): Use frame_unwind_id.
1128 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
1130 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
1131 base_address for shared libraries.
1133 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
1135 * MAINTAINERS (write after approval): Add myself.
1137 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
1139 * breakpoint.c (bpstat_stop_status): Add new argument
1140 STOPPED_BY_WATCHPOINT. Use it instead of testing
1141 target_stopped_data_address agaist 0 to check whether
1142 or not we stopped due to a hardware watchpoint.
1143 * breakpoint.h (bpstat_stop_status): Adapt prototype.
1144 * infrun.c (handle_inferior_event): Call bpstat_stop_status
1147 2004-05-12 Jim Blandy <jimb@redhat.com>
1149 * configure.in: When checking whether we should use the -bbigtoc
1150 option, don't forget to restore the original value of LDFLAGS.
1151 * configure: Regenerated.
1153 2004-05-12 Andrew Cagney <cagney@redhat.com>
1155 * thread.c (load_infrun_state): Delete step_sp.
1156 * infrun.c (context_switch): Ditto.
1157 * inferior.h (step_sp): Ditto.
1158 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
1159 * gdbthread.h (struct thread_info, save_infrun_state)
1160 (restore_infrun_state): Ditto.
1162 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
1164 * MAINTAINERS (write after approval): Add myself.
1166 2004-05-12 Andrew Cagney <cagney@redhat.com>
1168 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
1169 eliminate reference to step_sp.
1170 (struct execution_control_state, init_execution_control_state)
1171 (handle_inferior_event, keep_going): Delete update_step_sp and
1173 * infcmd.c (step_sp): Note that variable is unused.
1175 2004-05-11 Andrew Cagney <cagney@redhat.com>
1177 * infrun.c (step_over_function): Delete function.
1178 (handle_step_into_function): Use insert_step_resume_breakpoint.
1179 (insert_step_resume_breakpoint): Fix assertion.
1181 2004-05-11 Nick Roberts <nickrob@gnu.org>
1183 * utils.c (defaulted_query): Just use the normal query input type
1184 when printing the annotations.
1186 2004-05-11 Andrew Cagney <cagney@redhat.com>
1188 * infrun.c (handle_inferior_event): Simplify code handling
1189 step-into or return-from a signal trampoline.
1191 2004-05-11 Andrew Cagney <cagney@redhat.com>
1193 * ppcnbsd-tdep.c: Include "gdb_assert.h".
1194 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
1196 2004-05-10 Jim Blandy <jimb@redhat.com>
1198 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
1199 with a call to internal_error.
1201 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
1202 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
1203 processor variant lacks those registers.
1204 (ppc_floating_point_unit_p): Change description to make it clear
1205 that this returns info about the ISA, not the ABI.
1206 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
1207 return true or false by checking tdep->ppc_fp0_regnum and
1208 tdep->ppc_fpscr_regnum. The original code replicated the BFD
1209 arch/mach switching done in rs6000_gdbarch_init; it's better to
1210 keep that logic there, and just check the results here.
1211 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
1212 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
1213 floating-point registers.
1214 (ppc_supply_fpregset, ppc_collect_fpregset)
1215 (rs6000_push_dummy_call, rs6000_extract_return_value)
1216 (rs6000_store_return_value): Assert that we have floating-point
1218 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
1219 (rs6000_frame_cache): Don't note the locations at which
1220 floating-point registers were saved if we have no fprs.
1221 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
1223 (fetch_regs_user_thread, fetch_regs_kernel_thread)
1224 (store_regs_user_thread, store_regs_kernel_thread): Only call
1225 supply_fprs / fill_fprs if we actually have floating-point
1227 (special_register_p): Check ppc_fpscr_regnum before matching
1229 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
1230 supply / collect fpscr if we don't have it.
1231 * ppc-bdm.c: #include "gdb_assert.h".
1232 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
1233 have floating-point registers, since I can't test this code on
1234 FP-free systems to adapt it.
1235 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
1236 fpscr and floating point register numbers if they don't exist.
1237 (fetch_register): Assert that we have floating-point registers
1238 before we reach the code that handles them.
1239 (store_register): Same. And use tdep instead of calling
1241 (fill_fpregset): Don't try to collect FP registers and fpscr if we
1243 (ppc_linux_sigtramp_cache): Don't record the saved locations of
1244 fprs and fpscr if we don't have them.
1245 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
1247 * ppcnbsd-nat.c: #include "gdb_assert.h".
1248 (getfpregs_supplies): Assert that we have floating-point registers.
1249 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
1250 * ppcobsd-tdep.c: #include "gdb_assert.h".
1251 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
1252 have floating-point registers.
1253 * rs6000-nat.c (regmap): Don't match against the fpscr and
1254 floating point register numbers if they don't exist.
1255 (fetch_inferior_registers, store_inferior_registers,
1256 fetch_core_registers): Only fetch / store / supply the
1257 floating-point registers and the fpscr if we have them.
1258 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
1259 (ppcobsd-tdep.o): Update dependencies.
1261 2004-05-10 Andrew Cagney <cagney@redhat.com>
1263 * infrun.c (through_sigtramp_breakpoint): Delete variable.
1264 (context_switch): Do not switch through_sigtramp_breakpoint.
1265 * gdbthread.h (save_infrun_state, load_infrun_state)
1266 (struct thread_info): Delete through_sigtramp_breakpoint parameter
1267 and structure member.
1268 * thread.c (load_infrun_state, save_infrun_state): Update.
1270 2004-05-10 Mark Kettenis <kettenis@gnu.org>
1272 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
1274 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1276 * acinclude.m4: Quote macro names being defined by AC_DEFUN
1278 * aclocal.m4: Regenerate.
1280 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
1282 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
1284 2004-05-10 Andrew Cagney <cagney@redhat.com>
1286 * infrun.c (check_sigtramp2): Delete function.
1287 (handle_inferior_event): When single stepping, and taking a
1288 signal, set a breakpoint at the signal return address. Delete
1289 redundant calls to check_sigtramp2.
1290 (insert_step_resume_breakpoint): New function.
1291 (through_sigtramp_breakpoint, handle_inferior_event)
1292 (follow_exec, wait_for_inferior, fetch_inferior_event)
1293 (currently_stepping, keep_going): Delete most uses of
1294 through_sigtramp_breakpoint, not that it should be deleted.
1295 (delete_breakpoint_current_contents): Delete function.
1297 2004-05-10 Randolph Chung <tausq@debian.org>
1299 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
1301 * config/pa/tm-linux.h: New file.
1303 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
1305 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
1306 of prefixes. Don't print the prefix twice in the CLI.
1308 2004-05-10 Jim Blandy <jimb@redhat.com>
1310 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
1311 collect all the gprs.
1313 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
1314 loop collecting gprs.
1316 2004-05-09 Andrew Cagney <cagney@redhat.com>
1318 * remote-vx.c (net_step): Delete step-range code.
1319 * remote.c (remote_resume, init_all_packet_configs)
1320 (set_remote_protocol_E_packet_cmd)
1321 (show_remote_protocol_E_packet_cmd)
1322 (remote_protocol_E, show_remote_cmd, _initialize_remote)
1323 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
1324 (show_remote_protocol_e_packet_cmd): Ditto.
1326 2004-05-09 Mark Kettenis <kettenis@gnu.org>
1328 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
1330 * hppa-tdep.h: Update copyright year.
1331 (struct trad_frame_saved_reg): Add opaque declaration.
1333 * amd64-tdep.c (amd64_return_value): Implement
1334 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1336 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
1337 (m68k_value_to_register): New functions.
1338 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
1341 * defs.h (enum return_value_convention): Add
1342 RETURN_VALUE_ABI_RETURNS_ADDRESS and
1343 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
1344 * infcmd.c (legacy_return_value): New function.
1345 (print_return_value): Rwerite to implement
1346 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1347 * values.c (using_struct_return): Check for inequality to
1348 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
1349 RETURN_VALUE_STRUCT_CONVENTION.
1350 * i386-tdep.c (i386_return_value): Implement
1351 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1353 * vax-tdep.c: Tweak comments. Reorder include files. Don't
1354 include "symtab.h", "opcode/vax.h" and "inferior.h".
1355 (vax_skip_prologue): Replace calls to read_memory_integer by calls
1356 to read_memory_unsigned_integer.
1357 (vax_gdbarch_init): Reorder.
1358 (_initialize_vax_tdep): Spell out prototype.
1359 * Makefile.in (vax-tdep.o): Update dependencies.
1361 2004-05-08 Andrew Cagney <cagney@redhat.com>
1363 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
1364 * target.c (target_detach, target_disconnect): Ditto.
1366 * infcall.c (call_function_by_hand): When no
1367 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
1368 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
1369 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
1370 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1371 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1373 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
1374 * gdbarch.h, gdbarch.c: Re-generate.
1375 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
1376 deprecated_fix_call_dummy.
1377 * v850-tdep.c (v850_gdbarch_init): Ditto.
1378 * infcall.c (call_function_by_hand): Do not call
1379 DEPRECATED_FIX_CALL_DUMMY.
1381 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
1382 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
1383 * gdbarch.h, gdbarch.c: Re-generate.
1384 * arm-linux-tdep.c (arm_linux_call_dummy_words)
1385 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
1386 deprecated_sizeof_call_dummy_words.
1387 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
1388 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1389 * v850-tdep.c (v850_gdbarch_init): Ditto.
1390 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1391 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
1392 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1393 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1394 * arch-utils.h (legacy_call_dummy_words)
1395 (legacy_sizeof_call_dummy_words): Delete declarations.
1396 * arch-utils.c (legacy_call_dummy_words)
1397 (legacy_sizeof_call_dummy_words): Delete variables.
1399 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
1400 * gdbarch.h, gdbarch.c: Re-generate.
1401 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
1402 * infcall.c (call_function_by_hand): Eliminate call to
1403 DEPRECATED_PUSH_DUMMY_FRAME.
1404 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
1406 (ns32k_push_dummy_frame): Delete function.
1408 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
1409 deprecated_call_dummy_breakpoint_offset or
1410 deprecated_call_dummy_start_offset.
1411 * dummy-frame.c, arm-tdep.c: Update comments.
1412 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
1413 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
1414 * gdbarch.h, gdbarch.c: Re-generate.
1416 * infcall.c (legacy_push_dummy_code): Delete function.
1417 (push_dummy_code): Delete call.
1419 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
1420 * gdbarch.h, gdbarch.c: Re-generate.
1421 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
1422 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
1423 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
1424 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
1426 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
1427 (struct frame_info): Delete opaque declaration.
1428 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
1429 * frame.c (get_frame_type): Delete call.
1431 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
1433 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
1434 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
1436 2004-05-08 Mark Kettenis <kettenis@gnu.org>
1438 * alphanbsd-tdep.c: Include "gdb_string.h".
1439 * armnbsd-tdep.c: Update copyright year.
1440 Include "gdb_string.h".
1441 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
1444 * delta68-nat.c: Remove file.
1445 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
1446 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
1447 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
1448 (delta68-nat.o): Remove dependency.
1450 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
1452 (m68k_gdbarch_init): Don't set
1453 deprecated_frameless_function_invocation.
1455 2004-05-07 Randolph Chung <tausq@debian.org>
1457 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
1458 read_memory_nobpt for code reading when doing frame unwinding.
1459 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
1461 2004-05-07 Randolph Chung <tausq@debian.org>
1463 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
1464 instead of sp, handle sigaltstack case.
1465 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
1466 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
1467 signal handler and not that of the caller.
1468 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
1469 hppa_linux_sigtramp_find_sigcontext.
1471 2004-05-07 Randolph Chung <tausq@debian.org>
1473 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
1475 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
1476 * hppa-linux-nat.c (fetch_register, store_register): Define.
1477 (fetch_inferior_registers, store_inferior_registers): Define.
1478 (supply_gregset): Add comment and clean up some unneeded code.
1479 (fill_gregset): Add comment and fix so that it saves registers in
1480 the right place in the gregset.
1481 (fill_fpregset): Fix buffer overrun problem.
1482 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
1484 2004-05-07 Randolph Chung <tausq@debian.org>
1486 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
1487 do common handling of the pcoqt register.
1488 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
1489 to use helper function.
1490 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
1491 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
1492 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
1493 generic fallback unwinder when all else fails.
1494 (hppa_gdbarch_init): Add fallback sniffer.
1495 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
1496 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
1497 to use helper function.
1499 2004-05-08 Joel Brobecker <brobecker@gnat.com>
1501 * config/djgpp/fnchange.lst: Add translation rules for
1502 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
1504 2004-05-08 Mark Kettenis <kettenis@gnu.org>
1506 * frame.c (get_prev_frame_1): Work around GCC bug.
1507 * frame.h: Add comment about GCC bug.
1509 2004-05-07 Andrew Cagney <cagney@redhat.com>
1511 * observer.c: Include "commands.h" and "gdbcmd.h".
1512 (observer_debug, _initialize_observer): Add the
1513 command "set/show debug observer".
1514 * observer.sh: When observer debugging, log notify calls.
1515 * Makefile.in (observer.o): Update dependencies.
1517 2004-05-07 Jason Molenda (jmolenda@apple.com)
1519 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
1521 2004-05-07 Jim Blandy <jimb@redhat.com>
1523 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
1524 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
1525 to recognize gpr regnums, instead of assuming that
1526 tdep->ppc_fp0_regnum marks the end of the general-purpose
1529 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
1530 the given architecture has floating-point registers.
1532 2004-05-07 Andrew Cagney <cagney@redhat.com>
1534 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
1536 * gdbarch.h, gdbarch.c: Re-generate.
1537 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
1538 deprecated_use_generic_dummy_frames.
1540 2004-05-07 Brian Ford <ford@vss.fsi.com>
1542 * NEWS: Mention Cygwin DWARF 2 support.
1544 2004-05-07 Andrew Cagney <cagney@redhat.com>
1546 * objfiles.h (struct entry_info): Delete unused fields
1547 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
1548 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
1549 * mipsread.c (mipscoff_symfile_read): Update.
1550 * mdebugread.c (parse_partial_symbols): Update.
1551 * dwarfread.c (read_file_scope): Update.
1552 * dwarf2read.c (read_file_scope): Update.
1553 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
1554 * coffread.c (complete_symtab): Update.
1556 2004-05-07 Mark Kettenis <kettenis@gnu.org>
1558 * infcall.c (_initialize_infcall): Fix typo.
1560 2004-05-07 Andrew Cagney <cagney@redhat.com>
1562 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
1563 * command.h (add_setshow_zinteger_cmd): Declare.
1565 2004-05-06 Randolph Chung <tausq@debian.org>
1567 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
1568 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
1569 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
1570 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
1571 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
1572 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
1573 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
1575 * hppa-tdep.h: ... to here, with HPPA_ prefix.
1576 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
1577 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
1578 (hppa64_hpux_frame_find_saved_regs_in_sig)
1579 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
1580 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
1581 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
1582 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
1583 (hppa_linux_sigtramp_frame_prev_register): Likewise.
1584 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
1585 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
1586 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
1587 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
1588 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
1589 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
1590 (hppa32_register_type, hppa_cannot_store_register)
1591 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
1592 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
1593 * hpread.c (hpread_process_one_debug_symbol): Likewise.
1594 * pa64solib.c (pa64_solib_have_load_event)
1595 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
1596 (pa64_solib_unloaded_library_pathname): Likewise.
1597 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
1598 (som_solib_library_pathname): Likewise.
1600 2004-05-05 Jim Ingham <jingham@apple.com>
1602 * breakpoint.c (create_breakpoints): Copy the ignore count and
1603 thread id over from the pended breakpoint to the actual
1606 2004-05-05 Andrew Cagney <cagney@redhat.com>
1608 * gdbarch.sh (PARM_BOUNDARY): Delete.
1609 gdbarch.h, gdbarch.c: Re-generate.
1610 * valops.c (PARM_BOUNDARY): Delete macro.
1611 (value_push): Delete PARM_BOUNDARY code.
1612 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
1614 2004-05-04 Jim Blandy <jimb@redhat.com>
1616 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
1617 Don't assume that the gprs, fprs, and UISA sprs are
1618 contiguous, start at register number zero, and end with fpscr.
1619 Instead, use the numbers from the tdep structure.
1621 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
1622 should no longer be used in code specific to the RS6000 and its
1624 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
1625 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
1626 tdep->ppc_fp0_regnum.
1627 (ppc_supply_fpregset, ppc_collect_fpregset)
1628 (rs6000_push_dummy_call, rs6000_extract_return_value)
1629 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
1630 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
1632 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
1633 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
1635 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
1636 bdm_ppc_store_registers): Same.
1637 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
1638 (store_register, fill_fpregset): Same.
1639 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
1640 (ppc_linux_supply_fpregset): Same.
1641 * ppcnbsd-nat.c (getfpregs_supplies): Same.
1642 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
1644 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
1645 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
1646 ppc64_sysv_abi_return_value): Same.
1647 * rs6000-nat.c (regmap, fetch_inferior_registers)
1648 (store_inferior_registers, fetch_core_registers): Same.
1650 2004-05-01 Mark Kettenis <kettenis@gnu.org>
1652 * m68knbsd-nat.c: Remove file.
1653 * m68knbsd-tdep.c: Remove file.
1654 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
1656 * configure.host: Add m68k-*-netbsdelf*.
1657 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
1658 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
1659 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
1661 * config/m68k/nbsdelf.mh: New file.
1662 * config/m68k/nbsd.mt: New file.
1663 * config/m68k/nbsdaout.mt: Remove file.
1664 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
1665 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
1666 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
1667 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
1668 (use_struct_convention): Remove prototype.
1669 (USE_STRUCT_CONVENTION): Remove define.
1670 * config/m68k/xm-nbsd.h: Remove file.
1672 2004-05-04 Michael Snyder <msnyder@redhat.com>
1674 * m68k-tdep.c (m68k_gdbarch_init): Default to using
1675 reg_struct_return method (as gcc usually does for cross targets).
1677 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1679 Committed by Andrew Cagney.
1680 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
1681 alignment padding when accessing ucontext struct members.
1683 2004-05-04 Jim Blandy <jimb@redhat.com>
1685 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
1686 'ppc_gplast_regnum' member.
1687 (ppc_num_gprs): New enum constant.
1688 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
1689 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
1690 * rs6000-nat.c (regmap, fetch_inferior_registers,
1691 store_inferior_registers): Same.
1692 * rs6000-tdep.c (e500_pseudo_register_read)
1693 (e500_pseudo_register_write): Same.
1694 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
1696 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
1697 * ppc-tdep.h (ppc_num_fprs): New enum constant.
1698 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
1699 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
1701 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
1703 * ppc-linux-nat.c (ppc_register_u_addr): Same.
1704 * rs6000-nat.c (regmap, fetch_inferior_registers)
1705 (store_inferior_registers): Same.
1707 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
1710 2004-05-03 Joel Brobecker <brobecker@gnat.com>
1712 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
1713 failure detected by recent versions of GCC.
1714 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
1715 to be consistent with the usage in dwarf2_create_include_psymtab.
1717 2004-05-03 Michael Snyder <msnyder@redhat.com>
1719 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
1720 (heuristic_proc_start): Whitespace cleanup.
1722 2004-05-04 Mark Kettenis <kettenis@gnu.org>
1724 * sun3-nat.c: Remove file.
1725 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
1727 (ALLDEPFILES): Remove sun3-nat.c.
1728 (sun3-nat.o): Remove dependencies.
1730 * i386-interix-nat.c, i386-interix-tdep.c,
1731 config/i386/nm-interix.h, config/i386/interix.mh,
1732 config/i386/interix.mt: Remove files.
1733 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
1736 2004-05-03 Mark Kettenis <kettenis@gnu.org>
1738 * m68k-tdep.h (struct gdbarch_tdep): Add member
1739 struct_value_regnum.
1740 (m68k_svr4_init_abi): New prototype.
1741 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
1742 different calling conventions.
1743 (m68k_extract_return_value): Remove code dealing with single-field
1745 (m68k_store_return_value): Remove code dealing with single-field
1746 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
1747 (m68k_extract_struct_value_address): Remove function.
1748 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
1749 (m68k_reg_struct_return_p, m68k_return_value)
1750 (m68k_svr4_return_value): New functions.
1751 (m68k_use_struct_convention): Remove function.
1752 (m68k_push_dummy_call): Use new struct_value_regnum member of
1753 `struct gdbarch_tdep' instead of hardcoded register number to
1755 (m68k_svr4_init_abi): New function.
1756 (m68k_gdbarch_init): Don't set extract_return_value,
1757 store_return_values, deprecated_extract_struct_value_address and
1758 use_struct_convention. Set return_value instead. Initialize new
1759 struct_value_regnum member of `struct gdbarch_tdep'.
1760 * m68klinux-tdep.c: Update copyright year.
1761 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
1762 (m68k_linux_extract_struct_value_address): Remove function.
1763 (m68k_linux_init_abi): Don't set extract_return_value,
1764 store_return_values, deprecated_extract_struct_value_address and
1765 use_struct_convention. Call m68k_svr4_init_abi but override the
1766 new struct_value_regnum member of `struct gdbarch_tdep'.
1767 * Makefile.in (m68k-tdep.o): Update dependencies.
1769 2004-05-03 J. Brobecker <brobecker@gnat.com>
1771 * dwarf2read.c (line_header): Add new included_p field in
1773 (partial_die_info): New field has_stmt_list. New field line_offset.
1774 (dwarf2_create_include_psymtab): New function.
1775 (dwarf2_build_include_psymtabs): New function.
1776 (add_file_name): Add forward declaration. Initialize new field.
1777 (dwarf_decode_lines): Add new parameter. Enhance this procedure
1778 to be able to determine the list of files included by the
1779 given unit, and build their associated psymtabs.
1780 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
1782 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
1783 (read_file_scope): Update call to dwarf_decode_lines.
1784 (read_partial_die): Handle DW_AT_stmt_list attributes.
1786 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
1789 * configure.in: Revert special case for osf5.*.
1790 * configure: Regenerate.
1792 2004-05-02 Jim Blandy <jimb@redhat.com>
1794 Move the symbol-file-from-memory functions into their own file.
1795 * symfile-mem.c, symfile-mem.h: New files.
1796 * symfile.c (symbol_file_add_from_bfd): New function.
1797 (symbol_file_add): Call symbol_file_add_from_bfd.
1798 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
1799 Moved to symfile-mem.c.
1800 (_initialize_symfile): Move definition of
1801 add-symbol-file-from-memory command to symfile-mem.c.
1802 * symfile.h (symbol_file_add_from_bfd): New declaration.
1803 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
1804 * config/powerpc/linux.mt (TDEPFILES): Same.
1805 * Makefile.in (SFILES): Add symfile-mem.c.
1806 (symfile_mem_h): New variable.
1807 (HFILES_NO_SRCDIR): Add symfile-mem.h.
1808 (symfile-mem.o): New rule.
1810 2004-05-01 Andrew Cagney <cagney@redhat.com>
1812 * breakpoint.c (insert_bp_location): Use get_frame_id, and
1813 frame_find_by_id instead of frame_relative_level.
1814 (do_enable_breakpoint): Ditto.
1815 * thread.c: Update copyright.
1816 (info_threads_command): Ditto, simplify.
1818 * frame.c (deprecated_generic_get_saved_register): Delete
1819 function, moved to "xstormy16-tdep.c".
1820 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
1821 deprecated_generic_get_saved_register from "frame.c".
1822 (xstormy16_frame_saved_register): Call
1823 xstormy16_get_saved_register.
1824 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
1826 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
1827 * frame.h (deprecated_generic_get_saved_register): Delete.
1829 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
1831 * dwarfread.c: Update documentation on the state of dwarf-1.
1833 2004-05-01 Andrew Cagney <cagney@redhat.com>
1835 * stack.c (select_frame_command): Delete call to
1836 frame_relative_level.
1837 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
1839 (frame_info): Do not print FRAMELESS.
1840 (print_block_frame_labels): Replace DEPRECATED_STREQ.
1841 (catch_info): Delete #if0 code.
1843 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
1844 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
1845 of frame_relative_level.
1846 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
1848 * frame.h (enum frame_type): Add SENTINEL_FRAME.
1849 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
1850 frame_relative_level.
1852 * frame.h (deprecated_set_frame_type): Delete declaration.
1853 * frame.c (deprecated_set_frame_type): Delete function, update
1856 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
1857 * gdbarch.h, gdbarch.c: Re-generate.
1858 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
1859 (shnbsd_pc_in_sigtramp): Delete.
1860 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
1862 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
1864 * frame.h: Update comments.
1865 * ppc-linux-tdep.c: Update comments.
1866 * breakpoint.c (bpstat_what): Update comments.
1868 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
1869 m68klinux-tdep.o's dependencies, were previously added to
1872 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
1873 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
1874 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
1875 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
1876 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
1878 * Makefile.in (m68klinux-nat.o): Update dependencies.
1879 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
1880 (m68k_linux_sigtramp_frame_cache)
1881 (m68k_linux_sigtramp_frame_this_id)
1882 (m68k_linux_sigtramp_frame_prev_register)
1883 (m68k_linux_sigtramp_frame_unwind)
1884 (m68k_linux_sigtramp_frame_sniffer)
1885 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
1886 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
1887 names, use trad-frame.h.
1888 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
1889 (struct m68k_sigtramp_info): Delete.
1890 * m68k-tdep.c (m68k_sigtramp_frame_cache)
1891 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
1892 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
1893 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
1896 * infrun.c (check_sigtramp2): Delete check for
1897 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
1899 2004-05-01 Mark Kettenis <kettenis@gnu.org>
1901 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
1903 2004-05-01 Andrew Cagney <cagney@redhat.com>
1905 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
1906 (frv_linux_sigtramp_frame_cache)
1907 (frv_linux_sigtramp_frame_this_id)
1908 (frv_linux_sigtramp_frame_prev_register)
1909 (frv_linux_sigtramp_frame_unwind)
1910 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
1911 include "linux" in function and variable names, directly call
1912 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
1913 the latest trad-frame code.
1914 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
1915 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
1916 * Makefile.in (frv-linux-tdep.o): Update dependencies.
1917 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
1918 * frv-tdep.c (frv_sigtramp_frame_cache)
1919 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
1920 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
1922 (frv_gdbarch_init): Do not append a sigtramp sniffer.
1923 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
1924 (frv_set_sigcontext_reg_addr): Delete function.
1926 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
1927 (DEPRECATED_SIGTRAMP_END): Delete.
1928 * gdbarch.h, gdbarch.c: Re-generate.
1929 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
1930 * config/vax/tm-vaxbsd.h: Update copyright.
1931 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
1932 (DEPRECATED_IN_SIGTRAMP): Define.
1933 * config/m68k/tm-nbsd.h: Update copyright.
1934 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
1935 (DEPRECATED_IN_SIGTRAMP): Define.
1937 2004-05-01 Mark Kettenis <kettenis@gnu.org>
1939 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
1940 encondings. Fixes PR gdb/1628.
1942 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
1943 DW_CFA_restore state without a matching DW_CFA_remember_state
1944 instead of aborting. Fixes PR backtrace/1589.
1946 2004-04-30 Joel Brobecker <brobecker@gnat.com>
1948 * MAINTAINERS: Add self as AIX maintainer.
1949 Update my e-mail address in write-after-approval section.
1951 2004-04-30 Andrew Cagney <cagney@redhat.com>
1953 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
1954 (legacy_get_prev_frame): Ditto.
1956 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
1957 (mips_gdbarch_init): Do not set pc_in_sigtramp.
1958 * mipsread.c (sigtramp_address): Delete extern variable.
1959 (mipscoff_new_init): Delete reference.
1960 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
1961 (fixup_sigtramp): Delete function.
1962 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
1963 (fixup_sigtramp): Delete declarations.
1965 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
1966 deprecated_pc_in_sigtramp.
1967 (ppcnbsd_pc_in_sigtramp): Delete function.
1969 2004-05-01 Mark Kettenis <kettenis@gnu.org>
1971 * config/m68k/nm-nbsd.h: Tweak comments.
1972 * config/m68k/nm-nbsdaout.h: Likewise.
1974 2004-04-30 Andrew Cagney <cagney@redhat.com>
1976 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
1977 legacy_pc_in_sigtramp.
1978 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
1980 2004-05-01 Mark Kettenis <kettenis@gnu.org>
1982 Add OpenBSD/m68k support.
1983 * NEWS (New native configurations): Mention OpenBSD/m68k.
1984 * m68kbsd-tdep.c: New file.
1985 * m68kbsd-nat.c: New file.
1986 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
1987 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
1988 * configure.host: Add m68k-*-openbsd.
1989 * configure.tgt: Add m68k-*-openbsd.
1990 * config/m68k/tm-obsd.h: New file.
1991 * config/m68k/obsd.mt: New file.
1992 * config/m68k/obsd.mh: New file.
1993 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
1996 2004-04-30 Andrew Cagney <cagney@redhat.com>
1998 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
1999 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
2001 2004-04-30 Mark Kettenis <kettenis@gnu.org>
2003 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
2004 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
2006 2004-04-30 Brian Ford <ford@vss.fsi.com>
2008 Revert 2004-04-16 change.
2009 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
2010 (i386_coff_init_abi): Remove.
2011 * i386-tdep.h (i386_coff_init_abi): Remove.
2012 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
2014 2004-04-30 Andrew Cagney <cagney@redhat.com>
2016 * blockframe.c (find_pc_partial_function): Delete use of
2017 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
2018 DEPRECATED_SIGTRAMP_END.
2020 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
2021 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
2022 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
2023 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
2024 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
2026 * defs.h (deprecated_inside_entry_file): Delete declaration.
2027 * blockframe.c (deprecated_inside_entry_file): Delete function.
2028 (legacy_frame_chain_valid): Delete call.
2029 * sh64-tdep.c (sh64_frame_chain): Delete call.
2030 * objfiles.h: Update comments.
2031 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
2033 * frame.c (get_prev_frame): Delete call, update comments.
2035 2004-04-30 Brian Ford <ford@vss.fsi.com>
2037 * MAINTAINERS (Write After Approval): Add myself.
2039 2004-04-30 Andrew Cagney <cagney@redhat.com>
2041 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
2042 * gdbarch.h, gdbarch.c: Re-generate.
2043 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
2046 2004-04-30 Andrew Cagney <cagney@redhat.com>
2048 * gdb-events.sh (selected_thread_changed)
2049 (selected_frame_level_changed, target_changed): Delete.
2050 * gdb-events.h, gdb-events.c: Re-generate.
2051 * valops.c (value_assign): Update.
2052 * stack.c (select_frame_command, up_silently_base)
2053 (down_silently_base): Update.
2055 2004-04-29 Andrew Cagney <cagney@redhat.com>
2057 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
2058 registers correctly.
2059 (print_gp_register_row, mips32_heuristic_proc_desc)
2060 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
2061 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
2062 references to mips_isa_regsize.
2064 2004-04-29 Andrew Cagney <cagney@redhat.com>
2066 * mips-tdep.c (struct gdbarch_tdep): Delete
2067 mips_fp_register_double.
2068 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
2070 (mips_gdbarch_init): Do not set mips_fp_register_double.
2071 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
2073 2004-04-29 Joel Brobecker <brobecker@gnat.com>
2075 Committed by Andrew Cagney.
2076 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
2079 2004-04-29 Andrew Cagney <cagney@redhat.com>
2081 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
2082 gdbarch, use mips_abi, update callers.
2083 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
2084 mips_abi_regsize, update callers.
2085 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
2086 mips_default_abi_regsize.
2087 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
2088 mips_default_abi_regsize.
2090 2004-04-29 Andrew Cagney <cagney@redhat.com>
2092 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
2093 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
2094 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
2095 mips_default_abi_regsize.
2096 (mips_isa_regsize): Rename mips_regisze.
2097 * mipsnbsd-tdep.c: Update.
2098 * mips-linux-tdep.c: Update.
2099 * irix5-nat.c: Update.
2100 * mips-tdep.h (mips_isa_regsize): Update.
2102 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
2103 Delete all disabled code.
2104 * gdb-events.h, gdb-events.c: Re-generate.
2106 2004-04-19 Jerome Guitton <guitton@gnat.com>
2107 Mark Kettenis <kettenis@gnu.org>
2109 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
2110 the function begins with a branch instruction.
2112 2004-04-29 Mark Kettenis <kettenis@gnu.org>
2114 * i386-tdep.c: Fix spelling mistakes.
2116 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2117 Andrew Cagney <cagney@redhat.com>
2119 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
2121 * acconfig.h: Provide default _KMEMUSER value.
2122 * config.in, configure: Re-generate.
2123 * NEWS: Mention fix.
2125 2004-04-24 Randolph Chung <tausq@debian.org>
2127 * configure.host (hppa*-*-linux*): New target.
2128 * configure.tgt (hppa*-*-linux*): Likewise.
2129 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
2130 gdbarch_init_osabi() call earlier so that osabi-specific frame
2131 unwinders can be registered first.
2132 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
2134 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
2135 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
2136 * config/pa/linux.mh: New file.
2137 * config/pa/linux.mt: New file.
2138 * config/pa/nm-linux.h: New file.
2139 * config/pa/xm-linux.h: New file.
2140 * hppa-linux-nat.c: New file.
2141 * hppa-linux-tdep.c: New file.
2143 2004-04-28 Randolph Chung <tausq@debian.org>
2145 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
2147 (hppa32_push_dummy_call): Fix small struct and floating point argument
2148 passing, and make sure the stack frame is properly aligned.
2150 2004-04-28 Andrew Cagney <cagney@redhat.com>
2152 * stack.c (print_stack_frame): Fix description.
2154 * NEWS: Mention gdb/gdbserver/configure execute permission
2155 changed. PR server/519.
2157 2004-04-28 Andrew Cagney <cagney@redhat.com>
2159 * stack.c (print_stack_frame_stub): Delete declaration.
2160 (struct print_stack_frame_args, print_stack_frame)
2161 (print_frame_info, print_frame): Replace "source" with print what.
2162 Replace "print" with "print_level". Replace "args" with
2164 * frame.h (show_and_print_stack_frame, print_stack_frame)
2165 (print_frame_info): Update declarations.
2166 * stack.c (select_and_print_frame, frame_command)
2167 (current_frame_command, up_command, down_command): Update calls -
2168 use get_selected_frame, pass "enum print_what" for source, do not
2169 call frame_relative_level.
2170 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
2171 * remote-rdp.c (remote_rdp_open): Ditto.
2172 * remote-mips.c (common_open): Ditto.
2173 * remote-e7000.c (e7000_start_remote): Ditto.
2174 * ocd.c (ocd_start_remote): Ditto.
2175 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
2176 * infrun.c (normal_stop): Ditto.
2177 * inflow.c (kill_command): Ditto.
2178 * infcmd.c (finish_command): Ditto.
2179 * corelow.c (core_open): Ditto.
2180 * tracepoint.c (finish_tfind_command): Ditto.
2181 * thread.c (info_threads_command, info_threads_command)
2182 (restore_current_thread, do_captured_thread_select): Ditto.
2183 * ada-tasks.c (task_command): Ditto.
2185 2004-04-26 Orjan Friberg <orjanf@axis.com>
2187 * frame.c: Include "observer.h".
2188 (frame_observer_target_changed): New function.
2189 (_initialize_frame): Attach target_changed observer.
2190 * regcache.c: Include "observer.h".
2191 (regcache_observer_target_changed): New function.
2192 (_initialize_regcache): Attach target_changed observer.
2193 * valops.c: Include "observer.h".
2194 (value_assign): Notify target_changed event when modifying register.
2195 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
2197 2004-04-26 Orjan Friberg <orjanf@axis.com>
2199 From Paul Koning <pkoning@equallogic.com>:
2200 * breakpoint.c (free_valchain): New function.
2201 (insert_bp_location, delete_breakpoint): Use free_valchain.
2202 (remove_breakpoint): Do not remove the valchain.
2203 (bpstat_stop_status): If not stopped by watchpoint, skip
2204 watchpoints when generating stop status list.
2205 * infrun.c (handle_inferior_event): Make
2206 stepped_after_stopped_by_watchpoint a global variable.
2207 * remote.c (remote_stopped_data_address): Return watch data
2208 address rather than zero if stepped_after_stopped_by_watchpoint is
2211 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
2214 * configure.in: Check for curses after termcap.
2215 On osf5.*, do not check for ncurses.
2216 * configure: Regenerate.
2218 2004-04-25 Mark Kettenis <kettenis@gnu.org>
2220 * ppcobsd-nat.c: Include "ppc-tdep.h".
2221 * Makefile.in (ppcobsd-nat.o): Update dependencies.
2223 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
2224 Fixes PR tdep/1623 and PR tdep/1624.
2226 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
2228 * xmodem.h, xmodem.c: Remove files.
2229 * Makefile.in: Remove references to xmodem.h, xmodem.c.
2231 2004-04-23 Randolph Chung <tausq@debian.org>
2233 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
2234 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
2235 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
2236 for handling stackless frames.
2237 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
2239 2004-04-23 Randolph Chung <tausq@debian.org>
2241 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
2242 starts at a pc before the frame is created.
2244 2004-04-23 Joel Brobecker <brobecker@gnat.com>
2246 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
2248 2004-04-23 Jerome Guitton <guitton@gnat.fr>
2250 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
2251 use convert_typed_floating to get the appropriate format.
2253 2004-04-22 Randolph Chung <tausq@debian.org>
2255 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
2256 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
2257 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
2258 (hppa_sign_extend): Add prototype.
2259 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
2260 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
2261 (sign_extend): Rename with hppa_ prefix and make non-static. Other
2262 hppa targets will also use these functions.
2263 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
2264 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
2265 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
2266 (hppa_gdbarch_init): Remove gdbarch setting of
2267 skip_trampoline_code, in_solib_call_trampoline and
2268 in_solib_return_trampoline.
2269 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2270 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
2271 hppa_in_solib_call_trampoline.
2272 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
2273 Moved from hppa-tdep.c.
2274 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
2275 in_solib_call_trampoline and in_solib_return_trampoline.
2277 2004-04-22 Randolph Chung <tausq@debian.org>
2279 * hppa-tdep.c (hppa_debug): New variable.
2280 (find_unwind_entry, hppa_frame_cache): Add debug output.
2281 (_initialize_hppa_tdep): Add command to set debug flag.
2283 2004-04-22 Andrew Cagney <cagney@redhat.com>
2285 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
2287 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
2288 signal trampoline unwinder.
2289 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
2291 2004-04-22 Mark Kettenis <kettenis@gnu.org>
2293 Add OpenBSD/powerpc support.
2294 * NEWS (New native configurations): Mention OpenBSD/powerpc.
2295 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
2296 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
2297 (ppc_collect_fpregset): New prototypes.
2298 * ppcobsd-nat.c: New file.
2299 * ppcobsd-tdep.c: New file.
2300 * ppcobsd-tdep.h: New file.
2301 * rs6000-tdep.c: Include "regset.h".
2302 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
2303 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
2305 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
2306 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
2307 (rs6000-tdep.o): Update dependencies.
2308 * configure.host: Add powerpc-*-openbsd.
2309 * configure.tgt: Add powerpc-*-openbsd.
2310 * config/powerpc/obsd.mh: New file.
2311 * config/powerpc/nm-obsd.h: New file.
2312 * config/powerpc/obsd.mt: New file.
2314 2004-04-22 Andrew Cagney <cagney@redhat.com>
2316 * frame.h (show_frame_info): Delete declaration.
2318 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
2319 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
2320 * m32r-tdep.c (m32r_frame_this_id): Ditto.
2321 * frv-tdep.c (frv_frame_this_id): Ditto.
2322 * avr-tdep.c (avr_frame_this_id): Ditto.
2324 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
2326 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
2328 2004-04-22 Jim Blandy <jimb@redhat.com>
2330 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
2331 register number zero.
2333 2004-04-21 Michael Snyder <msnyder@redhat.com>
2335 * mips-tdep.c (heuristic_proc_start):
2336 Warning() already prefixes "Warning: ".
2338 2004-04-21 Andrew Cagney <cagney@redhat.com>
2340 * annotate.h (deprecated_annotate_starting_hook)
2341 (deprecated_annotate_stopped_hook)
2342 (deprecated_annotate_exited_hook)
2343 (deprecated_annotate_signal_hook)
2344 (deprecated_annotate_signalled_hook): Deprecate.
2345 * tracepoint.h (deprecated_create_tracepoint_hook)
2346 (deprecated_delete_tracepoint_hook)
2347 (deprecated_modify_tracepoint_hook)
2348 (deprecated_trace_find_hook)
2349 (deprecated_trace_start_stop_hook): Deprecate.
2350 * target.h (deprecated_target_new_objfile_hook): Deprecate.
2351 * remote.h (deprecated_target_resume_hook)
2352 (deprecated_target_wait_loop_hook): Deprecate.
2353 * gdbcore.h (deprecated_exec_file_display_hook)
2354 (deprecated_file_changed_hook): Deprecate.
2355 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
2356 * defs.h (deprecated_modify_breakpoint_hook)
2357 (deprecated_command_loop_hook, deprecated_show_load_progress)
2358 (deprecated_print_frame_info_listing_hook)
2359 (deprecated_query_hook, deprecated_warning_hook)
2360 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
2361 (deprecated_delete_breakpoint_hook)
2362 (deprecated_interactive_hook, deprecated_registers_changed_hook)
2363 (deprecated_readline_begin_hook, deprecated_readline_hook)
2364 (deprecated_readline_end_hook, deprecated_register_changed_hook)
2365 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
2366 (deprecated_context_hook, deprecated_target_wait_hook)
2367 (deprecated_attach_hook, deprecated_detach_hook)
2368 (deprecated_call_command_hook, deprecated_set_hook)
2369 (deprecated_error_hook, deprecated_error_begin_hook)
2370 (deprecated_ui_load_progress_hook): Deprecate.
2371 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
2372 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
2373 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
2374 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
2375 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
2376 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
2377 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
2378 * annotate.c, aix-thread.c: Update.
2380 2004-04-21 Andrew Cagney <cagney@redhat.com>
2382 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
2383 * vaxnbsd-tdep.c: Include "gdb_string.h".
2385 * symfile.c (symbol_file_add_from_memory): #if 0 function.
2386 (add_symbol_file_from_memory_command): #if 0 function body, call
2389 2004-04-21 Andrew Cagney <cagney@redhat.com>
2391 * gdbcore.h: Update copyright.
2392 (deprecated_add_core_fns): Rename add_core_fns.
2393 * win32-nat.c (_initialize_core_win32): Update.
2394 * sun3-nat.c (_initialize_core_sun3): Update.
2395 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
2396 * rs6000-nat.c (_initialize_core_rs6000): Update.
2397 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
2398 * nto-tdep.c (_initialize_nto_tdep): Update.
2399 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
2400 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
2401 * mips-nat.c (_initialize_core_mips): Update.
2402 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
2403 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
2404 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
2405 * lynx-nat.c (_initialize_core_lynx): Update.
2406 * irix5-nat.c (_initialize_core_irix5): Update.
2407 * i386-interix-nat.c (_initialize_core_interix): Update.
2408 * cris-tdep.c (_initialize_cris_tdep): Update.
2409 * corelow.c (deprecated_add_core_fns): Update.
2410 * core-regset.c (_initialize_core_regset): Update.
2411 * core-aout.c (_initialize_core_aout): Update.
2412 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
2413 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
2414 * alpha-nat.c (_initialize_core_alpha): Update.
2416 2004-04-21 Jim Blandy <jimb@redhat.com>
2418 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
2420 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
2422 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
2424 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
2425 (read_attribute_value): Update calls to dwarf_alloc_block.
2426 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
2428 (psymtab_to_symtab_1): Likewise. Clean up using
2429 free_stack_comp_unit.
2430 (add_to_cu_func_list): Use the comp_unit_obstack.
2432 2004-04-19 Joel Brobecker <brobecker@gnat.com>
2434 * dwarf2read.c (dwarf2_flag_true_p): New function.
2435 (die_is_declaration): Use the function above. Add some comments.
2437 2004-04-19 Mark Kettenis <kettenis@gnu.org>
2439 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
2440 architecture when registering sparcnbsd_core_osabi_sniffer.
2443 2004-04-18 Mark Kettenis <kettenis@gnu.org>
2445 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
2448 Based on a patch from Brian Ford <ford@vss.fsi.com>:
2449 * i386-tdep.c: Correct register numbering scheme comments
2451 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
2452 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
2453 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
2454 (i386_gdb_arch_init): Likewise.
2456 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
2457 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
2460 * m68k-tdep.h: Tweak comments.
2461 * m68k-tdep.c: Tweak comment.
2463 2004-04-17 Randolph Chung <tausq@debian.org>
2465 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
2466 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
2467 (hppa_hpux_som_init_abi): Set is_elf to 0.
2468 (hppa_hpux_elf_init_abi): Set is_elf to 1.
2469 * hppa-tdep.c (low_text_segment_address): Remove global.
2470 (record_text_segment_lowaddr): Pass in low address as parameter. Use
2471 section offset to calculate segment address.
2472 (internalize_unwinds): Define low_text_segment_address as local and
2473 pass to record_text_segment_lowaddr for ELF targets.
2474 (hppa_gdbarch_init): Zero fill tdep structure.
2475 (hppa_dump_tdep): Print tdep structure.
2476 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
2478 2004-04-17 Randolph Chung <tausq@debian.org>
2480 * hppa-tdep.c (hppa_pseudo_register_read): Define.
2481 (hppa_gdbarch_init): Set pseudo_register_read.
2482 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
2483 * regcache.c (supply_register): Remove check for
2484 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
2486 2004-04-17 Randolph Chung <tausq@debian.org>
2488 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
2489 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
2490 (hpread_adjust_stack_address): Move to hpread.c.
2491 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
2492 obj_private_struct): Move from tm-hppa.h.
2493 * hpread.c (hppa-tdep.h): Include.
2494 (hpread_adjust_stack_address): Move from hppa-tdep.c.
2495 (hpread_read_function_type, hpread_read_doc_function_type)
2496 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
2498 * pa64solib.c (hppa-tdep.h): Include.
2499 * somsolib.c (hppa-tdep.h): Include.
2500 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
2501 inferior_status): Remove unused forward declarations.
2502 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
2503 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
2504 obj_private_struct): Move to hppa-tdep.h.
2505 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
2507 2004-04-17 Randolph Chung <tausq@debian.org>
2509 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
2510 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
2511 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
2512 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
2513 Remove forward declaration and make static.
2514 (hppa_reg_struct_has_addr): Remove.
2516 2004-04-16 Joel Brobecker <brobecker@gnat.com>
2518 * observer.sh: Move comments in sed command to first column.
2520 2004-04-16 Jason Molenda (jmolenda@apple.com)
2522 * frame.c: Minor typeo corrections in comments.
2524 2004-04-16 Joel Brobecker <brobecker@gnat.com>
2526 * observer.c (observer_test_first_notification_function): Update
2528 (observer_test_second_notification_function): Likewise.
2529 (observer_test_third_notification_function): Likewise.
2531 2004-04-16 Mark Kettenis <kettenis@gnu.org>
2533 From Brian Ford <ford@vss.fsi.com>:
2534 * i386-tdep.c (i386_coff_init_abi): New function.
2535 * i386-tdep.h (i386_coff_init_abi): New prototype.
2536 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
2537 register number translation functions for DWARF and DWARF 2.
2539 2004-04-16 Joel Brobecker <brobecker@gnat.com>
2541 * dwarf2read.c: Back out my previous change, it was incorrect.
2543 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
2545 * dwarf2read.c: Include "hashtab.h".
2546 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
2548 (struct partial_die_info): Add comments. Use bitfields to reduce
2549 memory footprint. Add scope, scope_set, has_specification,
2550 spec_offset, die_parent, die_child, and die_sibling.
2551 (peek_die_abbrev): Add prototype.
2552 (partial_read_comp_unit_head): New function, broken out from
2553 dwarf2_build_psymtabs_hard.
2554 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
2555 Use partial_read_comp_unit_head. Initialize the CU and
2556 comp_unit_obstack. Update calls to read_partial_die and
2557 scan_partial_symbols. Use free_stack_comp_unit and
2559 (scan_partial_symbols): Change PDI to a pointer. Use the child and
2560 sibling pointers to walk partial DIEs. Call fixup_partial_die.
2561 Update calls to helper functions. Remove NAMESPACE argument.
2563 (partial_die_parent_scope, partial_die_full_name): New functions.
2564 (add_partial_symbol): Remove namespace argument. Update call to
2565 pdi_needs_namespace. Use partial_die_full_name. Handle
2566 DW_TAG_namespace. Check has_namespace_info flag.
2567 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
2568 tag. Handle namespaces.
2569 (add_partial_namespace, add_partial_enumeration): Simplify.
2570 (guess_structure_name): New function, derived from
2571 add_partial_structure.
2572 (add_partial_structure): Remove.
2573 (determine_class_name): Update comment.
2574 (dwarf2_read_abbrevs): Set has_namespace_info flag.
2575 (is_type_tag_for_partial, load_partial_dies): New functions.
2576 (read_partial_die): Pass abbrev and abbrev_len as arguments.
2577 Record specifications instead of following them immediately.
2578 (find_partial_die_in_comp_unit, find_partial_die)
2579 (fixup_partial_die, free_stack_comp_unit)
2580 (hashtab_obstack_allocate, dummy_obstack_deallocate)
2581 (partial_die_hash, partial_die_eq): New functions.
2582 * Makefile.in (hashtab_h): Define.
2583 (dwarf2read.o): Update dependencies.
2584 (observer_inc, observer_h): Move to the correct section.
2586 2004-04-15 Joel Brobecker <brobecker@gnat.com>
2588 * dwarf2read.c (dwarf2_attribute_true_p): New function.
2589 (die_is_declaration): Use the function above. Add comment.
2591 2004-04-15 Joel Brobecker <brobecker@gnat.com>
2593 * dwarf2read.c (read_structure_scope): Identify stub types
2594 using die_is_declaration() only.
2596 2004-04-15 Roland McGrath <roland@redhat.com>
2598 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
2599 argument instead of NAME.
2600 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
2601 in call to symbol_file_add_with_addrs_or_offsets.
2602 (build_addr_info): New function, helper for ...
2603 (symbol_file_add_from_memory): New function.
2604 (add_symbol_file_from_memory_command): New function using that.
2605 (_initialize_symfile): Register it for add-symbol-file-from-memory.
2606 (pre_add_symbol_hook): Add const to argument type.
2607 * symfile.h (symbol_file_add_from_memory): Declare it.
2609 2004-04-15 Mark Kettenis <kettenis@gnu.org>
2611 * NEWS (New native configurations): Mention OpenBSD/vax.
2612 * configure.host: Add vax-*-openbsd*.
2613 * config/vax/obsd.mh: New file.
2614 * config/vax/nm-obsd.h: New file.
2616 * vax-tdep.c: Include "regset.h".
2617 (vax_supply_gregset): New function.
2618 (vax_gregset): New variable.
2619 (vax_regset_from_core_section): New function.
2620 (vax_gdbarch_init): Set regset_from_core_section.
2621 * Makefile.in (vax-tdep.o): Update dependencies.
2623 2004-04-15 Andrew Cagney <cagney@redhat.com>
2625 * observer.c (normal_stop_subject, observer_notify_normal_stop)
2626 (observer_normal_stop_notification_stub)
2627 (observer_attach_normal_stop, observer_detach_normal_stop):
2628 Delete, replaced by #include "observer.inc".
2629 * infrun.c (normal_stop): Pass "stop_bpstat" to
2630 observer_notify_normal_stop.
2631 * Makefile.in (observer_inc): Define.
2632 (observer.o): Update dependencies.
2633 (observer.h, observer.inc): New rules.
2634 * observer.h: Delete file.
2635 * observer.sh: New file.
2637 2004-04-15 Mark Kettenis <kettenis@gnu.org>
2639 * vax-tdep.c (vax_frame_cache): Fix typo.
2641 2004-04-14 Mark Kettenis <kettenis@gnu.org>
2643 * NEWS (New native configurations): Mention NetBSD/vax.
2644 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
2645 * config/vax/nbsdelf.mh: New file.
2646 * config/vax/nbsdaout.mh: New file.
2647 * config/vax/nm-nbsd.h: New file.
2648 * config/vax/nm-nbsdaout.h: New file.
2650 * vaxnbsd-tdep.c: New file.
2651 * Makefile.in (vaxnbsd-tdep.o): New dependency.
2652 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
2653 * config/vax/nbsd.mt: New file.
2654 * config/vax/tm-nbsd.h: New file.
2656 * Makefile.in (vaxbsd-nat.o): New dependency.
2658 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
2659 * vax-tdep.c (vax_store_arguments): Remove struct_return and
2660 struct_addr arguments. Don't push return value address.
2661 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
2662 arguments to vax_store_arguments. Store return value address in
2664 (vax_store_struct_return, vax_extract_return_value)
2665 (vax_store_return_value): Remove functions.
2666 (vax_return_value): New function.
2667 (vax_gdbarch_init): Set return value. Don't set
2668 deprecated_store_struct_return, deprecated_extract_struct_return
2669 and deprecated_store_return_value.
2671 2004-04-14 Andreas Schwab <schwab@suse.de>
2673 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
2675 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
2677 2004-04-14 Mark Kettenis <kettenis@gnu.org>
2679 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
2680 (vax_unwind_dummy_id): New functions.
2681 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
2682 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
2684 (vax_fix_call_dummy): Remove function.
2685 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
2686 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
2687 call_dummy_location, deprecated_call_dummy_words,
2688 deprecated_sizeof_call_dummy_words,
2689 deprecated_call_dummy_breakpoint_offset,
2690 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
2691 and deprecated_dummy_write_sp.
2693 2004-04-13 David Carlton <carlton@kealia.com>
2695 * MAINTAINERS: Move myself to "paper trail" section.
2697 2004-04-12 Mark Kettenis <kettenis@gnu.org>
2699 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
2701 (vax_frame_init_saved_regs): Remove function.
2702 (vax_sigtramp_saved_pc): Remove function.
2703 (vax_frame_saved_pc): Remove function.
2704 (vax_frame_args_address): Remove function.
2705 (vax_frame_num_args): Rewrite.
2706 (vax_frame_chain): Remove function.
2707 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
2709 (vax_pop_frame): Likewise.
2710 (vax_saved_pc_after_call): Remove function.
2711 (struct vax_frame_cache): New structure.
2712 (vax_frame_cache): New function.
2713 (vax_frame_this_id): New function.
2714 (vax_frame_prev_register): New function.
2715 (vax_frame_unwind): New variable.
2716 (vax_frame_sniffer): New function.
2717 (vax_frame_base_address): New function.
2718 (vax_frame_args_address): New function.
2719 (vax_frame_base): New variable.
2720 (vax_unwind_pc): New function.
2721 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
2722 deprecated_fp_regnum, deprecated_saved_pc_after_call,
2723 deprecated_frame_chain, deprecated_frame_saved_pc,
2724 deprecated_frame_args_address and
2725 deprecated_frame_init_saved_regs.
2726 * Makefile.in (vax-tdep.o): Update dependencies.
2728 * vaxbsd-nat.c: New file.
2730 * vax-tdep.h: Update copyright year. Adjust comments.
2731 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
2732 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
2733 (vax_regnum): New enum. Replacing...
2734 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
2735 (VAX_PS_REGNUM): ... these removed macros.
2736 * vax-tdep.c (vax_register_name): Remove prototype.
2737 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
2738 (vax_register_byte, vax_register_raw_size,
2739 vax_register_virtual_size, vax_register_virtual_type): Remove
2741 (vax_register_type): New function.
2742 (vax_breakpoint_from_pc): Reorganize.
2743 (vax_gdbarch_init): Set register_type. Don't set
2744 deprecated_register_size, deprecated_register_bytes,
2745 deprecated_register_byte, deprecated_register_raw_size,
2746 deprecated_max_register_raw_size,
2747 deprecated_register_virtual_size,
2748 deprecated_max_register_virtual_size and
2749 deprecated_register_virtual_type. Add comment on stack direction.
2751 2004-04-11 Mark Kettenis <kettenis@gnu.org>
2753 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
2754 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
2755 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
2757 2004-04-10 Randolph Chung <tausq@debian.org>
2759 * MAINTAINERS (write after approval): Add myself.
2761 2004-04-07 Randolph Chung <tausq@debian.org>
2763 * hppa-tdep.c (hppa_inner_than): Remove.
2764 (is_pa_2): Remove unused static variable.
2765 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
2767 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
2769 * language.h (language_defn): Add new la_post_parser field.
2770 * parser-defs.h (null_post_parser): New declaration (default for
2773 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
2774 insert call to that function.
2775 (parse_exp_in_context): New function, including code formerly in
2776 parse_exp_1. Calls language-dependent post-parser after
2778 (parse_expression_in_context): New exported function.
2779 (null_post_parser): New definition.
2780 * expression.h (parse_expression_in_context): Add declaration.
2782 * p-lang.c (pascal_language_defn): Add trivial post-parser.
2783 * c-lang.c (c_language_defn): Ditto.
2784 (cplus_language_defn): Ditto.
2785 (asm_language_defn): Ditto.
2786 (minimal_language_defn): Ditto.
2787 * f-lang.c (f_language_defn): Ditto.
2788 * jv-lang.c (java_language_defn): Ditto.
2789 * language.c (unknown_language_defn): Ditto.
2790 (auto_language_defn): Ditto.
2791 (local_language_defn): Ditto.
2792 * m2-lang.c (m2_language_defn): Ditto.
2793 * scm-lang.c (scm_language_defn): Ditto.
2794 * obj-lang.c (objc_language_defn): Ditto.
2796 2004-04-10 Mark Kettenis <kettenis@gnu.org>
2798 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
2799 (amd64nbsd_mcontext_addr): New function.
2800 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
2801 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
2802 with amd64nbsd_r_reg_offset, instead of building it on the fly.
2804 * corelow.c (core_xfer_partial): Fix coding standards violation.
2805 Add support for TARGET_OBJECT_WCOOKIE.
2807 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
2808 deprecated_pc_in_sigtramp.
2809 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
2810 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
2811 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
2812 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
2813 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
2814 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
2815 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
2817 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
2818 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
2821 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
2822 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
2823 (amd64_collect_fxsave): Likewise.
2825 * i386-sol2-tdep.c: Include "gdb_string.h".
2826 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
2828 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
2830 2004-04-10 Mark Kettenis <kettenis@gnu.org>
2832 * i386-sol2-tdep.c: Include "solib-svr4.h".
2833 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
2834 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
2835 * config/i386/tm-i386sol2.h: Include :solib.h".
2836 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
2837 solib-svr4.o and solib-legacy.o.
2838 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
2841 2004-04-09 Mark Kettenis <kettenis@gnu.org>
2843 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
2844 whether a register is supplied by PTRACE_GETFPREGS.
2845 (store_inferior_registers): Likewise.
2846 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
2847 whether a register is supplied by PT_GETFPREGS.
2848 (store_inferior_registers): Likewise.
2850 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
2851 * config/i386/linux64.mt (TDEPFILES): Likewise.
2853 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
2855 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
2856 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
2857 the program counter is in the range specified by `struct
2859 * amd64-linux-tdep.c: Include "symtab.h".
2860 (amd64_linux_pc_in_sigtramp): Remove function.
2861 (amd64_linux_sigtramp_p): New function.
2862 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
2863 deprecated_pc_in_sigtramp.
2864 * amd64nbsd-tdep.c: Include "symtab.h".
2865 (amd64nbsd_sigtramp_p): New function.
2866 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
2867 deprecated_pc_in_sigtramp.
2868 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
2870 (amd64obsd_pc_in_sigtramp): Remove function.
2871 (amd64obsd_sigtramp_p): New function.
2872 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
2873 deprecated_pc_in_sigtramp.
2874 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
2875 (i386bsd_pc_ins_sigtramp): Remove prototype.
2876 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
2877 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
2878 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
2879 the program counter is in the range specified by `struct
2881 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
2882 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
2883 (i386_go32_pc_in_sigtramp): Remove function.
2884 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
2885 Initialize TDEP->sigtramp_p.
2886 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
2887 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
2888 deprecated_pc_in_sigtramp.
2889 * i386-linux-tdep.c: Adjust comments.
2890 (i386_linux_pc_in_sigtramp): Remove function.
2891 (i386_linux_sigtramp_p): New function.
2892 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
2893 deprecated_pc_in_sigtramp.
2894 * i386-nto-tdep.c: Update copyright year.
2895 (i386nto_pc_in_sigtramp): Remove function.
2896 (i386nto_sigtramp_p): New function.
2897 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
2899 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
2900 deprecated_pc_in_sigtramp.
2901 * i386-sol2-tdep.c: Update copyright year.
2902 (i386_sol2_pc_in_sigtramp): Remove function.
2903 (i386_sol2_sigtramp_p): New function.
2904 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
2905 deprecated_pc_in_sigtramp.
2906 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
2907 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
2908 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
2909 deprecated_sigtramp_start and deprecated_sigtramp_end.
2910 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
2911 (i386nbsd_pc_in_sigtramp): Remove function.
2912 (i386nbsd_sigtramp_p): New function.
2913 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
2914 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
2915 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
2916 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
2917 (i386obsd_pc_in_sigtramp): Remove function.
2918 (i386obsd_sigtramp_p): New function.
2919 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
2921 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
2922 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
2924 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
2925 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
2928 * config/i386/i386aout.mt: Remove file.
2930 * configure.tgt: Remove i[34567]86-*-go32*,
2931 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
2932 and i[34567]86-*-isc*. Set gdb_target to i386 for
2933 i[34567]86-*-netware* and i[34567]86-*-*.
2934 * config/i386/i386.mt: New file.
2935 * config/i386/embed.mt: Remove file.
2936 * config/i386/go32.mt: Remove file.
2937 * config/i386/i386nw.mt: Remove file.
2938 * config/i386/i386v.mt: Remove file.
2939 * config/i386/tm-go32.h: Remove file.
2941 * tui/tui-hooks.c: Include "readline/readline.h" after
2942 "gdb_curses.h" instead of before.
2943 * tui/tui-io.c: Likewise.
2945 * tui/tui.c: Fix typo in comment.
2947 * sparc64-tdep.c (sparc_address_from_register): Remove function.
2949 2004-04-08 Andrew Cagney <cagney@redhat.com>
2951 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
2952 (deprecated_exception_support_initialized): Declare.
2953 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
2954 (initialize_hp_cxx_exception_support)
2955 (child_enable_exception_callback): Update.
2956 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
2957 (deprecated_exception_support_initialized): Rename
2958 deprecated_exception_catchpoints_are_fragile and
2959 deprecated_exception_support_initialized.
2960 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
2962 * symtab.c (deprecated_hp_som_som_object_present): Rename
2963 hp_som_som_object_present.
2964 * symtab.h (deprecated_hp_som_som_object_present): Declare.
2965 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
2966 Update. Delete extern declaration.
2967 * valops.c (hp_som_som_object_present): Ditto.
2968 * parse.c (deprecated_hp_som_som_object_present)
2969 (parse_nested_classes_for_hpacc): Ditto.
2970 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
2971 * hppa-hpux-tdep.c (hp_som_som_object_present)
2972 (initialize_hp_cxx_exception_support): Ditto.
2973 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
2974 * cp-valprint.c (hp_som_som_object_present)
2975 (cp_print_class_method): Ditto.
2976 * c-typeprint.c (hp_som_som_object_present):
2977 (c_type_print_base): Ditto.
2978 * c-exp.y (hp_som_som_object_present): Ditto.
2980 2004-04-08 Andrew Cagney <cagney@redhat.com>
2982 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
2983 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
2984 (frame_unwind_find_by_frame): Re-implement the unwind code so
2985 that it can both prepend and append sniffers. Replace
2986 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
2987 * tramp-frame.c (tramp_frame_append): Use
2988 frame_unwind_prepend_unwinder.
2989 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
2990 frame_unwind_register_unwinder.
2991 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
2993 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
2994 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
2995 (mips_linux_init_abi): Update.
2997 2004-04-08 Kevin Buettner <kevinb@redhat.com>
2999 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
3000 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
3003 2004-04-07 Kevin Buettner <kevinb@redhat.com>
3005 * ia64-tdep.c (elf.h): Don't include.
3006 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
3008 2004-04-07 Jason Molenda (jmolenda@apple.com)
3010 * frame.h: Typeo corrections in comments.
3012 2004-04-07 Jim Blandy <jimb@redhat.com>
3014 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
3017 2004-04-07 Mark Kettenis <kettenis@gnu.org>
3019 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
3020 * config/sparc/linux64.mt (TDEPFILES): Likewise.
3021 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3022 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
3024 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
3026 * config/sparc/tm-sol2.h: Update copyright year. Include
3029 * sparc-sol2-tdep.c: Update copyright year. Include
3031 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
3032 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
3033 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
3034 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
3037 2004-04-06 Andrew Cagney <cagney@redhat.com>
3039 * infttrace.c: Include "infttrace.h".
3040 * infttrace.h: Include "target.h".
3041 * Makefile.in (infttrace_h): Update.
3042 (infttrace.o): Update.
3044 2004-04-06 Andrew Cagney <cagney@redhat.com>
3046 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
3047 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
3048 move extern declarations from here ...
3049 * infttrace.h: ... to here.
3050 * Makefile.in (hppah-nat.o): Update dependencies.
3052 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
3053 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
3054 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
3055 (hppa_breakpoint_from_pc): Delete.
3057 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
3059 2004-04-05 Andrew Cagney <cagney@redhat.com>
3061 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
3062 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
3065 2004-04-06 Randolph Chung <tausq@debian.org>
3067 Committed by Andrew Cagney (mechanical change).
3068 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
3069 exception_catchpoints_are_fragile, find_stub_with_shl_get,
3070 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
3071 child_enable_exception_callback, current_ex_event,
3072 null_symtab_and_line, child_get_current_exception_event,
3073 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
3074 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
3075 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
3076 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
3077 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
3078 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
3079 Move hpux-specific definitions ...
3080 * hppa-hpux-tdep.c: ... to here.
3082 2004-04-05 Andrew Cagney <cagney@redhat.com>
3084 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
3085 skip_prologue_using_sal.
3087 2004-04-05 Andrew Cagney <cagney@redhat.com>
3089 * config/i386/tm-i386.h: Delete file.
3090 * config/i386/tm-vxworks.h: Update copyright, do not include
3092 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
3093 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
3094 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
3095 * config/i386/ncr3000.mt (TM_FILE): Delete.
3096 * config/i386/interix.mt (TM_FILE): Delete.
3097 * config/i386/i386v.mt (TM_FILE): Delete.
3098 * config/i386/i386nw.mt (TM_FILE): Delete.
3099 * config/i386/i386gnu.mt (TM_FILE): Delete.
3100 * config/i386/i386aout.mt (TM_FILE): Delete.
3101 * config/i386/embed.mt (TM_FILE): Delete.
3103 2004-04-05 Kevin Buettner <kevinb@redhat.com>
3105 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
3106 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
3107 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
3108 (accg7_regnum): New constants.
3109 (last_spr_regnum, last_pseudo_regnum): Update.
3110 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
3111 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
3112 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
3114 (frv_register_sim_regno): Update spr_map[].
3116 2004-04-04 Andrew Cagney <cagney@redhat.com>
3118 * config/mips/xm-riscos.h: Delete.
3119 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
3120 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
3121 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
3122 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
3123 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
3124 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
3125 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
3126 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
3127 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
3128 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
3129 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
3130 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
3131 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
3132 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
3133 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
3134 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
3135 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
3136 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
3137 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
3138 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
3139 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
3140 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
3141 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
3142 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
3143 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
3144 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
3146 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
3147 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
3148 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
3149 * configure.host: Remove m680[01]0-sun-sunos3*,
3150 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
3151 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
3152 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
3153 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
3155 * NEWS: Mention removed systems.
3157 2004-04-04 Andrew Cagney <cagney@redhat.com>
3159 GDB 6.1 release created from 6.1 branch.
3161 2004-04-04 Andrew Cagney <cagney@redhat.com>
3163 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
3164 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
3165 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
3167 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
3168 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
3169 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
3171 2004-04-03 Jim Blandy <jimb@redhat.com>
3173 * MAINTAINERS: Chris Faylor has changed employers; add him to
3174 "paper trail" section, and update his E-mail address.
3176 2004-04-03 Andrew Cagney <cagney@redhat.com>
3178 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
3179 generic dummy frames.
3180 * dummy-frame.c: Update copyright.
3181 (dummy_frame_sniffer): Delete check for generic dummy frames.
3183 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
3184 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
3185 (REG_PARM_STACK_SPACE): Delete.
3186 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
3187 Inline reference to REG_PARM_STACK_SPACE.
3189 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
3190 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
3191 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3192 (FRAME_BASE_BEFORE_SIGTRAMP)
3193 (hppa32_hpux_frame_base_before_sigtramp)
3194 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
3195 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
3196 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
3197 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
3198 (FRAME_BASE_BEFORE_SIGTRAMP)
3199 (hppa64_hpux_frame_base_before_sigtramp)
3200 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
3202 2004-04-03 Andrew Cagney <cagney@redhat.com>
3204 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
3206 2004-04-02 Andrew Cagney <cagney@redhat.com>
3208 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
3209 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
3210 * dummy-frame.h: Delete out-of-date comments.
3211 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
3212 * gdbarch.h, gdbarch.c: Re-generate.
3214 2004-04-02 Joel Brobecker <brobecker@gnat.com>
3216 Committed by Andrew Cagney <cagney@redhat.com>.
3217 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
3218 into account an instruction saving a register if we have already
3219 seen an earlier instruction saving that same register.
3221 2004-04-02 Andrew Cagney <cagney@redhat.com>
3223 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
3224 * gdbarch.h, gdbarch.c: Re-generate.
3225 * frame.c (legacy_get_prev_frame): Delete references to
3226 DEPRECATED_INIT_FRAME_PC_FIRST.
3228 * infrun.c (pc_in_sigtramp): Delete function.
3229 (check_sigtramp2): Inline call to pc_in_sigtramp, use
3232 2004-04-02 Andrew Cagney <cagney@redhat.com>
3234 * infrun.c (handle_step_into_function): Delete code conditional on
3236 (handle_inferior_event, step_over_function): Ditto.
3238 2004-04-02 Andrew Cagney <cagney@redhat.com>
3240 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
3241 "previous frame inner to this frame" test.
3243 2004-04-02 Andrew Cagney <cagney@redhat.com>
3245 * frame.c (safe_frame_unwind_memory): New function.
3246 * frame.h (safe_frame_unwind_memory): Declare. Update description
3248 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
3249 "next_frame". Use safe_frame_unwind_memory.
3250 (tramp_frame_sniffer): Update call to tramp_frame_start.
3252 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
3254 * dwarf2read.c (dwarf2_objfile_data_key): New.
3255 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
3256 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
3257 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
3258 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
3259 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
3260 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
3261 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
3263 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
3264 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
3265 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
3266 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
3267 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
3268 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
3270 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
3272 (dwarf2_locate_sections, dwarf2_build_psymtabs)
3273 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
3274 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
3275 (read_partial_die, read_full_die, read_indirect_string)
3276 (dwarf_decode_line_header, dwarf_decode_macros)
3277 (dwarf2_symbol_mark_computed): Remove use of removed macros.
3278 Update uses of removed variables.
3279 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
3281 (_initialize_dwarf2_read): New function.
3282 * symfile.h (dwarf2_has_info): Update prototype.
3283 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
3284 * elfread.c (elf_symfile_read): Likewise.
3286 2004-04-01 Jim Blandy <jimb@redhat.com>
3288 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
3289 function for register numbers on all the rs6000-derived targets.
3290 (rs6000_gdbarch_init): Don't register a separate
3291 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
3292 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
3295 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
3298 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
3300 * valarith.c: Update copyright notice.
3301 (value_add): Handle range types.
3303 (value_equal): Ditto.
3304 (value_less): Ditto.
3306 (value_complement): Ditto.
3307 (value_binop): Simplify slightly by using is_integral_type and
3308 eliminiating unnecessary COERCE_ENUMs.
3310 2004-03-31 Andrew Cagney <cagney@redhat.com>
3312 * frame.h (frame_unwind_id): Declare.
3313 * frame.c (frame_unwind_id): New function.
3314 (get_prev_frame_1): New function.
3315 (frame_debug_got_null_frame): New function.
3316 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
3317 code proper to prev_frame, update description.
3318 * infrun.c (step_over_function): Use frame_unwind_id.
3320 2004-04-31 J. Brobecker <brobecker@gnat.com>
3322 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
3323 (hppa64_push_dummy_call): Likewise.
3325 2004-03-30 Jim Blandy <jimb@redhat.com>
3327 From Ulrich Weigand:
3328 * utils.c (query): Do not use a va_list variable multiple times.
3330 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
3332 * Makefile.in (linux_nat_h): Update dependencies.
3333 * configure.in: Check for <gnu/libc-version.h>.
3334 * configure: Regenerate.
3335 * config.in: Regenerate.
3336 * linux-nat.h: Include "target.h". Add waitstatus field to
3338 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
3339 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
3341 (lin_lwp_handle_extended): New function. Handle clone events.
3342 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
3344 (child_wait): Handle clone events.
3345 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
3346 * linux-nat.c (linux_enable_event_reporting): Turn on
3347 PTRACE_O_TRACECLONE.
3348 (linux_handle_extended_wait): Handle clone events.
3349 * thread-db.c: Include <gnu/libc-version.h>.
3350 (struct private_thread_info): Add dying flag.
3351 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
3353 (attach_thread): Update comments. Handle dying threads.
3354 (detach_thread): Set the dying flag.
3355 (check_event): Always call attach_thread.
3357 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
3359 * mips-tdep.c (mips_pdr_data): New.
3360 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
3361 (_initialize_mips_tdep): Initialize mips_pdr_data.
3363 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
3365 * minsyms.c (install_minimal_symbols): Move dropping leading
3366 char from linkage name from here...
3367 (prim_record_minimal_symbol_and_info): ...to here. Simplify
3368 test for "__gnu_compiled*" symbols.
3370 2004-03-28 Jim Blandy <jimb@redhat.com>
3372 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
3373 registers to temp register r0 and byte stores as prologue
3376 2004-03-28 Andrew Cagney <cagney@redhat.com>
3378 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
3381 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
3383 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
3384 and switch the layout to force a display of register window.
3386 2004-02-26 J. Brobecker <brobecker@gnat.com>
3388 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
3389 of the INTEGER class.
3391 2004-03-26 Jim Blandy <jimb@redhat.com>
3393 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
3394 bytes long on PPC GNU/Linux.
3396 2004-03-26 David Carlton <carlton@kealia.com>
3398 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
3400 2004-03-25 Andrew Cagney <cagney@redhat.com>
3402 * PROBLEMS: Add general section titles, remove references to
3405 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
3407 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
3409 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
3410 FP_REGISTER_VIRTUAL_SIZE.
3411 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
3412 of DEPRECATED_REGISTER_RAW_SIZE.
3413 (arm_register_type): Add gdbarch argument.
3414 (arm_register_raw_size, arm_register_virtual_size): Delete.
3415 (arm_register_byte, arm_extract_return_value)
3416 (arm_store_return_value, arm_get_longjmp_target): Update references
3417 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
3418 (arm_gdbarch_init): Likewise. Don't set
3419 deprecated_register_raw_size, deprecated_register_virtual_size,
3420 deprecated_max_register_raw_size,
3421 deprecated_max_register_virtual_size, or
3422 deprecated_max_register_virtual_type. Do set register_type.
3423 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
3424 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
3425 (FP_REGISTER_VIRTUAL_SIZE): Delete.
3426 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
3427 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
3428 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
3430 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
3431 (remote_rdp_store_register): Likewise.
3433 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
3435 * Makefile.in (mips-linux-tdep.o): Update dependencies.
3436 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
3437 to after osabi initialization.
3438 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
3439 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
3441 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
3442 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
3444 (mips_linux_init_abi): Append signal trampoline unwinders.
3446 2004-03-24 Andrew Cagney <cagney@redhat.com>
3448 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
3449 * tramp-frame.c: Include "gdb_assert.h".
3450 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
3452 (tramp_frame_append): Validate the tramp frame's instructions.
3453 * Makefile.in (tramp-frame.o): Update dependencies.
3455 2004-03-23 Andrew Cagney <cagney@redhat.com>
3457 * trad-frame.h (trad_frame_set_reg_addr): Declare.
3459 2004-03-23 Andrew Cagney <cagney@redhat.com>
3461 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
3462 Nasser as past testsuite/lib/ (and other) maintainers.
3464 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
3466 * infcmd.c (attach_command): Reread symbols if we already have
3469 2004-03-23 Andrew Cagney <cagney@redhat.com>
3471 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
3473 2004-03-23 Andrew Cagney <cagney@redhat.com>
3475 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
3476 * gdbarch.h, gdbarch.c: Re-generate.
3477 * i386obsd-tdep.c (i386obsd_init_abi): Update.
3478 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
3479 * i386bsd-tdep.c (i386bsd_init_abi): Update.
3480 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
3481 (DEPRECATED_SIGTRAMP_START): Update.
3482 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
3483 (DEPRECATED_SIGTRAMP_START): Update.
3484 * blockframe.c (find_pc_sect_partial_function): Update.
3485 * arch-utils.c (legacy_pc_in_sigtramp): Update.
3487 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
3489 * remote.c (remote_open_1): Reopen the exec file and reread symbols
3492 2004-03-23 Andrew Cagney <cagney@redhat.com>
3494 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
3495 predicate, deprecate.
3496 * gdbarch.h, gdbarch.c: Re-generate.
3497 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
3498 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
3499 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
3500 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
3501 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
3502 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
3503 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
3504 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
3505 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
3506 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
3507 * blockframe.c (find_pc_partial_function): Update.
3508 * breakpoint.c (bpstat_what): Update.
3509 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
3510 * frv-linux-tdep.c (frv_linux_init_abi): Update.
3511 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
3512 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
3513 * i386-interix-tdep.c (i386_interix_init_abi): Update.
3514 * i386-linux-tdep.c (i386_linux_init_abi): Update.
3515 * i386-nto-tdep.c (i386nto_init_abi): Update.
3516 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
3517 * i386-tdep.c (i386_sigtramp_frame_sniffer)
3518 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
3519 * i386bsd-tdep.c (i386bsd_init_abi): Update.
3520 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
3521 * i386obsd-tdep.c (i386obsd_init_abi): Update.
3522 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
3523 * infrun.c (pc_in_sigtramp): Update.
3524 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
3525 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
3526 * mips-tdep.c (mips_gdbarch_init): Update.
3527 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
3528 * ppc-linux-tdep.c: Update comment.
3529 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
3530 * shnbsd-tdep.c (shnbsd_init_abi): Update.
3531 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
3532 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
3533 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
3534 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
3535 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
3536 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
3537 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
3538 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
3540 2004-03-23 Andrew Cagney <cagney@redhat.com>
3542 * tramp-frame.h, tramp-frame.h: New files.
3543 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
3544 Update rules to include "tramp-frame.h" and "tramp-frame.c".
3546 * Makefile.in: Update all dependencies.
3548 2004-03-23 Andrew Cagney <cagney@redhat.com>
3550 * Makefile.in (trad_frame_h): Add $(frame_h).
3551 * trad-frame.h: Update copyright. Include "frame.h".
3552 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
3553 (trad_frame_set_id, trad_frame_get_id): Declare.
3554 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
3555 * trad-frame.c: Update copyright.
3556 (struct trad_frame_cache): Define.
3557 (trad_frame_cache_zalloc): New function.
3558 (trad_frame_set_id, trad_frame_get_id): New functions.
3559 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
3561 2004-03-22 Andrew Cagney <cagney@redhat.com>
3563 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
3564 s390_pltstub_unwind_cache.
3565 (s390_stub_frame_unwind_cache): Rename
3566 s390_pltstub_frame_unwind_cache.
3567 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
3568 (s390_stub_frame_prev_register): Rename
3569 s390_pltstub_frame_prev_register.
3570 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
3571 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
3573 From Ulrich Weigand:
3574 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
3575 pointer calls like PLT calls.
3577 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
3579 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
3580 PC rather than the partial function start address. Use the start
3581 address to sanity check the found PDR.
3583 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
3585 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
3586 linux_handle_extended_wait.
3588 2004-03-22 Andrew Cagney <cagney@redhat.com>
3590 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
3593 * frame.h (generic_pop_current_frame): Delete declaration.
3594 (deprecate_pop_dummy_frame): Deprecate
3595 generic_pop_dummy_frame.
3596 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
3597 (generic_pop_current_frame): Delete function.
3598 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
3599 generic_pop_current_frame.
3600 * v850-tdep.c (v850_pop_frame): Update.
3601 * mcore-tdep.c (mcore_pop_frame): Update.
3602 * sh64-tdep.c (sh64_pop_frame): Update.
3603 * h8300-tdep.c (h8300_pop_frame): Update.
3605 2004-03-22 Andrew Cagney <cagney@redhat.com>
3607 * frame.h (deprecated_pc_in_call_dummy): Rename
3608 generic_pc_in_call_dummy.
3609 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
3610 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
3611 generic_pc_in_call_dummy.
3612 (pc_in_dummy_frame): Make static.
3613 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
3614 * gdbarch.h, gdbarch.c: Re-generate.
3615 * dummy-frame.c (dummy_frame_sniffer): Simplify.
3616 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
3617 (legacy_get_prev_frame): Ditto.
3618 * inferior.h: Delete reference to generic_pc_in_call_dummy in
3621 2004-03-21 Andrew Cagney <cagney@redhat.com>
3623 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
3624 declaration and out-of-date comment.
3625 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3627 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
3628 deprecated_pc_in_call_dummy.
3630 * infrun.c (handle_inferior_event): For non legacy frames, use the
3631 frame ID and frame type to identify a signal trampoline. Update
3634 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
3636 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
3637 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
3639 2004-03-21 Andrew Cagney <cagney@redhat.com>
3641 * frame-unwind.h: Update copyright.
3642 (struct frame_data): Add opaque declaration.
3643 (frame_sniffer_ftype): Declare.
3644 (struct frame_unwind): Add "unwind_data" and "sniffer".
3645 (frame_unwind_register_unwinder): Declare.
3646 (frame_unwind_find_by_frame): Add parameter "this_cache".
3647 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
3648 (legacy_get_prev_frame, legacy_get_prev_frame)
3649 (get_frame_type): Pass the prologue_cache to
3650 frame_unwind_find_by_frame.
3651 * frame-unwind.c (struct frame_unwind_table_entry): Add field
3653 (frame_unwind_register_unwinder): New function.
3654 (frame_unwind_find_by_frame): Handle an unwind sniffer.
3656 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
3658 * bcache.c (print_percentage): Use floating point to avoid
3659 incorrect results when portion*100 overflows.
3661 2004-03-19 Kevin Buettner <kevinb@redhat.com>
3663 * ppc_tdep.h (ppc_linux_frame_saved_pc)
3664 (ppc_linux_init_extra_frame_info)
3665 (ppc_linux_frameless_function_invocation)
3666 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
3667 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
3668 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
3669 (rs6000_frame_chain): Delete declarations.
3670 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
3671 (ppc_linux_init_extra_frame_info)
3672 (ppc_linux_frameless_function_invocation)
3673 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
3674 (ppc_linux_init_abi): Remove registration of above deleted functions.
3675 * rs6000-tdep.c (rs6000_init_extra_frame_info)
3676 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
3677 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
3678 (rs6000_pop_frame, rs6000_frameless_function_invocation)
3679 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
3680 (rs6000_gdbarch_init): Remove registration of above deleted functions.
3681 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
3682 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
3683 frame management for all OSABIs.
3685 2004-03-19 Andrew Cagney <cagney@redhat.com>
3687 Committed by Kevin Buettner <kevinb@redhat.com>.
3689 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
3691 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
3692 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
3693 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
3694 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
3695 unwinders. #ifdef legacy frame code.
3696 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
3698 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
3699 (struct rs6000_frame_cache, rs6000_frame_cache)
3700 (rs6000_frame_this_id, rs6000_frame_prev_register)
3701 (rs6000_frame_sniffer, rs6000_frame_unwind)
3702 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
3703 (rs6000_frame_base): Implement a traditional frame unwinder.
3704 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
3707 2004-03-19 Kevin Buettner <kevinb@redhat.com>
3709 * breakpoint.c (adjust_breakpoint_address): Don't adjust
3710 breakpoint address for watchpoints or the catch eventpoints.
3711 Add new paramter ``bptype''. Adjust all callers.
3713 2004-03-19 Andrew Cagney <cagney@redhat.com>
3715 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
3717 * PROBLEMS: Delete note that ARM does not use frame code, problem
3720 2004-03-18 Andrew Cagney <cagney@redhat.com>
3722 * stack.c (return_command): Delete code wrapped in #ifdef
3723 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
3725 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
3727 2004-03-18 Andrew Cagney <cagney@redhat.com>
3729 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
3730 DEPRECATED_IN_SIGTRAMP.
3731 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3732 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
3733 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3734 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3735 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3736 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3737 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3738 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3739 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
3740 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
3742 2004-03-18 Andrew Cagney <cagney@redhat.com>
3744 * frame-base.c: Update copyright. Include "gdb_obstack.h".
3745 (struct frame_base_table_entry): Define.
3746 (struct frame_base_table): Re-implement as a linked list.
3747 (frame_base_init): Re-implement.
3748 (frame_base_table): Delete function.
3749 (append_predicate): Delete function.
3750 (frame_base_append_sniffer): Update.
3751 (frame_base_set_default): Update.
3752 (frame_base_find_by_frame): Update.
3753 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
3754 * Makefile.in (frame-base.o): Update dependencies.
3756 2004-03-17 Andrew Cagney <cagney@redhat.com>
3758 * frame.c (legacy_get_prev_frame): Pass correct frame to
3759 frame_unwind_find_by_frame.
3761 2004-03-17 David Carlton <carlton@kealia.com>
3763 * NEWS: Mention C++ nested types and namespaces
3765 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
3767 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
3768 and "Regressions since gdb 5.3.". Add known regressions since
3771 2004-03-16 David Carlton <carlton@kealia.com>
3773 * dwarf2read.c (process_structure_scope): Process children even
3774 when we're a declaration.
3776 2004-03-16 Andrew Cagney <cagney@redhat.com>
3778 * symtab.h (find_pc_sect_partial_function): Delete declaration.
3779 * blockframe.c (find_pc_partial_function)
3780 (find_pc_sect_partial_function): Merge into a single
3781 find_pc_partial_function.
3783 2004-03-16 Mark Kettenis <kettenis@gnu.org>
3785 * i386bsd-nat.c: s/regno/regnum/g.
3786 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
3788 (store_inferior_registers): Likewise.
3790 2004-03-16 Mark Kettenis <kettenis@gnu.org>
3792 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
3794 (store_inferior_registers): Call i387_collect_fsave and
3795 i387_collect_fxsave instead of i387_fill_fsave and
3798 2004-03-15 Andrew Cagney <cagney@redhat.com>
3800 * Makefile.in (frame-unwind.o): Update dependencies.
3801 * frame-unwind.c: Include "gdb_obstack.h".
3802 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
3804 (append_predicate): Delete function.
3805 (struct frame_unwind_table_entry): New structure.
3806 (struct frame_unwind_table): Replace "sniffer" with "head" and
3808 (frame_unwind_append_sniffer): Update.
3809 (frame_unwind_find_by_frame): Update.
3810 (_initialize_frame_unwind): Registe frame_unwind_init using
3811 gdbarch_data_register_pre_init.
3813 2004-03-15 Mark Kettenis <kettenis@gnu.org>
3815 * i386bsd-nat.c: Update copyright year.
3816 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
3817 define unconditionally.
3819 2004-03-15 Mark Kettenis <kettenis@gnu.org>
3821 * i387-tdep.h (i387_collect_fsave): New prototype.
3822 * i387-tdep.c (i387_collect_fsave): New function containing most
3823 of the code from i387_fill_fsave.
3824 (i387_fill_fsave): Call i387_collect_fsave.
3826 2004-03-15 Mark Kettenis <kettenis@gnu.org>
3828 * i386-linux-tdep.c: Update copyright year.
3829 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
3830 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
3831 svr4_ilp32_link_map_offsets instead of
3832 i386_linux_svr4_fetch_link_map_offsets.
3834 2004-03-15 David Carlton <carlton@kealia.com>
3836 Fix for PR c++/1553:
3837 * dwarf2read.c (read_structure_type): Determine type name by
3838 calling determine_class_name.
3839 (determine_class_name): New.
3840 (determine_prefix): Look at TYPE_TAG_NAME and call
3841 determine_class_name when appropriate.
3842 (determine_prefix_aux, class_name): Delete.
3843 (read_namespace): Set die->type.
3845 2004-03-15 Kevin Buettner <kevinb@redhat.com>
3847 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
3848 unused macro definition. The definition in target.h (or perhaps
3849 elsewhere) takes precedence.
3851 2004-03-15 Andrew Cagney <cagney@redhat.com>
3853 * ppc-tdep.h: Update copyright.
3854 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
3855 function signatures to match "regsets.h".
3856 * ppc-linux-tdep.c: Include "regset.h".
3857 (ELF_GREGSET_SIZE): Delete.
3858 (right_supply_register): New function.
3859 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
3860 using right_supply_register.
3861 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
3863 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
3864 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
3865 (_initialize_ppc_linux_tdep): Do not register
3866 ppc_linux_regset_core_fns.
3867 (ppc_linux_regset_from_core_section): Replace
3868 fetch_core_registers.
3869 (ppc_linux_regset_core_fns): Delete.
3870 * ppc-linux-nat.c: (right_fill_reg): New function.
3871 (supply_gregset): Update call to ppc_linux_supply_gregset.
3872 (fill_gregset): Clear the register set, use right_fill_reg.
3873 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
3874 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
3876 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
3879 2004-03-15 Andrew Cagney <cagney@redhat.com>
3881 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
3882 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
3883 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
3884 and register_gdbarch_data.
3885 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
3886 (struct gdbarch_data): Replace "init" by "pre_init" and
3888 * gdbarch.h, gdbarch.c: Re-generate.
3889 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
3890 with"obstack", use OBSTACK_ZALLOC.
3891 (dwarf2_frame_ops): Delete.
3892 (dwarf2_frame_set_init_reg): Use gdbarch_data.
3893 (dwarf2_frame_init_reg): Use gdbarch_data.
3894 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
3895 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
3896 (_initialize_svr4_solib): Update.
3897 * user-regs.c (_initialize_user_regs): Update.
3898 * reggroups.c (_initialize_reggroup): Update.
3899 * regcache.c (_initialize_regcache): Update.
3900 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
3901 * libunwind-frame.c (_initialize_libunwind_frame): Update.
3902 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3903 * frame-unwind.c (_initialize_frame_unwind): Update.
3904 * frame-base.c (_initialize_frame_base): Update.
3905 * user-regs.c (user_reg_add): Update.
3906 * reggroups.c (reggroup_add): Update.
3907 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
3908 * libunwind-frame.c (libunwind_frame_set_descr): Update.
3909 * frame-unwind.c (frame_unwind_append_sniffer): Update.
3910 * frame-base.c (frame_base_table): Update.
3911 * remote.c (_initialize_remote): Update.
3912 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
3914 2004-03-15 Andrew Cagney <cagney@redhat.com>
3916 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
3918 2004-03-15 Kevin Buettner <kevinb@redhat.com>
3920 * Makefile.in (frv-linux-tdep.o): Add dependencies.
3921 * frv-linux-tdep.c: New file.
3922 * frv-tdep.c (struct gdbarch_tdep): Add new field
3923 ``sigcontext_reg_addr''.
3924 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
3925 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
3926 (frv_sigramp_frame_sniffer): New functions.
3927 (frv_sigtramp_frame_unwind): New static global.
3928 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
3930 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
3931 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
3933 2004-03-15 Kevin Buettner <kevinb@redhat.com>
3935 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
3936 but not via a call to error(), when unable to read memory.
3938 2004-03-15 Kevin Buettner <kevinb@redhat.com>
3940 * frv-tdep.c (frv_call_dummy_words): Delete.
3941 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
3943 2004-03-15 Andrew Cagney <cagney@redhat.com>
3945 * infrun.c (handle_step_into_function, step_over_function): Only
3946 update and use STEP_FRAME_ID when the system is using legacy
3947 frames. Update comments.
3949 2004-03-14 Mark Kettenis <kettenis@gnu.org>
3951 * amd64-linux-tdep.h: Remove file.
3952 * amd64-linux-tdep.c: Don't include "inferior.h" and
3953 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
3954 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
3955 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
3956 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
3957 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
3959 (user_to_gdb_regmap): Remove variable.
3960 (amd64_linux_gregset_reg_offset): New variable.
3961 (amd64_core_fns): Remove variable.
3962 (fetch_core_registers): Remove function.
3963 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
3965 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
3966 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
3967 * Makefile.in (amd64_linux_tdep_h): Remove.
3968 (amd64-linux-nat.o): Update dependencies.
3969 (amd64-linux-tdep.o): Update dependencies.
3971 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3972 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
3974 (fetch_inferior_registers, store_inferior_registers): Rewrite.
3976 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
3977 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
3979 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
3981 * dwarf2read.c (read_structure_type): Rename from
3982 read_structure_scope. Don't create a symbol or call process_die.
3983 Return immediately if die->type is set. Call read_type_die before
3984 dwarf2_add_member_fn.
3985 (process_structure_scope): New function.
3986 (read_enumeration_type, process_enumeration_scope): New functions,
3987 broken out from read_enumeration. Don't create the enumeration
3988 type if it has already been created.
3989 (read_enumeration): Removed.
3990 (process_die): Call read_structure_type, process_structure_scope,
3991 read_enumeration_type, and process_enumeration_scope. Just call
3992 new_symbol for base and subrange types. Add a comment about other
3994 (read_type_die): Call read_enumeration_type.
3995 (add_partial_structure, new_symbol): Update comments.
3997 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
3999 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
4001 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
4003 * tui/tui-win.h (tui_get_cmd_list): Declare.
4004 * tui/tui-win.c (tui_command): New function.
4005 (tui_get_cmd_list): New function.
4006 (_initialize_tui_win): Moved initialization of tui command in
4009 * tui/tui-data.c (init_content_element): Setup new data members.
4010 (init_win_info): Likewise.
4011 (free_content_elements): Free it.
4012 * tui/tui-data.h (struct tui_data_element): Store the register
4014 (struct tui_data_info): Keep the current register group.
4016 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
4018 * tui/tui-regs.h (tui_show_registers): Update prototype.
4019 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
4020 (tui_resize_all): No need to calculate anything for register window.
4021 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
4022 (tui_set_register_element, tui_set_general_regs_content): Remove.
4023 (tui_set_special_regs_content): Remove.
4024 (tui_set_general_and_special_regs_content): Remove.
4025 (tui_set_float_regs_content): Remove.
4026 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
4027 (tui_set_regs_content): Remove.
4028 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
4029 (tui_v_show_registers_command_support): Remove.
4030 (tui_show_registers): Use a reggroup to specify the registers to show.
4031 (tui_show_register_group): New function.
4032 (tui_display_registers_from): Compute the layout of register window
4033 and refresh with new API; be sure to delete old register windows.
4034 (tui_check_register_values): Update to use tui_get_register and
4036 (tui_display_register): Just refresh the register window part.
4037 (tui_register_format): Format registers and save in tui_data_element.
4038 (tui_get_register): New to combine tui_reg_value_has_changed and
4039 tui_get_register_raw_value; fix to use the new gdb API.
4040 (tui_show_float_command): Renamed tui_reg_float_command.
4041 (tui_show_general_command): Renamed tui_reg_general_command.
4042 (tui_show_special_command): Renamed tui_reg_system_command.
4043 (_initialize_tui_regs): Remove unused commands.
4045 2004-03-13 Mark Kettenis <kettenis@gnu.org>
4047 * NEWS (New native configurations): Mention OpenBSD/amd64.
4049 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
4050 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
4052 * config/i386/nm-fbsd64.h: Likewise.
4053 * config/i386/nm-obsd.h: Likewise.
4054 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
4055 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
4057 2004-03-12 Kevin Buettner <kevinb@redhat.com>
4059 * frv-tdep.c (set_variant_scratch_registers): New function.
4060 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
4063 From Richard Sandiford <rsandifo@redhat.com>:
4064 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
4066 2004-03-12 Kevin Buettner <kevinb@redhat.com>
4068 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
4069 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
4070 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
4071 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
4072 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
4073 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
4074 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
4075 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
4076 definitions from frv-tdep.c to frv-tdep.h.
4078 2004-03-12 Kevin Buettner <kevinb@redhat.com>
4080 Add shared library support for FR-V FDPIC ABI:
4081 * Makefile.in (solib-frv.o): Add dependencies.
4082 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
4084 (frv_push_dummy_call): Add support for FDPIC ABI.
4085 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
4087 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
4088 (frv_fdpic_find_canonical_descriptor): Declare.
4089 * solib-frv.c: New file.
4090 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
4091 * config/frv/tm-frv.h (solib.h): Include.
4093 2004-03-12 Kevin Buettner <kevinb@redhat.com>
4095 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
4096 (frv-tdep.o): Update dependencies.
4097 * frv-tdep.h: New file.
4098 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
4099 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
4101 (struct gdbarch_tdep): Add new member ``frv_abi''.
4102 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
4104 (new_variant): Set ``frv_abi'' field.
4105 (gdb_arch_init): Detect FDPIC executables.
4107 2004-03-12 Mark Kettenis <kettenis@gnu.org>
4109 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
4112 2004-03-11 Andrew Cagney <cagney@redhat.com>
4114 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
4116 2004-03-11 Kevin Buettner <kevinb@redhat.com>
4118 * solist.h (master_so_list): New function.
4119 * solib.c (master_so_list): Likewise.
4120 * solib-svr4.c (enable_break): Iterate over so_list entries
4121 obtained from master list instead of entries obtained directly
4122 via svr4_current_sos().
4124 2004-03-10 Ben Elliston <bje@gnu.org>
4126 * MAINTAINERS: Update my mail address.
4128 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
4130 * remote-m32r-sdi.c: Support hardware watchpoint.
4132 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4134 * user-regs.c: Update copyright years.
4135 (struct user_regs): Rename to gdb_user_regs.
4136 (append_user_reg, builtin_user_regs, user_regs_init)
4137 (user_reg_add, user_reg_map_name_to_regnum)
4138 (usernum_to_user_reg): Update.
4140 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4142 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
4143 (skip_children): New functions.
4144 (locate_pdi_sibling): Call skip_children.
4146 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4148 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
4149 * gdbtypes.c (check_typedef): Update comments.
4151 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4153 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
4154 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
4155 pointer. Update comment about comp_unit_head.
4156 (struct abbrev_info): Shorten two int flags.
4157 (dwarf_alloc_abbrev): Take a CU argument.
4158 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
4159 each time through the loop. Update cleanup argument.
4160 (psymtab_to_symtab_1): Update cleanup call.
4161 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
4163 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
4164 Just call obstack_free and clear the pointer.
4166 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4168 * infrun.c (handle_inferior_event): Remove short-circuit code for
4169 events in a different thread.
4171 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4173 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
4174 print the whole transfer.
4175 (initialize_targets): Update description of "set debug target".
4177 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
4179 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
4181 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
4183 * MAINTAINERS (write after approval): Add myself.
4185 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
4187 * sh-tdep.c (sh_print_registers_info): Use for loop.
4188 Don't skip multiple registers when a float register is encountered.
4190 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
4193 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
4194 to official SH documentation.
4196 2004-03-07 Andrew Cagney <cagney@redhat.com>
4198 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
4201 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
4203 * arm-tdep.c (thumb_get_next_pc): Handle BX.
4204 (arm_get_next_pc): Handle BX and BLX.
4206 2004-03-07 Andrew Cagney <cagney@redhat.com>
4208 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
4209 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
4211 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
4212 (hppa_target_read_fp): Delete.
4213 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
4214 register_virtual_size, max_register_raw_size,
4215 max_register_virtual_size, register_byte, register_size,
4216 target_read_fp, fp_regnum, and register_bytes. Set register_type
4217 instead of register_virtual_type.
4218 (hppa32_register_type, hppa64_register_type): Replace
4219 hppa32_register_virtual_type and hppa64_register_virtual_type.
4220 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
4221 (HPPA_FP_REGNUM): Define.
4223 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
4225 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
4226 (pa_do_registers_info): Delete.
4227 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
4228 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
4229 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
4231 * infcall.c (legacy_push_dummy_code): Delete #ifdef
4232 GDB_TARGET_IS_HPPA code.
4233 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
4234 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
4235 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
4236 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
4237 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
4238 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
4239 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
4240 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
4241 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
4242 (hppa_frameless_function_invocation, hppa64_store_return_value)
4243 (hppa_store_struct_return, hppa64_extract_return_value)
4244 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
4245 (hppa32_call_dummy_length, hppa64_call_dummy_length)
4246 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
4247 (find_proc_framesize, deposit_21, restore_pc_queue)
4248 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
4249 (rp_saved, pc_in_linker_stub): Delete.
4251 Unconditionally enable 64-bit frame and ABI code.
4252 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
4253 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
4254 push_dummy_frame, fix_call_dummy, push_arguments,
4255 call_dummy_location, extract_return_value, use_struct_convention,
4256 store_return_value, store_struct_return, saved_pc_after_call,
4257 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
4258 frame_chain, frame_chain_valid, frameless_function_invocation,
4259 frame_saved_pc, and pop_frame.
4261 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
4262 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
4263 (hppa_gdbarch_init): Do not set PC_REGNUM.
4265 2004-03-06 Mark Kettenis <kettenis@gnu.org>
4267 * config/alpha/tm-fbsd.h: Remove file.
4268 * config/alpha/fbsd.mt: Tweak comment.
4269 (TM_FILE): Set to tm-alpha.h.
4271 2004-03-05 Andrew Cagney <cagney@redhat.com>
4273 * infrun.c (step_over_function): When non-legacy code, and no
4274 step_frame_id, use the unwinder to get the caller's frame ID.
4276 2004-03-05 Mark Kettenis <kettenis@gnu.org>
4278 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
4279 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
4280 bfd_arch_unknown. Adjust comment.
4282 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
4283 * i386obsd-tdep.c: Correct spelling in comment.
4284 * i386nbsd-tdep.c: Correct spelling in comment.
4285 * sparc-tdep.c: Correct spelling in comments.
4287 2004-03-05 David Carlton <carlton@kealia.com>
4289 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
4292 2004-03-05 Mark Kettenis <kettenis@gnu.org>
4294 * sparc-tdep.c: Fix typo in comment.
4296 2004-03-04 J. Brobecker <brobecker@gnat.com>
4298 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
4300 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
4302 * dwarf2read.c: Add comment describing memory lifetimes.
4303 (struct dwarf2_pinfo): Update comment.
4304 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
4305 (read_enumeration, new_symbol): Don't use obsavestring.
4307 2004-03-04 Mark Kettenis <kettenis@gnu.org>
4309 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
4310 instead of amd64_fill_fxsave.
4311 * amd64bsd-nat.c (store_inferior_registers): Likewise.
4312 * amd64fbsd-nat.c (fill_fpregset): Likewise.
4314 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
4315 Reorganize code a bit.
4317 2004-03-04 Orjan Friberg <orjanf@axis.com>
4319 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
4320 when the frame pointer is pushed. Don't set the frame pointer's
4321 address on the stack unless it's actually located there.
4322 Set the SRP's address on the stack correctly when the PC is still in
4324 (cris_return_value): New function.
4325 (cris_gdbarch_init): Clear deprecated store_return_value,
4326 extract_return_value.
4328 2004-03-02 Jim Blandy <jimb@redhat.com>
4330 * stabsread.c (reg_value_complaint): The maximum register number
4331 is one less than the number of registers.
4333 2004-03-02 Andrew Cagney <cagney@redhat.com>
4335 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
4336 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
4337 trailing comma and redundant assignment of I386_ST0_REGNUM.
4338 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
4339 32-bit segment registers.
4341 2004-03-01 Andrew Cagney <cagney@redhat.com>
4343 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
4344 use frame_relative_level and get_next_frame.
4346 2004-02-29 Andrew Cagney <cagney@redhat.com>
4348 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
4349 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
4350 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
4353 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
4355 * inflow.c (terminal_inferior): Don't give up the terminal if we
4356 previously couldn't get the inferior's terminal state.
4358 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
4360 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
4363 2004-02-28 Andrew Cagney <cagney@redhat.com>
4365 * NEWS: Refer to GDB 6.1.
4366 * README: Refer to GDB 6.1.
4367 * PROBLEMS: Refer to GDB 6.1.
4369 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
4371 * thread-db.c (disable_thread_signals): Remove unused function.
4373 2004-02-28 Mark Kettenis <kettenis@gnu.org>
4375 * amd64-nat.c: Include "gdb_string.h".
4376 (amd64_collect_native_gregset): Zero-extend the 32-bit
4377 general-purpose registers and %eip.
4379 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
4380 * amd64-tdep.c (amd64_collect_fxsave): New function.
4381 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
4383 * i387-tdep.h: Update copyright year.
4384 (i387_collect_fxsave): New prototype.
4385 * i387-tdep.c: Update copyright year.
4386 (i387_collect_fxsave): New function containing most of the code
4387 from i387_fill_fxsave.
4388 (i387_fill_fxsave): Call i387_collect_fxsave.
4390 2004-02-28 Andrew Cagney <cagney@redhat.com>
4392 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
4393 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
4395 2004-02-28 Mark Kettenis <kettenis@gnu.org>
4397 * amd64-tdep.c (amd64_frame_cache): Fix comment.
4399 2004-02-28 Andrew Cagney <cagney@redhat.com>
4401 * utils.c: Use "", instead of <>, to include readline.
4402 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
4403 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
4404 * source.c, solib.c, exec.c, event-top.c: Ditto.
4405 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
4406 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
4407 * Makefile.in: Update all dependencies.
4408 (readline_tilde_h, readline_history_h): Define.
4409 (readline_headers): Delete.
4411 2004-02-28 Mark Kettenis <kettenis@gnu.org>
4413 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
4414 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
4415 "config/i386/tm-lx64.h".
4417 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
4418 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
4419 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
4421 2004-02-28 Andrew Cagney <cagney@redhat.com>
4423 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
4425 * breakpoint.c (_initialize_breakpoint): Use
4426 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
4427 Add help to show command.
4429 2004-02-28 Mark Kettenis <kettenis@gnu.org>
4431 * i386-nat.c: Reformat to be closer to coding standards.
4432 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
4433 `retval'. Make variables `align' and `size' local to while-loop.
4434 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
4435 (_initialize_i386_nat): New prototype.
4437 * tui/tui.c: Include <readline/readline.h> instead of
4438 "readline/readline.h". Include it after <term.h> and
4441 2004-02-27 Andrew Cagney <cagney@redhat.com>
4443 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
4444 the new frame unwind code.
4445 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
4446 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
4449 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
4450 "return_value" and "push_dummy_call".
4451 (hppa32_use_struct_convention): Delete unused function.
4452 (hppa32_store_return_value): Delete unused function.
4453 (hppa32_extract_return_value): Delete unused function.
4454 (hppa32_stack_align): Delete function.
4456 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
4458 * coffread.c (enter_linenos): Don't let rawptr reference memory
4459 outside linetab[]'s limits.
4461 2004-02-27 Andrew Cagney <cagney@redhat.com>
4463 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
4464 inferior stack space - the stack needs to grow upwards.
4465 (hppa32_frame_align): New function.
4466 (hppa64_frame_align): Replace hppa_frame_align.
4467 (hppa_gdbarch_init): Update.
4469 2004-02-26 Orjan Friberg <orjanf@axis.com>
4471 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
4472 (dwarf2-frame.h): Include.
4473 (enum cris_regnums): New enum CRIS_FP_REGNUM.
4474 Remove static variables related to ABI setting.
4475 (struct gdbarch_tdep): Remove cris_abi member.
4476 (struct frame_extra_info): Remove.
4477 (cris_unwind_cache, stack_item): New structs.
4478 (cris_frame_unwind, cris_frame_base): New variables.
4479 (push_stack_item, pop_stack_item)
4480 (cris_frame_unwind_cache, cris_frame_this_id)
4481 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
4482 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
4483 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
4484 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
4485 (cris_reg_struct_has_addr): New functions.
4486 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
4487 (cris_frame_saved_pc, cris_saved_pc_after_call,
4488 (cris_store_struct_return, cris_frameless_function_invocation)
4489 (cris_pop_frame, cris_skip_prologue_main)
4490 (cris_abi_original_store_return_value)
4491 (cris_abi_v2_store_return_value)
4492 (cris_abi_original_extract_return_value)
4493 (cris_abi_v2_extract_return_value)
4494 (cris_abi_original_reg_struct_has_addr)
4495 (cris_abi_v2_reg_struct_has_addr)
4496 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
4497 (cris_push_return_address, cris_abi_update): Remove.
4498 (_initialize_cris_tdep): Remove ABI command.
4499 (cris_dump_tdep): Ditto.
4500 (cris_gdbarch_init): Remove ABI command.
4501 Set store_return_value, extract_return_value, push_dummy_code,
4502 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
4503 frame_unwind_append_sniffer, frame_base_set_default.
4504 Clear deprecated init_frame_pc, push_arguments, store_return_value,
4505 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
4506 sizeof_call_dummy_words, get_saved_register, push_return_address,
4507 pop_frame, store_struct_return, frame_init_saved_regs,
4508 init_extra_frame_info, frameless_function_invocation, frame_chain,
4509 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
4512 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
4514 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
4515 * valprint.c (print_hex_chars): Change from static to external.
4516 (print_char_chars): New function.
4517 * printcmd.c (print_scalar_formatted): For integer and enum types
4518 that are longer than LONGEST, perform processing via appropriate
4519 print_*_chars routines.
4521 2004-02-26 Andrew Cagney <cagney@redhat.com>
4523 * Makefile.in: Update dependencies.
4524 Changes from Ulrich Weigand,
4525 * s390-tdep.c: Include "dwarf2-frame.h".
4526 (s390_dwarf2_frame_init_reg): New function.
4527 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
4528 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
4530 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
4532 * breakpoint.c (pending_break_support): New setting variable.
4533 (break_command_1): Account for pending_break_support setting
4534 when creating pending breakpoints.
4535 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
4536 (_initialize_breakpoint): Add "set breakpoint pending" and
4537 "show breakpoint pending" commands.
4539 2004-02-26 Andrew Cagney <cagney@redhat.com>
4542 * charset.c (backslashable, backslashed, represented): Remove 'e'
4543 from list of escaped characters, not part of ISO-C.
4545 2004-02-25 J. Brobecker <brobecker@gnat.com>
4547 From Peter Schauer <schauer@pdf.de>:
4548 * tui/tui.c: Move system header includes after local includes.
4549 Fixes a build failure on solaris systems.
4551 2004-02-25 J. Brobecker <brobecker@gnat.com>
4553 * configure.in: Refine the previous change.
4554 * configure: Regenerate.
4556 2004-02-25 Mark Kettenis <kettenis@gnu.org>
4558 * amd64-tdep.h: Renamed from x86-64-tdep.h.
4559 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
4560 "amd64-tdep.h" instead of "x86-64-tdep.h".
4561 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
4562 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
4563 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
4564 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
4565 and "x86-64-tdep.c".
4566 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
4567 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
4568 and "x86-64-tdep.c".
4569 * amd64bsd-nat.c: Update copyright year.
4570 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
4571 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
4573 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
4575 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
4577 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
4579 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
4581 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
4583 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
4584 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
4585 * Makefile.in (amd64_linux_tdep_h): Renamed from
4586 x86_64_linux_tdep_h.
4587 (amd64_tdep_h): Renamed from x86_64_tdep_h.
4588 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
4589 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
4590 (amd64obsd-tdep.o): Update dependencies.
4591 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
4593 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
4595 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
4596 amd64-linux-nat.c amd64-linux-tdep.c.
4597 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
4598 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
4599 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
4600 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
4601 amd64-tdep.o and amd64-linux-tdep.o.
4602 (TM_FILE): Set to tm-linux64.h.
4603 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
4604 (NAT_FILE): Set to nm-linux64.h.
4605 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
4606 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
4608 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
4610 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
4613 2004-02-25 Roland McGrath <roland@redhat.com>
4615 * remote.c (remote_protocol_qPart_auxv): New variable.
4616 (init_all_packet_configs): Initialize it.
4617 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
4618 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
4619 (show_remote_cmd): Call it.
4620 (_initialize_remote): Initialize commands.
4621 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
4622 service TARGET_OBJECT_AUXV requests.
4624 2004-02-25 J. Brobecker <brobecker@gnat.com>
4626 * configure.in: Make sure that the wborder function is available.
4627 Otherwise, search for it in the cur_colr library.
4628 * configure: Regenerate.
4630 2004-02-25 Andrew Cagney <cagney@redhat.com>
4632 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
4634 2004-02-25 Mark Kettenis <kettenis@gnu.org>
4636 * config/i386/tm-x86-64linux.h: Tweak comments.
4638 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
4640 * MAINTAINERS: Add self to write-after-approval list.
4642 2004-02-25 Andrew Cagney <cagney@redhat.com>
4644 PR cli/1566. Problem found, and fix suggested by David Allan.
4645 * cli/cli-script.c (execute_control_command): Unconditionally
4646 install a cleanup. Default "ret" to "invalid_control". Use
4647 "break" instead of "return" to escape from the switch.
4649 2004-02-24 J. Brobecker <brobecker@gnat.com>
4651 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
4652 with the lines macro defined in term.h on AiX.
4653 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
4654 a collision with the label_width macro defined in term.h on AiX.
4656 2004-02-23 David Mosberger <davidm@hpl.hp.com>
4658 Committed by Kevin Buettner <kevinb@redhat.com>.
4660 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
4661 * ia64-tdep.c (ia64_write_pc): Make it a global function.
4662 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
4663 instead of ia64_write_pc().
4664 * ia64-linux-tdep.c (regcache.h): Include.
4665 (ia64_linux_write_pc): New function.
4667 2004-02-23 Roland McGrath <roland@redhat.com>
4669 * auxv.c (info_auxv_command): Fix typos in error messages.
4671 2004-02-23 Mark Kettenis <kettenis@gnu.org>
4673 * x86-64-tdep.h: Tweak comment.
4674 (enum amd64_regnum): New.
4675 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
4676 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
4677 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
4678 (X86_64_XMM1_REGNUM): Removed.
4679 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
4680 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
4681 prototypes for renamed functions.
4682 * x86-64-tdep.c: Fix typo.
4683 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
4685 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
4686 Use constants from `enum amd64_regnum' for register numbers.
4687 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
4688 (amd64_analyze_prologue, amd64_frame_cache,
4689 amd64_sigtramp_frame_cache): Use constants from `enum
4690 amd64_regnum' for register numbers.
4691 (amd64_supply_fpregset): Adjust for renamed functions.
4692 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
4693 `enum amd64_regnum' for register numbers.
4694 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
4695 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
4696 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
4697 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
4698 (amd64_linux_fill_gregset): Adjust for renamed macros.
4699 (fetch_core_registers): Adjust for renamed functions.
4700 (amd64_linux_init_abi): Adjust for renamed functions.
4701 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
4703 * amd64-nat.c: Adjust for renamed macros.
4704 * amd64bsd-nat.c (fetch_inferior_registers)
4705 (store_inferior_registers): Use constants from `enum amd64_regnum'
4706 for register numbers. Adjust for renamed variables.
4707 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
4709 (_initialize_amd64fbsd_nat): Use constants from `enum
4710 amd64_regnum' for register numbers.
4711 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
4712 `enum amd64_regnum' for register numbers.
4713 (amd64fbsd_init_abi): Adjust for renamed functions.
4714 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
4715 `enum amd64_regnum' for register numbers.
4716 (amd64nbsd_init_abi): Adjust for renamed functions.
4717 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
4718 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
4719 `enum amd64_regnum' for register numbers.
4720 (amd64obsd_init_abi): Adjust for renamed functions.
4721 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
4723 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
4725 * breakpoint.c (print_one_breakpoint): Do not output spaces
4726 after printing <PENDING> for a pending breakpoint.
4728 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
4730 * printcmd.c (print_scalar_formatted): Initialize val_long
4731 to remove compiler warning message.
4733 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
4735 * defs.h (nquery, yquery): New prototypes.
4736 * breakpoint.c (break_command_1): Use new nquery interface.
4737 * utils.c (defaulted_query, nquery, yquery): New functions.
4739 2004-02-23 Andrew Cagney <cagney@redhat.com>
4741 * hppa-tdep.c (hppa_frame_align): New function.
4742 (hppa32_push_dummy_call): New function.
4743 (hppa64_push_dummy_call): New function.
4744 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
4747 * infcall.c (legacy_push_dummy_code): Don't call deprecated
4748 FIX_CALL_DUMMY when push_dummy_call is available.
4749 (call_function_by_hand, push_dummy_code): Ditto.
4751 2004-02-22 Andrew Cagney <cagney@redhat.com>
4753 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
4754 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
4755 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
4756 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
4757 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
4758 call_dummy_location to ON_STACK.
4760 2004-02-22 Mark Kettenis <kettenis@gnu.org>
4762 * x86-64-linux-tdep.c: Tweak comment.
4763 (amd64_linux_supply_gregset): Renamed from
4764 x86_64_linux_supply_gresget.
4765 (amd64_linux_fill_gregset): Renamed from
4766 x86_64_linux_fill_gregset.
4767 (fetch_core_registers): Adjust for renamed functions.
4768 (amd64_core_fns): Renamed from x86_64_core_fns.
4769 (amd64_linux_sigtramp_start): Renamed from
4770 x86_64_linux_sigtramp_start.
4771 (amd64_linux_pc_in_sigtramp): Renamed from
4772 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
4773 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
4774 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
4775 (amd64_linux_sigcontext_addr): Renamed from
4776 x86_64_linux_sigcontext_addr.
4777 (amd64_linux_sc_reg_offset): Renamed from
4778 x86_64_linux_sc_reg_offset.
4779 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
4780 Adjust for renamed functions and variables.
4781 (_initialize_amd64_linux_tdep): Renamed from
4782 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
4784 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
4785 Adjust for renamed functions.
4787 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
4788 from x86_64_linux_gregset64_reg_offset.
4789 (amd64_linux_gregset32_reg_offset): Rename from
4790 x86_64_linux_gregset64_reg_offset.
4791 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
4792 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
4793 (amd64_linux_dr_set_control): Renamed from
4794 x86_64_linux_dr_set_control. Adjust for renamed functions.
4795 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
4796 Adjust for renamed functions.
4797 (amd64_linux_dr_reset_addr): Renamed from
4798 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
4799 (amd64_linux_dr_get_status): Renamed from
4800 x86_64_linux_dr_get_status. Adjust for renamed functions.
4801 (_initialize_amd64_linux_nat): Renamed from
4802 _initialize_x86_64_linux_nat. Adjust for renamed variables and
4804 * config/i386/nm-x86-64linux.h: Update copyright year.
4805 Adjust for renamed functions.
4807 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
4808 amd64fbsd_sigtramp_start.
4809 (amd64fbsd_sigtramp_end_addr): Renamed from
4810 amd64fbsd_sigtramp_end.
4811 (amd64fbsd_init_abi): Adjust for renamed variables.
4812 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
4814 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
4815 amd64fbsd_sigtramp_start.
4816 (amd64fbsd_sigtramp_end_addr): Renamed from
4817 amd64fbsd_sigtramp_end.
4819 2004-02-22 Andrew Cagney <cagney@redhat.com>
4821 * hppa-tdep.c (hppa32_return_value): New function.
4822 (hppa64_return_value): New function.
4823 (hppa_gdbarch_init): Set return_value; keep disabled.
4825 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
4826 struct-return and inferior function call methods.
4828 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
4830 (struct hppa_frame_cache): Define.
4831 (hppa_frame_cache, hppa_frame_this_id): New functions.
4832 (hppa_frame_prev_register): New function.
4833 (hppa_frame_unwind, hppa_frame_base): New variables.
4834 (hppa_frame_unwind_sniffer): New function.
4835 (hppa_frame_base_address, hppa_unwind_pc): New function.
4836 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
4837 sniffer, and frame base sniffer; keep disabled.
4838 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
4839 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
4841 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
4842 to predicates for "seriously old code".
4844 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
4847 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
4849 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
4851 * config/pa/tm-hppa.h: Update copyright.
4852 (DEPRECATED_INIT_FRAME_PC): Delete macro.
4853 (deprecated_init_frame_pc_default): Delete declaration.
4854 (hppa_frame_init_saved_regs): Delete declaration.
4855 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
4856 * hppa-tdep.c: Include "arch-utils.h".
4857 (hppa_gdbarch_init): Set deprecated init_frame_pc
4858 and deprecated frame_init_saved_regs.
4859 (hppa_frame_init_saved_regs): Make static.
4861 2004-02-22 Mark Kettenis <kettenis@gnu.org>
4863 Remove old 386BSD support.
4864 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
4865 * configure.host: Remove i[34567]86-*-bsd*.
4866 * configure.tgt: Remove i[34567]86-*-bsd*.
4867 * i386b-nat.c: Removed.
4868 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
4869 (i386b-nat.o): Remove dependencies.
4871 * config/i386/i386bsd.mh: Removed.
4872 * config/i386/i386bsd.mt: Removed.
4873 * config/i386/nm-i386bsd.h: Removed.
4874 * config/i386/tm-i386bsd.h: Removed.
4875 * config/i386/xm-i386bsd.h: Removed.
4877 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
4879 * amd64fbsd-tdep.c: Include "solib-svr4.h".
4880 (amd64fbsd_init_abi): Set link map offsets.
4881 * amd64nbsd-tdep.c: Include "slib-svr4.h".
4882 (amd64nbsd_init_abi): Set link map offsets.
4883 * amd64obsd-tdep.c: Include "solib-svr4.h".
4884 (amd64obsd_init_abi): Set link map offsets.
4885 * i386fbsd-tdep.c: Include "solib-svr4.h".
4886 (i386fbsd_init_abi): Set link map offsets.
4887 * i386nbsd-tdep.c: Include "solib-svr4.h".
4888 (i386nbsdelf_init_abi): Set link map offsets.
4889 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
4890 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
4891 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
4892 solib-legacy.o and core-aout.o. Reformat.
4893 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
4894 solib-svr4.o, solib-legacy.o. Reformat.
4895 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
4896 * config/i386/nbsdelf.mh: Reformat.
4897 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
4898 solib-svr4.o, solib-legacy.o and corelow.o.
4899 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
4900 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
4901 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
4902 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
4903 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
4904 (TM_FILE): Set to tm-fbsd.h.
4905 * config/i386/nbsd.mt (TDEPFILES): Reformat.
4906 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
4908 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
4910 (TM_FILE): Set to nm-nbsd.h.
4911 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
4912 Simplify shared library support. Don't include "elf/common.h".
4913 (SVR4_SHARED_LIBS): Don't define.
4914 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
4916 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
4917 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
4918 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
4919 Don't include "i386/tm-i386.h". Include "solib.h".
4920 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
4921 Don't include "i386/tm-i386.h".
4922 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
4923 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
4924 Include "i386/xm-i386.h".
4925 (HOST_LONG_DOUBLE_FORMAT): Remove.
4927 Fix OpenBSD/i386 sigtramp recognition.
4928 * i386-tdep.h: Update copyright year.
4929 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
4930 (i386bsd_sigtramp_end): New prototypes.
4931 (i386fbsd_sigtramp_start_addr): Renamed from
4932 i386fbsd_sigtramp_start.
4933 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
4934 (i386obsd_sigtramp_start_addr): Renamed from
4935 i386obsd_sigtramp_start.
4936 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
4937 * i386bsd-tdep.c: Update copyright year.
4938 (i386bsd_pc_in_sigtramp): Make public.
4939 * i386fbsd-nat.c: Update copyright year.
4940 (_initialize_i386fbsd_nat): Adjust for renamed variables.
4941 * i386fbsd-tdep.c: Update copyright year.
4942 (i386fbsd_sigtramp_start_addr): Renamed from
4943 i386fbsd_sigtramp_start.
4944 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
4945 (i386fbsdaout_init_abi): Adjust for renamed variables.
4946 * i386obsd-nat.c: Update copyright year.
4947 (_initialize_i386obsd_nat): Adjust for renamed variables.
4948 * i386obsd-tdep.c: Include "target.h".
4949 (i386obsd_page_size): New variable.
4950 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
4951 (i386obsd_sigtramp_end): New functions.
4952 (i386obsd_sigtramp_start_addr): Renamed from
4953 i386obsd_sigtramp_start.
4954 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
4955 (i386obsd_init_abi): Adjust for renamed variables. Set
4956 pc_in_sigtramp, sigtramp_start and sigtramp_end.
4957 * Makefile.in (i386obsd-tdep.o): Update dependencies.
4959 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
4960 trampoline change in OpenBSD kernel.
4962 * amd64-nat.c: Update copyright year.
4963 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
4964 architecture from REGCACHE.
4966 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
4967 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
4969 2004-02-21 Mark Kettenis <kettenis@gnu.org>
4971 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
4972 i[34567]86-*-openbsd3.[0-3].
4973 * config/i386/obsdaout.mh: New file.
4975 * config/i386/obsd.mh (MH_FLAGS): Remove.
4978 * i386obsd-tdep.c: Update copyright years. Include
4980 (i386obsd_init_abi): Don't set regset_from_core_section here.
4981 (i386obsd_aout_init_abi): New function. Set
4982 regset_from_core_section here.
4983 (i386obsd_elf_init_abi): New function.
4984 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
4985 * Makefile.in (i386obsd-tdep.o): Update dependecies.
4986 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4987 (TM_FILE): Set to tm-nbsd.h.
4989 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
4992 * solib-svr4.h: Update copyright year.
4993 (svr4_ilp32_fetch_link_map_offsets)
4994 (svr4_lp64_fetch_link_map_offsets): New prototype.
4995 * solib-svr4.c: Update copyright year.
4996 (svr4_ilp32_fetch_link_map_offsets)
4997 (svr4_lp64_fetch_link_map_offsets): New function.
4999 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
5001 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
5002 to the partial symbol table.
5004 2004-02-20 J. brobecker <brobecker@gnat.com>
5006 * PROBLEMS: Add description of problem documented under gdb/1560.
5008 2004-02-20 Mark Kettenis <kettenis@gnu.org>
5010 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
5012 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
5014 (amd64obsd_init_abi): Reorder initializations. Use
5015 amd64obsd_r_reg_offset to initialize the general-purpose register
5016 set details. Set regset_from_core_section.
5017 (_initialize_amd64obsd_tdep): Rename from
5018 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
5019 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
5020 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
5022 * NEWS (New native configurations): Mention OpenBSD/alpha.
5023 * configure.tgt: Add alpha*-*-openbsd*.
5024 * configure.host: Add alpha*-*-openbsd*.
5025 * alphanbsd-tdep.c: Update copyright year.
5026 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
5028 2004-02-20 Andrew Cagney <cagney@redhat.com>
5031 * configure.tgt: Delete target "none-*-*".
5032 * configure.host: Delete host "none-*-*".
5033 * config/none/none.mh: Delete file.
5034 * config/none/none.mt: Delete file.
5035 * config/none/xm-none.h: Delete file.
5036 * config/none/tm-none.h: Delete file.
5037 * config/none/nm-none.h: Delete file.
5039 2004-02-19 Fred Fish <fnf@redhat.com>
5041 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
5042 cache->uses_fp prior to setting it.
5044 2004-02-19 Fred Fish <fnf@redhat.com>
5046 Fix for PR breakpoint/1558.
5047 * sh-tdep.c (IS_JSR): New macro.
5048 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
5050 2004-02-19 Jim Blandy <jimb@redhat.com>
5052 * findvar.c (value_from_register): Doc fix.
5054 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
5056 * printcmd.c (print_scalar_formatted): Do not check for sizeof
5057 type being greater than sizeof of host's LONGEST. Always use
5058 unpack_long() unless format 'f' chosen.
5060 2004-02-19 Joel Brobecker <brobecker@gnat.com>
5062 Committed by Elena Zannoni <ezannoni@redhat.com>
5064 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
5065 contains a symbol wich is the best, non-exact match for the given
5066 pc. Update comments.
5068 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
5070 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
5071 macro, which was part of the now removed Mach 3 port.
5072 * utils.c (request_quit): Ditto.
5074 2004-02-18 Mark Kettenis <kettenis@gnu.org>
5076 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
5077 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
5079 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5081 Committed by Mark Kettenis <kettenis@gnu.org>.
5083 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
5086 2004-02-18 Andrew Cagney <cagney@redhat.com>
5088 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
5089 CONFIG_INSTALL and CONFIG_UNINSTALL.
5090 * configure: Re-generate.
5091 * interps.h (INTERP_TUI): Define.
5092 * Makefile.in: Update dependencies.
5094 (tui-main.o): Specify dependencies.
5095 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
5096 * tui/tui-main.c: New file.
5098 2004-02-18 Mark Kettenis <kettenis@gnu.org>
5100 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
5101 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
5103 * configure.host: Add x86_64-*-openbsd*.
5104 * configure.tgt: Add x86_64-*-openbsd*.
5105 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
5107 * tui/tui.c: Don't include <malloc.h>.
5109 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
5110 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
5113 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
5114 static. Remove extraneous whitespace.
5115 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
5118 2004-02-17 Jim Blandy <jimb@redhat.com>
5120 * findvar.c (value_from_register): Doc fix.
5122 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5124 Committed by Jim Blandy <jimb@redhat.com>.
5126 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
5127 CORE_ADDR as type for selectors. Correct types for GNU run time
5128 message lookup function to use double indirection.
5129 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
5130 * objc-lang.h (lookup_child_selector): Adapt prototype.
5132 * s390-nat.c (SUBOFF): New macro.
5133 (supply_gregset, fill_gregset): Use it to handle debugging
5134 of 32-bit exectuables running under a 64-bit kernel.
5135 * s390-tdep.c: Include "solib-svr4.h".
5136 (s390_svr4_fetch_link_map_offset): New function.
5137 (s390x_svr_fetch_link_map_offset): Likewise.
5138 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
5139 * Makefile.in (s390-tdep.o): Update dependencies.
5141 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
5143 (s390_readinstruction): Reformat. Use read_memory_nobpt.
5144 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
5145 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
5146 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
5147 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
5148 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
5149 S390_SIGNAL_FRAMESIZE,
5150 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
5151 (struct frame_extra_info): Remove.
5152 (s390_memset_extra_info): Remove.
5153 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
5154 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
5155 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
5156 (is_rse): Renamed to ...
5157 (is_rsy): ... this. Support long displacements.
5158 (is_rxe): Renamed to ...
5159 (is_rxy): ... this. Support long displacements.
5160 (compute_x_addr): Support long displacements.
5161 (struct s390_prologue_data): New data type.
5162 (s390_on_stack): Change API to use struct s390_prologue_data.
5163 (s390_store): Reimplement.
5164 (s390_load): New function.
5165 (s390_get_signal_frame_info): Remove.
5166 (s390_get_frame_info): Remove, replace by ...
5167 (s390_analyze_prolog): ... this new function.
5168 (s390_check_function_end): Remove.
5169 (s390_function_start): Remove.
5170 (s390_frameless_function_invokation): Remove.
5171 (s390_is_sigreturn): Remove.
5172 (s390_init_frame_pc_first): Remove.
5173 (s390_init_frame_extra_info): Remove.
5174 (s390_frame_init_saved_regs): Remove.
5175 (s390_frame_saved_pc_nofix): Remove.
5176 (s390_frame_saved_pc): Remove.
5177 (s390_frame_chain): Remove.
5178 (s390_fp_regnum, s390_read_fp): Remove.
5179 (s390_pop_frame_regular, s390_pop_frame): Remove.
5180 (s390_saved_pc_after_call): Remove.
5181 (s390_skip_prologue): Reimplement.
5182 (s390_in_function_epilogue_p): Support long displacements.
5183 (struct s390_unwind_cache): New data structure.
5184 (s390_frame_unwind_cache): New function.
5185 (s390_prologue_frame_unwind_cache): Likewise.
5186 (s390_backchain_frame_unwind_cache): Likewise.
5187 (s390_frame_this_id, s390_frame_prev_register): Likewise.
5188 (s390_frame_unwind): Define.
5189 (s390_frame_sniffer): New function.
5190 (struct s390_pltstub_unwind_cache): New data structure.
5191 (s390_pltstub_frame_unwind_cache): New function.
5192 (s390_pltstub_frame_this_id): Likewise.
5193 (s390_pltstub_frame_prev_register): Likewise.
5194 (s390_pltstub_frame_unwind): Define.
5195 (s390_pltstub_frame_sniffer): New function.
5196 (struct s390_sigtramp_unwind_cache): New data structure.
5197 (s390_sigtramp_frame_unwind_cache): New function.
5198 (s390_sigtramp_frame_this_id): Likewise.
5199 (s390_sigtramp_frame_prev_register): Likewise.
5200 (s390_sigtramp_frame_unwind): Define.
5201 (s390_sigtramp_frame_sniffer): New function.
5202 (s390_frame_base_address, s390_local_base_address): New functions.
5203 (s390_frame_base): Define.
5204 (s390_unwind_pc, s390_unwind_sp): New function.
5205 (s390_push_dummy_call): Use new frame base location.
5206 (s390_unwind_dummy_id): Likewise.
5207 (s390_gdbarch_init): Remove calls to:
5208 set_gdbarch_frameless_function_invocation,
5209 set_gdbarch_deprecated_init_frame_pc,
5210 set_gdbarch_deprecated_frame_chain,
5211 set_gdbarch_deprecated_frame_init_saved_regs,
5212 set_gdbarch_deprecated_pop_frame,
5213 set_gdbarch_deprecated_init_extra_frame_info,
5214 set_gdbarch_deprecated_init_frame_pc_first,
5215 set_gdbarch_deprecated_target_read_fp,
5216 set_gdbarch_deprecated_frame_saved_pc,
5217 set_gdbarch_deprecated_saved_pc_after_call,
5218 set_gdbarch_deprecated_fp_regnum.
5220 set_gdbarch_in_solib_call_trampoline,
5221 frame_unwind_append_sniffer,
5222 frame_base_set_default,
5223 set_gdbarch_unwind_pc,
5224 set_gdbarch_unwind_sp.
5225 * Makefile.in (s390-tdep.o): Update dependencies.
5227 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
5228 (S390_STACK_FRAME_OVERHEAD): Remove.
5229 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
5230 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
5231 (s390_promote_integer_argument): Remove.
5232 (s390_cannot_extract_struct_value_address): Remove.
5233 (s390_use_struct_convention, s390_store_struct_return): Remove.
5234 (s390_extract_return_value, s390_store_return_value): Remove.
5235 (s390_return_value_convention, s390_return_value): New functions.
5236 (is_float_singleton): Handle typedefs.
5237 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
5238 Remove, replace by ...
5239 (s390_function_arg_pass_by_reference, s390_function_arg_float,
5240 s390_function_arg_integer): ... these new functions.
5241 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
5242 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
5243 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
5246 set_gdbarch_deprecated_store_struct_return,
5247 set_gdbarch_deprecated_extract_return_value,
5248 set_gdbarch_deprecated_store_return_value,
5249 set_gdbarch_use_struct_convention,
5250 set_gdbarch_extract_struct_value_address,
5251 set_gdbarch_deprecated_pc_in_call_dummy,
5252 set_gdbarch_deprecated_push_arguments,
5253 set_gdbarch_deprecated_save_dummy_frame_tos,
5254 set_gdbarch_deprecated_push_return_address,
5255 set_gdbarch_deprecated_sizeof_call_dummy_words,
5256 set_gdbarch_deprecated_call_dummy_words,
5257 set_gdbarch_deprecated_dummy_write_sp.
5259 set_gdbarch_push_dummy_call,
5260 set_gdbarch_unwind_dummy_id,
5261 set_gdbarch_return_value.
5263 * config/s390/nm-linux.h: Update comments.
5264 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
5265 (STOPPED_BY_WATCHPOINT): Redefine.
5266 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
5267 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
5268 (s390_stopped_by_watchpoint): Likewise.
5269 (watch_area_cnt): Remove.
5270 * s390-nat.c: Update comments.
5271 (watch_area): Remove typedef.
5272 Global replace watch_area by struct watch_area.
5273 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
5274 (s390_stopped_by_watchpoint): Remove pid argument,
5275 use s390_inferior_tid. Add short-cut for the no watchpoint case.
5276 (s390_fix_watch_points): Remove pid argument,
5277 use s390_inferior_tid. Recompute area spanned by watchpoints.
5278 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
5279 argument. Reimplement.
5281 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
5282 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
5283 (FETCH_INFERIOR_REGISTERS): Define.
5284 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
5286 * config/s390/s390x.mt: Remove.
5287 * config/s390/tm-s390.h: Remove.
5288 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
5289 (TARGET_ELF64): Remove.
5290 (SKIP_TRAMPOLINE_CODE): Do not undefine.
5291 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
5292 s390*-*-* case; always set gdb_target to s390.
5293 * regformats/reg-s390.dat: Remove control registers.
5294 * regformats/reg-s390x.dat: Likewise.
5295 * s390-tdep.h: New file.
5296 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
5297 Include "inferior.h" and "s390-tdep.h".
5298 Remove private definition of offsetof.
5299 (s390_register_u_addr): Remove.
5300 (regmap_gregset, regmap_fpregset): Define.
5301 (supply_gregset, fill_gregset): Reimplement.
5302 (supply_fpregset, fill_fpregset): Likewise.
5303 (s390_inferior_tid): New function.
5304 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
5305 (fetch_inferior_registers, store_inferior_registers): Likewise.
5306 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
5307 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
5308 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
5309 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
5310 (struct gdbarch_tdep): Define.
5311 (struct s390_register_info): Define.
5312 (s390_register_info): New variable.
5313 (s390_register_name): Reimplement.
5314 (s390_register_type): New function.
5315 (s390_register_raw_size, s390x_register_raw_size): Remove.
5316 (s390_cannot_fetch_register): Remove.
5317 (s390_register_byte): Remove.
5318 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
5319 (s390_dwarf_regmap): New variable.
5320 (s390_dwarf_reg_to_regnum): New function.
5321 (s390_stab_reg_to_regnum): Remove.
5322 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
5323 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
5324 (s390_convert_register_p): Likewise.
5325 (s390_register_to_value, s390_value_to_register): Likewise.
5326 (s390_register_reggroup_p): Likewise.
5327 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
5328 s390_gregset, s390x_gregset, s390_fpregset): New variables.
5329 (s390_supply_regset, s390_regset_from_core_section): New functions.
5330 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
5331 (S390_FPR_SIZE): Likewise.
5332 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
5333 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
5334 (S390_NUM_GPRS): Move here from tm-s390.h.
5335 (S390_NUM_FPRS): Likewise.
5336 (s390_in_function_epilogue_p): New function.
5337 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
5338 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
5339 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
5340 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
5341 Replace S390_FP_REGNUM by S390_SP_REGNUM.
5343 set_gdbarch_deprecated_max_register_raw_size,
5344 set_gdbarch_deprecated_max_register_virtual_size,
5345 set_gdbarch_deprecated_register_byte,
5346 set_gdbarch_cannot_fetch_register,
5347 set_gdbarch_cannot_store_register,
5348 set_gdbarch_deprecated_register_size,
5349 set_gdbarch_deprecated_register_raw_size,
5350 set_gdbarch_deprecated_register_virtual_size,
5351 set_gdbarch_deprecated_register_virtual_type,
5352 set_gdbarch_deprecated_register_bytes.
5354 set_gdbarch_num_pseudo_regs,
5355 set_gdbarch_register_type,
5356 set_gdbarch_convert_register_p,
5357 set_gdbarch_register_to_value,
5358 set_gdbarch_value_to_register,
5359 set_gdbarch_register_reggroup_p,
5360 set_gdbarch_regset_from_core_section,
5361 set_gdbarch_pseudo_register_read,
5362 set_gdbarch_pseudo_register_write,
5363 set_gdbarch_in_function_epilogue_p.
5364 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
5365 (s390_tdep_h): New variable.
5367 2004-02-17 Jim Blandy <jimb@redhat.com>
5369 * findvar.c (value_from_register): If the type has no length, just
5370 return an acceptable value --- don't report an internal error.
5372 * stabsread.c (read_type): If we find any type numbers that are
5373 forward references, complain if the references aren't resolved by
5374 the time we're finished reading.
5375 (cleanup_undefined_types): Make error message more appropriate for
5378 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
5380 * Makefile.in (defs_h): Remove dependency on progress_h.
5381 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
5383 * main.c (captured_main): Delete use of START_PROGRESS and
5386 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
5388 * objfiles.c (terminate_minimal_symbol_table): Add back
5389 initialization of MSYMBOL_TYPE.
5391 2004-02-17 David Mosberger <davidm@hpl.hp.com>
5393 Committed by Andrew Cagney.
5394 * Makefile.in (ia64_tdep_h): New macro.
5395 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
5396 (ia64-tdep.o): Likewise.
5397 * ia64-tdep.h: New file.
5398 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
5399 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
5400 (ia64_aix_sigcontext_register_address): Likewise.
5401 (ia64_linux_getunwind_table): Delete declaration.
5402 * ia64-linux-tdep.c: Likewise.
5404 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
5406 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
5407 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
5408 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
5410 2004-02-17 Andrew Cagney <cagney@redhat.com>
5412 * symtab.c (skip_prologue_using_sal): New function.
5413 * symtab.h (skip_prologue_using_sal): Declare.
5414 * frv-tdep.c: Include "symtab.h".
5415 (skip_prologue_using_sal): Delete function.
5416 * mips-tdep.c (skip_prologue_using_sal): Delete function.
5417 * rs6000-tdep.c (refine_prologue_limit): Mention
5418 skip_prologue_using_sal.
5419 * ia64-tdep.c (refine_prologue_limit): Ditto.
5420 * Makefile.in: Update dependencies.
5422 2004-02-16 Andrew Cagney <cagney@redhat.com>
5424 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
5425 START_INFERIOR_TRAPS_EXPECTED.
5426 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
5427 START_INFERIOR_TRAPS_EXPECTED.
5428 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
5430 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
5431 macro, moved to "nm-osf.h". Update copyright.
5432 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
5435 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
5436 and function replacing FRAMELESS_FUNCTION_INVOCATION.
5437 * blockframe.c (legacy_frameless_look_for_prologue): Rename
5438 frameless_look_for_prologue.
5439 * frame.h (legacy_frameless_look_for_prologue): Rename
5440 frameless_look_for_prologue.
5441 * gdbarch.h, gdbarch.c: Re-generate.
5442 * sh64-tdep.c (sh64_gdbarch_init): Update.
5443 * sh-tdep.c (sh_gdbarch_init): Update.
5444 * s390-tdep.c (s390_gdbarch_init): Update.
5445 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5446 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
5447 * m68k-tdep.c (m68k_gdbarch_init): Update.
5448 (delta68_frame_args_address): Update.
5449 * m32r-tdep.c (m32r_gdbarch_init): Update.
5450 * hppa-tdep.c (hppa_gdbarch_init): Update.
5451 * h8300-tdep.c (h8300_gdbarch_init): Update.
5452 * frv-tdep.c (frv_gdbarch_init): Update.
5453 (frv_frameless_function_invocation): Update.
5454 * cris-tdep.c (cris_gdbarch_init): Update.
5455 (cris_frameless_function_invocation): Update.
5456 * avr-tdep.c (avr_gdbarch_init): Update.
5457 * arm-tdep.c (arm_gdbarch_init): Update.
5458 * stack.c (frame_info): Update, call predicate.
5459 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
5460 * frame.c (legacy_get_prev_frame): Update, call predicate..
5461 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
5462 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
5463 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
5465 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5466 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5467 * vax-tdep.c (vax_gdbarch_init): Ditto.
5469 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
5472 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
5474 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
5477 2004-02-16 Andrew Cagney <cagney@redhat.com>
5479 * tui/tui-windata.c: Include "gdb_string.h".
5480 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
5481 * tui/tui-layout.c, tui/tui-command.c: Ditto.
5482 * Makefile.in: Update dependencies.
5484 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
5486 * Makefile.in (infrun.o): Add $(gdb_assert_h).
5487 * infrun.c: Include "gdb_assert.h".
5488 (singlestep_ptid, saved_singlestep_ptid)
5489 (stepping_past_singlestep_breakpoint): New variables.
5490 (resume): Set singlestep_ptid. Check for singlestep thread
5492 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
5493 (handle_inferior_event): Handle singlestep thread hop.
5495 2004-02-16 Andrew Cagney <cagney@redhat.com>
5497 * dwarf2-frame.c (dwarf2_frame_ops): New function.
5498 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
5499 (dwarf2_frame_init_reg): Ditto.
5501 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
5502 suggested by Joshua Neuheisel
5504 * configure.in: Always check for curses, including pdcurses.
5505 Warn, instead of error, when no curses are found. Enable TUI when
5506 curses is available.
5507 * configure: Re-generate.
5509 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
5511 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
5512 sh_sh4_register_convert_to_virtual.
5513 (sh_register_convert_to_raw): Rename from
5514 sh_sh4_register_convert_to_raw.
5515 (sh_pseudo_register_read): Accomodate above name change.
5516 (sh_pseudo_register_write): Ditto.
5518 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
5520 * sh-tdep.c (sh_generic_register_name): Remove.
5521 (sh_gdbarch_init): Use sh_sh_register_name in default case.
5523 2004-02-15 Andrew Cagney <cagney@redhat.com>
5525 * configure.in (build_warnings): Add -Wunused-function.
5526 * configure: Re-generate.
5528 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
5529 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
5531 * procfs.c (procfs_init_inferior): Assume that
5532 START_INFERIOR_TRAPS_EXPECTED is defined.
5533 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
5534 * config/ns32k/tm-nbsd.h: Delete file,
5535 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
5537 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
5538 * config/vax/tm-vax.h: Delete file.
5540 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5541 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5542 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5543 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5544 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
5545 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5546 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
5548 2004-02-15 Mark Kettenis <kettenis@gnu.org>
5550 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
5551 * dwarf2-frame.c (dwarf2_frame_data): New variable.
5552 (struct dwarf2_frame_ops): New.
5553 (dwarf2_frame_default_init_reg): New function, based on
5554 dwarf2_frame_init_reg.
5555 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
5556 (dwarf2_frame_init_reg): Call architecture-specific function.
5557 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
5558 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
5559 instead of dwarf2_frame_data.
5560 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
5561 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
5563 2004-02-15 Andrew Cagney <cagney@redhat.com>
5565 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
5566 register_gdbarch_swap.
5567 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
5568 * f-lang.c (_initialize_f_language): Update, use
5569 DEPRECATED_REGISTER_GDBARCH_SWAP.
5570 * remote.c (_initialize_remote): Ditto.
5571 * regcache.c (_initialize_regcache): Ditto.
5572 * parse.c (_initialize_parse): Ditto.
5573 * infrun.c (_initialize_infrun): Ditto.
5574 * mi/mi-main.c (_initialize_mi_main): Ditto.
5575 * gdbtypes.c (_initialize_gdbtypes): Ditto.
5577 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
5578 poking .cacheable directly.
5579 * symfile.c (symfile_bfd_open): Ditto.
5581 * Makefile.in: Update all dependencies.
5583 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
5584 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
5585 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
5586 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
5587 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
5589 2004-02-14 Andrew Cagney <cagney@redhat.com>
5591 * arch-utils.c (legacy_convert_register_p): Check
5592 DEPRECATED_REGISTER_CONVERTIBLE_P.
5593 * findvar.c (value_of_register): Ditto.
5595 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
5596 * gdbarch.h, gdbarch.c: Re-generate.
5597 * arch-utils.c (deprecated_register_convertible_not): Delete.
5598 * arch-utils.h (deprecated_register_convertible_not): Delete.
5599 * mi/mi-main.c (get_register): Update. Update copyright.
5600 * infcmd.c (default_print_registers_info): Update.
5602 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
5603 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
5604 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
5605 * gdbarch.h, gdbarch.c: Re-generate.
5606 * frame.c (deprecated_get_next_frame_hack): Delete function.
5607 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
5608 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
5610 * infcall.c (call_function_by_hand): Update.
5612 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
5614 * symfile.c (init_entry_point_info, entry_point_address): Move
5616 * objfiles.c (init_entry_point_info, entry_point_address):..to
5618 * symfile.h (init_entry_point_info, entry_point_address): Remove
5620 * objfiles.h (init_entry_point_info, entry_point_address):Add
5622 * cris-tdep.c: Remove include of symfile.h. Add include of
5625 * mcore-tdep.c: Ditto.
5626 * mn10300-tdep.c: Ditto.
5627 * sh64-tdep.c: Ditto.
5628 * v850-tdep.c: Ditto.
5629 * arm-tdep.c: Remove include of symfile.h.
5630 * blockframe.c: Ditto.
5631 * coffread.c: Ditto.
5633 * dwarf2read.c: Ditto.
5634 * dwarfread.c: Ditto.
5635 * frv-tdep.c: Ditto.
5636 * ia64-tdep.c: Ditto.
5637 * mdebugread.c: Ditto.
5638 * mipsread.c: Ditto.
5639 * rs6000-tdep.c: Ditto.
5640 * s390-tdep.c: Ditto.
5642 * xstormy16-tdep.c: Ditto.
5643 * gdbarch.sh: Remove include of symfile.h.
5644 * gdbarch.c: Regenerate.
5645 * solib-irix.c (enable_break): Use entry_point_address().
5646 Add comment about include file.
5647 * xcoffread.c: Add comment about include file.
5648 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
5649 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
5650 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
5651 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
5652 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
5654 2004-02-13 Andrew Cagney <cagney@redhat.com>
5656 * corelow.c (core_xfer_partial): Use "struct bfd_section".
5657 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
5659 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
5661 2004-02-12 Fred Fish <fnf@redhat.com>
5663 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
5664 set_gdbarch_store_return_value.
5666 2004-02-12 Andrew Cagney <cagney@redhat.com>
5668 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
5669 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
5670 (interrupt_query): Ditto.
5671 (ofunc): Delete unused variable.
5672 * cris-tdep.c (cris_abi): Delete unused function.
5673 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
5674 (cris_get_wide_opcode, cris_get_short_size): Ditto.
5675 (cris_get_asr_quick_shift_steps): Ditto.
5676 (cris_skip_prologue_frameless_p): Ditto.
5677 * arm-tdep.c (arm_push_return_address): Delete unused function.
5678 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
5679 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
5680 * s390-tdep.c (s390_function_start): Delete unused function.
5682 2004-02-12 Andrew Cagney <cagney@redhat.com>
5684 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
5685 gdbarch.h, gdbarch.c: Re-generate.
5686 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
5687 to generic_prologue_frameless_p.
5688 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
5689 * arch-utils.c (generic_prologue_frameless_p): Delete function.
5691 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
5693 * mips-linux-tdep.c: Include "frame.h".
5694 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
5695 (mips_linux_skip_resolver): New functions.
5696 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
5697 and set_gdbarch_in_solib_call_trampoline.
5698 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
5699 to after set_gdbarch_in_solib_return_trampoline. Only set the
5700 solib hooks to mips16 functions if the OS ABI is unknown.
5701 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
5702 including "config/tm-linux.h".
5703 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
5704 * Makefile.in (mips-linux-tdep.o): Update.
5706 2004-02-11 David Carlton <carlton@kealia.com>
5708 * linespec.c (decode_compound): Only look for a class symbol when
5709 considering all but the rightmost component.
5711 2004-02-11 Andrew Cagney <cagney@redhat.com>
5713 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
5714 abi code are are separatly grouped.
5716 2004-02-11 Andrew Cagney <cagney@redhat.com>
5718 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
5719 * gdbarch.h, gdbarch.c: Re-generate.
5720 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5721 * v850-tdep.c (v850_gdbarch_init): Update.
5722 * sh64-tdep.c (sh64_gdbarch_init): Update.
5723 * sh-tdep.c (sh_gdbarch_init): Update.
5724 * s390-tdep.c (s390_gdbarch_init): Update.
5725 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5726 * mips-tdep.c (mips_gdbarch_init): Update.
5727 * mcore-tdep.c (mcore_gdbarch_init): Update.
5728 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5729 * m32r-tdep.c (m32r_gdbarch_init): Update.
5730 * ia64-tdep.c (ia64_gdbarch_init): Update.
5731 * hppa-tdep.c (hppa_gdbarch_init): Update.
5732 * h8300-tdep.c (h8300_gdbarch_init): Update.
5733 * frv-tdep.c (frv_gdbarch_init): Update.
5734 * d10v-tdep.c (d10v_gdbarch_init): Update.
5735 * cris-tdep.c (cris_gdbarch_init): Update.
5736 * avr-tdep.c (avr_gdbarch_init): Update.
5737 * arm-tdep.c (arm_gdbarch_init): Update.
5738 * alpha-tdep.c (alpha_gdbarch_init): Update.
5740 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
5742 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
5744 (sh_sh4al_dsp_register_name): Ditto.
5746 2004-02-10 Andrew Cagney <cagney@redhat.com>
5748 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
5749 (mips_init_frame_pc_first): Delete function.
5750 (mips_frame_saved_pc): Delete function.
5751 (mips_frame_chain): Delete function.
5752 (mips_init_extra_frame_info): Delete function.
5753 (mips_xfer_register): Delete unused variable "reg".
5754 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
5755 (mips_n32n64_return_value): Delete unused variable "reg".
5756 (mips_n32n64_return_value): Delete unused variable "pos".
5757 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
5758 (mips_o32_return_value): Delete unused variable "pos".
5759 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
5760 (mips_print_fp_register): Delete unused variable "namelen"
5761 (mips_print_fp_register): Delete unused variable "flt2"
5762 (get_frame_pointer): Delete function.
5763 (cached_proc_desc): Delete static variable.
5764 (mips_pop_frame): Delete function.
5765 (mips_find_saved_regs): Delete function.
5766 (mips_get_saved_register): Delete function.
5767 (mips_saved_pc_after_call): Delete function.
5768 (SIGFRAME_BASE): Delete macro.
5769 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
5770 (SIGFRAME_PC_OFF): Delete macro.
5771 (SIGFRAME_REGSAVE_OFF): Delete macro.
5772 (mips_dump_tdep): Do not print deleted macro definitions.
5774 2004-02-10 Andrew Cagney <cagney@redhat.com>
5776 * Makefile.in (SFILES): Remove explictly listed tui files.
5777 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
5779 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
5781 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
5782 to use paddr functions to format ia64 addresses and long values.
5783 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
5784 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
5785 (get_kernel_table, ia64_find_proc_info_x): Ditto.
5786 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
5787 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
5789 2004-02-10 Andrew Cagney <cagney@redhat.com>
5791 * defs.h: Do not include "tui.h".
5792 * gdb_curses.h: New file.
5793 * tui/tui-hooks.h: New file.
5794 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
5795 (tui_install_hooks, tui_remove_hooks): Delete declarations.
5796 (tui_initialize_io): Delete declaration.
5797 (tui_initialize_readline: Delete redundant declaration.
5798 (struct tui_point): Delete definition.
5799 * tui/tui-data.h (struct tui_point): Define.
5800 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
5801 * utils.c: Include "tui/tui.h".
5802 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
5803 * printcmd.c [TUI]: Include "tui/tui.h".
5804 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
5805 * tui/tui-command.c: Include "gdb_curses.h".
5806 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
5807 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
5808 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
5809 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
5810 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
5811 * Makefile.in: Update all dependencies.
5812 (tui_hooks_h, gdb_curses_h): Define.
5813 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
5815 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
5817 * objfiles.h (struct objfile): Remove unused fields auxf1 and
5818 auxf2. Add comments about some other rarely used fields.
5820 2004-02-10 Andrew Cagney <cagney@redhat.com>
5822 * Makefile.in (init.c): Fix script removing duplicates. Problem
5823 reported by Peter Schauer.
5825 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
5827 * bcache.c (bcache_xmalloc): Use obstack_init instead of
5828 obstack_specify_allocation.
5829 * objfiles.c (allocate_objfile): Ditto.
5830 * solib-sunos.c (solib_add_common_symbols)
5831 (allocate_rt_common_objfile): Ditto.
5832 * symfile.c (reread_symbols): Ditto.
5833 * gdb_obstack.h: Add comment.
5835 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
5837 * linespec.c (decode_line_1, locate_first_half)
5838 (decode_compound, lookup_prefix_sym): Update comments. Delete old
5841 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
5843 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
5846 2004-02-09 Andrew Cagney <cagney@redhat.com>
5848 * blockframe.c (find_pc_partial_function): If find_pc_overlay
5849 fails, try find_pc_section. Fix PR c++/1267.
5850 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
5851 instead of find_pc_mapped_section.
5852 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
5853 not default to the section containing PC. Fix PR symtab/1519.
5855 2004-02-09 Andrew Cagney <cagney@redhat.com>
5857 * Makefile.in (mips-tdep.o): Update dependencies.
5858 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
5860 (mips_unwind_pc): Return the pseudo PC register.
5861 (mips_unwind_dummy_id): New function.
5862 (mips16_fetch_instruction): New function.
5863 (mips32_fetch_instruction): New function.
5864 (struct mips_frame_cache): Define.
5865 (mips_mdebug_frame_cache): New function.
5866 (mips_mdebug_frame_this_id): New function.
5867 (mips_mdebug_frame_prev_register): New function.
5868 (mips_mdebug_frame_unwind): Define.
5869 (mips_mdebug_frame_sniffer): New function.
5870 (mips_mdebug_frame_base_address): New function.
5871 (mips_mdebug_frame_base): Define.
5872 (mips_mdebug_frame_base_sniffer): New function.
5873 (mips_gdbarch_init): Append unwind and base sniffers. Set
5876 2004-02-08 Andrew Cagney <cagney@redhat.com>
5878 * frame.c: Print both the register number and name.
5880 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
5881 and a sed into a single sed. Make .c and .o patterns more robust.
5883 (INIT_FILES): Replace OBS with COMMON_OBS.
5884 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
5886 2004-02-08 Mark Kettenis <kettenis@gnu.org>
5888 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
5889 the PT_WCOOKIE request.
5891 2004-02-08 Andrew Cagney <cagney@redhat.com>
5893 * mips-tdep.c (mips_unwind_pc): New function.
5894 (mips_gdbarch_init): Set mips_unwind_pc.
5896 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
5897 (get_frame_id): Allow the UNKNOWN_FRAME.
5898 (frame_register_unwind, get_frame_type): Ditto.
5900 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
5901 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
5902 unwind_dummy_id indicates a legacy frame.
5904 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
5905 * configure: Re-generate.
5907 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
5910 2004-02-08 Andrew Cagney <cagney@redhat.com>
5912 * configure.in (CONFIG_ALL): Set to Makefile target, and not
5914 * configure: Re-generate.
5915 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
5916 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
5917 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
5918 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
5919 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
5920 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
5921 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
5922 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
5923 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
5924 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
5926 2004-02-07 Andrew Cagney <cagney@redhat.com>
5928 * Makefile.in: Update all dependencies.
5930 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
5931 * configure: Re-generate.
5932 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
5933 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
5934 (COMMON_OBS): Add "main.o" and "annotate.o".
5935 (ANNOTATE_OBS): Delete.
5936 (OBS): Remove ANNOTATE_OBS.
5937 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
5939 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
5940 against CONFIG_OBS and "main.o".
5941 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
5942 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
5944 * tui/tui-command.c: Include "gdb_string.h", delete register
5945 attribute, use ISO-C function signatures.
5946 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
5947 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
5948 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
5951 * tui/tui-command.c: Change variable and function names to lower
5953 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
5954 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
5955 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
5956 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
5957 * tui/tui-winsource.c, tui/tui.c: Ditto.
5959 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
5961 * buildsym.c (free_pending_blocks, finish_block)
5962 (record_pending_block, make_blockvector, end_symtab): Replace
5963 symbol_obstack with objfile_obstack.
5964 * coffread.c (process_coff_symbol, coff_read_struct_type)
5965 (coff_read_enum_type): Ditto.
5966 * cp-namespace.c (initialize_namespace_symtab)
5967 (check_one_possible_namespace_symbol): Ditto.
5968 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
5969 (dwarf2_symbol_mark_computed): Ditto.
5970 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
5971 * elfread.c (elf_symtab_read): Ditto.
5972 * hpread.c (hpread_symfile_init, hpread_symfile_init)
5973 (hpread_read_enum_type, hpread_read_function_type)
5974 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
5976 * jv-lang.c (get_java_class_symtab, add_class_symbol)
5977 (java_link_class_type): Ditto.
5978 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
5979 (new_symbol): Ditto.
5980 * minsyms.c (install_minimal_symbols): Ditto.
5981 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
5982 (terminate_minimal_symbol_table): Replace symbol_obstack with
5984 (free_objfile): Remove freeing of symbol_obstack.
5985 * objfiles.h: Remove symbol_obstack field.
5986 * pa64solib.c (add_to_solist): Replace symbol_obstack with
5988 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
5990 (solib_add_common_symbols): Replace symbol_obstack with
5992 * somsolib.c (som_solib_add): Ditto.
5993 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5994 (common_block_start, common_block_end): Ditto.
5995 * symfile.c (reread_symbols): Remove freeing and init of
5997 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
5998 * symfile.h: Update comment.
5999 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
6001 * symtab.c (symbol_set_names): Replace symbol_obstack with
6003 * symtab.h (struct general_symbol_info, struct minimal_symbol):
6005 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
6006 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
6009 2004-02-07 Andrew Cagney <cagney@redhat.com>
6011 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
6012 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
6013 fields and variables.
6014 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
6015 (m_beInvisible): Delete macro.
6016 * tui/tui-data.h: Fix case case fields and variables.
6017 (m_genWinPtrIsNull): Delete macro.
6018 (tui_win_list): Rename winList.
6019 (TUI_SRC_WIN): Rename srcWin.
6020 (TUI_DISASM_WIN): Rename disassemWin.
6021 (TUI_DATA_WIN): Rename dataWin.
6022 (TUI_CMD_WIN): Rename cmdWin.
6023 (m_genWinPtrNotNull): Delete macro.
6024 (m_winPtrIsNull): Delete macro.
6025 (m_winPtrNotNull): Delete macro.
6026 (tui_win_is_source_type): Replace m_winIsSourceType
6027 (tui_win_is_auxillary): Replace m_winIsAuzillary.
6028 (tui_win_has_locator): Replace m_hasLocator.
6029 (tui_set_win_highlight): Replace m_setWinHighlightOn and
6030 m_setWinHighlightOff.
6031 * tui/tui-data.c: Update references.
6032 (tui_win_is_source_type, tui_set_win_highlight): New functions.
6033 (tui_win_has_locator, tui_win_is_auxillary): New functions.
6034 * tui/tui-command.c, tui/tui-disasm.c: Update references.
6035 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
6036 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
6037 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
6038 * tui/tui-winsource.c, tui/tui.c: Ditto.
6040 2004-02-07 Mark Kettenis <kettenis@gnu.org>
6042 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
6043 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
6046 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
6047 variable `i6' to `i7'.
6048 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
6050 2004-02-07 Andrew Cagney <cagney@redhat.com>
6052 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
6053 (TuiPoint, TuiPointPtr): Ditto.
6054 (TuiStatus, TuiStatusPtr): Ditto.
6055 (TuiWinType, TuiWinTypePtr): Ditto.
6056 (struct tui_point): Rename _TuiPoint.
6057 (tui_get_low_disassembly_address): Rename
6058 tuiGetLowDisassemblyAddress.
6059 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
6060 (tuiFree): Delete declaration.
6061 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
6062 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
6063 * tui/tui.c (tuiFree): Delete function.
6064 * cli/cli-cmds.c (disassemble_command): Update references.
6065 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
6066 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
6067 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
6068 * tui/tui-winsource.c: Ditto.
6070 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
6072 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
6073 coffstab_build_psymtabs, elfstab_build_psymtabs)
6074 (stabsect_build_psymtabs): Replace psymbol_obstack with
6076 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
6077 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
6079 * dwarfread.c (scan_compilation_units): Ditto.
6080 * elfread.c (elfstab_offset_sections): Ditto.
6081 * hppa-tdep.c (read_unwind_info): Ditto.
6082 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
6083 (hpread_end_psymtab): Ditto.
6084 * mdebugread.c (mdebug_build_psymtabs, add_pending)
6085 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
6087 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
6088 * objfiles.c (add_to_objfile_sections)
6089 (build_objfile_section_table): Ditto.
6090 (allocate_objfile): Remove init of psymbol_obstack.
6091 (free_objfile): Remove freeing of psymbol_obstack.
6092 * objfiles.h (struct objfile): Remove field
6093 psymbol_obstack. Update comments.
6094 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
6095 psymbol_obstack with objfile_obstack.
6096 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
6098 * somread.c (som_symfile_offsets, init_import_symbols)
6099 (init_export_symbols): Replace psymbol_obstack with
6101 * somsolib.c (som_solib_add_solib_objfile): Ditto.
6102 * symfile.c (default_symfile_offsets, syms_from_objfile)
6103 (reread_symbols): Remove freeing and init of psymbol_obstack.
6104 (cashier_psymtab): Update comment.
6105 * symmisc.c (print_objfile_statistics): Don't report stats for
6107 * symtab.h (struct general_symbol_info, struct partial_symtab):
6109 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
6110 (xcoff_symfile_offsets): Replace psymbol_obstack with
6113 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
6115 * objfiles.h (struct objfile): Add objfile_obstack field.
6116 Remove type_obstack field.
6118 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
6119 read_structure_scope read_enumeration, new_symbol): Replace
6120 type_obstack with objfile_obstack.
6121 * dwarfread.c (struct_type, enum_type): Ditto.
6122 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
6123 (lookup_fundamental_type): Ditto.
6124 * gdbtypes.h (TYPE_ALLOC): Ditto.
6125 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
6126 (hpread_read_doc_function_type, hpread_read_struct_type)
6127 (fix_static_member_physnames, hpread_read_array_type)
6128 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
6129 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
6130 (java_link_class_type): Ditto.
6131 * mdebugread.c (parse_type): Ditto.
6132 * objfiles.c (allocate_objfile, free_objfile): Ditto.
6133 * solib-sunos.c (solib_add_common_symbols): Ditto.
6134 * stabsread.c (define_symbol, read_type, read_member_functions,
6135 read_cpp_abbrev, read_one_struct_field): Ditto.
6136 * symfile.c (reread_symbols): Ditto.
6137 * symmisc.c (print_objfile_statistics): Ditto.
6139 2004-02-07 Andrew Cagney <cagney@redhat.com>
6141 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
6142 (tui_exec_info_content): Rename TuiExecInfoContent.
6143 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
6144 (TuiWinInfo, TuiWinInfoPtr): Ditto.
6145 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
6146 (TuiList, TuiListPtr): Ditto.
6147 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
6148 (TuiDataType, TuiDataTypePtr): Ditto.
6149 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
6150 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
6151 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
6152 (TuiSourceElement, TuiSourceElementPtr): Ditto.
6153 (TuiDataElement, TuiDataElementPtr): Ditto.
6154 (TuiWinElement, TuiWinElementPtr): Ditto.
6155 (TuiDataInfo, TuiDataInfoPtr): Ditto.
6156 (TuiCommandElement, TuiCommandElementPtr): Ditto.
6157 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
6158 (TuiWhichElement, TuiWhichElementPtr): Ditto.
6159 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
6160 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
6161 * tui/tui-command.c, tui/tui-data.c: Update references.
6162 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
6163 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
6164 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
6165 * tui/tui-winsource.c, tui/tui.c: Ditto.
6167 2004-02-07 Mark Kettenis <kettenis@gnu.org>
6169 * dwarf2-frame.h: Update copyright.
6170 (enum dwarf2_frame_reg_rule): New.
6171 (struct dwarf2_frame_state_reg): New.
6172 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
6173 * dwarf2-frame.c: Update copyright.
6174 (enum dwarf2_reg_rule): Remove.
6175 (struct dwarf2_frame_state): Remove defenition of `struct
6176 dwarf2_frame_state_reg'.
6177 (read_reg): Call get_frame_arch to get the architecture instead of
6178 using CURRENT_GDBARCH.
6179 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
6181 (dwarf2_frame_init_reg): New function.
6182 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
6183 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
6184 initialize the register state. Prefix old `enum dwarf2_reg_rule'
6185 tags with DWARF2_FRAME_.
6186 (dwarf2_frame_prev_register): Call get_frame_arch to get the
6187 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
6188 dwarf2_reg_rule' tags with DWARF2_FRAME_.
6190 2004-02-06 Andrew Cagney <cagney@redhat.com>
6192 * tui/tui-data.h (struct tui_list): Rename _TuiList.
6193 (enum tui_data_type): Rename _TuiDataType.
6194 (struct tui_layout_def): Rename _TuiLayoutDef.
6195 (struct tui_source_element): Rename _TuiSourceElement.
6196 (struct tui_data_element): Rename _TuiDataElement.
6197 (struct tui_command_element): Rename _TuiCommandElement.
6198 (struct tui_locator_element): Rename _TuiLocatorElement.
6199 (union tui_which_element): Define.
6200 (struct tui_win_element): Rename _TuiWinElement.
6201 (struct tui_data_info): Rename _TuiDataInfo.
6202 (struct tui_source_info): Rename _TuiSourceInfo.
6203 (struct tui_command_info): Rename _TuiCommandInfo.
6204 (tui_initialize_static_data): Rename initializeStaticData.
6205 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
6206 (tui_alloc_win_info): Rename allocWinInfo.
6207 (tui_init_generic_part): Rename initGenericPart.
6208 (tui_init_win_info): Rename initWinInfo.
6209 (tui_alloc_content): Rename allocContent.
6210 (tui_add_content_elements): Rename addContentElements.
6211 (tui_init_content_element): Rename initContentElement.
6212 (tui_free_window): Rename freeWindow.
6213 (tui_free_win_content): Rename freeWinContent.
6214 (tui_free_data_content): Rename freeDataContent.
6215 (tui_free_all_source_wins_content): Rename
6216 freeAllSourceWinsContent.
6217 (tui_del_window): Rename tuiDelWindow.
6218 (tui_del_data_windows): Rename tuiDelDataWindows.
6219 (tui_partial_win_by_name): Rename partialWinByName.
6220 (tui_win_name): Rename winName.
6221 (tui_current_layout): Rename currentLayout.
6222 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
6223 (tui_term_height): Rename termHeight.
6224 (tui_set_term_height_to): Rename setTermHeightTo.
6225 (tui_term_width): Rename termWidth.
6226 (tui_set_term_width_to): Rename setTermWidthTo.
6227 (tui_set_gen_win_origin): Rename setGenWinOrigin.
6228 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
6229 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
6230 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
6231 (tui_source_windows): Rename sourceWindows.
6232 (tui_clear_source_windows): Rename clearSourceWindows.
6233 (tui_clear_source_windows_detail): Rename
6234 clearSourceWindowsDetail.
6235 (tui_clear_win_detail): Rename clearWinDetail.
6236 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
6237 (tui_default_tab_len): Rename tuiDefaultTabLen.
6238 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
6239 (tui_win_with_focus): Rename tuiWinWithFocus.
6240 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
6241 (tui_layout_def): Rename tuiLayoutDef.
6242 (tui_win_resized): Rename tuiWinResized.
6243 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
6244 (tui_next_win): Rename tuiNextWin.
6245 (tui_prev_win): Rename tuiPrevWin.
6246 (tui_add_to_source_windows): Rename addToSourceWindows.
6247 * tui/tui-winsource.c, tui/tui-win.c: Update references.
6248 * tui/tui-layout.c, tui/tui-source.c: Ditto.
6249 * tui/tui-stack.c, tui/tui-io.c: Ditto.
6250 * tui/tui.c, tui/tui-data.c: Ditto.
6251 * tui/tui-interp.c, tui/tui-data.c: Ditto.
6252 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
6254 * tui/tui-source.h: Update copyright. Include "tui-data.h".
6255 (struct symtab): Declare.
6256 (tui_set_source_content): Rename tuiSetSourceContent.
6257 (tui_show_symtab_source): Rename tuiShowSource.
6258 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
6259 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
6260 * tui/tui-source.c: Update copyright. Update references.
6261 * tui/tui-win.c, tui/tui-winsource.c: Update references.
6262 * tui/tui-stack.c: Update references.
6264 * tui/tui-win.h: Update copyright. Include "tui-data.h".
6265 (struct tui_win_info): Declare.
6266 (tui_scroll_forward): Rename tuiScrollForward.
6267 (tui_scroll_backward): Rename tuiScrollBackward.
6268 (tui_scroll_left): Rename tuiScrollLeft.
6269 (tui_scroll_right): Rename tuiScrollRight.
6270 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
6271 (tui_resize_all): Rename tuiResizeAll.
6272 (tui_refresh_all_win): Rename tuiRefreshAll.
6273 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
6274 * tui/tui-layout.c, * tui/tui-io.c: Update references.
6275 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
6276 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
6278 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
6279 (tui_erase_data_content): Rename tuiEraseDataContent.
6280 (tui_display_all_data): Rename tuiDisplayAllData.
6281 (tui_check_data_values): Rename tuiCheckDataValues.
6282 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
6283 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
6284 (tui_first_data_element_no_in_line): Rename
6285 tuiFirstDataElementNoInLine.
6286 (tui_delete_data_content_windows): Rename
6287 tuiDeleteDataContentWindows.
6288 (tui_refresh_data_win): Rename tuiRefreshDataWin.
6289 (tui_display_data_from): Rename tuiDisplayDataFrom.
6290 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
6291 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
6292 * tui/tui-win.c, tui/tui-regs.c: Update references.
6293 * tui/tui-layout.c, tui/tui.c: Update references.
6295 * tui/tui-wingeneral.h: Update copyright.
6296 (m_allBeVisible): Delete macro.
6297 (m_allBeInvisible): Delete macro.
6298 (struct tui_gen_win_info): Declare.
6299 (struct tui_win_info): Declare.
6300 (tui_unhighlight_win): Rename unhighlightWin.
6301 (tui_make_visible, tui_make_invisible): Replace makeVisible.
6302 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
6303 (tui_make_window): Rename makeWindow.
6304 (tui_copy_win): Rename copyWin.
6305 (tui_box_win): Rename boxWin.
6306 (tui_highlight_win): Rename highlightWin.
6307 (tui_check_and_display_highlight_if_needed): Rename
6308 checkAndDisplayHighlightIfNeeded.
6309 (tui_refresh_all): Rename refreshAll.
6310 (tui_delete_win): Rename tuiDelwin.
6311 (tui_refresh_win): Rename tuiRefreshWin.
6312 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
6313 (tui_make_visible, tui_make_invisible): New functions.
6314 (tui_make_all_visible, tui_make_all_invisible): New functions.
6315 (make_all_visible): Rename makeAllVisible.
6316 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
6317 * tui/tui-data.c, tui/tui-winsource.c: Update references.
6318 * tui/tui-windata.c, tui/tui-win.c: Update references.
6319 * tui/tui-regs.c, tui/tui-layout.c: Update references.
6320 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
6322 2004-02-06 Mark Kettenis <kettenis@gnu.org>
6324 * proc-api.c (write_with_trace): Initialize local variable to
6325 silence compiler warning.
6327 2004-02-06 Andrew Cagney <cagney@redhat.com>
6329 * tui/tui-source.h: Do not include "defs.h".
6330 (struct tui_win_info): Declare.
6331 (tui_set_source_content_nil): Declare.
6332 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
6333 (union tui_line_or_address): Rename _TuiLineOrAddress.
6334 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
6335 (tui_update_source_window): Rename tuiUpdateSourceWindow.
6336 (tui_update_source_window_as_is): Rename
6337 tuiUpdateSourceWindowAsIs.
6338 (tui_update_source_windows_with_addr): Rename
6339 tuiUpdateSourceWindowsWithAddr.
6340 (tui_update_source_windows_with_line): Rename
6341 tuiUpdateSourceWindowsWithLine.
6342 (tui_clear_source_content): Rename tuiClearSourceContent.
6343 (tui_erase_source_content): Rename tuiEraseSourceContent.
6344 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
6345 (tui_show_source_content): Rename tuiShowSourceContent.
6346 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
6347 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
6348 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
6349 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
6350 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
6351 (tui_update_exec_info): Rename tuiUpdateExecInfo.
6352 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
6353 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
6354 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
6355 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
6356 (struct tui_win_info): Declare.
6357 * tui/tui-stack.c: Update references.
6358 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
6359 * tui/tui-win.c, tui/tui-source.c: Ditto.
6360 * tui/tui.c, tui/tui-disasm.c: Ditto.
6362 2004-02-06 Mark Kettenis <kettenis@gnu.org>
6364 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
6365 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
6367 2004-02-05 Mark Kettenis <kettenis@gnu.org>
6369 * infrun.c (handle_inferior_event): Allow for breakpoint
6370 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
6371 and SIGEMT. Update comments.
6372 * NEWS (Revised SPARC target): Mention support for non-executable
6375 2004-02-04 Mark Kettenis <kettenis@gnu.org>
6377 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
6378 * inftarg.c: Update copyright year.
6379 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
6380 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
6381 (sparc_xfer_wcookie): New function.
6382 * sparc-tdep.c (sparc_fetch_wcookie): New function.
6383 * Makefile.in (sparc-nat.o): Update dependencies.
6384 * config/sparc/nm-nbsd.h: Include "target.h".
6385 (NATIVE_XFER_WCOOKIE): New define.
6386 (sparc_xfer_wcookie): New prototype.
6388 2004-02-04 Andrew Cagney <cagney@redhat.com>
6390 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
6391 SYSCALL_TRAP function.
6392 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
6394 2004-02-04 Andrew Cagney <cagney@redhat.com>
6395 Daniel Jacobowitz <drow@mvista.com>
6397 * objfiles.h: Delete comments refering to inside_entry_func and
6398 DEPRECATED_FRAME_CHAIN_VALID.
6399 * defs.h (inside_entry_func): Update prototype..
6400 * blockframe.c (inside_entry_func): Rename to
6401 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
6402 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
6404 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
6406 * breakpoint.c (struct captured_parse_breakpoint_args): Move
6407 outside of #ifdef SOLIB_ADD region.
6408 (do_restore_lang_radix_cleanup): Ditto.
6409 (resolve_pending_breakpoint): Ditto.
6411 2004-02-03 Andrew Cagney <cagney@redhat.com>
6413 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
6414 (process_note_abi_tag_sections): Delete unused function.
6415 (ia64_read_fp): Delete unused function.
6416 (gdbarch_extract_struct_value_address): Delete declaration.
6418 2004-02-02 Andrew Cagney <cagney@redhat.com>
6420 * vax-tdep.c (vax_frame_chain): Delete call to
6421 deprecated_inside_entry_file.
6422 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
6424 2004-02-02 Mark Kettenis <kettenis@gnu.org>
6426 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
6427 column that's "empty" or "same value" when eliminating REG_RA
6430 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
6432 * NEWS: Add information about new pending breakpoint support.
6434 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
6436 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
6437 and pending fields for pending breakpoint support.
6438 * breakpoint.c (breakpoint_enabled): Add check for not pending.
6439 (condition_command): Only parse condition if not a pending
6441 (print_one_breakpoint): Add support for pending breakpoints.
6442 (describe_other_breakpoints): Add checks to verify we are not
6443 dealing with pending breakpoints.
6444 (check_duplicates): Don't check pending breakpoints.
6445 (set_raw_breakpoint): Initialize pending flag.
6446 (do_restore_lang_radix_cleanup): New cleanup routine.
6447 (resolve_pending_breakpoint): New function.
6448 (re_enable_breakpoints_in_shlibs): Try and resolve any
6449 pending breakpoints via resolve_pending_breakpoint.
6450 (mention): Add pending breakpoint support.
6451 (parse_breakpoint_sals): Add new parameter to pass to
6452 decode_line_1 to indicate silent errors when files or functions
6453 are not found. Change all callers.
6454 (do_captured_parse_breakpoint): New function.
6455 (break_command_1): Change prototype to return an rc value and to
6456 take an optional pending breakpoint pointer. Support creating
6457 a pending breakpoint if a "not found" form of error occurs when
6458 parsing the breakpoint. Also support resolving an existing pending
6459 breakpoint and be silent if the resolution fails.
6460 (create_breakpoints): Change prototype to take pending breakpoint
6461 pointer. When resolving a pending breakpoint, use the new pointer
6462 to provide a conditional or commands added by the end-user.
6463 (delete_breakpoint): Add appropriate check for pending.
6464 (breakpoint_re_set_one): Ditto.
6465 (do_enable_breakpoint): Ditto.
6467 2004-02-02 David Carlton <carlton@kealia.com>
6469 * valops.c (enum oload_classification): New.
6470 (find_overload_match): Break implementation into separate
6471 functions; delete #if 0'd code; look for symbols within
6473 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
6474 (find_oload_champ,oload_method_static,classify_oload_match): New.
6475 * cp-support.h: Add declaration for cp_func_name; update
6476 declaration for make_symbol_overload_list.
6477 * cp-support.c (cp_func_name): New.
6478 (overload_list_add_symbol): Fix comment, use
6479 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
6480 (make_symbol_overload_list): Take a function name and a namespace
6481 instead of a symbol; change implementation.
6482 (make_symbol_overload_list_using): New.
6483 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
6485 2004-02-02 Fred Fish <fnf@redhat.com>
6487 * main.c (gdb_stdtarg): Move definition to group with other
6488 gdb_stdtarg definitions and update copyright years.
6489 * remote-sim.c (gdb_os_write_stderr): Write output to
6490 gdb_stdtargerr stream instead of gdb_stdtarg stream.
6491 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
6492 gdb_stderr stream and update copyright years.
6494 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
6496 * Makefile.in (mips-linux-nat.o): Update dependencies.
6497 * mips-linux-nat.c: Include mips-tdep.h.
6499 2004-02-01 Roland McGrath <roland@redhat.com>
6501 * sol-thread.c (sol_thread_xfer_partial): New function.
6502 (init_sol_thread_ops): Use that for to_xfer_partial hook.
6503 (init_sol_core_ops): Likewise.
6505 * procfs.c (procfs_xfer_partial): New function.
6506 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
6507 * Makefile.in (procfs.o): Add $(auxv_h) dep.
6509 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
6510 procfs_xfer_auxv function.
6512 * procfs.c (procfs_make_note_section): If we can read
6513 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
6514 * linux-proc.c (linux_make_note_section): Likewise.
6518 * Makefile.in (auxv_h): New variable.
6519 (COMMON_OBS): Add auxv.o here.
6520 (auxv.o): New target.
6522 * corelow.c (core_xfer_partial): New function.
6523 (init_core_ops): Use it for core_ops.to_xfer_partial.
6525 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
6526 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
6527 macro if that is defined.
6529 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
6531 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
6532 and check the specified thread for each breakpoint.
6533 * breakpoint.h (bpstat_stop_status): Update prototype.
6534 * infrun.c (handle_inferior_event): Update calls to
6537 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
6539 * Makefile.in (cli-cmds.o): Add $(readline_h).
6541 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
6543 * cli/cli-cmds.c: Include readline.h.
6544 (complete_command): Pass the start of the last word to
6547 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
6549 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
6550 argument, and change first argument to a CORE_ADDR.
6551 * breakpoint.h (bpstat_stop_status): Update prototype.
6552 * infrun.c (adjust_pc_after_break): Add a new comment.
6553 (handle_inferior_event): Update calls to bpstat_stop_status.
6555 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
6557 * breakpoint.h: Update copyright years.
6559 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
6561 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
6562 (bpstat_stop_status): Don't decrement PC.
6563 * breakpoint.h (software_breakpoint_inserted_here_p): Add
6565 * infrun.c (adjust_pc_after_break): New function.
6566 (handle_inferior_event): Call it, early. Remove later references
6567 to DECR_PC_AFTER_BREAK.
6568 (normal_stop): Add commentary.
6570 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
6572 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
6573 2004-01-27 double-free fix.
6575 2004-01-31 Mark Kettenis <kettenis@gnu.org>
6577 * sparc-tdep.c (sparc_fetch_wcookie): New function.
6578 (sparc32_frame_prev_register): Handle StackGhost.
6579 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
6581 2004-01-29 Roland McGrath <roland@redhat.com>
6583 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
6584 * configure: Regenerated.
6586 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
6587 * Makefile.in (procfs.o): Add dep.
6589 2004-01-28 Andrew Cagney <cagney@redhat.com>
6591 * tui/tui-stack.h: Update copyright.
6592 (struct frame_info): Add opaque declaration.
6593 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
6594 (tui_show_locator_content): Rename tuiShowLocatorContent.
6595 (tui_show_frame_info): Rename tuiShowFrameInfo.
6596 * tui/tui-stack.c: Update copyright. Update references.
6597 * tui/tui-winsource.c: Update references.
6598 * tui/tui-win.c: Update references.
6599 * tui/tui-layout.c: Update references.
6600 * tui/tui-hooks.c: Update copyright, update references.
6601 * tui/tui.c: Update copyright, update references.
6602 * tui/tui-disasm.c: Update references.
6604 2004-01-28 David Carlton <carlton@kealia.com>
6606 * dwarf2read.c (add_partial_structure): Use demangled name if
6607 namespace equals "".
6609 2004-01-27 Jim Blandy <jimb@redhat.com>
6611 Clean up misapplied patch:
6612 * dwarf2read.c (determine_prefix): Change one of the two forward
6613 declarations for 'determine_prefix_aux' to a declaration for this.
6614 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
6615 argument to 'die_specification'.
6617 * dwarf2read.c (read_func_scope): Re-indent comment.
6619 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
6621 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
6622 b->exp to NULL after freeing so that error during re-parsing or
6623 evaluation of expressions associated with breakpoint don't
6624 eventually lead to re-freeing of storage.
6625 Committed by Andrew Cagney.
6627 2004-01-27 Andrew Cagney <cagney@redhat.com>
6629 * source.c (ambiguous_line_spec): Delete undefined declaration.
6630 * m32r-rom.c (m32r_set_board_address): Delete unused function.
6631 (m32r_set_server_address, m32r_set_download_path): Ditto.
6632 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
6634 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
6636 * dwarf2read.c: Update calls to changed and renamed functions, and
6637 references to moved variables.
6639 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
6640 language, language_defn, list_in_scope, and ftypes members.
6641 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
6642 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
6643 (baseaddr): Remove globals.
6645 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
6646 (set_cu_language, die_is_declaration, die_specification)
6647 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
6648 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
6649 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
6650 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
6652 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
6653 cu.list_in_scope. Don't initialize cu_header_offset.
6654 (add_partial_symbol): Add local baseaddr.
6655 (psymtab_to_symtab_1): Add local baseaddr. Use
6656 objfile->section_offsets for consistency. Don't initialize
6657 cu_header_offset; do initialize cu.header.offset and
6659 (read_file_scope, read_func_scope, read_lexical_block_scope)
6660 (dwarf_decode_lines, new_symbol): Add local baseaddr.
6662 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
6664 * PROBLEMS: Add gdb/1516.
6666 2003-12-29 Robert Millan <robertmh@gnu.org>
6668 Patch committed by Andrw Cagney.
6669 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
6670 * configure.tgt: Match knetbsd*-gnu.
6672 2004-01-26 Andrew Cagney <cagney@redhat.com>
6674 * breakpoint.c (catch_command_1): Delete #ifdef code.
6675 (catch_fork_command_1): Delete #ifdef wrapper.
6676 (catch_exec_command_1): Ditto.
6677 (catch_load_command_1): Ditto.
6678 (catch_unload_command_1): Ditto.
6680 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
6681 (catch_breakpoint): Delete #if0ed function.
6682 (disable_catch_breakpoint): Ditto.
6683 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
6684 (disable_catch, enable_catch, delete_catch): Ditto.
6686 2004-01-26 Andrew Cagney <cagney@redhat.com>
6688 * remote.c (echo_check, quit_flag): Delete variables.
6689 (cisco_kernel_mode): Delete variable.
6690 (minitelnet_return, tty_input, escape_count): Delete variables.
6691 (remote_cisco_mode): Delete variable.
6692 (remote_cisco_open, remote_cisco_close): Delete function.
6693 (remote_cisco_mourn, remote_cisco_wait): Delete function.
6694 (init_remote_cisco_ops): Delete function.
6695 (_initialize_remote): Do not install "remote cisco" code.
6696 (read_frame): Delete cisco specific code.
6697 (remote_info_process): Delete function.
6698 (remote_wait): Delete cisco specific code.
6699 (remote_cisco_section_offsets): Delete function.
6700 (remote_cisco_objfile_relocate): Delete function.
6701 (remote_async_wait): Delete cisco specific code.
6702 (minitelnet, readtty, readsocket): Delete function.
6704 2004-01-26 Andrew Cagney <cagney@redhat.com>
6706 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
6707 comments mentioning extract_returned_value_address.
6708 * infcmd.c (print_return_value): Update. Add comments on
6709 extract_returned_value_address.
6710 * stack.c (return_command): Add comments on
6711 extract_returned_value_address.
6712 * values.c: Update comment.
6713 * m32r-tdep.c: Update comment.
6714 * sparc-tdep.c: Update comment.
6715 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
6716 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6717 * sh64-tdep.c (sh64_gdbarch_init): Update.
6718 * sh-tdep.c (sh_gdbarch_init): Update.
6719 * s390-tdep.c (s390_gdbarch_init): Update.
6720 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6721 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6722 * m68k-tdep.c (m68k_gdbarch_init): Update.
6723 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6724 * m32r-tdep.c (m32r_gdbarch_init): Update.
6725 * ia64-tdep.c (ia64_gdbarch_init): Update.
6726 * h8300-tdep.c (h8300_gdbarch_init): Update.
6727 * frv-tdep.c (frv_gdbarch_init): Update.
6728 * arm-tdep.c (arm_gdbarch_init): Update.
6729 * alpha-tdep.c (alpha_gdbarch_init): Update.
6731 2004-01-26 Andrew Cagney <cagney@redhat.com>
6733 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
6734 SYMBOL_LOCATION_FUNCS
6735 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
6736 "struct symbol_ops".
6737 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
6738 type to "struct symbol_ops".
6739 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
6740 (struct symbol): Replace ".aux_value.loc.funcs" and
6741 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
6742 (SYMBOL_OBJFILE): Delete macro.
6743 (SYMBOL_LOCATION_FUNCS): Delete macro.
6744 (SYMBOL_LOCATION_BATON): Update.
6745 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
6746 intead of SYMBOL_LOCATION_FUNCS.
6747 * ax-gdb.c (gen_var_ref): Ditto.
6748 * printcmd.c (address_info): Ditto.
6749 * findvar.c (read_var_value): Ditto.
6750 (symbol_read_needs_frame): Ditto.
6752 2004-01-26 Andrew Cagney <cagney@redhat.com>
6754 * dwarf2read.c (read_func_scope): Document frame-base hack.
6756 2004-01-25 Mark Kettenis <kettenis@gnu.org>
6758 * infcmd.c (print_return_value): Plug memory leak; delete
6759 ui_stream object. Rename argument `structure_return' to
6762 2004-01-25 Mark Kettenis <kettenis@gnu.org>
6764 * infcmd.c (print_return_value): Wrap long lines.
6765 (finish_command_continuation, finish_command): Remove unused
6766 variable `funcaddr'. Fix some coding-standards problems.
6768 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
6769 SECT_SIZE is large enough, not whether it's exactly the right size.
6770 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
6771 TDEP->fpregset to zero.
6773 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
6774 floating-point registers for traditional NetBSD core files.
6775 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
6776 TDEP->sizeof_fpregset here.
6778 2004-01-25 Mark Kettenis <kettenis@gnu.org>
6780 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
6781 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
6782 function with code split out from
6783 sparc32nbsd_sigcontext_frame_cache.
6784 (sparc32nbsd_sigcontext_frame_cache): Use
6785 sparc32nbsd_sigcontext_saved_regs.
6786 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
6788 * sparcobsd-tdep.c: New file.
6789 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
6790 (sparcobsd-tdep.o): New dependency.
6791 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
6792 * config/sparc/obsd.mt: New file.
6794 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
6795 TDEP->fpregset to be initialized to enable core file register
6798 2004-01-24 Mark Kettenis <kettenis@gnu.org>
6800 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
6801 Add opaque declarations.
6802 (sparc64nbsd_sigcontext_saved_regs): New prototype.
6803 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
6804 function with code split out from
6805 sparc64nbsd_sigcontext_frame_cache.
6806 (sparc64nbsd_sigcontext_frame_cache): Use
6807 sparc64nbsd_sigcontext_saved_regs.
6808 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
6810 * sparc64obsd-tdep.c: New file.
6811 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
6812 (sparc64obsd-tdep.o): New dependency.
6813 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
6814 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
6815 * config/sparc/obsd64.mt: New file.
6817 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
6818 read the instruction at PC.
6820 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
6821 value of GDB_OSABI_DEFAULT.
6822 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
6823 instead of GDB_OSABI_NETBSD_AOUT.
6825 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
6827 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
6830 2004-01-23 Andrew Cagney <cagney@redhat.com>
6832 * printcmd.c (display_command): Replace tui_set_display call with
6833 tui_set_layout_for_display_command.
6834 * tui/tui.h (enum tui_win_type): Define.
6835 (tui_set_layout): Delete declaration.
6836 (tui_set_layout_for_display_command): Rename set_tui_layout.
6837 * tui/tui-data.h (enum tui_layout_type): Define.
6838 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
6840 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
6841 (tui_default_win_height): Rename tuiDefaultWinHeight.
6842 (tui_default_win_viewport_height): Rename
6843 tuiDefaultWinViewportHeight.
6844 (tui_set_layout): RenametuiSetLayout.
6845 * tui/tui-layout.c: Update references.
6846 * tui/tui.c: Update references.
6847 * tui/tui-disasm.c: Update references.
6849 2004-01-23 David Carlton <carlton@kealia.com>
6851 Partial workaround for PR c++/1511:
6852 * cp-namespace.c: Include frame.h.
6853 (cp_lookup_transparent_type): New
6854 (cp_lookup_transparent_type_loop): New.
6855 * cp-support.h: Declare cp_lookup_transparent_type.
6856 * symtab.c (basic_lookup_transparent_type): Renamed from
6857 lookup_transparent_type.
6858 (lookup_transparent_type): Replace old body by a call to
6859 current_language->la_lookup_transparent_type.
6860 * symtab.h: Update copyright. Declare
6861 basic_lookup_transparent_type.
6862 * language.h: Update copyright.
6863 (struct language_defn): Add la_lookup_transparent_type.
6864 * language.c: Update copyright.
6865 (unknown_language_defn): Add basic_lookup_transparent_type.
6866 (auto_language_defn): Add basic_lookup_transparent_type.
6867 (local_language_defn): Add basic_lookup_transparent_type.
6868 * ada-lang.c: Update copyright.
6869 (ada_language_defn): Add basic_lookup_transparent_type.
6870 * c-lang.c: Update copyright.
6871 (c_language_defn): Add basic_lookup_transparent_type.
6872 (cplus_language_defn): Add basic_lookup_transparent_type.
6873 (asm_language_defn): Add basic_lookup_transparent_type.
6874 (minimal_language_defn): Add basic_lookup_transparent_type.
6875 * f-lang.c: Update copyright.
6876 (f_language_defn): Add basic_lookup_transparent_type.
6877 * jv-lang.c: Update copyright.
6878 (java_language_defn): Add basic_lookup_transparent_type.
6879 * m2-lang.c: Update copyright.
6880 (m2_language_defn): Add basic_lookup_transparent_type.
6881 * objc-lang.c: Update copyright.
6882 (objc_language_defn): Add basic_lookup_transparent_type.
6883 * p-lang.c: Update copyright.
6884 (p_language_defn): Add basic_lookup_transparent_type.
6885 * scm-lang.c: Update copyright.
6886 (scm_language_defn): Add basic_lookup_transparent_type.
6887 * Makefile.in (cp-namespace.o): Depend on frame.h.
6889 2004-01-23 David Carlton <carlton@kealia.com>
6891 Patch for PR c++/1520:
6892 * dwarf2read.c (read_func_scope): Set processing_current_prefix
6893 properly if we have a specification die.
6894 (determine_prefix_aux): Rename from determine_prefix.
6895 (determine_prefix): Like the old determine_prefix, but never
6898 2004-01-23 Theodore A. Roth <troth@openavr.org>
6900 * avr-tdep.c: Update copyright.
6901 (avr_iaddr_p): Delete unused function.
6902 (avr_saddr_p): Delete unused function.
6904 2004-01-23 David Carlton <carlton@kealia.com>
6906 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
6907 Fix for PR symtab/1534.
6909 2004-01-23 Mark Kettenis <kettenis@gnu.org>
6911 * NEWS (New native configurations): Mention OpenBSD/sparc and
6913 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
6914 * configure.host: Likewise.
6915 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
6916 handler for OpenBSD.
6917 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
6919 2004-01-22 Mark Kettenis <kettenis@gnu.org>
6921 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
6922 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
6924 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
6925 * cli/cli-cmds.c (shell_escape): Likewise.
6927 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
6928 OpenBSD .note.openbsd.ident sections.
6930 2004-01-22 David Carlton <carlton@kealia.com>
6932 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
6933 get_scope_pc_bounds.
6934 (read_file_scope): Ditto.
6935 (get_scope_pc_bounds): New function, produced by extracting code
6936 from the above two functions, consolidating it, and adding support
6937 for DW_TAG_namespace.
6939 2004-01-22 Mark Kettenis <kettenis@gnu.org>
6941 * osabi.c (MAX_NOTESZ): New define.
6942 (check_note): New function.
6943 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
6946 2004-01-21 Roland McGrath <roland@redhat.com>
6948 * MAINTAINERS (write after approval): Add myself.
6950 2004-01-21 Eli Zaretskii <eliz@gnu.org>
6952 * utils.c (init_page_info): Move declarations of `rows' and
6953 `cols' before the __GO32__-specific code. Move the closing brace
6954 outside the #ifdef __GO32__..#endif block.
6955 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
6957 2004-01-21 Paul Brook <paul@codesourcery.com>
6959 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
6960 BPSTAT_WHAT_CHECK_SHLIBS.
6962 2004-01-21 Paul Brook <paul@codesourcery.com>
6964 * MAINTAINERS: Add myself to write-after-approval.
6966 2004-01-20 Andrew Cagney <cagney@redhat.com>
6968 * ax-gdb.c (print_axs_value): Delete unused function.
6969 * jv-lang.c (java_lookup_type): Delete unused function.
6970 * cli/cli-dump.c (dump_filetype): Delete unused function.
6971 * remote-mips.c (remote_mips_insert_hw_breakpoint)
6972 (remote_mips_remove_hw_breakpoint): Delete unused functions.
6973 (mips_getstring): Delete unused function.
6974 (pmon_insert_breakpoint): Delete #if0ed function.
6975 (PMON_MAX_BP): Delete #if0ed MACRO.
6976 (mips_pmon_bp_info): Delete #if0ed variable.
6977 (pmon_remove_breakpoint): Delete #if0ed function.
6978 * monitor.c (monitor_write_even_block): Delete unused function.
6979 (monitor_write_memory_block): Delete #if0ed code.
6980 * dink32-rom.c (dink32_load): Delete unused function.
6981 (_initialize_dink32_rom): Delete #if0ed code.
6982 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
6984 * tui/tui-command.c: Update references.
6985 * tui/tui-io.c: Update references.
6986 * tui/tui-command.h: Update copyright.
6987 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
6989 * source.c (ambiguous_line_spec): Delete never-defined function.
6990 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
6991 * gdbtypes.c (add_name, add_mangled_type): Ditto.
6992 * cli/cli-cmds.c (validate_comname): Ditto.
6994 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
6996 (tui_set_disassem_content): Rename tuiSetDisassemContent.
6997 (tui_show_disassem): Rename tuiShowDisassem.
6998 (tui_show_disassem_and_update_source): Rename
6999 tuiVerticalDisassemScroll.
7000 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
7001 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
7002 * tui/tui.h: Update copyright.
7003 (enum tui_status): Define.
7004 * tui/tui-data.h (enum tui_scroll_direction): Define.
7005 * tui/tui-disasm.c: Update copyright. Update references.
7006 * tui/tui-winsource.c: Update copyright. Update references.
7007 * tui/tui-win.c: Update references.
7008 * tui/tui-layout.c: Update references.
7010 2004-01-20 Andrew Cagney <cagney@redhat.com>
7012 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
7013 sym2 to start of block.
7015 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
7017 * MAINTAINERS: Delete mmalloc.
7018 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
7019 * NEWS: Mention removal of --with-malloc.
7020 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
7021 * config.in: Regenerate.
7022 * configure: Regenerate.
7023 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
7024 USE_MMALLOC, MMCHECK_FORCE.
7025 * gdbinit.in: Remove mmalloc.
7026 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
7027 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
7028 * config/i386/go32.mh: Likewise.
7029 * config/i386/interix.mh: Likewise.
7030 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
7032 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
7034 * linespec.c (decode_variable, symtab_from_filename): Call
7035 error_silent with error message instead of throwing an exception
7037 * defs.h (error_silent, error_output_message): Add prototypes.
7038 (catch_exceptions_with_msg): Ditto.
7039 * utils.c (error_silent, error_output_message): New functions.
7040 * top.c (catch_exceptions_with_msg): New function.
7042 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
7044 * mi/mi-cmds.h (enum print_values): Add definition.
7046 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
7047 type and value for simple data types and just the name and type
7048 for complex ones, if required.
7050 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
7051 children, if required.
7053 2004-01-19 Kevin Buettner <kevinb@redhat.com>
7055 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
7056 unused declarations.
7058 2004-01-19 Andrew Cagney <cagney@redhat.com>
7060 * top.h (mapped_symbol_files): Delete declaration.
7061 * main.c (captured_main): Delete option "m" and "mapped".
7062 * objfiles.c (mapped_symbol_files): Delete variable.
7063 * symfile.c (symbol_file_command): Delete mmap code.
7064 (symbol_file_add_with_addrs_or_offsets): Ditto.
7065 (add_symbol_file_command, reread_separate_symbols): Ditto.
7066 * objfiles.h (OBJF_MAPPED): Delete.
7067 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
7068 (free_objfile) [USE_MMALLOC]: Ditto.
7069 (open_existing_mapped_file): Delete function.
7070 (open_mapped_file): Delete function.
7071 (map_to_file): Delete function.
7073 2004-01-19 Kevin Buettner <kevinb@redhat.com>
7075 * infrun.c (step_into_function): Account for possible breakpoint
7076 adjustment when computing ``stop_func_start''.
7078 2004-01-19 Kevin Buettner <kevinb@redhat.com>
7080 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
7081 the region size against the size of a pointer, not the size of
7082 a register as given by DEPRECATED_REGISTER_SIZE.
7084 2004-01-19 Andrew Cagney <cagney@redhat.com>
7086 * tui/tui-regs.h: Include "tui-data.h".
7087 (tuiFirstRegElementNoInLine): Delete declaration.
7088 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
7089 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
7090 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
7091 (tui_calculate_regs_column_count): Rename
7092 tuiCalculateRegsColumnCount.
7093 (tui_check_register_values): Rename tuiCheckRegisterValues.
7094 (tui_show_registers): Rename tuiShowRegisters.
7095 (tui_display_registers_from_line): Rename
7096 tuiDisplayRegistersFromLine.
7097 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
7098 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
7099 (tui_first_reg_element_no_inline): Rename
7100 tuiFirstRegElementNoInLine.
7101 * tui/tui-data.h: Update copyright.
7102 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
7103 * tui/tui-windata.c: Update copyright, update references.
7104 * tui/tui-regs.c: Update copyright, update references.
7105 * tui/tui-win.c: Update copyright, update references.
7106 * tui/tui-layout.c: Update copyright, update references.
7108 2004-01-18 Andrew Cagney <cagney@redhat.com>
7110 * tui/tui-io.c: Update copyright.
7111 (key_is_end_sequence, key_is_backspace): New functions.
7112 (key_is_command_char, key_is_start_sequence): New function.
7113 (tui_getc): Update references.
7114 * tui/tui-io.h: Update copyright.
7115 (m_tuiStartNewLine): Delete macro.
7116 (m_isBackspace, m_isDeleteChar): Delete macros.
7117 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
7118 (m_isNextPage, m_isPrevPage): Delete macros.
7119 (m_isLeftArrow, m_isRightArrow): Delete macros.
7120 (m_isXdbStyleCommandChar): Delete macro.
7121 (key_is_start_sequence): Declare, replace m_isStartSequence.
7122 (key_is_end_sequence): Declare, replace m_isEndSequence.
7123 (key_is_backspace): Declare ,replace m_isBackspace.
7124 (key_is_command_char): Declare, replace m_isCommandChar.
7125 * tui/tui-command.c: Update copyright.
7126 (tuiDispatchCtrlChar): Update references.
7128 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
7131 * tui/tui-command.c: Rename tui/tuiCommand.c.
7132 * tui/tui-command.h: Rename tui/tuiCommand.h.
7133 * tui/tui-data.c: Rename tui/tuiData.c.
7134 * tui/tui-data.h: Rename tui/tuiData.h.
7135 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
7136 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
7137 * tui/tui-io.c: Rename tui/tuiIO.c.
7138 * tui/tui-io.h: Rename tui/tuiIO.h.
7139 * tui/tui-layout.c: Rename tui/tuiLayout.c.
7140 * tui/tui-layout.h: Rename tui/tuiLayout.h.
7141 * tui/tui-regs.c: Rename tui/tuiRegs.c.
7142 * tui/tui-regs.h: Rename tui/tuiRegs.h.
7143 * tui/tui-source.c: Rename tui/tuiSource.c.
7144 * tui/tui-source.h: Rename tui/tuiSource.h.
7145 * tui/tui-stack.c: Rename tui/tuiStack.c.
7146 * tui/tui-stack.h: Rename tui/tuiStack.h.
7147 * tui/tui-win.c: Rename tui/tuiWin.c.
7148 * tui/tui-win.h: Rename tui/tuiWin.h.
7149 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
7150 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
7151 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
7152 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
7153 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
7154 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
7155 * tui/tui-file.c: Update includes.
7156 * tui/tui-hooks.c: Update includes.
7157 * tui/tui-interp.c: Update includes.
7158 * tui/tui.c: Update includes.
7159 * Makefile.in: Update all tui/ dependencies.
7160 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
7162 * Makefile.in: Update copyright. Update dependencies.
7164 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
7167 2004-01-18 Andrew Cagney <cagney@redhat.com>
7169 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
7170 instead of register_gdbarch_init.
7172 * remote-sds.c (tohex): Delete unused function. Update copyright.
7173 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
7174 * v850-tdep.c (v850_register_virtual_size): Ditto.
7175 * target.c (normal_target_post_startup_inferior): Ditto.
7176 * source.c (ambiguous_line_spec): Ditto.
7177 * remote.c (adapt_remote_get_threadinfo): Ditto.
7178 * mi/mi-out.c (out_field_fmt): Ditto.
7179 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
7180 (output_control_change_notification): Ditto.
7181 * m68k-tdep.c (m68k_register_byte): Ditto.
7182 (m68k_remote_breakpoint_from_pc): Ditto.
7183 * ui-out.c (init_ui_out_state): Delete unused declaration.
7184 * stabsread.c (search_value): Ditto.
7185 * mi/mi-cmd-env.c (env_cli_command): Ditto.
7186 * maint.c (print_section_table): Ditto.
7187 * infrun.c (set_follow_fork_mode_command): Ditto.
7189 2004-01-18 Mark Kettenis <kettenis@gnu.org>
7191 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
7192 DW_CFA_def_cfa_exporession. Add support for
7193 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
7194 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
7196 2004-01-18 Andrew Cagney <cagney@redhat.com>
7198 * ocd.c: Update copyright.
7199 (bdm_read_register_command): Delete unused function.
7200 (_initialize_remote_ocd): Delete commented out reference.
7201 (get_quoted_char, reset_packet): Delete #if0ed function.
7202 (output_packet, put_quoted_char): Delete #if0ed function.
7203 (stu_put_packet, stu_get_packet): Delete #if0ed function.
7204 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
7205 (BDM_BREAKPOINT): Delete #if0ed macro.
7206 (remote_timeout): Delete #if0ed variable.
7208 2004-01-18 Mark Kettenis <kettenis@gnu.org>
7210 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
7211 (core-sol2.o): Remove dependency.
7212 * core-sol2.c: Remove file.
7214 2004-01-17 Andrew Cagney <cagney@redhat.com>
7216 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
7217 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
7220 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
7222 * remote.c: Update copyright years.
7224 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
7226 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
7228 2004-01-17 Andrew Cagney <cagney@redhat.com>
7230 * mdebugread.c: Update copyright.
7231 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
7232 (parse_type, parse_procedure): Ditto.
7233 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
7235 * cris-tdep.c (cris_store_struct_return): Put back accidently
7238 * gdbarch.sh: Update copyright year.
7239 * gdbarch.h, gdbarch.c: Re-generate.
7241 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
7243 Suggested by George Anzinger.
7244 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
7245 correct stack offset. Include unknown opcode numbers in the error
7248 2004-01-17 Andrew Cagney <cagney@redhat.com>
7250 * x86-64-tdep.c (x86_64_init_abi): No need to clear
7251 extract_struct_value_address, i386 does not set it.
7252 * sparc64-tdep.c (sparc64_init_abi): Do not set
7253 extract_struct_value_address, never called.
7254 (sparc64_extract_struct_value_address): Delete function.
7255 * m68hc11-tdep.c: Update copyright.
7256 (m68hc11_gdbarch_init): Delete redundant assignment of
7257 extract_struct_value_address.
7258 * i386-tdep.c: Update copyright.
7259 (i386_gdbarch_init): Do not set extract_struct_value_address,
7261 (i386_extract_struct_value_address): Delete function.
7262 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
7263 extract_struct_value_address, never called.
7264 (sparc32_extract_struct_value_address): #if 0 function. Add
7265 comments explaining its future.
7267 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
7269 * arm-tdep.c (arm_write_pc): New function.
7270 (arm_gdbarch_init): Call set_gdbarch_write_pc.
7272 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
7274 * breakpoint.c (must_shift_inst_regs): Delete.
7275 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
7276 and SHIFT_INST_REGS.
7277 * infcmd.c (step_1, step_1_continuation): Delete references to
7279 * infrun.c (keep_going): Likewise.
7280 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
7281 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
7283 2004-01-17 Andrew Cagney <cagney@redhat.com>
7285 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
7286 * gdbarch.h, gdbarch.c: Re-generate.
7287 * infcmd.c (print_return_value): Delete reference to
7288 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7290 * cris-tdep.c (cris_gdbarch_init): Do not set
7291 deprecated_extract_struct_value_address.
7293 * xstormy16-tdep.c: Update copyright.
7294 (xstormy16_extract_struct_value_address): Update to current
7295 extract struct value address interface.
7296 (xstormy16_gdbarch_init): Set extract_struct_value_address.
7297 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
7298 current extract struct value address interface.
7299 (sh64_gdbarch_init): Set extract_struct_value_address.
7301 * cris-tdep.c: Update copyright.
7302 (cris_extract_struct_value_address): Delete function.
7303 (struct_return_address): Delete variable.
7304 (cris_store_struct_return): Do not set struct_return_address.
7306 * mcore-tdep.c: Update copyright.
7307 (mcore_extract_struct_value_address): Delete function. Update
7309 (mcore_gdbarch_init): Update.
7310 * mn10300-tdep.c: Update copyright.
7311 (mn10300_extract_struct_value_address): Delete function.
7312 (mn10300_gdbarch_init): Update.
7313 * v850-tdep.c: Update copyright.
7314 (v850_extract_struct_value_address): Delete.
7315 (v850_gdbarch_init): Update.
7316 * ns32k-tdep.c: Update copyright.
7317 (ns32k_extract_struct_value_address): Delete.
7318 (ns32k_gdbarch_init): Update.
7319 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
7320 (hppa_gdbarch_init): Update.
7321 * vax-tdep.c: Update copyright.
7322 (vax_extract_struct_value_address): Delete.
7323 (vax_gdbarch_init): Update.
7325 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
7326 * gdbarch.h, gdbarch.c: Re-generate.
7327 * procfs.c (procfs_fetch_registers): Delete reference to
7328 DEPRECATED_NPC_REGNUM.
7329 (procfs_store_registers): Ditto.
7330 * regcache.c (generic_target_write_pc): Simplify.
7331 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
7333 * core-sol2.c (fetch_core_registers): Replace
7334 DEPRECATED_NPC_REGNUM with equivalent tdep value.
7336 * hppa-tdep.c: Update copyright year.
7337 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
7339 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
7341 * mips-tdep.c (mips_write_pc): New function.
7342 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
7343 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
7344 (mips_find_saved_regs, mips_software_single_step: Ditto.
7345 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
7346 mips_init_extra_frame_info, mips_pop_frame): Ditto.
7348 2004-01-17 Andrew Cagney <cagney@redhat.com>
7350 * mips-tdep.c: Re-indent. Group functions by ABI.
7352 2004-01-17 Andrew Cagney <cagney@redhat.com>
7354 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
7355 * gdbarch.c: Re-generate.
7356 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7357 DECR_PC_AFTER_BREAK to zero.
7358 * vax-tdep.c (vax_gdbarch_init): Ditto.
7359 * v850-tdep.c (v850_gdbarch_init): Ditto.
7360 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
7361 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7362 * sh-tdep.c (sh_gdbarch_init): Ditto.
7363 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7364 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7365 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7366 * mips-tdep.c (mips_gdbarch_init): Ditto.
7367 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7368 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7369 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
7370 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7371 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
7372 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7373 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7374 * frv-tdep.c (frv_gdbarch_init): Ditto.
7375 * cris-tdep.c (cris_gdbarch_init): Ditto.
7376 * avr-tdep.c (avr_gdbarch_init): Ditto.
7377 * arm-tdep.c (arm_gdbarch_init): Ditto.
7378 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
7380 2004-01-17 J. Brobecker <brobecker@gnat.com>
7382 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
7383 Delete, no longer used.
7384 (read_subrange_type): New function, mostly extracted from
7386 (read_array_type): Replace extracted code by call to
7387 read_subrange_type().
7388 (dwarf2_get_attr_constant_value): New function.
7389 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
7390 (add_partial_symbol): Likewise.
7391 (process_die): Likewise.
7392 (new_symbol): Likewise.
7393 (read_type_die): Likewise.
7395 2004-01-16 Andrew Cagney <cagney@redhat.com>
7397 * symfile.c: Update copyright year.
7398 (compare_symbols): Delete unused function.
7399 * stabsread.c: Update copyright year.
7400 (lrs_general_complaint): Delete unused function.
7401 (ref_search_value): Ditto.
7402 (get_substring): Delete declaration.
7403 * sh64-tdep.c: Update copyright year.
7404 (sh64_get_gdb_regnum): Delete unused function.
7405 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
7406 Delete unused function.
7408 2004-01-17 Mark Kettenis <kettenis@gnu.org>
7410 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
7411 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
7413 2004-01-16 Andrew Cagney <cagney@redhat.com>
7415 Changes from Peter Schauer.
7416 * rs6000-tdep.c: Update copyright year.
7417 (rs6000_push_dummy_call): Update the stack pointer before
7418 accessing the corresponding stack region.
7419 * rs6000-nat.c: Update copyright year.
7420 (set_host_arch): Set "info.abfd" to "exec_bfd".
7422 2004-01-15 Mark Kettenis <kettenis@gnu.org>
7424 * blockframe.c: Update copyright year.
7425 (inside_entry_func): Don't treat a zero PC specially.
7427 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
7429 * gcore.c (gcore_copy_callback): Use paddr_d to print size
7431 (gcore_create_callback): Ditto. Skip any memory segment that has
7434 2004-01-14 David Carlton <carlton@kealia.com>
7436 Change symbols for C++ nested types to contain the fully qualified
7437 name, if possible. (At least in the DWARF-2 case.) Partial fix
7438 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
7440 * c-exp.y (qualified_type): Handle types nested within classes.
7441 * cp-namespace.c: Update comments.
7442 (cp_set_block_scope): Delete #if 0.
7443 (cp_lookup_nested_type): Handle types nested within classes.
7444 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
7446 (add_partial_symbol): Add the name of the enclosing namespace to
7448 (pdi_needs_namespace): New.
7449 (add_partial_namespace): Tweak comment.
7450 (add_partial_structure): New.
7451 (psymtab_to_symtab_1): Initialize processing_current_prefix
7453 (process_die): instead of here.
7454 (read_structure_scope): Try to figure out the name of the class or
7455 namespace that the structure might be defined within.
7456 (read_enumeration): Generate fully-qualified names, if possible.
7457 (read_namespace): Don't set name to NULL.
7458 (die_specification): New.
7459 (new_symbol): Generate fully-qualified names for types.
7460 (read_type_die): Determine appropriate prefix.
7461 (determine_prefix): New.
7462 (typename_concat): New.
7464 * valops.c (value_aggregate_elt): Pass NOSIDE to
7465 value_struct_elt_for_reference.
7466 (value_struct_elt_for_reference): Make static, add NOSIDE
7467 parameter, call value_maybe_namespace_elt as a last resort.
7468 (value_namespace_elt): Break out code into
7469 value_maybe_namespace_elt.
7470 (value_maybe_namespace_elt): New.
7472 2004-01-12 Andrew Cagney <cagney@redhat.com>
7474 * mips-tdep.c (mips_convert_register_p): Handle both raw and
7475 cooked floating-point registers.
7476 (mips_gdbarch_init): Set convert_register_p, register_to_value,
7477 and value_to_register.
7479 2004-01-13 Andrew Cagney <cagney@redhat.com>
7481 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
7482 * gdbarch.c: Re-generate.
7483 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7484 FUNCTION_START_OFFSET.
7485 * v850-tdep.c (v850_gdbarch_init): Ditto.
7486 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
7487 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7488 * sh-tdep.c (sh_gdbarch_init): Ditto.
7489 * s390-tdep.c (s390_gdbarch_init): Ditto.
7490 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7491 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7492 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7493 * mips-tdep.c (mips_gdbarch_init): Ditto.
7494 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7495 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7496 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7497 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
7498 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7499 * i386-tdep.c (i386_gdbarch_init): Ditto.
7500 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7501 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7502 * frv-tdep.c (frv_gdbarch_init): Ditto.
7503 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7504 * cris-tdep.c (cris_gdbarch_init): Ditto.
7505 * avr-tdep.c (avr_gdbarch_init): Ditto.
7506 * arm-tdep.c (arm_gdbarch_init): Ditto.
7507 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7509 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
7511 * infrun.c (follow_fork_mode_ask): Remove.
7512 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
7513 (follow_fork): Simplify and remove internal error for
7514 follow_fork_mode_ask.
7515 (_initialize_infrun): Update "set follow-fork-mode" help text.
7517 2004-01-13 Andrew Cagney <cagney@redhat.com>
7519 * configure.in: Update copyright year.
7520 (build_warnings): Add -Wunused-label.
7521 * configure: Re-generate.
7523 2004-01-12 Andrew Cagney <cagney@redhat.com>
7525 * exec.h (exec_ops): Make "extern".
7527 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
7528 the function is void.
7529 (mips_pseudo_register_write): Ditto.
7531 2004-01-12 Andrew Cagney <cagney@redhat.com>
7533 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
7534 call. Never defined.
7535 * sparc-tdep.h (struct frame_info): Add opaque declaration.
7536 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
7537 (struct sparc_gregset, struct regcache): Ditto.
7538 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
7540 2004-01-12 Andrew Cagney <cagney@redhat.com>
7542 * mi/ChangeLog: Delete file. Renamed to ...
7543 * mi/ChangeLog-1999-2003: New file.
7544 * tui/ChangeLog: Delete file. Renamed to ...
7545 * tui/ChangeLog-1998-2003: New file.
7547 2004-01-11 Mark Kettenis <kettenis@gnu.org>
7549 * sparc64nbsd-tdep.c: Include "regset.h".
7550 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
7552 (fetch_core_registers): Remove function.
7553 (sparc64nbsd_core_fns): Remove variable.
7554 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
7556 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
7557 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
7558 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
7560 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
7561 sparc_extract_struct_value_address.
7562 (sparc32_gdbarch_init): Set extract_struct_value_address.
7563 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
7565 (sparc64_init_abi): Set extract_struct_value_address. Don't set
7566 return_value_on_stack.
7568 * NEWS: Mention that %cs and %ss have been added to the AMD64
7571 * frame.c: Update copyright year.
7572 (get_prev_frame): Improve comment.
7574 * sparc64fbsd-tdep.c: Include "regset.h".
7575 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
7577 (fetch_core_registers): Remove function.
7578 (sparc64fbsd_core_fns): Remove variable.
7579 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
7581 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
7582 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
7583 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
7585 * sparcnbsd-tdep.c: Include "regset.h".
7586 (fetch_core_registers): Remove function.
7587 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
7588 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
7590 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
7592 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
7594 * sparc-tdep.h (struct regset): Provide opaque declaration.
7595 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
7596 fpregset and sizeof_fpregset members.
7597 * sparc-tdep.c (struct regset): Provide opaque declaration.
7598 (sparc_regset_from_core_section): New function.
7599 (sparc32_gdbarch_init): Initialize TDEP->gregset,
7600 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
7601 Set regset_from_core_section when appropriate.
7603 2004-01-10 Mark Kettenis <kettenis@gnu.org>
7605 * x86-64-tdep.c (amd64_non_pod_p): New function.
7606 (amd64_classify_aggregate): Return class memory for non-POD
7607 C++ structure types.
7609 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
7610 argument. Use it to reserve a register if necessary.
7611 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
7612 amd64_push_arguments.
7614 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
7616 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
7617 register numbers in comments.
7618 * x86-64-tdep.h: Update copyright year.
7619 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
7620 Adjust for addition of %cs and %ss.
7621 * amd64fbsd-nat.c: Update copyright year.
7622 (reg_offset): Add register offsets for %cs and %ss.
7623 * amd64fbsd-tdep.c: Update copyright year.
7624 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
7625 (amd64fbsd_sc_reg_offset): Likewise.
7626 * x86-64-linux-nat.c: Update copyright year.
7627 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
7629 * amd64nbsd-nat.c: Update copyright year.
7630 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
7631 * amd64nbsd-tdep.c: Update copyright year.
7632 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
7633 * x86-64-linux-tdep.c: Update copyright year.
7634 (user_to_gdb_regmap): Add mapping for %cs and %ss.
7635 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
7636 * regformats/reg-x86-64.dat: Add %cs and %ss.
7638 * blockframe.c (inside_entry_func): Reformat. Introduce new local
7639 variables to prevent long lines. Update comments to reflect
7642 2004-01-09 David Carlton <carlton@kealia.com>
7644 Checked in by Elena Zannoni <ezannoni@redhat.com>.
7645 * dwarf2read.c (read_namespace): Pull out name-generating code
7646 into namespace_name. Rename previous_namespace to previous_prefix
7647 and processing_current_namespace to processing_current_prefix..
7648 (namespace_name): New function.
7649 (add_partial_symbol): Substitute uses of pdi->name with
7651 * cp-support.h: Rename processing_current_namespace to
7652 processing_current_prefix.
7653 Update copyright year.
7654 * cp-namespace.c: Rename processing_current_namespace to
7655 processing_current_prefix.
7656 Update copyright year.
7658 2004-01-09 Andrew Cagney <cagney@redhat.com>
7660 * jv-valprint.c, ser-unix.c: Add missing copyright years.
7662 2004-01-09 Mark Kettenis <kettenis@gnu.org>
7664 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
7666 (process_one_symbol): Deal with N_PATCH stabs.
7668 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
7670 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
7672 Update copyright year.
7674 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
7676 * config/pa/tm-hppa.h: Update extern declarations for
7677 hppa32_hpux_frame_saved_pc_in_sigtramp,
7678 hppa32_hpux_frame_base_before_sigtramp, and
7679 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
7681 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
7683 * config/pa/tm-hppah.h: Update copyright years.
7685 2004-01-08 Andrew Cagney <cagney@redhat.com>
7687 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
7688 (mips_o32_reg_struct_has_addr): Delete function.
7689 (mips_gdbarch_init): Update.
7690 (mips_extract_struct_value_address): Delete function.
7692 2004-01-08 David Mosberger <davidm@hpl.hp.com>
7694 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
7697 2004-01-07 Andrew Cagney <cagney@redhat.com>
7699 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
7700 architecture's elf flags (when available).
7702 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
7703 FPU to the start, check the MIPS FPU when looking for an old
7705 (set_mipsfpu_single_command): Update the architecture.
7706 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
7708 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
7709 (mips_mask_address_p): Add "tdep" parameter.
7710 (show_mask_address, mips_addr_bits_remove): Update.
7711 (mips_dump_tdep): Update.
7712 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
7713 (MIPS_STACK_ARGSIZE): Delete macro.
7714 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
7715 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
7716 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
7717 (mips_dump_tdep): Update.
7718 (MIPS_SAVED_REGSIZE): Delete macro.
7719 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
7720 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
7721 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
7722 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
7723 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
7724 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
7725 (mips_pop_frame, return_value_location): Update.
7726 (mips_n32n64_return_value, mips_dump_tdep): Update.
7728 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
7731 * mips-tdep.c: Update copyright.
7732 (mips_gdbarch_init): Merge two code blocks handling the register
7733 name and number layout.
7735 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
7737 * tracepoint.c (validate_actionline): Fix segv at EOF
7739 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
7741 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
7742 properly for static fields.
7744 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
7745 Jason Molenda <jmolenda@apple.com>
7747 * disasm.c: Update copyright to include 2004.
7748 (do_mixed_source_and_assembly): For uiout asm list
7749 and tuple cleanups, initialize to null_cleanup instead of
7750 NULL and do so prior to loop. Only reset when we close off
7751 the tuple/list. Move check for whether to close off the
7752 asm tuple/list to after dump_insns call where it will be run
7753 on each loop iteration.
7755 2004-01-05 Andrew Cagney <cagney@redhat.com>
7757 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
7758 should be a switch case and not a label.
7759 * mips-tdep.c (mips32_next_pc): Delete unused labels
7760 "greater_equal_branch" and "less_zero_branch".
7761 * jv-valprint.c (java_print_value_fields): Delete unused label
7764 * target.c (unpush_target): Only close a target that is in the
7767 2004-01-05 Mark Kettenis <kettenis@gnu.org>
7769 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
7770 address from [sp + 64] instead of %o2.
7772 * frame.c (get_prev_frame): Don't try to unwind the PC. This
7773 fixes PR backtrace/1476.
7775 2004-01-05 Andrew Cagney <cagney@redhat.com>
7777 * libunwind-frame.h (struct frame_id): Add opaque declaration,
7778 move to start of file.
7779 * i386-tdep.h (struct regcache): Add opaque declaration.
7780 * config/ia64/nm-linux.h (struct target_ops): Add opaque
7782 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
7783 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
7784 * win32-nat.c (fake_create_process): Use ISO C style definition.
7785 * stabsread.c (define_symbol): Delete #ifndef
7786 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
7787 stabs_argument_has_addr call, macro never defined.
7789 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
7791 * op50-rom.c: Delete.
7792 * w89k-rom.c: Delete.
7793 * Makefile.in: Remove references.
7795 2004-01-04 Mark Kettenis <kettenis@gnu.org>
7797 * x86-64-tdep.c: Update copyright year.
7798 (struct amd64_register_info): Rename from x86_64_register_info.
7799 (amd64_register_info): Rename from x86_64_register_info.
7800 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
7801 (amd64_register_name): Rename from x86_64_register_name.
7802 (amd64_register_type): Rename from x86_64_register_type.
7803 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
7804 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
7805 (amd64_dwarf_reg_to_regnum): Rename from
7806 x86_64_dwarf_reg_to_regnum.
7807 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
7808 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
7809 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
7810 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
7811 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
7812 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
7813 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
7814 (amd64_frame_cache): Rename from x86_64_frame_cache.
7815 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
7816 (amd64_frame_prev_register): Rename from
7817 x86_64_frame_prev_register.
7818 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
7819 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
7820 (amd64_sigtramp_frame_cache): Rename from
7821 x86_64_sigtramp_frame_cache.
7822 (amd64_sigtramp_frame_prev_register): Rename from
7823 x86_64_sigtramp_frame_prev_register.
7824 (amd64_sigtramp_frame_unwind): Rename from
7825 x86_64_sigtramp_frame_unwind.
7826 (amd64_sigtramp_frame_sniffer): Rename from
7827 x86_64_sigtramp_frame_sniffer.
7828 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
7829 (amd64_frame_base): Rename from x86_64_frame_base.
7830 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
7831 (amd64_frame_align): Rename from x86_64_frame_align.
7832 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
7833 (amd64_regset_from_core_section): Rename from
7834 x86_64_regset_from_core_section.
7835 (x86_64_init_abi): Update comments.
7837 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
7839 * MAINTAINERS (write after approval): Add myself.
7841 2004-01-04 Mark Kettenis <kettenis@gnu.org>
7843 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7846 2004-01-04 Mark Kettenis <kettenis@gnu.org>
7848 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
7849 such that it mentions a specific version of GCC that exhibits this
7852 2004-01-03 Mark Kettenis <kettenis@gnu.org>
7854 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
7855 structure that has a single `float' member, store it in %f1 in
7858 * sparc-sol2-nat.c: Add missing '\'.
7860 * sparc-tdep.c (sparc32_return_value): New function.
7861 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
7863 (sparc32_gdbarch_init): Set return_value, don't set
7864 extract_return_value, store_return_value, use_struct_convention
7865 and return_value_on_stack.
7867 * sparc-sol2-nat.c: Add missing ')'.
7869 2004-01-03 J. Brobecker <brobecker@gnat.com>
7871 * infrun.c (handle_step_into_function): New function.
7872 (handle_inferior_event): Extract out some code into the new
7875 2004-01-03 J. Brobecker <brobecker@gnat.com>
7877 * infrun.c (handle_inferior_event): Move the declaration of
7878 real_stop_pc inside the if blocks where it is used.
7880 2004-01-03 Mark Kettenis <kettenis@gnu.org>
7882 * sparc64-tdep.c (sparc64_16_byte_align_p)
7883 (sparc64_store_floating_fields, sparc64_store_floating_fields):
7884 Use check_typedef to get subtypes of structures and unions.
7885 (sparc64_store_return_value): Fix calculation of the appropriate
7886 offset into VALBUF when storing a structure or union.
7887 (sparc64_return_value): New function.
7888 (sparc64_use_struct_convention): Remove function.
7889 (sparc64_init_abi): Set return_value, don't set
7890 extract_return_value, store_return_value and
7891 use_struct_convention.
7893 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
7895 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
7896 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
7897 gdb/config/alpha/xm-alphaosf.h,
7898 gdb/config/powerpc/tm-ppcle-eabi.h,
7899 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
7900 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
7901 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
7902 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
7903 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
7904 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
7905 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
7906 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
7907 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
7908 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
7909 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
7910 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
7911 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
7912 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
7913 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
7914 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
7915 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
7916 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
7917 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
7918 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
7919 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
7920 Remove lines for .cvsignore files.
7922 2004-01-03 J. Brobecker <brobecker@gnat.com>
7924 * infrun.c: Back out the previous change.
7926 2004-01-03 Mark Kettenis <kettenis@gnu.org>
7928 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
7929 sparc-*-sunos4* to the list of REMOVED configurations.
7931 * configure.tgt: Add back sparc-*-vxworks*.
7932 * remote-vxsparc.c: Remove all includes except for "defs.h",
7933 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
7934 Include "sparc-tdep.h".
7935 (SPARC_R_G1): New define.
7936 (vxsparc_gregset): New variable.
7937 (ext_format_sparc): Remove extern declaration.
7938 (vx_read_register): Rewrite to use sparc32_supply_gregset and
7939 sparc32_supply_fpregset.
7940 (vx_write_register): Rewrite to use sparc32_collect_gregset,
7941 sparc_collect_rwindow and sparc32_collect_fpregset.
7942 * config/sparc/tm-vxworks.h: New file, based on recently removed
7944 * config/sparc/vxworks.mt: New file, based on recently removed
7947 2004-01-03 J. Brobecker <brobecker@gnat.com>
7949 * infrun.c (handle_step_into_function): New function.
7950 (handle_inferior_event): Extract out some code into the new
7953 2004-01-02 Mark Kettenis <kettenis@gnu.org>
7955 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
7956 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
7957 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
7958 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
7959 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
7960 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
7961 (sparc_nat_h): New variable.
7962 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
7963 (tm-sun4os4.h): Remove dependency.
7964 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
7965 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
7966 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
7967 sparc-tdep.o): Update dependencies.
7968 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
7969 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
7970 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
7972 * configure.host: Remove existing sparc-*-lynxos*,
7973 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
7974 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
7975 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
7976 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
7978 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
7979 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
7980 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
7981 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
7982 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
7983 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
7984 sparc64-*-solaris2* and sparc64-*-* triplets.
7985 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
7986 "symtab.h" and "objfiles.h".
7987 (BIAS): Remove define.
7988 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
7989 (X_DISP19): Remove macros.
7990 (sparc_fetch_instruction): Remove function.
7991 (struct gdbarch_tdep): Remove definition.
7992 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
7993 (sparc_breakpoint_from_pc): Remove function.
7994 (struct sparc64_frame_cache): Remove definition.
7995 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
7996 sparc64_unwind_pc): Remove functions.
7997 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
7998 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
7999 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
8000 (sparc64_frame_cache): Change return type to `struct
8001 sparc_frame_cache *'. Simply call sparc_frame_cache.
8002 (sparc64_frame_this_id, sparc64_frame_prev_register,
8003 sparc64_frame_base_address): Use `struct sparc_frame_cache'
8004 instead of `struct sparc64_frame_cache.
8005 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
8006 sparc_analyze_control_transfer, sparc_software_single_step,
8007 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
8008 _initialize_sparc64_tdep): Remove functions.
8009 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
8010 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
8012 (sparc64_supply_gregset, sparc64_collect_gregset,
8013 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
8014 (sparc64_init_abi): New function.
8015 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
8016 inclusion guard. Include "sparc-tdep.h".
8018 (r_tstate_offset, r_fprs_offset): New defines.
8019 (enum sparc_regnum): Remove defenition.
8020 (enum sparc64_regnum): Reformat.
8021 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
8022 (sparc64_init_abi, sparc64_supply_gregset,
8023 sparc64_collect_gregset, sparc64_supply_fpregset,
8024 sparc64_collect_fpregset): New prototypes.
8025 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
8026 Add extern declarations.
8027 (sparc64_sol2_init_abi): New prototype.
8028 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
8029 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
8031 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
8033 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
8035 (_initialize_sparc64fbsd_nat): Remove initialization of
8036 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
8037 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
8038 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
8039 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
8040 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
8041 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
8042 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
8043 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
8044 (sparc64fbsd_r_y_offset): Remove variables.
8045 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
8046 Make static and const.
8047 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
8048 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
8050 (sparc64fbsd_gregset): New variable.
8051 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
8052 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
8053 and sparc64_supply_fpregset.
8054 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
8055 (sparc64fbsd_sigtramp_frame_this_id)
8056 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
8057 (sparc64fbsd_sigtramp_frame_unwind): New variable.
8058 (sparc64fbsd_sigtramp_frame_sniffer): New function.
8059 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
8060 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
8061 * sparcnbsd-tdep.c: Update copyright year. Include
8062 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
8063 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
8064 "value.h" and "sparcnbsd-tdep.h".
8065 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
8066 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
8067 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
8068 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
8070 (sparcnbsd_gregset): New variable.
8071 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
8072 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
8073 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
8074 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
8075 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
8077 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
8078 (sparc32nbsd_sigcontext_frame_this_id)
8079 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
8080 (sparc32nbsd_sigcontext_frame_unwind): New variable.
8081 (sparc32nbsd_sigtramp_frame_sniffer): New function.
8082 (sparcnbsd_get_longjmp_target_32,
8083 sparcnbsd_get_longjmp_target_64): Remove functions.
8084 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
8085 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
8086 sparcnbsd_init_elf): Remove.
8087 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
8088 (sparcnbsd_elf_init_abi): New functions.
8089 (_initialize_sparcnbsd_tdep): New prototype.
8090 (_initialize_sparnbsd_tdep): Update.
8091 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
8092 corelow.o. Add sparc64-nat.o and sparc-nat.o.
8093 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
8094 * config/sparc/linux.mh: Update comment.
8095 (XM_FILE, HOST_IPC): Remove variables.
8096 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
8098 * config/sparc/linux.mt: Update comment.
8099 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
8100 * config/sparc/nbsd.mt: Reformat.
8101 * config/sparc/nbsd64.mh: Update comment.
8102 (NATDEPFILES): Add sparc-nat.o.
8103 * config/sparc/nbsd64.mt: Update comment.
8104 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
8105 (TM_FILE): Set to tm-nbsd.h.
8106 * config/sparc/nbsdelf.mh: Update comment.
8107 (NATDEPFILES): Add sparc-nat.o.
8109 * config/sparc/nbsdaout.mh: Update comment.
8110 (NATDEPFILES): Add sparc-nat.o
8112 * config/sparc/nm-linux.h: Update copyright year. Don't include
8113 "config/nm-svr4.h" and "solib.h". Add protection against multiple
8115 (KERNEL_U_SIZE): Remove define.
8116 (kernel_u_size): Remove prototype.
8117 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
8118 * config/sparc/nm-nbsd.h: Update copyright. Don't include
8120 (CHILD_PREPARE_TO_STORE): Remove define.
8121 * config/sparc/nm-nbsdaout.h: Tweak some comments.
8122 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
8123 sparcnbsd-nat.c: Rewrite files.
8124 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
8125 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
8126 sparcnbsd-tdep.h: Remove files.
8127 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
8128 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
8129 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
8130 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
8131 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
8132 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
8133 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
8134 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
8135 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
8136 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
8137 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
8138 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
8139 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
8140 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
8141 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
8142 * config/sparc/linux64.mh, config/sparc/linux64.mt,
8143 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
8144 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
8145 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
8147 2004-01-02 Andrew Cagney <cagney@redhat.com>
8149 From 2003-12-18 Kazuhiro Inaoka:
8150 * configure.host: Add m32r-linux target.
8152 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
8154 * top.c (print_gdb_version): Update year to 2004.
8156 2004-01-02 Mark Mitchell <mark@codesourcery.com>
8158 * MAINTAINERS: Add myself to the write-after-approval category.
8160 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
8162 From Bernardo Innocenti <bernie@develer.com>:
8163 * configure.tgt: Add uClinux target.
8165 2004-01-02 Andrew Cagney <cagney@redhat.com>
8167 * utils.c (do_my_cleanups): Make static, add forward declaration.
8168 * defs.h (do_my_cleanups): Delete declaration.
8170 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
8172 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
8175 2004-01-02 Mark Kettenis <kettenis@gnu.org>
8177 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
8179 * configure, config.in: Regenerate.
8181 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
8182 tui/ChangeLog-1998-2003.
8188 version-control: never