1 2004-05-20 Mark Kettenis <kettenis@gnu.org>
3 * regset.h: Make prototype const-correct.
4 * regset.c (regset_xmalloc): Make const-correct.
6 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
8 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
9 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
10 (symbol_search_name): Declare.
12 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
13 (iter_name_next_hashed): Ditto.
14 (iter_name_next_linear): Ditto.
15 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
17 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
18 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
19 (symbol_search_name): New function.
21 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
23 * minsyms.c (build_minimal_symbol_hash_tables): Change
24 test for adding to demangled hash table to check for difference
25 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
27 2004-05-19 Jim Blandy <jimb@redhat.com>
29 Use a constructor function to create regset structures.
30 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
31 (struct regset): Use supply_regset_ftype. Add new
32 'collect_regset' member.
33 (regset_xmalloc): New declaration.
35 * am64-tdep.c (amd64_regset_from_core_section): Use
36 regset_xmalloc to construct regset structures.
37 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
38 * i386-tdep.c (i386_regset_from_core_section): Same.
39 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
40 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
41 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
42 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
43 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
44 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
45 * Makefile.in (COMMON_OBS): Add regset.o.
48 2004-05-19 Joel Brobecker <brobecker@gnat.com>
50 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
51 and pthread_cond_wait.c.
53 2004-05-18 Jim Blandy <jimb@redhat.com>
55 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
56 before the mach-specific switch, and then let the individual cases
57 override the defaults, rather than leaving them uninitialized
58 until the switch and then setting them in each case.
60 2004-05-18 Randolph Chung <tausq@debian.org>
62 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
65 2004-05-18 Randolph Chung <tausq@debian.org>
67 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
68 references to dld_flags_buffer consistent.
70 2004-05-18 Randolph Chung <tausq@debian.org>
72 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
73 it for unwinding the stack.
75 2004-05-18 Randolph Chung <tausq@debian.org>
77 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
78 Undefine these so we can overide them using gdbarch.
80 2004-05-18 Randolph Chung <tausq@debian.org>
82 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
83 handling for 64-bit HPUX (elf).
85 2004-05-18 Daniel Jacobowitz <dan@debian.org>
87 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
89 * amd64-tdep.c (amd64_skip_prologue): Likewise.
90 * ia64-tdep.c (examine_prologue): Likewise.
91 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
92 * v850-tdep.c (v850_fix_call_dummy): Likewise.
94 2004-05-18 Mark Kettenis <kettenis@gnu.org>
96 * vax-tdep.c (vax_return_value): Implement
97 RETURN_VALUE_ABI_RETURNS_ADDRESS.
99 2004-05-17 Mark Kettenis <kettenis@gnu.org>
101 * vax-tdep.c (vax_return_value): Fix typo.
103 2004-05-17 Andrew Cagney <cagney@redhat.com>
105 * MAINTAINERS: Mark Salter was also responsible for
108 * NEWS: Mention signal fixes.
110 2004-05-17 Randolph Chung <tausq@debian.org>
112 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
113 check to see if we are unwinding an export stub. Export stubs clobber
114 the %rp in the call path and stores the original rp in a stack slot.
116 2004-05-17 Jim Blandy <jimb@redhat.com>
118 * MAINTAINERS: Update address for J.T. Conklin.
120 2004-05-17 Randolph Chung <tausq@debian.org>
122 * hppa-tdep.c: Remove superfluous #include's.
123 * Makefile.in (hppa-tdep.o): Update dependencies.
125 2004-05-17 Randolph Chung <tausq@debian.org>
127 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
128 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
129 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
130 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
131 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
132 Remove static function declarations.
134 2004-05-17 Mark Kettenis <kettenis@gnu.org>
136 * alphabsd-nat.c: Update copyright year.
137 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
139 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
142 * m68k-tdep.c (m68k_svr4_return_value): Implement
143 RETURN_VALUE_ABI_RETURNS_ADDRESS.
145 2004-05-16 Mark Kettenis <kettenis@gnu.org>
147 * sol-thread.c Update copyright year. Fix various coding
148 standards violations. Tweak a few comments.
149 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
152 2004-05-15 Randolph Chung <tausq@debian.org>
154 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
155 as pointer instead of array reference since HPUX compiler does
156 not accept unsized array arguments.
157 * somsolib.c (dld_flags_buffer): Use constant array size.
159 2004-05-15 Mark Kettenis <kettenis@gnu.org>
161 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
162 offset with decimal offset.
163 (amd64obsd_sigcontext_addr): Return correct address for entire
166 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
167 instead of get_frame_base.
169 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
170 (fill_gregset): Use regcache_raw_collect.
172 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
175 * config/sparc/tm-nbsd64.h: Remove file.
176 * config/tm-sunos.h: Remove file.
178 2004-05-15 Joel Brobecker <brobecker@gnat.com>
180 * rs6000-tdep.c (store_param_on_stack_p): New function,
181 an improved version of some code extracted from skip_prologue().
182 (skip_prologue): Use store_param_on_stack_p() to detect
183 instructions saving a parameter on the stack. Detect when r0
184 is used to save a parameter.
185 Do not mark "li rx, SIMM" instructions as part of the prologue,
186 unless the following instruction is also part of the prologue.
188 2004-05-14 Andrew Cagney <cagney@redhat.com>
190 * infrun.c (handle_inferior_event): Simplify
191 STEP_OVER_UNDEBUGGABLE.
193 * infrun.c (handle_step_into_function): Delete function.
194 (handle_inferior_event): Inline calls to
195 handle_step_into_function.
197 2004-05-14 Jerome Guitton <guitton@rome.act-europe.fr>
199 * rs6000-nat.c: Fix a comment.
201 2004-05-12 David Anderson <davea@sgi.com>
203 Committed by Jim Blandy <jimb@redhat.com>:
204 * regcache.c (struct regcache_descr): fix comment spelling.
206 2004-05-13 J. Brobecker <brobecker@gnat.com>
208 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
209 Fixes a link link failure.
211 2004-05-13 J. Brobecker <brobecker@gnat.com>
213 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
214 error that was causing the build to fail.
216 2004-05-13 J. Brobecker <brobecker@gnat.com>
218 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
219 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
221 2004-05-13 Andrew Cagney <cagney@redhat.com>
223 * infrun.c (handle_inferior_event): Check for
224 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
225 calls. Update comments.
227 2004-05-13 Jim Blandy <jimb@redhat.com>
229 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
230 (fetch_regs_user_thread, fetch_regs_kernel_thread)
231 (store_regs_user_thread, store_regs_kernel_thread): Use
232 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
233 * ppc-linux-nat.c (fill_gregset): Same.
234 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
235 (ppc_linux_sigtramp_cache): Same.
236 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
237 (ppcnbsd_sigtramp_cache_init): Same.
238 * rs6000-nat.c (fetch_core_registers): Same.
239 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
240 (rs6000_frame_cache): Same.
242 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
243 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
244 of assuming that the gprs are numbered starting with zero.
245 * ppc-linux-nat.c (fill_gregset): Same.
246 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
247 * ppcnbsd-nat.c (getregs_supplies): Same.
248 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
249 * rs6000-nat.c (fetch_core_registers): Same.
250 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
252 2004-05-07 Michael Snyder <msnyder@redhat.com>
254 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
255 LOC_COMPUTED_ARG, and LOC_INDIRECT.
257 2004-05-13 Andrew Cagney <cagney@redhat.com>
259 * infrun.c (handle_inferior_event): Use frame_unwind_id.
261 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
263 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
264 base_address for shared libraries.
266 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
268 * MAINTAINERS (write after approval): Add myself.
270 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
272 * breakpoint.c (bpstat_stop_status): Add new argument
273 STOPPED_BY_WATCHPOINT. Use it instead of testing
274 target_stopped_data_address agaist 0 to check whether
275 or not we stopped due to a hardware watchpoint.
276 * breakpoint.h (bpstat_stop_status): Adapt prototype.
277 * infrun.c (handle_inferior_event): Call bpstat_stop_status
280 2004-05-12 Jim Blandy <jimb@redhat.com>
282 * configure.in: When checking whether we should use the -bbigtoc
283 option, don't forget to restore the original value of LDFLAGS.
284 * configure: Regenerated.
286 2004-05-12 Andrew Cagney <cagney@redhat.com>
288 * thread.c (load_infrun_state): Delete step_sp.
289 * infrun.c (context_switch): Ditto.
290 * inferior.h (step_sp): Ditto.
291 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
292 * gdbthread.h (struct thread_info, save_infrun_state)
293 (restore_infrun_state): Ditto.
295 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
297 * MAINTAINERS (write after approval): Add myself.
299 2004-05-12 Andrew Cagney <cagney@redhat.com>
301 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
302 eliminate reference to step_sp.
303 (struct execution_control_state, init_execution_control_state)
304 (handle_inferior_event, keep_going): Delete update_step_sp and
306 * infcmd.c (step_sp): Note that variable is unused.
308 2004-05-11 Andrew Cagney <cagney@redhat.com>
310 * infrun.c (step_over_function): Delete function.
311 (handle_step_into_function): Use insert_step_resume_breakpoint.
312 (insert_step_resume_breakpoint): Fix assertion.
314 2004-05-11 Nick Roberts <nickrob@gnu.org>
316 * utils.c (defaulted_query): Just use the normal query input type
317 when printing the annotations.
319 2004-05-11 Andrew Cagney <cagney@redhat.com>
321 * infrun.c (handle_inferior_event): Simplify code handling
322 step-into or return-from a signal trampoline.
324 2004-05-11 Andrew Cagney <cagney@redhat.com>
326 * ppcnbsd-tdep.c: Include "gdb_assert.h".
327 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
329 2004-05-10 Jim Blandy <jimb@redhat.com>
331 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
332 with a call to internal_error.
334 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
335 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
336 processor variant lacks those registers.
337 (ppc_floating_point_unit_p): Change description to make it clear
338 that this returns info about the ISA, not the ABI.
339 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
340 return true or false by checking tdep->ppc_fp0_regnum and
341 tdep->ppc_fpscr_regnum. The original code replicated the BFD
342 arch/mach switching done in rs6000_gdbarch_init; it's better to
343 keep that logic there, and just check the results here.
344 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
345 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
346 floating-point registers.
347 (ppc_supply_fpregset, ppc_collect_fpregset)
348 (rs6000_push_dummy_call, rs6000_extract_return_value)
349 (rs6000_store_return_value): Assert that we have floating-point
351 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
352 (rs6000_frame_cache): Don't note the locations at which
353 floating-point registers were saved if we have no fprs.
354 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
356 (fetch_regs_user_thread, fetch_regs_kernel_thread)
357 (store_regs_user_thread, store_regs_kernel_thread): Only call
358 supply_fprs / fill_fprs if we actually have floating-point
360 (special_register_p): Check ppc_fpscr_regnum before matching
362 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
363 supply / collect fpscr if we don't have it.
364 * ppc-bdm.c: #include "gdb_assert.h".
365 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
366 have floating-point registers, since I can't test this code on
367 FP-free systems to adapt it.
368 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
369 fpscr and floating point register numbers if they don't exist.
370 (fetch_register): Assert that we have floating-point registers
371 before we reach the code that handles them.
372 (store_register): Same. And use tdep instead of calling
374 (fill_fpregset): Don't try to collect FP registers and fpscr if we
376 (ppc_linux_sigtramp_cache): Don't record the saved locations of
377 fprs and fpscr if we don't have them.
378 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
380 * ppcnbsd-nat.c: #include "gdb_assert.h".
381 (getfpregs_supplies): Assert that we have floating-point registers.
382 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
383 * ppcobsd-tdep.c: #include "gdb_assert.h".
384 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
385 have floating-point registers.
386 * rs6000-nat.c (regmap): Don't match against the fpscr and
387 floating point register numbers if they don't exist.
388 (fetch_inferior_registers, store_inferior_registers,
389 fetch_core_registers): Only fetch / store / supply the
390 floating-point registers and the fpscr if we have them.
391 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
392 (ppcobsd-tdep.o): Update dependencies.
394 2004-05-10 Andrew Cagney <cagney@redhat.com>
396 * infrun.c (through_sigtramp_breakpoint): Delete variable.
397 (context_switch): Do not switch through_sigtramp_breakpoint.
398 * gdbthread.h (save_infrun_state, load_infrun_state)
399 (struct thread_info): Delete through_sigtramp_breakpoint parameter
400 and structure member.
401 * thread.c (load_infrun_state, save_infrun_state): Update.
403 2004-05-10 Mark Kettenis <kettenis@gnu.org>
405 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
407 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
409 * acinclude.m4: Quote macro names being defined by AC_DEFUN
411 * aclocal.m4: Regenerate.
413 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
415 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
417 2004-05-10 Andrew Cagney <cagney@redhat.com>
419 * infrun.c (check_sigtramp2): Delete function.
420 (handle_inferior_event): When single stepping, and taking a
421 signal, set a breakpoint at the signal return address. Delete
422 redundant calls to check_sigtramp2.
423 (insert_step_resume_breakpoint): New function.
424 (through_sigtramp_breakpoint, handle_inferior_event)
425 (follow_exec, wait_for_inferior, fetch_inferior_event)
426 (currently_stepping, keep_going): Delete most uses of
427 through_sigtramp_breakpoint, not that it should be deleted.
428 (delete_breakpoint_current_contents): Delete function.
430 2004-05-10 Randolph Chung <tausq@debian.org>
432 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
434 * config/pa/tm-linux.h: New file.
436 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
438 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
439 of prefixes. Don't print the prefix twice in the CLI.
441 2004-05-10 Jim Blandy <jimb@redhat.com>
443 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
444 collect all the gprs.
446 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
447 loop collecting gprs.
449 2004-05-09 Andrew Cagney <cagney@redhat.com>
451 * remote-vx.c (net_step): Delete step-range code.
452 * remote.c (remote_resume, init_all_packet_configs)
453 (set_remote_protocol_E_packet_cmd)
454 (show_remote_protocol_E_packet_cmd)
455 (remote_protocol_E, show_remote_cmd, _initialize_remote)
456 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
457 (show_remote_protocol_e_packet_cmd): Ditto.
459 2004-05-09 Mark Kettenis <kettenis@gnu.org>
461 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
463 * hppa-tdep.h: Update copyright year.
464 (struct trad_frame_saved_reg): Add opaque declaration.
466 * amd64-tdep.c (amd64_return_value): Implement
467 RETURN_VALUE_ABI_RETURNS_ADDRESS.
469 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
470 (m68k_value_to_register): New functions.
471 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
474 * defs.h (enum return_value_convention): Add
475 RETURN_VALUE_ABI_RETURNS_ADDRESS and
476 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
477 * infcmd.c (legacy_return_value): New function.
478 (print_return_value): Rwerite to implement
479 RETURN_VALUE_ABI_RETURNS_ADDRESS.
480 * values.c (using_struct_return): Check for inequality to
481 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
482 RETURN_VALUE_STRUCT_CONVENTION.
483 * i386-tdep.c (i386_return_value): Implement
484 RETURN_VALUE_ABI_RETURNS_ADDRESS.
486 * vax-tdep.c: Tweak comments. Reorder include files. Don't
487 include "symtab.h", "opcode/vax.h" and "inferior.h".
488 (vax_skip_prologue): Replace calls to read_memory_integer by calls
489 to read_memory_unsigned_integer.
490 (vax_gdbarch_init): Reorder.
491 (_initialize_vax_tdep): Spell out prototype.
492 * Makefile.in (vax-tdep.o): Update dependencies.
494 2004-05-08 Andrew Cagney <cagney@redhat.com>
496 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
497 * target.c (target_detach, target_disconnect): Ditto.
499 * infcall.c (call_function_by_hand): When no
500 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
501 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
502 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
503 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
504 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
506 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
507 * gdbarch.h, gdbarch.c: Re-generate.
508 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
509 deprecated_fix_call_dummy.
510 * v850-tdep.c (v850_gdbarch_init): Ditto.
511 * infcall.c (call_function_by_hand): Do not call
512 DEPRECATED_FIX_CALL_DUMMY.
514 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
515 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
516 * gdbarch.h, gdbarch.c: Re-generate.
517 * arm-linux-tdep.c (arm_linux_call_dummy_words)
518 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
519 deprecated_sizeof_call_dummy_words.
520 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
521 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
522 * v850-tdep.c (v850_gdbarch_init): Ditto.
523 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
524 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
525 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
526 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
527 * arch-utils.h (legacy_call_dummy_words)
528 (legacy_sizeof_call_dummy_words): Delete declarations.
529 * arch-utils.c (legacy_call_dummy_words)
530 (legacy_sizeof_call_dummy_words): Delete variables.
532 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
533 * gdbarch.h, gdbarch.c: Re-generate.
534 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
535 * infcall.c (call_function_by_hand): Eliminate call to
536 DEPRECATED_PUSH_DUMMY_FRAME.
537 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
539 (ns32k_push_dummy_frame): Delete function.
541 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
542 deprecated_call_dummy_breakpoint_offset or
543 deprecated_call_dummy_start_offset.
544 * dummy-frame.c, arm-tdep.c: Update comments.
545 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
546 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
547 * gdbarch.h, gdbarch.c: Re-generate.
549 * infcall.c (legacy_push_dummy_code): Delete function.
550 (push_dummy_code): Delete call.
552 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
553 * gdbarch.h, gdbarch.c: Re-generate.
554 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
555 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
556 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
557 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
559 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
560 (struct frame_info): Delete opaque declaration.
561 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
562 * frame.c (get_frame_type): Delete call.
564 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
566 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
567 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
569 2004-05-08 Mark Kettenis <kettenis@gnu.org>
571 * alphanbsd-tdep.c: Include "gdb_string.h".
572 * armnbsd-tdep.c: Update copyright year.
573 Include "gdb_string.h".
574 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
577 * delta68-nat.c: Remove file.
578 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
579 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
580 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
581 (delta68-nat.o): Remove dependency.
583 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
585 (m68k_gdbarch_init): Don't set
586 deprecated_frameless_function_invocation.
588 2004-05-07 Randolph Chung <tausq@debian.org>
590 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
591 read_memory_nobpt for code reading when doing frame unwinding.
592 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
594 2004-05-07 Randolph Chung <tausq@debian.org>
596 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
597 instead of sp, handle sigaltstack case.
598 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
599 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
600 signal handler and not that of the caller.
601 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
602 hppa_linux_sigtramp_find_sigcontext.
604 2004-05-07 Randolph Chung <tausq@debian.org>
606 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
608 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
609 * hppa-linux-nat.c (fetch_register, store_register): Define.
610 (fetch_inferior_registers, store_inferior_registers): Define.
611 (supply_gregset): Add comment and clean up some unneeded code.
612 (fill_gregset): Add comment and fix so that it saves registers in
613 the right place in the gregset.
614 (fill_fpregset): Fix buffer overrun problem.
615 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
617 2004-05-07 Randolph Chung <tausq@debian.org>
619 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
620 do common handling of the pcoqt register.
621 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
622 to use helper function.
623 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
624 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
625 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
626 generic fallback unwinder when all else fails.
627 (hppa_gdbarch_init): Add fallback sniffer.
628 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
629 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
630 to use helper function.
632 2004-05-08 Joel Brobecker <brobecker@gnat.com>
634 * config/djgpp/fnchange.lst: Add translation rules for
635 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
637 2004-05-08 Mark Kettenis <kettenis@gnu.org>
639 * frame.c (get_prev_frame_1): Work around GCC bug.
640 * frame.h: Add comment about GCC bug.
642 2004-05-07 Andrew Cagney <cagney@redhat.com>
644 * observer.c: Include "commands.h" and "gdbcmd.h".
645 (observer_debug, _initialize_observer): Add the
646 command "set/show debug observer".
647 * observer.sh: When observer debugging, log notify calls.
648 * Makefile.in (observer.o): Update dependencies.
650 2004-05-07 Jason Molenda (jmolenda@apple.com)
652 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
654 2004-05-07 Jim Blandy <jimb@redhat.com>
656 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
657 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
658 to recognize gpr regnums, instead of assuming that
659 tdep->ppc_fp0_regnum marks the end of the general-purpose
662 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
663 the given architecture has floating-point registers.
665 2004-05-07 Andrew Cagney <cagney@redhat.com>
667 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
669 * gdbarch.h, gdbarch.c: Re-generate.
670 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
671 deprecated_use_generic_dummy_frames.
673 2004-05-07 Brian Ford <ford@vss.fsi.com>
675 * NEWS: Mention Cygwin DWARF 2 support.
677 2004-05-07 Andrew Cagney <cagney@redhat.com>
679 * objfiles.h (struct entry_info): Delete unused fields
680 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
681 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
682 * mipsread.c (mipscoff_symfile_read): Update.
683 * mdebugread.c (parse_partial_symbols): Update.
684 * dwarfread.c (read_file_scope): Update.
685 * dwarf2read.c (read_file_scope): Update.
686 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
687 * coffread.c (complete_symtab): Update.
689 2004-05-07 Mark Kettenis <kettenis@gnu.org>
691 * infcall.c (_initialize_infcall): Fix typo.
693 2004-05-07 Andrew Cagney <cagney@redhat.com>
695 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
696 * command.h (add_setshow_zinteger_cmd): Declare.
698 2004-05-06 Randolph Chung <tausq@debian.org>
700 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
701 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
702 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
703 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
704 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
705 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
706 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
708 * hppa-tdep.h: ... to here, with HPPA_ prefix.
709 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
710 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
711 (hppa64_hpux_frame_find_saved_regs_in_sig)
712 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
713 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
714 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
715 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
716 (hppa_linux_sigtramp_frame_prev_register): Likewise.
717 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
718 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
719 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
720 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
721 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
722 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
723 (hppa32_register_type, hppa_cannot_store_register)
724 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
725 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
726 * hpread.c (hpread_process_one_debug_symbol): Likewise.
727 * pa64solib.c (pa64_solib_have_load_event)
728 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
729 (pa64_solib_unloaded_library_pathname): Likewise.
730 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
731 (som_solib_library_pathname): Likewise.
733 2004-05-05 Jim Ingham <jingham@apple.com>
735 * breakpoint.c (create_breakpoints): Copy the ignore count and
736 thread id over from the pended breakpoint to the actual
739 2004-05-05 Andrew Cagney <cagney@redhat.com>
741 * gdbarch.sh (PARM_BOUNDARY): Delete.
742 gdbarch.h, gdbarch.c: Re-generate.
743 * valops.c (PARM_BOUNDARY): Delete macro.
744 (value_push): Delete PARM_BOUNDARY code.
745 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
747 2004-05-04 Jim Blandy <jimb@redhat.com>
749 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
750 Don't assume that the gprs, fprs, and UISA sprs are
751 contiguous, start at register number zero, and end with fpscr.
752 Instead, use the numbers from the tdep structure.
754 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
755 should no longer be used in code specific to the RS6000 and its
757 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
758 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
759 tdep->ppc_fp0_regnum.
760 (ppc_supply_fpregset, ppc_collect_fpregset)
761 (rs6000_push_dummy_call, rs6000_extract_return_value)
762 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
763 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
765 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
766 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
768 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
769 bdm_ppc_store_registers): Same.
770 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
771 (store_register, fill_fpregset): Same.
772 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
773 (ppc_linux_supply_fpregset): Same.
774 * ppcnbsd-nat.c (getfpregs_supplies): Same.
775 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
777 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
778 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
779 ppc64_sysv_abi_return_value): Same.
780 * rs6000-nat.c (regmap, fetch_inferior_registers)
781 (store_inferior_registers, fetch_core_registers): Same.
783 2004-05-01 Mark Kettenis <kettenis@gnu.org>
785 * m68knbsd-nat.c: Remove file.
786 * m68knbsd-tdep.c: Remove file.
787 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
789 * configure.host: Add m68k-*-netbsdelf*.
790 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
791 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
792 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
794 * config/m68k/nbsdelf.mh: New file.
795 * config/m68k/nbsd.mt: New file.
796 * config/m68k/nbsdaout.mt: Remove file.
797 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
798 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
799 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
800 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
801 (use_struct_convention): Remove prototype.
802 (USE_STRUCT_CONVENTION): Remove define.
803 * config/m68k/xm-nbsd.h: Remove file.
805 2004-05-04 Michael Snyder <msnyder@redhat.com>
807 * m68k-tdep.c (m68k_gdbarch_init): Default to using
808 reg_struct_return method (as gcc usually does for cross targets).
810 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
812 Committed by Andrew Cagney.
813 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
814 alignment padding when accessing ucontext struct members.
816 2004-05-04 Jim Blandy <jimb@redhat.com>
818 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
819 'ppc_gplast_regnum' member.
820 (ppc_num_gprs): New enum constant.
821 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
822 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
823 * rs6000-nat.c (regmap, fetch_inferior_registers,
824 store_inferior_registers): Same.
825 * rs6000-tdep.c (e500_pseudo_register_read)
826 (e500_pseudo_register_write): Same.
827 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
829 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
830 * ppc-tdep.h (ppc_num_fprs): New enum constant.
831 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
832 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
834 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
836 * ppc-linux-nat.c (ppc_register_u_addr): Same.
837 * rs6000-nat.c (regmap, fetch_inferior_registers)
838 (store_inferior_registers): Same.
840 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
843 2004-05-03 Joel Brobecker <brobecker@gnat.com>
845 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
846 failure detected by recent versions of GCC.
847 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
848 to be consistent with the usage in dwarf2_create_include_psymtab.
850 2004-05-03 Michael Snyder <msnyder@redhat.com>
852 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
853 (heuristic_proc_start): Whitespace cleanup.
855 2004-05-04 Mark Kettenis <kettenis@gnu.org>
857 * sun3-nat.c: Remove file.
858 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
860 (ALLDEPFILES): Remove sun3-nat.c.
861 (sun3-nat.o): Remove dependencies.
863 * i386-interix-nat.c, i386-interix-tdep.c,
864 config/i386/nm-interix.h, config/i386/interix.mh,
865 config/i386/interix.mt: Remove files.
866 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
869 2004-05-03 Mark Kettenis <kettenis@gnu.org>
871 * m68k-tdep.h (struct gdbarch_tdep): Add member
873 (m68k_svr4_init_abi): New prototype.
874 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
875 different calling conventions.
876 (m68k_extract_return_value): Remove code dealing with single-field
878 (m68k_store_return_value): Remove code dealing with single-field
879 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
880 (m68k_extract_struct_value_address): Remove function.
881 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
882 (m68k_reg_struct_return_p, m68k_return_value)
883 (m68k_svr4_return_value): New functions.
884 (m68k_use_struct_convention): Remove function.
885 (m68k_push_dummy_call): Use new struct_value_regnum member of
886 `struct gdbarch_tdep' instead of hardcoded register number to
888 (m68k_svr4_init_abi): New function.
889 (m68k_gdbarch_init): Don't set extract_return_value,
890 store_return_values, deprecated_extract_struct_value_address and
891 use_struct_convention. Set return_value instead. Initialize new
892 struct_value_regnum member of `struct gdbarch_tdep'.
893 * m68klinux-tdep.c: Update copyright year.
894 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
895 (m68k_linux_extract_struct_value_address): Remove function.
896 (m68k_linux_init_abi): Don't set extract_return_value,
897 store_return_values, deprecated_extract_struct_value_address and
898 use_struct_convention. Call m68k_svr4_init_abi but override the
899 new struct_value_regnum member of `struct gdbarch_tdep'.
900 * Makefile.in (m68k-tdep.o): Update dependencies.
902 2004-05-03 J. Brobecker <brobecker@gnat.com>
904 * dwarf2read.c (line_header): Add new included_p field in
906 (partial_die_info): New field has_stmt_list. New field line_offset.
907 (dwarf2_create_include_psymtab): New function.
908 (dwarf2_build_include_psymtabs): New function.
909 (add_file_name): Add forward declaration. Initialize new field.
910 (dwarf_decode_lines): Add new parameter. Enhance this procedure
911 to be able to determine the list of files included by the
912 given unit, and build their associated psymtabs.
913 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
915 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
916 (read_file_scope): Update call to dwarf_decode_lines.
917 (read_partial_die): Handle DW_AT_stmt_list attributes.
919 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
922 * configure.in: Revert special case for osf5.*.
923 * configure: Regenerate.
925 2004-05-02 Jim Blandy <jimb@redhat.com>
927 Move the symbol-file-from-memory functions into their own file.
928 * symfile-mem.c, symfile-mem.h: New files.
929 * symfile.c (symbol_file_add_from_bfd): New function.
930 (symbol_file_add): Call symbol_file_add_from_bfd.
931 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
932 Moved to symfile-mem.c.
933 (_initialize_symfile): Move definition of
934 add-symbol-file-from-memory command to symfile-mem.c.
935 * symfile.h (symbol_file_add_from_bfd): New declaration.
936 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
937 * config/powerpc/linux.mt (TDEPFILES): Same.
938 * Makefile.in (SFILES): Add symfile-mem.c.
939 (symfile_mem_h): New variable.
940 (HFILES_NO_SRCDIR): Add symfile-mem.h.
941 (symfile-mem.o): New rule.
943 2004-05-01 Andrew Cagney <cagney@redhat.com>
945 * breakpoint.c (insert_bp_location): Use get_frame_id, and
946 frame_find_by_id instead of frame_relative_level.
947 (do_enable_breakpoint): Ditto.
948 * thread.c: Update copyright.
949 (info_threads_command): Ditto, simplify.
951 * frame.c (deprecated_generic_get_saved_register): Delete
952 function, moved to "xstormy16-tdep.c".
953 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
954 deprecated_generic_get_saved_register from "frame.c".
955 (xstormy16_frame_saved_register): Call
956 xstormy16_get_saved_register.
957 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
959 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
960 * frame.h (deprecated_generic_get_saved_register): Delete.
962 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
964 * dwarfread.c: Update documentation on the state of dwarf-1.
966 2004-05-01 Andrew Cagney <cagney@redhat.com>
968 * stack.c (select_frame_command): Delete call to
969 frame_relative_level.
970 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
972 (frame_info): Do not print FRAMELESS.
973 (print_block_frame_labels): Replace DEPRECATED_STREQ.
974 (catch_info): Delete #if0 code.
976 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
977 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
978 of frame_relative_level.
979 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
981 * frame.h (enum frame_type): Add SENTINEL_FRAME.
982 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
983 frame_relative_level.
985 * frame.h (deprecated_set_frame_type): Delete declaration.
986 * frame.c (deprecated_set_frame_type): Delete function, update
989 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
990 * gdbarch.h, gdbarch.c: Re-generate.
991 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
992 (shnbsd_pc_in_sigtramp): Delete.
993 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
995 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
997 * frame.h: Update comments.
998 * ppc-linux-tdep.c: Update comments.
999 * breakpoint.c (bpstat_what): Update comments.
1001 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
1002 m68klinux-tdep.o's dependencies, were previously added to
1005 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
1006 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
1007 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
1008 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
1009 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
1011 * Makefile.in (m68klinux-nat.o): Update dependencies.
1012 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
1013 (m68k_linux_sigtramp_frame_cache)
1014 (m68k_linux_sigtramp_frame_this_id)
1015 (m68k_linux_sigtramp_frame_prev_register)
1016 (m68k_linux_sigtramp_frame_unwind)
1017 (m68k_linux_sigtramp_frame_sniffer)
1018 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
1019 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
1020 names, use trad-frame.h.
1021 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
1022 (struct m68k_sigtramp_info): Delete.
1023 * m68k-tdep.c (m68k_sigtramp_frame_cache)
1024 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
1025 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
1026 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
1029 * infrun.c (check_sigtramp2): Delete check for
1030 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
1032 2004-05-01 Mark Kettenis <kettenis@gnu.org>
1034 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
1036 2004-05-01 Andrew Cagney <cagney@redhat.com>
1038 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
1039 (frv_linux_sigtramp_frame_cache)
1040 (frv_linux_sigtramp_frame_this_id)
1041 (frv_linux_sigtramp_frame_prev_register)
1042 (frv_linux_sigtramp_frame_unwind)
1043 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
1044 include "linux" in function and variable names, directly call
1045 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
1046 the latest trad-frame code.
1047 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
1048 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
1049 * Makefile.in (frv-linux-tdep.o): Update dependencies.
1050 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
1051 * frv-tdep.c (frv_sigtramp_frame_cache)
1052 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
1053 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
1055 (frv_gdbarch_init): Do not append a sigtramp sniffer.
1056 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
1057 (frv_set_sigcontext_reg_addr): Delete function.
1059 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
1060 (DEPRECATED_SIGTRAMP_END): Delete.
1061 * gdbarch.h, gdbarch.c: Re-generate.
1062 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
1063 * config/vax/tm-vaxbsd.h: Update copyright.
1064 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
1065 (DEPRECATED_IN_SIGTRAMP): Define.
1066 * config/m68k/tm-nbsd.h: Update copyright.
1067 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
1068 (DEPRECATED_IN_SIGTRAMP): Define.
1070 2004-05-01 Mark Kettenis <kettenis@gnu.org>
1072 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
1073 encondings. Fixes PR gdb/1628.
1075 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
1076 DW_CFA_restore state without a matching DW_CFA_remember_state
1077 instead of aborting. Fixes PR backtrace/1589.
1079 2004-04-30 Joel Brobecker <brobecker@gnat.com>
1081 * MAINTAINERS: Add self as AIX maintainer.
1082 Update my e-mail address in write-after-approval section.
1084 2004-04-30 Andrew Cagney <cagney@redhat.com>
1086 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
1087 (legacy_get_prev_frame): Ditto.
1089 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
1090 (mips_gdbarch_init): Do not set pc_in_sigtramp.
1091 * mipsread.c (sigtramp_address): Delete extern variable.
1092 (mipscoff_new_init): Delete reference.
1093 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
1094 (fixup_sigtramp): Delete function.
1095 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
1096 (fixup_sigtramp): Delete declarations.
1098 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
1099 deprecated_pc_in_sigtramp.
1100 (ppcnbsd_pc_in_sigtramp): Delete function.
1102 2004-05-01 Mark Kettenis <kettenis@gnu.org>
1104 * config/m68k/nm-nbsd.h: Tweak comments.
1105 * config/m68k/nm-nbsdaout.h: Likewise.
1107 2004-04-30 Andrew Cagney <cagney@redhat.com>
1109 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
1110 legacy_pc_in_sigtramp.
1111 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
1113 2004-05-01 Mark Kettenis <kettenis@gnu.org>
1115 Add OpenBSD/m68k support.
1116 * NEWS (New native configurations): Mention OpenBSD/m68k.
1117 * m68kbsd-tdep.c: New file.
1118 * m68kbsd-nat.c: New file.
1119 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
1120 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
1121 * configure.host: Add m68k-*-openbsd.
1122 * configure.tgt: Add m68k-*-openbsd.
1123 * config/m68k/tm-obsd.h: New file.
1124 * config/m68k/obsd.mt: New file.
1125 * config/m68k/obsd.mh: New file.
1126 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
1129 2004-04-30 Andrew Cagney <cagney@redhat.com>
1131 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
1132 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
1134 2004-04-30 Mark Kettenis <kettenis@gnu.org>
1136 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
1137 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
1139 2004-04-30 Brian Ford <ford@vss.fsi.com>
1141 Revert 2004-04-16 change.
1142 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
1143 (i386_coff_init_abi): Remove.
1144 * i386-tdep.h (i386_coff_init_abi): Remove.
1145 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
1147 2004-04-30 Andrew Cagney <cagney@redhat.com>
1149 * blockframe.c (find_pc_partial_function): Delete use of
1150 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
1151 DEPRECATED_SIGTRAMP_END.
1153 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
1154 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
1155 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
1156 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
1157 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
1159 * defs.h (deprecated_inside_entry_file): Delete declaration.
1160 * blockframe.c (deprecated_inside_entry_file): Delete function.
1161 (legacy_frame_chain_valid): Delete call.
1162 * sh64-tdep.c (sh64_frame_chain): Delete call.
1163 * objfiles.h: Update comments.
1164 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
1166 * frame.c (get_prev_frame): Delete call, update comments.
1168 2004-04-30 Brian Ford <ford@vss.fsi.com>
1170 * MAINTAINERS (Write After Approval): Add myself.
1172 2004-04-30 Andrew Cagney <cagney@redhat.com>
1174 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
1175 * gdbarch.h, gdbarch.c: Re-generate.
1176 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
1179 2004-04-30 Andrew Cagney <cagney@redhat.com>
1181 * gdb-events.sh (selected_thread_changed)
1182 (selected_frame_level_changed, target_changed): Delete.
1183 * gdb-events.h, gdb-events.c: Re-generate.
1184 * valops.c (value_assign): Update.
1185 * stack.c (select_frame_command, up_silently_base)
1186 (down_silently_base): Update.
1188 2004-04-29 Andrew Cagney <cagney@redhat.com>
1190 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
1191 registers correctly.
1192 (print_gp_register_row, mips32_heuristic_proc_desc)
1193 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
1194 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
1195 references to mips_isa_regsize.
1197 2004-04-29 Andrew Cagney <cagney@redhat.com>
1199 * mips-tdep.c (struct gdbarch_tdep): Delete
1200 mips_fp_register_double.
1201 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
1203 (mips_gdbarch_init): Do not set mips_fp_register_double.
1204 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
1206 2004-04-29 Joel Brobecker <brobecker@gnat.com>
1208 Committed by Andrew Cagney.
1209 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
1212 2004-04-29 Andrew Cagney <cagney@redhat.com>
1214 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
1215 gdbarch, use mips_abi, update callers.
1216 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
1217 mips_abi_regsize, update callers.
1218 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
1219 mips_default_abi_regsize.
1220 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
1221 mips_default_abi_regsize.
1223 2004-04-29 Andrew Cagney <cagney@redhat.com>
1225 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
1226 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
1227 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
1228 mips_default_abi_regsize.
1229 (mips_isa_regsize): Rename mips_regisze.
1230 * mipsnbsd-tdep.c: Update.
1231 * mips-linux-tdep.c: Update.
1232 * irix5-nat.c: Update.
1233 * mips-tdep.h (mips_isa_regsize): Update.
1235 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
1236 Delete all disabled code.
1237 * gdb-events.h, gdb-events.c: Re-generate.
1239 2004-04-19 Jerome Guitton <guitton@gnat.com>
1240 Mark Kettenis <kettenis@gnu.org>
1242 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
1243 the function begins with a branch instruction.
1245 2004-04-29 Mark Kettenis <kettenis@gnu.org>
1247 * i386-tdep.c: Fix spelling mistakes.
1249 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1250 Andrew Cagney <cagney@redhat.com>
1252 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
1254 * acconfig.h: Provide default _KMEMUSER value.
1255 * config.in, configure: Re-generate.
1256 * NEWS: Mention fix.
1258 2004-04-24 Randolph Chung <tausq@debian.org>
1260 * configure.host (hppa*-*-linux*): New target.
1261 * configure.tgt (hppa*-*-linux*): Likewise.
1262 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
1263 gdbarch_init_osabi() call earlier so that osabi-specific frame
1264 unwinders can be registered first.
1265 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
1267 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
1268 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
1269 * config/pa/linux.mh: New file.
1270 * config/pa/linux.mt: New file.
1271 * config/pa/nm-linux.h: New file.
1272 * config/pa/xm-linux.h: New file.
1273 * hppa-linux-nat.c: New file.
1274 * hppa-linux-tdep.c: New file.
1276 2004-04-28 Randolph Chung <tausq@debian.org>
1278 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
1280 (hppa32_push_dummy_call): Fix small struct and floating point argument
1281 passing, and make sure the stack frame is properly aligned.
1283 2004-04-28 Andrew Cagney <cagney@redhat.com>
1285 * stack.c (print_stack_frame): Fix description.
1287 * NEWS: Mention gdb/gdbserver/configure execute permission
1288 changed. PR server/519.
1290 2004-04-28 Andrew Cagney <cagney@redhat.com>
1292 * stack.c (print_stack_frame_stub): Delete declaration.
1293 (struct print_stack_frame_args, print_stack_frame)
1294 (print_frame_info, print_frame): Replace "source" with print what.
1295 Replace "print" with "print_level". Replace "args" with
1297 * frame.h (show_and_print_stack_frame, print_stack_frame)
1298 (print_frame_info): Update declarations.
1299 * stack.c (select_and_print_frame, frame_command)
1300 (current_frame_command, up_command, down_command): Update calls -
1301 use get_selected_frame, pass "enum print_what" for source, do not
1302 call frame_relative_level.
1303 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
1304 * remote-rdp.c (remote_rdp_open): Ditto.
1305 * remote-mips.c (common_open): Ditto.
1306 * remote-e7000.c (e7000_start_remote): Ditto.
1307 * ocd.c (ocd_start_remote): Ditto.
1308 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
1309 * infrun.c (normal_stop): Ditto.
1310 * inflow.c (kill_command): Ditto.
1311 * infcmd.c (finish_command): Ditto.
1312 * corelow.c (core_open): Ditto.
1313 * tracepoint.c (finish_tfind_command): Ditto.
1314 * thread.c (info_threads_command, info_threads_command)
1315 (restore_current_thread, do_captured_thread_select): Ditto.
1316 * ada-tasks.c (task_command): Ditto.
1318 2004-04-26 Orjan Friberg <orjanf@axis.com>
1320 * frame.c: Include "observer.h".
1321 (frame_observer_target_changed): New function.
1322 (_initialize_frame): Attach target_changed observer.
1323 * regcache.c: Include "observer.h".
1324 (regcache_observer_target_changed): New function.
1325 (_initialize_regcache): Attach target_changed observer.
1326 * valops.c: Include "observer.h".
1327 (value_assign): Notify target_changed event when modifying register.
1328 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
1330 2004-04-26 Orjan Friberg <orjanf@axis.com>
1332 From Paul Koning <pkoning@equallogic.com>:
1333 * breakpoint.c (free_valchain): New function.
1334 (insert_bp_location, delete_breakpoint): Use free_valchain.
1335 (remove_breakpoint): Do not remove the valchain.
1336 (bpstat_stop_status): If not stopped by watchpoint, skip
1337 watchpoints when generating stop status list.
1338 * infrun.c (handle_inferior_event): Make
1339 stepped_after_stopped_by_watchpoint a global variable.
1340 * remote.c (remote_stopped_data_address): Return watch data
1341 address rather than zero if stepped_after_stopped_by_watchpoint is
1344 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
1347 * configure.in: Check for curses after termcap.
1348 On osf5.*, do not check for ncurses.
1349 * configure: Regenerate.
1351 2004-04-25 Mark Kettenis <kettenis@gnu.org>
1353 * ppcobsd-nat.c: Include "ppc-tdep.h".
1354 * Makefile.in (ppcobsd-nat.o): Update dependencies.
1356 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
1357 Fixes PR tdep/1623 and PR tdep/1624.
1359 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
1361 * xmodem.h, xmodem.c: Remove files.
1362 * Makefile.in: Remove references to xmodem.h, xmodem.c.
1364 2004-04-23 Randolph Chung <tausq@debian.org>
1366 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
1367 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
1368 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
1369 for handling stackless frames.
1370 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
1372 2004-04-23 Randolph Chung <tausq@debian.org>
1374 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
1375 starts at a pc before the frame is created.
1377 2004-04-23 Joel Brobecker <brobecker@gnat.com>
1379 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
1381 2004-04-23 Jerome Guitton <guitton@gnat.fr>
1383 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
1384 use convert_typed_floating to get the appropriate format.
1386 2004-04-22 Randolph Chung <tausq@debian.org>
1388 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
1389 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
1390 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
1391 (hppa_sign_extend): Add prototype.
1392 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
1393 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
1394 (sign_extend): Rename with hppa_ prefix and make non-static. Other
1395 hppa targets will also use these functions.
1396 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
1397 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
1398 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
1399 (hppa_gdbarch_init): Remove gdbarch setting of
1400 skip_trampoline_code, in_solib_call_trampoline and
1401 in_solib_return_trampoline.
1402 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
1403 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
1404 hppa_in_solib_call_trampoline.
1405 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
1406 Moved from hppa-tdep.c.
1407 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
1408 in_solib_call_trampoline and in_solib_return_trampoline.
1410 2004-04-22 Randolph Chung <tausq@debian.org>
1412 * hppa-tdep.c (hppa_debug): New variable.
1413 (find_unwind_entry, hppa_frame_cache): Add debug output.
1414 (_initialize_hppa_tdep): Add command to set debug flag.
1416 2004-04-22 Andrew Cagney <cagney@redhat.com>
1418 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
1420 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
1421 signal trampoline unwinder.
1422 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
1424 2004-04-22 Mark Kettenis <kettenis@gnu.org>
1426 Add OpenBSD/powerpc support.
1427 * NEWS (New native configurations): Mention OpenBSD/powerpc.
1428 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
1429 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
1430 (ppc_collect_fpregset): New prototypes.
1431 * ppcobsd-nat.c: New file.
1432 * ppcobsd-tdep.c: New file.
1433 * ppcobsd-tdep.h: New file.
1434 * rs6000-tdep.c: Include "regset.h".
1435 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
1436 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
1438 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
1439 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
1440 (rs6000-tdep.o): Update dependencies.
1441 * configure.host: Add powerpc-*-openbsd.
1442 * configure.tgt: Add powerpc-*-openbsd.
1443 * config/powerpc/obsd.mh: New file.
1444 * config/powerpc/nm-obsd.h: New file.
1445 * config/powerpc/obsd.mt: New file.
1447 2004-04-22 Andrew Cagney <cagney@redhat.com>
1449 * frame.h (show_frame_info): Delete declaration.
1451 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
1452 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1453 * m32r-tdep.c (m32r_frame_this_id): Ditto.
1454 * frv-tdep.c (frv_frame_this_id): Ditto.
1455 * avr-tdep.c (avr_frame_this_id): Ditto.
1457 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
1459 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
1461 2004-04-22 Jim Blandy <jimb@redhat.com>
1463 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
1464 register number zero.
1466 2004-04-21 Michael Snyder <msnyder@redhat.com>
1468 * mips-tdep.c (heuristic_proc_start):
1469 Warning() already prefixes "Warning: ".
1471 2004-04-21 Andrew Cagney <cagney@redhat.com>
1473 * annotate.h (deprecated_annotate_starting_hook)
1474 (deprecated_annotate_stopped_hook)
1475 (deprecated_annotate_exited_hook)
1476 (deprecated_annotate_signal_hook)
1477 (deprecated_annotate_signalled_hook): Deprecate.
1478 * tracepoint.h (deprecated_create_tracepoint_hook)
1479 (deprecated_delete_tracepoint_hook)
1480 (deprecated_modify_tracepoint_hook)
1481 (deprecated_trace_find_hook)
1482 (deprecated_trace_start_stop_hook): Deprecate.
1483 * target.h (deprecated_target_new_objfile_hook): Deprecate.
1484 * remote.h (deprecated_target_resume_hook)
1485 (deprecated_target_wait_loop_hook): Deprecate.
1486 * gdbcore.h (deprecated_exec_file_display_hook)
1487 (deprecated_file_changed_hook): Deprecate.
1488 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
1489 * defs.h (deprecated_modify_breakpoint_hook)
1490 (deprecated_command_loop_hook, deprecated_show_load_progress)
1491 (deprecated_print_frame_info_listing_hook)
1492 (deprecated_query_hook, deprecated_warning_hook)
1493 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
1494 (deprecated_delete_breakpoint_hook)
1495 (deprecated_interactive_hook, deprecated_registers_changed_hook)
1496 (deprecated_readline_begin_hook, deprecated_readline_hook)
1497 (deprecated_readline_end_hook, deprecated_register_changed_hook)
1498 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
1499 (deprecated_context_hook, deprecated_target_wait_hook)
1500 (deprecated_attach_hook, deprecated_detach_hook)
1501 (deprecated_call_command_hook, deprecated_set_hook)
1502 (deprecated_error_hook, deprecated_error_begin_hook)
1503 (deprecated_ui_load_progress_hook): Deprecate.
1504 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
1505 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
1506 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
1507 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
1508 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
1509 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
1510 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
1511 * annotate.c, aix-thread.c: Update.
1513 2004-04-21 Andrew Cagney <cagney@redhat.com>
1515 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
1516 * vaxnbsd-tdep.c: Include "gdb_string.h".
1518 * symfile.c (symbol_file_add_from_memory): #if 0 function.
1519 (add_symbol_file_from_memory_command): #if 0 function body, call
1522 2004-04-21 Andrew Cagney <cagney@redhat.com>
1524 * gdbcore.h: Update copyright.
1525 (deprecated_add_core_fns): Rename add_core_fns.
1526 * win32-nat.c (_initialize_core_win32): Update.
1527 * sun3-nat.c (_initialize_core_sun3): Update.
1528 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
1529 * rs6000-nat.c (_initialize_core_rs6000): Update.
1530 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
1531 * nto-tdep.c (_initialize_nto_tdep): Update.
1532 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
1533 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
1534 * mips-nat.c (_initialize_core_mips): Update.
1535 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
1536 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
1537 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
1538 * lynx-nat.c (_initialize_core_lynx): Update.
1539 * irix5-nat.c (_initialize_core_irix5): Update.
1540 * i386-interix-nat.c (_initialize_core_interix): Update.
1541 * cris-tdep.c (_initialize_cris_tdep): Update.
1542 * corelow.c (deprecated_add_core_fns): Update.
1543 * core-regset.c (_initialize_core_regset): Update.
1544 * core-aout.c (_initialize_core_aout): Update.
1545 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
1546 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
1547 * alpha-nat.c (_initialize_core_alpha): Update.
1549 2004-04-21 Jim Blandy <jimb@redhat.com>
1551 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
1553 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
1555 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
1557 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
1558 (read_attribute_value): Update calls to dwarf_alloc_block.
1559 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
1561 (psymtab_to_symtab_1): Likewise. Clean up using
1562 free_stack_comp_unit.
1563 (add_to_cu_func_list): Use the comp_unit_obstack.
1565 2004-04-19 Joel Brobecker <brobecker@gnat.com>
1567 * dwarf2read.c (dwarf2_flag_true_p): New function.
1568 (die_is_declaration): Use the function above. Add some comments.
1570 2004-04-19 Mark Kettenis <kettenis@gnu.org>
1572 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
1573 architecture when registering sparcnbsd_core_osabi_sniffer.
1576 2004-04-18 Mark Kettenis <kettenis@gnu.org>
1578 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
1581 Based on a patch from Brian Ford <ford@vss.fsi.com>:
1582 * i386-tdep.c: Correct register numbering scheme comments
1584 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
1585 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
1586 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
1587 (i386_gdb_arch_init): Likewise.
1589 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
1590 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
1593 * m68k-tdep.h: Tweak comments.
1594 * m68k-tdep.c: Tweak comment.
1596 2004-04-17 Randolph Chung <tausq@debian.org>
1598 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
1599 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
1600 (hppa_hpux_som_init_abi): Set is_elf to 0.
1601 (hppa_hpux_elf_init_abi): Set is_elf to 1.
1602 * hppa-tdep.c (low_text_segment_address): Remove global.
1603 (record_text_segment_lowaddr): Pass in low address as parameter. Use
1604 section offset to calculate segment address.
1605 (internalize_unwinds): Define low_text_segment_address as local and
1606 pass to record_text_segment_lowaddr for ELF targets.
1607 (hppa_gdbarch_init): Zero fill tdep structure.
1608 (hppa_dump_tdep): Print tdep structure.
1609 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
1611 2004-04-17 Randolph Chung <tausq@debian.org>
1613 * hppa-tdep.c (hppa_pseudo_register_read): Define.
1614 (hppa_gdbarch_init): Set pseudo_register_read.
1615 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
1616 * regcache.c (supply_register): Remove check for
1617 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
1619 2004-04-17 Randolph Chung <tausq@debian.org>
1621 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
1622 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
1623 (hpread_adjust_stack_address): Move to hpread.c.
1624 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
1625 obj_private_struct): Move from tm-hppa.h.
1626 * hpread.c (hppa-tdep.h): Include.
1627 (hpread_adjust_stack_address): Move from hppa-tdep.c.
1628 (hpread_read_function_type, hpread_read_doc_function_type)
1629 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
1631 * pa64solib.c (hppa-tdep.h): Include.
1632 * somsolib.c (hppa-tdep.h): Include.
1633 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
1634 inferior_status): Remove unused forward declarations.
1635 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
1636 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
1637 obj_private_struct): Move to hppa-tdep.h.
1638 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
1640 2004-04-17 Randolph Chung <tausq@debian.org>
1642 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
1643 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
1644 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
1645 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
1646 Remove forward declaration and make static.
1647 (hppa_reg_struct_has_addr): Remove.
1649 2004-04-16 Joel Brobecker <brobecker@gnat.com>
1651 * observer.sh: Move comments in sed command to first column.
1653 2004-04-16 Jason Molenda (jmolenda@apple.com)
1655 * frame.c: Minor typeo corrections in comments.
1657 2004-04-16 Joel Brobecker <brobecker@gnat.com>
1659 * observer.c (observer_test_first_notification_function): Update
1661 (observer_test_second_notification_function): Likewise.
1662 (observer_test_third_notification_function): Likewise.
1664 2004-04-16 Mark Kettenis <kettenis@gnu.org>
1666 From Brian Ford <ford@vss.fsi.com>:
1667 * i386-tdep.c (i386_coff_init_abi): New function.
1668 * i386-tdep.h (i386_coff_init_abi): New prototype.
1669 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
1670 register number translation functions for DWARF and DWARF 2.
1672 2004-04-16 Joel Brobecker <brobecker@gnat.com>
1674 * dwarf2read.c: Back out my previous change, it was incorrect.
1676 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
1678 * dwarf2read.c: Include "hashtab.h".
1679 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
1681 (struct partial_die_info): Add comments. Use bitfields to reduce
1682 memory footprint. Add scope, scope_set, has_specification,
1683 spec_offset, die_parent, die_child, and die_sibling.
1684 (peek_die_abbrev): Add prototype.
1685 (partial_read_comp_unit_head): New function, broken out from
1686 dwarf2_build_psymtabs_hard.
1687 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
1688 Use partial_read_comp_unit_head. Initialize the CU and
1689 comp_unit_obstack. Update calls to read_partial_die and
1690 scan_partial_symbols. Use free_stack_comp_unit and
1692 (scan_partial_symbols): Change PDI to a pointer. Use the child and
1693 sibling pointers to walk partial DIEs. Call fixup_partial_die.
1694 Update calls to helper functions. Remove NAMESPACE argument.
1696 (partial_die_parent_scope, partial_die_full_name): New functions.
1697 (add_partial_symbol): Remove namespace argument. Update call to
1698 pdi_needs_namespace. Use partial_die_full_name. Handle
1699 DW_TAG_namespace. Check has_namespace_info flag.
1700 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
1701 tag. Handle namespaces.
1702 (add_partial_namespace, add_partial_enumeration): Simplify.
1703 (guess_structure_name): New function, derived from
1704 add_partial_structure.
1705 (add_partial_structure): Remove.
1706 (determine_class_name): Update comment.
1707 (dwarf2_read_abbrevs): Set has_namespace_info flag.
1708 (is_type_tag_for_partial, load_partial_dies): New functions.
1709 (read_partial_die): Pass abbrev and abbrev_len as arguments.
1710 Record specifications instead of following them immediately.
1711 (find_partial_die_in_comp_unit, find_partial_die)
1712 (fixup_partial_die, free_stack_comp_unit)
1713 (hashtab_obstack_allocate, dummy_obstack_deallocate)
1714 (partial_die_hash, partial_die_eq): New functions.
1715 * Makefile.in (hashtab_h): Define.
1716 (dwarf2read.o): Update dependencies.
1717 (observer_inc, observer_h): Move to the correct section.
1719 2004-04-15 Joel Brobecker <brobecker@gnat.com>
1721 * dwarf2read.c (dwarf2_attribute_true_p): New function.
1722 (die_is_declaration): Use the function above. Add comment.
1724 2004-04-15 Joel Brobecker <brobecker@gnat.com>
1726 * dwarf2read.c (read_structure_scope): Identify stub types
1727 using die_is_declaration() only.
1729 2004-04-15 Roland McGrath <roland@redhat.com>
1731 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
1732 argument instead of NAME.
1733 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
1734 in call to symbol_file_add_with_addrs_or_offsets.
1735 (build_addr_info): New function, helper for ...
1736 (symbol_file_add_from_memory): New function.
1737 (add_symbol_file_from_memory_command): New function using that.
1738 (_initialize_symfile): Register it for add-symbol-file-from-memory.
1739 (pre_add_symbol_hook): Add const to argument type.
1740 * symfile.h (symbol_file_add_from_memory): Declare it.
1742 2004-04-15 Mark Kettenis <kettenis@gnu.org>
1744 * NEWS (New native configurations): Mention OpenBSD/vax.
1745 * configure.host: Add vax-*-openbsd*.
1746 * config/vax/obsd.mh: New file.
1747 * config/vax/nm-obsd.h: New file.
1749 * vax-tdep.c: Include "regset.h".
1750 (vax_supply_gregset): New function.
1751 (vax_gregset): New variable.
1752 (vax_regset_from_core_section): New function.
1753 (vax_gdbarch_init): Set regset_from_core_section.
1754 * Makefile.in (vax-tdep.o): Update dependencies.
1756 2004-04-15 Andrew Cagney <cagney@redhat.com>
1758 * observer.c (normal_stop_subject, observer_notify_normal_stop)
1759 (observer_normal_stop_notification_stub)
1760 (observer_attach_normal_stop, observer_detach_normal_stop):
1761 Delete, replaced by #include "observer.inc".
1762 * infrun.c (normal_stop): Pass "stop_bpstat" to
1763 observer_notify_normal_stop.
1764 * Makefile.in (observer_inc): Define.
1765 (observer.o): Update dependencies.
1766 (observer.h, observer.inc): New rules.
1767 * observer.h: Delete file.
1768 * observer.sh: New file.
1770 2004-04-15 Mark Kettenis <kettenis@gnu.org>
1772 * vax-tdep.c (vax_frame_cache): Fix typo.
1774 2004-04-14 Mark Kettenis <kettenis@gnu.org>
1776 * NEWS (New native configurations): Mention NetBSD/vax.
1777 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
1778 * config/vax/nbsdelf.mh: New file.
1779 * config/vax/nbsdaout.mh: New file.
1780 * config/vax/nm-nbsd.h: New file.
1781 * config/vax/nm-nbsdaout.h: New file.
1783 * vaxnbsd-tdep.c: New file.
1784 * Makefile.in (vaxnbsd-tdep.o): New dependency.
1785 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
1786 * config/vax/nbsd.mt: New file.
1787 * config/vax/tm-nbsd.h: New file.
1789 * Makefile.in (vaxbsd-nat.o): New dependency.
1791 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
1792 * vax-tdep.c (vax_store_arguments): Remove struct_return and
1793 struct_addr arguments. Don't push return value address.
1794 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
1795 arguments to vax_store_arguments. Store return value address in
1797 (vax_store_struct_return, vax_extract_return_value)
1798 (vax_store_return_value): Remove functions.
1799 (vax_return_value): New function.
1800 (vax_gdbarch_init): Set return value. Don't set
1801 deprecated_store_struct_return, deprecated_extract_struct_return
1802 and deprecated_store_return_value.
1804 2004-04-14 Andreas Schwab <schwab@suse.de>
1806 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
1808 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
1810 2004-04-14 Mark Kettenis <kettenis@gnu.org>
1812 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
1813 (vax_unwind_dummy_id): New functions.
1814 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
1815 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
1817 (vax_fix_call_dummy): Remove function.
1818 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
1819 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
1820 call_dummy_location, deprecated_call_dummy_words,
1821 deprecated_sizeof_call_dummy_words,
1822 deprecated_call_dummy_breakpoint_offset,
1823 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
1824 and deprecated_dummy_write_sp.
1826 2004-04-13 David Carlton <carlton@kealia.com>
1828 * MAINTAINERS: Move myself to "paper trail" section.
1830 2004-04-12 Mark Kettenis <kettenis@gnu.org>
1832 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
1834 (vax_frame_init_saved_regs): Remove function.
1835 (vax_sigtramp_saved_pc): Remove function.
1836 (vax_frame_saved_pc): Remove function.
1837 (vax_frame_args_address): Remove function.
1838 (vax_frame_num_args): Rewrite.
1839 (vax_frame_chain): Remove function.
1840 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
1842 (vax_pop_frame): Likewise.
1843 (vax_saved_pc_after_call): Remove function.
1844 (struct vax_frame_cache): New structure.
1845 (vax_frame_cache): New function.
1846 (vax_frame_this_id): New function.
1847 (vax_frame_prev_register): New function.
1848 (vax_frame_unwind): New variable.
1849 (vax_frame_sniffer): New function.
1850 (vax_frame_base_address): New function.
1851 (vax_frame_args_address): New function.
1852 (vax_frame_base): New variable.
1853 (vax_unwind_pc): New function.
1854 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
1855 deprecated_fp_regnum, deprecated_saved_pc_after_call,
1856 deprecated_frame_chain, deprecated_frame_saved_pc,
1857 deprecated_frame_args_address and
1858 deprecated_frame_init_saved_regs.
1859 * Makefile.in (vax-tdep.o): Update dependencies.
1861 * vaxbsd-nat.c: New file.
1863 * vax-tdep.h: Update copyright year. Adjust comments.
1864 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
1865 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
1866 (vax_regnum): New enum. Replacing...
1867 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
1868 (VAX_PS_REGNUM): ... these removed macros.
1869 * vax-tdep.c (vax_register_name): Remove prototype.
1870 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
1871 (vax_register_byte, vax_register_raw_size,
1872 vax_register_virtual_size, vax_register_virtual_type): Remove
1874 (vax_register_type): New function.
1875 (vax_breakpoint_from_pc): Reorganize.
1876 (vax_gdbarch_init): Set register_type. Don't set
1877 deprecated_register_size, deprecated_register_bytes,
1878 deprecated_register_byte, deprecated_register_raw_size,
1879 deprecated_max_register_raw_size,
1880 deprecated_register_virtual_size,
1881 deprecated_max_register_virtual_size and
1882 deprecated_register_virtual_type. Add comment on stack direction.
1884 2004-04-11 Mark Kettenis <kettenis@gnu.org>
1886 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
1887 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
1888 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
1890 2004-04-10 Randolph Chung <tausq@debian.org>
1892 * MAINTAINERS (write after approval): Add myself.
1894 2004-04-07 Randolph Chung <tausq@debian.org>
1896 * hppa-tdep.c (hppa_inner_than): Remove.
1897 (is_pa_2): Remove unused static variable.
1898 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
1900 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
1902 * language.h (language_defn): Add new la_post_parser field.
1903 * parser-defs.h (null_post_parser): New declaration (default for
1906 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
1907 insert call to that function.
1908 (parse_exp_in_context): New function, including code formerly in
1909 parse_exp_1. Calls language-dependent post-parser after
1911 (parse_expression_in_context): New exported function.
1912 (null_post_parser): New definition.
1913 * expression.h (parse_expression_in_context): Add declaration.
1915 * p-lang.c (pascal_language_defn): Add trivial post-parser.
1916 * c-lang.c (c_language_defn): Ditto.
1917 (cplus_language_defn): Ditto.
1918 (asm_language_defn): Ditto.
1919 (minimal_language_defn): Ditto.
1920 * f-lang.c (f_language_defn): Ditto.
1921 * jv-lang.c (java_language_defn): Ditto.
1922 * language.c (unknown_language_defn): Ditto.
1923 (auto_language_defn): Ditto.
1924 (local_language_defn): Ditto.
1925 * m2-lang.c (m2_language_defn): Ditto.
1926 * scm-lang.c (scm_language_defn): Ditto.
1927 * obj-lang.c (objc_language_defn): Ditto.
1929 2004-04-10 Mark Kettenis <kettenis@gnu.org>
1931 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
1932 (amd64nbsd_mcontext_addr): New function.
1933 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
1934 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
1935 with amd64nbsd_r_reg_offset, instead of building it on the fly.
1937 * corelow.c (core_xfer_partial): Fix coding standards violation.
1938 Add support for TARGET_OBJECT_WCOOKIE.
1940 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
1941 deprecated_pc_in_sigtramp.
1942 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
1943 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
1944 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
1945 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
1946 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
1947 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
1948 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
1950 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
1951 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
1954 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
1955 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
1956 (amd64_collect_fxsave): Likewise.
1958 * i386-sol2-tdep.c: Include "gdb_string.h".
1959 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
1961 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
1963 2004-04-10 Mark Kettenis <kettenis@gnu.org>
1965 * i386-sol2-tdep.c: Include "solib-svr4.h".
1966 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
1967 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
1968 * config/i386/tm-i386sol2.h: Include :solib.h".
1969 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
1970 solib-svr4.o and solib-legacy.o.
1971 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
1974 2004-04-09 Mark Kettenis <kettenis@gnu.org>
1976 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
1977 whether a register is supplied by PTRACE_GETFPREGS.
1978 (store_inferior_registers): Likewise.
1979 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
1980 whether a register is supplied by PT_GETFPREGS.
1981 (store_inferior_registers): Likewise.
1983 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
1984 * config/i386/linux64.mt (TDEPFILES): Likewise.
1986 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
1988 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
1989 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
1990 the program counter is in the range specified by `struct
1992 * amd64-linux-tdep.c: Include "symtab.h".
1993 (amd64_linux_pc_in_sigtramp): Remove function.
1994 (amd64_linux_sigtramp_p): New function.
1995 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
1996 deprecated_pc_in_sigtramp.
1997 * amd64nbsd-tdep.c: Include "symtab.h".
1998 (amd64nbsd_sigtramp_p): New function.
1999 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
2000 deprecated_pc_in_sigtramp.
2001 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
2003 (amd64obsd_pc_in_sigtramp): Remove function.
2004 (amd64obsd_sigtramp_p): New function.
2005 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
2006 deprecated_pc_in_sigtramp.
2007 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
2008 (i386bsd_pc_ins_sigtramp): Remove prototype.
2009 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
2010 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
2011 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
2012 the program counter is in the range specified by `struct
2014 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
2015 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
2016 (i386_go32_pc_in_sigtramp): Remove function.
2017 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
2018 Initialize TDEP->sigtramp_p.
2019 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
2020 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
2021 deprecated_pc_in_sigtramp.
2022 * i386-linux-tdep.c: Adjust comments.
2023 (i386_linux_pc_in_sigtramp): Remove function.
2024 (i386_linux_sigtramp_p): New function.
2025 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
2026 deprecated_pc_in_sigtramp.
2027 * i386-nto-tdep.c: Update copyright year.
2028 (i386nto_pc_in_sigtramp): Remove function.
2029 (i386nto_sigtramp_p): New function.
2030 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
2032 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
2033 deprecated_pc_in_sigtramp.
2034 * i386-sol2-tdep.c: Update copyright year.
2035 (i386_sol2_pc_in_sigtramp): Remove function.
2036 (i386_sol2_sigtramp_p): New function.
2037 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
2038 deprecated_pc_in_sigtramp.
2039 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
2040 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
2041 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
2042 deprecated_sigtramp_start and deprecated_sigtramp_end.
2043 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
2044 (i386nbsd_pc_in_sigtramp): Remove function.
2045 (i386nbsd_sigtramp_p): New function.
2046 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
2047 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
2048 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
2049 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
2050 (i386obsd_pc_in_sigtramp): Remove function.
2051 (i386obsd_sigtramp_p): New function.
2052 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
2054 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
2055 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
2057 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
2058 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
2061 * config/i386/i386aout.mt: Remove file.
2063 * configure.tgt: Remove i[34567]86-*-go32*,
2064 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
2065 and i[34567]86-*-isc*. Set gdb_target to i386 for
2066 i[34567]86-*-netware* and i[34567]86-*-*.
2067 * config/i386/i386.mt: New file.
2068 * config/i386/embed.mt: Remove file.
2069 * config/i386/go32.mt: Remove file.
2070 * config/i386/i386nw.mt: Remove file.
2071 * config/i386/i386v.mt: Remove file.
2072 * config/i386/tm-go32.h: Remove file.
2074 * tui/tui-hooks.c: Include "readline/readline.h" after
2075 "gdb_curses.h" instead of before.
2076 * tui/tui-io.c: Likewise.
2078 * tui/tui.c: Fix typo in comment.
2080 * sparc64-tdep.c (sparc_address_from_register): Remove function.
2082 2004-04-08 Andrew Cagney <cagney@redhat.com>
2084 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
2085 (deprecated_exception_support_initialized): Declare.
2086 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
2087 (initialize_hp_cxx_exception_support)
2088 (child_enable_exception_callback): Update.
2089 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
2090 (deprecated_exception_support_initialized): Rename
2091 deprecated_exception_catchpoints_are_fragile and
2092 deprecated_exception_support_initialized.
2093 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
2095 * symtab.c (deprecated_hp_som_som_object_present): Rename
2096 hp_som_som_object_present.
2097 * symtab.h (deprecated_hp_som_som_object_present): Declare.
2098 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
2099 Update. Delete extern declaration.
2100 * valops.c (hp_som_som_object_present): Ditto.
2101 * parse.c (deprecated_hp_som_som_object_present)
2102 (parse_nested_classes_for_hpacc): Ditto.
2103 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
2104 * hppa-hpux-tdep.c (hp_som_som_object_present)
2105 (initialize_hp_cxx_exception_support): Ditto.
2106 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
2107 * cp-valprint.c (hp_som_som_object_present)
2108 (cp_print_class_method): Ditto.
2109 * c-typeprint.c (hp_som_som_object_present):
2110 (c_type_print_base): Ditto.
2111 * c-exp.y (hp_som_som_object_present): Ditto.
2113 2004-04-08 Andrew Cagney <cagney@redhat.com>
2115 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
2116 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
2117 (frame_unwind_find_by_frame): Re-implement the unwind code so
2118 that it can both prepend and append sniffers. Replace
2119 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
2120 * tramp-frame.c (tramp_frame_append): Use
2121 frame_unwind_prepend_unwinder.
2122 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
2123 frame_unwind_register_unwinder.
2124 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
2126 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
2127 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
2128 (mips_linux_init_abi): Update.
2130 2004-04-08 Kevin Buettner <kevinb@redhat.com>
2132 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
2133 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
2136 2004-04-07 Kevin Buettner <kevinb@redhat.com>
2138 * ia64-tdep.c (elf.h): Don't include.
2139 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
2141 2004-04-07 Jason Molenda (jmolenda@apple.com)
2143 * frame.h: Typeo corrections in comments.
2145 2004-04-07 Jim Blandy <jimb@redhat.com>
2147 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
2150 2004-04-07 Mark Kettenis <kettenis@gnu.org>
2152 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
2153 * config/sparc/linux64.mt (TDEPFILES): Likewise.
2154 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2155 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
2157 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
2159 * config/sparc/tm-sol2.h: Update copyright year. Include
2162 * sparc-sol2-tdep.c: Update copyright year. Include
2164 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
2165 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
2166 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
2167 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
2170 2004-04-06 Andrew Cagney <cagney@redhat.com>
2172 * infttrace.c: Include "infttrace.h".
2173 * infttrace.h: Include "target.h".
2174 * Makefile.in (infttrace_h): Update.
2175 (infttrace.o): Update.
2177 2004-04-06 Andrew Cagney <cagney@redhat.com>
2179 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
2180 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
2181 move extern declarations from here ...
2182 * infttrace.h: ... to here.
2183 * Makefile.in (hppah-nat.o): Update dependencies.
2185 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
2186 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
2187 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
2188 (hppa_breakpoint_from_pc): Delete.
2190 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
2192 2004-04-05 Andrew Cagney <cagney@redhat.com>
2194 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
2195 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
2198 2004-04-06 Randolph Chung <tausq@debian.org>
2200 Committed by Andrew Cagney (mechanical change).
2201 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
2202 exception_catchpoints_are_fragile, find_stub_with_shl_get,
2203 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
2204 child_enable_exception_callback, current_ex_event,
2205 null_symtab_and_line, child_get_current_exception_event,
2206 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
2207 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
2208 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
2209 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
2210 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
2211 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
2212 Move hpux-specific definitions ...
2213 * hppa-hpux-tdep.c: ... to here.
2215 2004-04-05 Andrew Cagney <cagney@redhat.com>
2217 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
2218 skip_prologue_using_sal.
2220 2004-04-05 Andrew Cagney <cagney@redhat.com>
2222 * config/i386/tm-i386.h: Delete file.
2223 * config/i386/tm-vxworks.h: Update copyright, do not include
2225 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
2226 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
2227 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
2228 * config/i386/ncr3000.mt (TM_FILE): Delete.
2229 * config/i386/interix.mt (TM_FILE): Delete.
2230 * config/i386/i386v.mt (TM_FILE): Delete.
2231 * config/i386/i386nw.mt (TM_FILE): Delete.
2232 * config/i386/i386gnu.mt (TM_FILE): Delete.
2233 * config/i386/i386aout.mt (TM_FILE): Delete.
2234 * config/i386/embed.mt (TM_FILE): Delete.
2236 2004-04-05 Kevin Buettner <kevinb@redhat.com>
2238 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
2239 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
2240 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
2241 (accg7_regnum): New constants.
2242 (last_spr_regnum, last_pseudo_regnum): Update.
2243 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
2244 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
2245 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
2247 (frv_register_sim_regno): Update spr_map[].
2249 2004-04-04 Andrew Cagney <cagney@redhat.com>
2251 * config/mips/xm-riscos.h: Delete.
2252 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
2253 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
2254 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
2255 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
2256 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
2257 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
2258 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
2259 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
2260 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
2261 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
2262 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
2263 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
2264 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
2265 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
2266 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
2267 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
2268 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
2269 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
2270 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
2271 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
2272 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
2273 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
2274 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
2275 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
2276 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
2277 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
2279 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
2280 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
2281 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
2282 * configure.host: Remove m680[01]0-sun-sunos3*,
2283 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
2284 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
2285 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
2286 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
2288 * NEWS: Mention removed systems.
2290 2004-04-04 Andrew Cagney <cagney@redhat.com>
2292 GDB 6.1 release created from 6.1 branch.
2294 2004-04-04 Andrew Cagney <cagney@redhat.com>
2296 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
2297 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2298 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
2300 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
2301 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
2302 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
2304 2004-04-03 Jim Blandy <jimb@redhat.com>
2306 * MAINTAINERS: Chris Faylor has changed employers; add him to
2307 "paper trail" section, and update his E-mail address.
2309 2004-04-03 Andrew Cagney <cagney@redhat.com>
2311 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
2312 generic dummy frames.
2313 * dummy-frame.c: Update copyright.
2314 (dummy_frame_sniffer): Delete check for generic dummy frames.
2316 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
2317 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
2318 (REG_PARM_STACK_SPACE): Delete.
2319 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
2320 Inline reference to REG_PARM_STACK_SPACE.
2322 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
2323 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
2324 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
2325 (FRAME_BASE_BEFORE_SIGTRAMP)
2326 (hppa32_hpux_frame_base_before_sigtramp)
2327 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
2328 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
2329 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
2330 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
2331 (FRAME_BASE_BEFORE_SIGTRAMP)
2332 (hppa64_hpux_frame_base_before_sigtramp)
2333 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
2335 2004-04-03 Andrew Cagney <cagney@redhat.com>
2337 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
2339 2004-04-02 Andrew Cagney <cagney@redhat.com>
2341 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
2342 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
2343 * dummy-frame.h: Delete out-of-date comments.
2344 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
2345 * gdbarch.h, gdbarch.c: Re-generate.
2347 2004-04-02 Joel Brobecker <brobecker@gnat.com>
2349 Committed by Andrew Cagney <cagney@redhat.com>.
2350 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
2351 into account an instruction saving a register if we have already
2352 seen an earlier instruction saving that same register.
2354 2004-04-02 Andrew Cagney <cagney@redhat.com>
2356 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
2357 * gdbarch.h, gdbarch.c: Re-generate.
2358 * frame.c (legacy_get_prev_frame): Delete references to
2359 DEPRECATED_INIT_FRAME_PC_FIRST.
2361 * infrun.c (pc_in_sigtramp): Delete function.
2362 (check_sigtramp2): Inline call to pc_in_sigtramp, use
2365 2004-04-02 Andrew Cagney <cagney@redhat.com>
2367 * infrun.c (handle_step_into_function): Delete code conditional on
2369 (handle_inferior_event, step_over_function): Ditto.
2371 2004-04-02 Andrew Cagney <cagney@redhat.com>
2373 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
2374 "previous frame inner to this frame" test.
2376 2004-04-02 Andrew Cagney <cagney@redhat.com>
2378 * frame.c (safe_frame_unwind_memory): New function.
2379 * frame.h (safe_frame_unwind_memory): Declare. Update description
2381 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
2382 "next_frame". Use safe_frame_unwind_memory.
2383 (tramp_frame_sniffer): Update call to tramp_frame_start.
2385 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
2387 * dwarf2read.c (dwarf2_objfile_data_key): New.
2388 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
2389 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
2390 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
2391 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
2392 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
2393 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
2394 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
2396 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
2397 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
2398 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
2399 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
2400 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
2401 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
2403 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
2405 (dwarf2_locate_sections, dwarf2_build_psymtabs)
2406 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
2407 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
2408 (read_partial_die, read_full_die, read_indirect_string)
2409 (dwarf_decode_line_header, dwarf_decode_macros)
2410 (dwarf2_symbol_mark_computed): Remove use of removed macros.
2411 Update uses of removed variables.
2412 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
2414 (_initialize_dwarf2_read): New function.
2415 * symfile.h (dwarf2_has_info): Update prototype.
2416 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
2417 * elfread.c (elf_symfile_read): Likewise.
2419 2004-04-01 Jim Blandy <jimb@redhat.com>
2421 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
2422 function for register numbers on all the rs6000-derived targets.
2423 (rs6000_gdbarch_init): Don't register a separate
2424 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
2425 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
2428 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
2431 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2433 * valarith.c: Update copyright notice.
2434 (value_add): Handle range types.
2436 (value_equal): Ditto.
2437 (value_less): Ditto.
2439 (value_complement): Ditto.
2440 (value_binop): Simplify slightly by using is_integral_type and
2441 eliminiating unnecessary COERCE_ENUMs.
2443 2004-03-31 Andrew Cagney <cagney@redhat.com>
2445 * frame.h (frame_unwind_id): Declare.
2446 * frame.c (frame_unwind_id): New function.
2447 (get_prev_frame_1): New function.
2448 (frame_debug_got_null_frame): New function.
2449 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
2450 code proper to prev_frame, update description.
2451 * infrun.c (step_over_function): Use frame_unwind_id.
2453 2004-04-31 J. Brobecker <brobecker@gnat.com>
2455 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
2456 (hppa64_push_dummy_call): Likewise.
2458 2004-03-30 Jim Blandy <jimb@redhat.com>
2460 From Ulrich Weigand:
2461 * utils.c (query): Do not use a va_list variable multiple times.
2463 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
2465 * Makefile.in (linux_nat_h): Update dependencies.
2466 * configure.in: Check for <gnu/libc-version.h>.
2467 * configure: Regenerate.
2468 * config.in: Regenerate.
2469 * linux-nat.h: Include "target.h". Add waitstatus field to
2471 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
2472 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
2474 (lin_lwp_handle_extended): New function. Handle clone events.
2475 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
2477 (child_wait): Handle clone events.
2478 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
2479 * linux-nat.c (linux_enable_event_reporting): Turn on
2480 PTRACE_O_TRACECLONE.
2481 (linux_handle_extended_wait): Handle clone events.
2482 * thread-db.c: Include <gnu/libc-version.h>.
2483 (struct private_thread_info): Add dying flag.
2484 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
2486 (attach_thread): Update comments. Handle dying threads.
2487 (detach_thread): Set the dying flag.
2488 (check_event): Always call attach_thread.
2490 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
2492 * mips-tdep.c (mips_pdr_data): New.
2493 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
2494 (_initialize_mips_tdep): Initialize mips_pdr_data.
2496 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
2498 * minsyms.c (install_minimal_symbols): Move dropping leading
2499 char from linkage name from here...
2500 (prim_record_minimal_symbol_and_info): ...to here. Simplify
2501 test for "__gnu_compiled*" symbols.
2503 2004-03-28 Jim Blandy <jimb@redhat.com>
2505 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
2506 registers to temp register r0 and byte stores as prologue
2509 2004-03-28 Andrew Cagney <cagney@redhat.com>
2511 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
2514 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
2516 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
2517 and switch the layout to force a display of register window.
2519 2004-02-26 J. Brobecker <brobecker@gnat.com>
2521 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
2522 of the INTEGER class.
2524 2004-03-26 Jim Blandy <jimb@redhat.com>
2526 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
2527 bytes long on PPC GNU/Linux.
2529 2004-03-26 David Carlton <carlton@kealia.com>
2531 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
2533 2004-03-25 Andrew Cagney <cagney@redhat.com>
2535 * PROBLEMS: Add general section titles, remove references to
2538 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
2540 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
2542 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
2543 FP_REGISTER_VIRTUAL_SIZE.
2544 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
2545 of DEPRECATED_REGISTER_RAW_SIZE.
2546 (arm_register_type): Add gdbarch argument.
2547 (arm_register_raw_size, arm_register_virtual_size): Delete.
2548 (arm_register_byte, arm_extract_return_value)
2549 (arm_store_return_value, arm_get_longjmp_target): Update references
2550 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
2551 (arm_gdbarch_init): Likewise. Don't set
2552 deprecated_register_raw_size, deprecated_register_virtual_size,
2553 deprecated_max_register_raw_size,
2554 deprecated_max_register_virtual_size, or
2555 deprecated_max_register_virtual_type. Do set register_type.
2556 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
2557 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
2558 (FP_REGISTER_VIRTUAL_SIZE): Delete.
2559 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
2560 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
2561 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
2563 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
2564 (remote_rdp_store_register): Likewise.
2566 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
2568 * Makefile.in (mips-linux-tdep.o): Update dependencies.
2569 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
2570 to after osabi initialization.
2571 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
2572 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
2574 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
2575 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
2577 (mips_linux_init_abi): Append signal trampoline unwinders.
2579 2004-03-24 Andrew Cagney <cagney@redhat.com>
2581 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
2582 * tramp-frame.c: Include "gdb_assert.h".
2583 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
2585 (tramp_frame_append): Validate the tramp frame's instructions.
2586 * Makefile.in (tramp-frame.o): Update dependencies.
2588 2004-03-23 Andrew Cagney <cagney@redhat.com>
2590 * trad-frame.h (trad_frame_set_reg_addr): Declare.
2592 2004-03-23 Andrew Cagney <cagney@redhat.com>
2594 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
2595 Nasser as past testsuite/lib/ (and other) maintainers.
2597 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
2599 * infcmd.c (attach_command): Reread symbols if we already have
2602 2004-03-23 Andrew Cagney <cagney@redhat.com>
2604 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
2606 2004-03-23 Andrew Cagney <cagney@redhat.com>
2608 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
2609 * gdbarch.h, gdbarch.c: Re-generate.
2610 * i386obsd-tdep.c (i386obsd_init_abi): Update.
2611 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
2612 * i386bsd-tdep.c (i386bsd_init_abi): Update.
2613 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
2614 (DEPRECATED_SIGTRAMP_START): Update.
2615 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
2616 (DEPRECATED_SIGTRAMP_START): Update.
2617 * blockframe.c (find_pc_sect_partial_function): Update.
2618 * arch-utils.c (legacy_pc_in_sigtramp): Update.
2620 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
2622 * remote.c (remote_open_1): Reopen the exec file and reread symbols
2625 2004-03-23 Andrew Cagney <cagney@redhat.com>
2627 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
2628 predicate, deprecate.
2629 * gdbarch.h, gdbarch.c: Re-generate.
2630 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
2631 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
2632 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
2633 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
2634 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
2635 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
2636 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
2637 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
2638 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
2639 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
2640 * blockframe.c (find_pc_partial_function): Update.
2641 * breakpoint.c (bpstat_what): Update.
2642 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
2643 * frv-linux-tdep.c (frv_linux_init_abi): Update.
2644 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
2645 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
2646 * i386-interix-tdep.c (i386_interix_init_abi): Update.
2647 * i386-linux-tdep.c (i386_linux_init_abi): Update.
2648 * i386-nto-tdep.c (i386nto_init_abi): Update.
2649 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
2650 * i386-tdep.c (i386_sigtramp_frame_sniffer)
2651 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
2652 * i386bsd-tdep.c (i386bsd_init_abi): Update.
2653 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
2654 * i386obsd-tdep.c (i386obsd_init_abi): Update.
2655 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
2656 * infrun.c (pc_in_sigtramp): Update.
2657 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
2658 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
2659 * mips-tdep.c (mips_gdbarch_init): Update.
2660 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
2661 * ppc-linux-tdep.c: Update comment.
2662 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
2663 * shnbsd-tdep.c (shnbsd_init_abi): Update.
2664 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
2665 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
2666 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
2667 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
2668 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
2669 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
2670 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
2671 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
2673 2004-03-23 Andrew Cagney <cagney@redhat.com>
2675 * tramp-frame.h, tramp-frame.h: New files.
2676 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
2677 Update rules to include "tramp-frame.h" and "tramp-frame.c".
2679 * Makefile.in: Update all dependencies.
2681 2004-03-23 Andrew Cagney <cagney@redhat.com>
2683 * Makefile.in (trad_frame_h): Add $(frame_h).
2684 * trad-frame.h: Update copyright. Include "frame.h".
2685 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
2686 (trad_frame_set_id, trad_frame_get_id): Declare.
2687 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
2688 * trad-frame.c: Update copyright.
2689 (struct trad_frame_cache): Define.
2690 (trad_frame_cache_zalloc): New function.
2691 (trad_frame_set_id, trad_frame_get_id): New functions.
2692 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
2694 2004-03-22 Andrew Cagney <cagney@redhat.com>
2696 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
2697 s390_pltstub_unwind_cache.
2698 (s390_stub_frame_unwind_cache): Rename
2699 s390_pltstub_frame_unwind_cache.
2700 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
2701 (s390_stub_frame_prev_register): Rename
2702 s390_pltstub_frame_prev_register.
2703 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
2704 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
2706 From Ulrich Weigand:
2707 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
2708 pointer calls like PLT calls.
2710 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
2712 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
2713 PC rather than the partial function start address. Use the start
2714 address to sanity check the found PDR.
2716 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
2718 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
2719 linux_handle_extended_wait.
2721 2004-03-22 Andrew Cagney <cagney@redhat.com>
2723 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
2726 * frame.h (generic_pop_current_frame): Delete declaration.
2727 (deprecate_pop_dummy_frame): Deprecate
2728 generic_pop_dummy_frame.
2729 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
2730 (generic_pop_current_frame): Delete function.
2731 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
2732 generic_pop_current_frame.
2733 * v850-tdep.c (v850_pop_frame): Update.
2734 * mcore-tdep.c (mcore_pop_frame): Update.
2735 * sh64-tdep.c (sh64_pop_frame): Update.
2736 * h8300-tdep.c (h8300_pop_frame): Update.
2738 2004-03-22 Andrew Cagney <cagney@redhat.com>
2740 * frame.h (deprecated_pc_in_call_dummy): Rename
2741 generic_pc_in_call_dummy.
2742 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
2743 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
2744 generic_pc_in_call_dummy.
2745 (pc_in_dummy_frame): Make static.
2746 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
2747 * gdbarch.h, gdbarch.c: Re-generate.
2748 * dummy-frame.c (dummy_frame_sniffer): Simplify.
2749 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
2750 (legacy_get_prev_frame): Ditto.
2751 * inferior.h: Delete reference to generic_pc_in_call_dummy in
2754 2004-03-21 Andrew Cagney <cagney@redhat.com>
2756 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
2757 declaration and out-of-date comment.
2758 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
2760 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2761 deprecated_pc_in_call_dummy.
2763 * infrun.c (handle_inferior_event): For non legacy frames, use the
2764 frame ID and frame type to identify a signal trampoline. Update
2767 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
2769 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
2770 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
2772 2004-03-21 Andrew Cagney <cagney@redhat.com>
2774 * frame-unwind.h: Update copyright.
2775 (struct frame_data): Add opaque declaration.
2776 (frame_sniffer_ftype): Declare.
2777 (struct frame_unwind): Add "unwind_data" and "sniffer".
2778 (frame_unwind_register_unwinder): Declare.
2779 (frame_unwind_find_by_frame): Add parameter "this_cache".
2780 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
2781 (legacy_get_prev_frame, legacy_get_prev_frame)
2782 (get_frame_type): Pass the prologue_cache to
2783 frame_unwind_find_by_frame.
2784 * frame-unwind.c (struct frame_unwind_table_entry): Add field
2786 (frame_unwind_register_unwinder): New function.
2787 (frame_unwind_find_by_frame): Handle an unwind sniffer.
2789 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
2791 * bcache.c (print_percentage): Use floating point to avoid
2792 incorrect results when portion*100 overflows.
2794 2004-03-19 Kevin Buettner <kevinb@redhat.com>
2796 * ppc_tdep.h (ppc_linux_frame_saved_pc)
2797 (ppc_linux_init_extra_frame_info)
2798 (ppc_linux_frameless_function_invocation)
2799 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
2800 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
2801 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
2802 (rs6000_frame_chain): Delete declarations.
2803 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
2804 (ppc_linux_init_extra_frame_info)
2805 (ppc_linux_frameless_function_invocation)
2806 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
2807 (ppc_linux_init_abi): Remove registration of above deleted functions.
2808 * rs6000-tdep.c (rs6000_init_extra_frame_info)
2809 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
2810 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
2811 (rs6000_pop_frame, rs6000_frameless_function_invocation)
2812 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
2813 (rs6000_gdbarch_init): Remove registration of above deleted functions.
2814 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
2815 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
2816 frame management for all OSABIs.
2818 2004-03-19 Andrew Cagney <cagney@redhat.com>
2820 Committed by Kevin Buettner <kevinb@redhat.com>.
2822 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
2824 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
2825 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
2826 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
2827 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
2828 unwinders. #ifdef legacy frame code.
2829 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
2831 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
2832 (struct rs6000_frame_cache, rs6000_frame_cache)
2833 (rs6000_frame_this_id, rs6000_frame_prev_register)
2834 (rs6000_frame_sniffer, rs6000_frame_unwind)
2835 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
2836 (rs6000_frame_base): Implement a traditional frame unwinder.
2837 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
2840 2004-03-19 Kevin Buettner <kevinb@redhat.com>
2842 * breakpoint.c (adjust_breakpoint_address): Don't adjust
2843 breakpoint address for watchpoints or the catch eventpoints.
2844 Add new paramter ``bptype''. Adjust all callers.
2846 2004-03-19 Andrew Cagney <cagney@redhat.com>
2848 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
2850 * PROBLEMS: Delete note that ARM does not use frame code, problem
2853 2004-03-18 Andrew Cagney <cagney@redhat.com>
2855 * stack.c (return_command): Delete code wrapped in #ifdef
2856 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
2858 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
2860 2004-03-18 Andrew Cagney <cagney@redhat.com>
2862 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
2863 DEPRECATED_IN_SIGTRAMP.
2864 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
2865 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
2866 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
2867 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
2868 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
2869 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
2870 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
2871 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
2872 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
2873 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
2875 2004-03-18 Andrew Cagney <cagney@redhat.com>
2877 * frame-base.c: Update copyright. Include "gdb_obstack.h".
2878 (struct frame_base_table_entry): Define.
2879 (struct frame_base_table): Re-implement as a linked list.
2880 (frame_base_init): Re-implement.
2881 (frame_base_table): Delete function.
2882 (append_predicate): Delete function.
2883 (frame_base_append_sniffer): Update.
2884 (frame_base_set_default): Update.
2885 (frame_base_find_by_frame): Update.
2886 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
2887 * Makefile.in (frame-base.o): Update dependencies.
2889 2004-03-17 Andrew Cagney <cagney@redhat.com>
2891 * frame.c (legacy_get_prev_frame): Pass correct frame to
2892 frame_unwind_find_by_frame.
2894 2004-03-17 David Carlton <carlton@kealia.com>
2896 * NEWS: Mention C++ nested types and namespaces
2898 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
2900 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
2901 and "Regressions since gdb 5.3.". Add known regressions since
2904 2004-03-16 David Carlton <carlton@kealia.com>
2906 * dwarf2read.c (process_structure_scope): Process children even
2907 when we're a declaration.
2909 2004-03-16 Andrew Cagney <cagney@redhat.com>
2911 * symtab.h (find_pc_sect_partial_function): Delete declaration.
2912 * blockframe.c (find_pc_partial_function)
2913 (find_pc_sect_partial_function): Merge into a single
2914 find_pc_partial_function.
2916 2004-03-16 Mark Kettenis <kettenis@gnu.org>
2918 * i386bsd-nat.c: s/regno/regnum/g.
2919 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
2921 (store_inferior_registers): Likewise.
2923 2004-03-16 Mark Kettenis <kettenis@gnu.org>
2925 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
2927 (store_inferior_registers): Call i387_collect_fsave and
2928 i387_collect_fxsave instead of i387_fill_fsave and
2931 2004-03-15 Andrew Cagney <cagney@redhat.com>
2933 * Makefile.in (frame-unwind.o): Update dependencies.
2934 * frame-unwind.c: Include "gdb_obstack.h".
2935 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
2937 (append_predicate): Delete function.
2938 (struct frame_unwind_table_entry): New structure.
2939 (struct frame_unwind_table): Replace "sniffer" with "head" and
2941 (frame_unwind_append_sniffer): Update.
2942 (frame_unwind_find_by_frame): Update.
2943 (_initialize_frame_unwind): Registe frame_unwind_init using
2944 gdbarch_data_register_pre_init.
2946 2004-03-15 Mark Kettenis <kettenis@gnu.org>
2948 * i386bsd-nat.c: Update copyright year.
2949 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
2950 define unconditionally.
2952 2004-03-15 Mark Kettenis <kettenis@gnu.org>
2954 * i387-tdep.h (i387_collect_fsave): New prototype.
2955 * i387-tdep.c (i387_collect_fsave): New function containing most
2956 of the code from i387_fill_fsave.
2957 (i387_fill_fsave): Call i387_collect_fsave.
2959 2004-03-15 Mark Kettenis <kettenis@gnu.org>
2961 * i386-linux-tdep.c: Update copyright year.
2962 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
2963 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
2964 svr4_ilp32_link_map_offsets instead of
2965 i386_linux_svr4_fetch_link_map_offsets.
2967 2004-03-15 David Carlton <carlton@kealia.com>
2969 Fix for PR c++/1553:
2970 * dwarf2read.c (read_structure_type): Determine type name by
2971 calling determine_class_name.
2972 (determine_class_name): New.
2973 (determine_prefix): Look at TYPE_TAG_NAME and call
2974 determine_class_name when appropriate.
2975 (determine_prefix_aux, class_name): Delete.
2976 (read_namespace): Set die->type.
2978 2004-03-15 Kevin Buettner <kevinb@redhat.com>
2980 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
2981 unused macro definition. The definition in target.h (or perhaps
2982 elsewhere) takes precedence.
2984 2004-03-15 Andrew Cagney <cagney@redhat.com>
2986 * ppc-tdep.h: Update copyright.
2987 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
2988 function signatures to match "regsets.h".
2989 * ppc-linux-tdep.c: Include "regset.h".
2990 (ELF_GREGSET_SIZE): Delete.
2991 (right_supply_register): New function.
2992 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
2993 using right_supply_register.
2994 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
2996 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
2997 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
2998 (_initialize_ppc_linux_tdep): Do not register
2999 ppc_linux_regset_core_fns.
3000 (ppc_linux_regset_from_core_section): Replace
3001 fetch_core_registers.
3002 (ppc_linux_regset_core_fns): Delete.
3003 * ppc-linux-nat.c: (right_fill_reg): New function.
3004 (supply_gregset): Update call to ppc_linux_supply_gregset.
3005 (fill_gregset): Clear the register set, use right_fill_reg.
3006 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
3007 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
3009 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
3012 2004-03-15 Andrew Cagney <cagney@redhat.com>
3014 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
3015 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
3016 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
3017 and register_gdbarch_data.
3018 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
3019 (struct gdbarch_data): Replace "init" by "pre_init" and
3021 * gdbarch.h, gdbarch.c: Re-generate.
3022 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
3023 with"obstack", use OBSTACK_ZALLOC.
3024 (dwarf2_frame_ops): Delete.
3025 (dwarf2_frame_set_init_reg): Use gdbarch_data.
3026 (dwarf2_frame_init_reg): Use gdbarch_data.
3027 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
3028 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
3029 (_initialize_svr4_solib): Update.
3030 * user-regs.c (_initialize_user_regs): Update.
3031 * reggroups.c (_initialize_reggroup): Update.
3032 * regcache.c (_initialize_regcache): Update.
3033 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
3034 * libunwind-frame.c (_initialize_libunwind_frame): Update.
3035 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3036 * frame-unwind.c (_initialize_frame_unwind): Update.
3037 * frame-base.c (_initialize_frame_base): Update.
3038 * user-regs.c (user_reg_add): Update.
3039 * reggroups.c (reggroup_add): Update.
3040 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
3041 * libunwind-frame.c (libunwind_frame_set_descr): Update.
3042 * frame-unwind.c (frame_unwind_append_sniffer): Update.
3043 * frame-base.c (frame_base_table): Update.
3044 * remote.c (_initialize_remote): Update.
3045 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
3047 2004-03-15 Andrew Cagney <cagney@redhat.com>
3049 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
3051 2004-03-15 Kevin Buettner <kevinb@redhat.com>
3053 * Makefile.in (frv-linux-tdep.o): Add dependencies.
3054 * frv-linux-tdep.c: New file.
3055 * frv-tdep.c (struct gdbarch_tdep): Add new field
3056 ``sigcontext_reg_addr''.
3057 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
3058 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
3059 (frv_sigramp_frame_sniffer): New functions.
3060 (frv_sigtramp_frame_unwind): New static global.
3061 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
3063 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
3064 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
3066 2004-03-15 Kevin Buettner <kevinb@redhat.com>
3068 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
3069 but not via a call to error(), when unable to read memory.
3071 2004-03-15 Kevin Buettner <kevinb@redhat.com>
3073 * frv-tdep.c (frv_call_dummy_words): Delete.
3074 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
3076 2004-03-15 Andrew Cagney <cagney@redhat.com>
3078 * infrun.c (handle_step_into_function, step_over_function): Only
3079 update and use STEP_FRAME_ID when the system is using legacy
3080 frames. Update comments.
3082 2004-03-14 Mark Kettenis <kettenis@gnu.org>
3084 * amd64-linux-tdep.h: Remove file.
3085 * amd64-linux-tdep.c: Don't include "inferior.h" and
3086 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
3087 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
3088 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
3089 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
3090 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
3092 (user_to_gdb_regmap): Remove variable.
3093 (amd64_linux_gregset_reg_offset): New variable.
3094 (amd64_core_fns): Remove variable.
3095 (fetch_core_registers): Remove function.
3096 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
3098 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
3099 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
3100 * Makefile.in (amd64_linux_tdep_h): Remove.
3101 (amd64-linux-nat.o): Update dependencies.
3102 (amd64-linux-tdep.o): Update dependencies.
3104 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3105 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
3107 (fetch_inferior_registers, store_inferior_registers): Rewrite.
3109 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
3110 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
3112 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
3114 * dwarf2read.c (read_structure_type): Rename from
3115 read_structure_scope. Don't create a symbol or call process_die.
3116 Return immediately if die->type is set. Call read_type_die before
3117 dwarf2_add_member_fn.
3118 (process_structure_scope): New function.
3119 (read_enumeration_type, process_enumeration_scope): New functions,
3120 broken out from read_enumeration. Don't create the enumeration
3121 type if it has already been created.
3122 (read_enumeration): Removed.
3123 (process_die): Call read_structure_type, process_structure_scope,
3124 read_enumeration_type, and process_enumeration_scope. Just call
3125 new_symbol for base and subrange types. Add a comment about other
3127 (read_type_die): Call read_enumeration_type.
3128 (add_partial_structure, new_symbol): Update comments.
3130 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
3132 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
3134 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
3136 * tui/tui-win.h (tui_get_cmd_list): Declare.
3137 * tui/tui-win.c (tui_command): New function.
3138 (tui_get_cmd_list): New function.
3139 (_initialize_tui_win): Moved initialization of tui command in
3142 * tui/tui-data.c (init_content_element): Setup new data members.
3143 (init_win_info): Likewise.
3144 (free_content_elements): Free it.
3145 * tui/tui-data.h (struct tui_data_element): Store the register
3147 (struct tui_data_info): Keep the current register group.
3149 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
3151 * tui/tui-regs.h (tui_show_registers): Update prototype.
3152 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
3153 (tui_resize_all): No need to calculate anything for register window.
3154 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
3155 (tui_set_register_element, tui_set_general_regs_content): Remove.
3156 (tui_set_special_regs_content): Remove.
3157 (tui_set_general_and_special_regs_content): Remove.
3158 (tui_set_float_regs_content): Remove.
3159 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
3160 (tui_set_regs_content): Remove.
3161 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
3162 (tui_v_show_registers_command_support): Remove.
3163 (tui_show_registers): Use a reggroup to specify the registers to show.
3164 (tui_show_register_group): New function.
3165 (tui_display_registers_from): Compute the layout of register window
3166 and refresh with new API; be sure to delete old register windows.
3167 (tui_check_register_values): Update to use tui_get_register and
3169 (tui_display_register): Just refresh the register window part.
3170 (tui_register_format): Format registers and save in tui_data_element.
3171 (tui_get_register): New to combine tui_reg_value_has_changed and
3172 tui_get_register_raw_value; fix to use the new gdb API.
3173 (tui_show_float_command): Renamed tui_reg_float_command.
3174 (tui_show_general_command): Renamed tui_reg_general_command.
3175 (tui_show_special_command): Renamed tui_reg_system_command.
3176 (_initialize_tui_regs): Remove unused commands.
3178 2004-03-13 Mark Kettenis <kettenis@gnu.org>
3180 * NEWS (New native configurations): Mention OpenBSD/amd64.
3182 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
3183 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
3185 * config/i386/nm-fbsd64.h: Likewise.
3186 * config/i386/nm-obsd.h: Likewise.
3187 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
3188 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
3190 2004-03-12 Kevin Buettner <kevinb@redhat.com>
3192 * frv-tdep.c (set_variant_scratch_registers): New function.
3193 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
3196 From Richard Sandiford <rsandifo@redhat.com>:
3197 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
3199 2004-03-12 Kevin Buettner <kevinb@redhat.com>
3201 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
3202 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
3203 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
3204 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
3205 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
3206 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
3207 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
3208 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
3209 definitions from frv-tdep.c to frv-tdep.h.
3211 2004-03-12 Kevin Buettner <kevinb@redhat.com>
3213 Add shared library support for FR-V FDPIC ABI:
3214 * Makefile.in (solib-frv.o): Add dependencies.
3215 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
3217 (frv_push_dummy_call): Add support for FDPIC ABI.
3218 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
3220 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
3221 (frv_fdpic_find_canonical_descriptor): Declare.
3222 * solib-frv.c: New file.
3223 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
3224 * config/frv/tm-frv.h (solib.h): Include.
3226 2004-03-12 Kevin Buettner <kevinb@redhat.com>
3228 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
3229 (frv-tdep.o): Update dependencies.
3230 * frv-tdep.h: New file.
3231 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
3232 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
3234 (struct gdbarch_tdep): Add new member ``frv_abi''.
3235 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
3237 (new_variant): Set ``frv_abi'' field.
3238 (gdb_arch_init): Detect FDPIC executables.
3240 2004-03-12 Mark Kettenis <kettenis@gnu.org>
3242 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
3245 2004-03-11 Andrew Cagney <cagney@redhat.com>
3247 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
3249 2004-03-11 Kevin Buettner <kevinb@redhat.com>
3251 * solist.h (master_so_list): New function.
3252 * solib.c (master_so_list): Likewise.
3253 * solib-svr4.c (enable_break): Iterate over so_list entries
3254 obtained from master list instead of entries obtained directly
3255 via svr4_current_sos().
3257 2004-03-10 Ben Elliston <bje@gnu.org>
3259 * MAINTAINERS: Update my mail address.
3261 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
3263 * remote-m32r-sdi.c: Support hardware watchpoint.
3265 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
3267 * user-regs.c: Update copyright years.
3268 (struct user_regs): Rename to gdb_user_regs.
3269 (append_user_reg, builtin_user_regs, user_regs_init)
3270 (user_reg_add, user_reg_map_name_to_regnum)
3271 (usernum_to_user_reg): Update.
3273 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
3275 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
3276 (skip_children): New functions.
3277 (locate_pdi_sibling): Call skip_children.
3279 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
3281 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
3282 * gdbtypes.c (check_typedef): Update comments.
3284 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
3286 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
3287 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
3288 pointer. Update comment about comp_unit_head.
3289 (struct abbrev_info): Shorten two int flags.
3290 (dwarf_alloc_abbrev): Take a CU argument.
3291 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
3292 each time through the loop. Update cleanup argument.
3293 (psymtab_to_symtab_1): Update cleanup call.
3294 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
3296 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
3297 Just call obstack_free and clear the pointer.
3299 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
3301 * infrun.c (handle_inferior_event): Remove short-circuit code for
3302 events in a different thread.
3304 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
3306 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
3307 print the whole transfer.
3308 (initialize_targets): Update description of "set debug target".
3310 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
3312 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
3314 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
3316 * MAINTAINERS (write after approval): Add myself.
3318 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
3320 * sh-tdep.c (sh_print_registers_info): Use for loop.
3321 Don't skip multiple registers when a float register is encountered.
3323 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
3326 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
3327 to official SH documentation.
3329 2004-03-07 Andrew Cagney <cagney@redhat.com>
3331 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
3334 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
3336 * arm-tdep.c (thumb_get_next_pc): Handle BX.
3337 (arm_get_next_pc): Handle BX and BLX.
3339 2004-03-07 Andrew Cagney <cagney@redhat.com>
3341 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
3342 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
3344 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
3345 (hppa_target_read_fp): Delete.
3346 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
3347 register_virtual_size, max_register_raw_size,
3348 max_register_virtual_size, register_byte, register_size,
3349 target_read_fp, fp_regnum, and register_bytes. Set register_type
3350 instead of register_virtual_type.
3351 (hppa32_register_type, hppa64_register_type): Replace
3352 hppa32_register_virtual_type and hppa64_register_virtual_type.
3353 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
3354 (HPPA_FP_REGNUM): Define.
3356 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
3358 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
3359 (pa_do_registers_info): Delete.
3360 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
3361 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
3362 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
3364 * infcall.c (legacy_push_dummy_code): Delete #ifdef
3365 GDB_TARGET_IS_HPPA code.
3366 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
3367 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
3368 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
3369 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
3370 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
3371 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
3372 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
3373 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
3374 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
3375 (hppa_frameless_function_invocation, hppa64_store_return_value)
3376 (hppa_store_struct_return, hppa64_extract_return_value)
3377 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
3378 (hppa32_call_dummy_length, hppa64_call_dummy_length)
3379 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
3380 (find_proc_framesize, deposit_21, restore_pc_queue)
3381 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
3382 (rp_saved, pc_in_linker_stub): Delete.
3384 Unconditionally enable 64-bit frame and ABI code.
3385 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
3386 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
3387 push_dummy_frame, fix_call_dummy, push_arguments,
3388 call_dummy_location, extract_return_value, use_struct_convention,
3389 store_return_value, store_struct_return, saved_pc_after_call,
3390 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
3391 frame_chain, frame_chain_valid, frameless_function_invocation,
3392 frame_saved_pc, and pop_frame.
3394 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
3395 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
3396 (hppa_gdbarch_init): Do not set PC_REGNUM.
3398 2004-03-06 Mark Kettenis <kettenis@gnu.org>
3400 * config/alpha/tm-fbsd.h: Remove file.
3401 * config/alpha/fbsd.mt: Tweak comment.
3402 (TM_FILE): Set to tm-alpha.h.
3404 2004-03-05 Andrew Cagney <cagney@redhat.com>
3406 * infrun.c (step_over_function): When non-legacy code, and no
3407 step_frame_id, use the unwinder to get the caller's frame ID.
3409 2004-03-05 Mark Kettenis <kettenis@gnu.org>
3411 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
3412 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
3413 bfd_arch_unknown. Adjust comment.
3415 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
3416 * i386obsd-tdep.c: Correct spelling in comment.
3417 * i386nbsd-tdep.c: Correct spelling in comment.
3418 * sparc-tdep.c: Correct spelling in comments.
3420 2004-03-05 David Carlton <carlton@kealia.com>
3422 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
3425 2004-03-05 Mark Kettenis <kettenis@gnu.org>
3427 * sparc-tdep.c: Fix typo in comment.
3429 2004-03-04 J. Brobecker <brobecker@gnat.com>
3431 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
3433 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
3435 * dwarf2read.c: Add comment describing memory lifetimes.
3436 (struct dwarf2_pinfo): Update comment.
3437 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
3438 (read_enumeration, new_symbol): Don't use obsavestring.
3440 2004-03-04 Mark Kettenis <kettenis@gnu.org>
3442 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
3443 instead of amd64_fill_fxsave.
3444 * amd64bsd-nat.c (store_inferior_registers): Likewise.
3445 * amd64fbsd-nat.c (fill_fpregset): Likewise.
3447 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
3448 Reorganize code a bit.
3450 2004-03-04 Orjan Friberg <orjanf@axis.com>
3452 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
3453 when the frame pointer is pushed. Don't set the frame pointer's
3454 address on the stack unless it's actually located there.
3455 Set the SRP's address on the stack correctly when the PC is still in
3457 (cris_return_value): New function.
3458 (cris_gdbarch_init): Clear deprecated store_return_value,
3459 extract_return_value.
3461 2004-03-02 Jim Blandy <jimb@redhat.com>
3463 * stabsread.c (reg_value_complaint): The maximum register number
3464 is one less than the number of registers.
3466 2004-03-02 Andrew Cagney <cagney@redhat.com>
3468 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
3469 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
3470 trailing comma and redundant assignment of I386_ST0_REGNUM.
3471 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
3472 32-bit segment registers.
3474 2004-03-01 Andrew Cagney <cagney@redhat.com>
3476 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
3477 use frame_relative_level and get_next_frame.
3479 2004-02-29 Andrew Cagney <cagney@redhat.com>
3481 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
3482 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
3483 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
3486 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
3488 * inflow.c (terminal_inferior): Don't give up the terminal if we
3489 previously couldn't get the inferior's terminal state.
3491 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
3493 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
3496 2004-02-28 Andrew Cagney <cagney@redhat.com>
3498 * NEWS: Refer to GDB 6.1.
3499 * README: Refer to GDB 6.1.
3500 * PROBLEMS: Refer to GDB 6.1.
3502 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
3504 * thread-db.c (disable_thread_signals): Remove unused function.
3506 2004-02-28 Mark Kettenis <kettenis@gnu.org>
3508 * amd64-nat.c: Include "gdb_string.h".
3509 (amd64_collect_native_gregset): Zero-extend the 32-bit
3510 general-purpose registers and %eip.
3512 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
3513 * amd64-tdep.c (amd64_collect_fxsave): New function.
3514 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
3516 * i387-tdep.h: Update copyright year.
3517 (i387_collect_fxsave): New prototype.
3518 * i387-tdep.c: Update copyright year.
3519 (i387_collect_fxsave): New function containing most of the code
3520 from i387_fill_fxsave.
3521 (i387_fill_fxsave): Call i387_collect_fxsave.
3523 2004-02-28 Andrew Cagney <cagney@redhat.com>
3525 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
3526 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
3528 2004-02-28 Mark Kettenis <kettenis@gnu.org>
3530 * amd64-tdep.c (amd64_frame_cache): Fix comment.
3532 2004-02-28 Andrew Cagney <cagney@redhat.com>
3534 * utils.c: Use "", instead of <>, to include readline.
3535 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
3536 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
3537 * source.c, solib.c, exec.c, event-top.c: Ditto.
3538 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
3539 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
3540 * Makefile.in: Update all dependencies.
3541 (readline_tilde_h, readline_history_h): Define.
3542 (readline_headers): Delete.
3544 2004-02-28 Mark Kettenis <kettenis@gnu.org>
3546 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
3547 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
3548 "config/i386/tm-lx64.h".
3550 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
3551 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
3552 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
3554 2004-02-28 Andrew Cagney <cagney@redhat.com>
3556 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
3558 * breakpoint.c (_initialize_breakpoint): Use
3559 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
3560 Add help to show command.
3562 2004-02-28 Mark Kettenis <kettenis@gnu.org>
3564 * i386-nat.c: Reformat to be closer to coding standards.
3565 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
3566 `retval'. Make variables `align' and `size' local to while-loop.
3567 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
3568 (_initialize_i386_nat): New prototype.
3570 * tui/tui.c: Include <readline/readline.h> instead of
3571 "readline/readline.h". Include it after <term.h> and
3574 2004-02-27 Andrew Cagney <cagney@redhat.com>
3576 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
3577 the new frame unwind code.
3578 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
3579 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
3582 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
3583 "return_value" and "push_dummy_call".
3584 (hppa32_use_struct_convention): Delete unused function.
3585 (hppa32_store_return_value): Delete unused function.
3586 (hppa32_extract_return_value): Delete unused function.
3587 (hppa32_stack_align): Delete function.
3589 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
3591 * coffread.c (enter_linenos): Don't let rawptr reference memory
3592 outside linetab[]'s limits.
3594 2004-02-27 Andrew Cagney <cagney@redhat.com>
3596 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
3597 inferior stack space - the stack needs to grow upwards.
3598 (hppa32_frame_align): New function.
3599 (hppa64_frame_align): Replace hppa_frame_align.
3600 (hppa_gdbarch_init): Update.
3602 2004-02-26 Orjan Friberg <orjanf@axis.com>
3604 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
3605 (dwarf2-frame.h): Include.
3606 (enum cris_regnums): New enum CRIS_FP_REGNUM.
3607 Remove static variables related to ABI setting.
3608 (struct gdbarch_tdep): Remove cris_abi member.
3609 (struct frame_extra_info): Remove.
3610 (cris_unwind_cache, stack_item): New structs.
3611 (cris_frame_unwind, cris_frame_base): New variables.
3612 (push_stack_item, pop_stack_item)
3613 (cris_frame_unwind_cache, cris_frame_this_id)
3614 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
3615 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
3616 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
3617 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
3618 (cris_reg_struct_has_addr): New functions.
3619 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
3620 (cris_frame_saved_pc, cris_saved_pc_after_call,
3621 (cris_store_struct_return, cris_frameless_function_invocation)
3622 (cris_pop_frame, cris_skip_prologue_main)
3623 (cris_abi_original_store_return_value)
3624 (cris_abi_v2_store_return_value)
3625 (cris_abi_original_extract_return_value)
3626 (cris_abi_v2_extract_return_value)
3627 (cris_abi_original_reg_struct_has_addr)
3628 (cris_abi_v2_reg_struct_has_addr)
3629 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
3630 (cris_push_return_address, cris_abi_update): Remove.
3631 (_initialize_cris_tdep): Remove ABI command.
3632 (cris_dump_tdep): Ditto.
3633 (cris_gdbarch_init): Remove ABI command.
3634 Set store_return_value, extract_return_value, push_dummy_code,
3635 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
3636 frame_unwind_append_sniffer, frame_base_set_default.
3637 Clear deprecated init_frame_pc, push_arguments, store_return_value,
3638 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
3639 sizeof_call_dummy_words, get_saved_register, push_return_address,
3640 pop_frame, store_struct_return, frame_init_saved_regs,
3641 init_extra_frame_info, frameless_function_invocation, frame_chain,
3642 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
3645 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
3647 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
3648 * valprint.c (print_hex_chars): Change from static to external.
3649 (print_char_chars): New function.
3650 * printcmd.c (print_scalar_formatted): For integer and enum types
3651 that are longer than LONGEST, perform processing via appropriate
3652 print_*_chars routines.
3654 2004-02-26 Andrew Cagney <cagney@redhat.com>
3656 * Makefile.in: Update dependencies.
3657 Changes from Ulrich Weigand,
3658 * s390-tdep.c: Include "dwarf2-frame.h".
3659 (s390_dwarf2_frame_init_reg): New function.
3660 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
3661 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
3663 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
3665 * breakpoint.c (pending_break_support): New setting variable.
3666 (break_command_1): Account for pending_break_support setting
3667 when creating pending breakpoints.
3668 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
3669 (_initialize_breakpoint): Add "set breakpoint pending" and
3670 "show breakpoint pending" commands.
3672 2004-02-26 Andrew Cagney <cagney@redhat.com>
3675 * charset.c (backslashable, backslashed, represented): Remove 'e'
3676 from list of escaped characters, not part of ISO-C.
3678 2004-02-25 J. Brobecker <brobecker@gnat.com>
3680 From Peter Schauer <schauer@pdf.de>:
3681 * tui/tui.c: Move system header includes after local includes.
3682 Fixes a build failure on solaris systems.
3684 2004-02-25 J. Brobecker <brobecker@gnat.com>
3686 * configure.in: Refine the previous change.
3687 * configure: Regenerate.
3689 2004-02-25 Mark Kettenis <kettenis@gnu.org>
3691 * amd64-tdep.h: Renamed from x86-64-tdep.h.
3692 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
3693 "amd64-tdep.h" instead of "x86-64-tdep.h".
3694 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
3695 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
3696 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
3697 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
3698 and "x86-64-tdep.c".
3699 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
3700 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
3701 and "x86-64-tdep.c".
3702 * amd64bsd-nat.c: Update copyright year.
3703 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
3704 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
3706 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
3708 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
3710 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
3712 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
3714 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
3716 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
3717 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
3718 * Makefile.in (amd64_linux_tdep_h): Renamed from
3719 x86_64_linux_tdep_h.
3720 (amd64_tdep_h): Renamed from x86_64_tdep_h.
3721 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
3722 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
3723 (amd64obsd-tdep.o): Update dependencies.
3724 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
3726 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
3728 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
3729 amd64-linux-nat.c amd64-linux-tdep.c.
3730 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
3731 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
3732 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
3733 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
3734 amd64-tdep.o and amd64-linux-tdep.o.
3735 (TM_FILE): Set to tm-linux64.h.
3736 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
3737 (NAT_FILE): Set to nm-linux64.h.
3738 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
3739 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
3741 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
3743 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
3746 2004-02-25 Roland McGrath <roland@redhat.com>
3748 * remote.c (remote_protocol_qPart_auxv): New variable.
3749 (init_all_packet_configs): Initialize it.
3750 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
3751 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
3752 (show_remote_cmd): Call it.
3753 (_initialize_remote): Initialize commands.
3754 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
3755 service TARGET_OBJECT_AUXV requests.
3757 2004-02-25 J. Brobecker <brobecker@gnat.com>
3759 * configure.in: Make sure that the wborder function is available.
3760 Otherwise, search for it in the cur_colr library.
3761 * configure: Regenerate.
3763 2004-02-25 Andrew Cagney <cagney@redhat.com>
3765 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
3767 2004-02-25 Mark Kettenis <kettenis@gnu.org>
3769 * config/i386/tm-x86-64linux.h: Tweak comments.
3771 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
3773 * MAINTAINERS: Add self to write-after-approval list.
3775 2004-02-25 Andrew Cagney <cagney@redhat.com>
3777 PR cli/1566. Problem found, and fix suggested by David Allan.
3778 * cli/cli-script.c (execute_control_command): Unconditionally
3779 install a cleanup. Default "ret" to "invalid_control". Use
3780 "break" instead of "return" to escape from the switch.
3782 2004-02-24 J. Brobecker <brobecker@gnat.com>
3784 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
3785 with the lines macro defined in term.h on AiX.
3786 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
3787 a collision with the label_width macro defined in term.h on AiX.
3789 2004-02-23 David Mosberger <davidm@hpl.hp.com>
3791 Committed by Kevin Buettner <kevinb@redhat.com>.
3793 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
3794 * ia64-tdep.c (ia64_write_pc): Make it a global function.
3795 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
3796 instead of ia64_write_pc().
3797 * ia64-linux-tdep.c (regcache.h): Include.
3798 (ia64_linux_write_pc): New function.
3800 2004-02-23 Roland McGrath <roland@redhat.com>
3802 * auxv.c (info_auxv_command): Fix typos in error messages.
3804 2004-02-23 Mark Kettenis <kettenis@gnu.org>
3806 * x86-64-tdep.h: Tweak comment.
3807 (enum amd64_regnum): New.
3808 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
3809 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
3810 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
3811 (X86_64_XMM1_REGNUM): Removed.
3812 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
3813 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
3814 prototypes for renamed functions.
3815 * x86-64-tdep.c: Fix typo.
3816 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
3818 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
3819 Use constants from `enum amd64_regnum' for register numbers.
3820 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
3821 (amd64_analyze_prologue, amd64_frame_cache,
3822 amd64_sigtramp_frame_cache): Use constants from `enum
3823 amd64_regnum' for register numbers.
3824 (amd64_supply_fpregset): Adjust for renamed functions.
3825 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
3826 `enum amd64_regnum' for register numbers.
3827 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
3828 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
3829 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
3830 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
3831 (amd64_linux_fill_gregset): Adjust for renamed macros.
3832 (fetch_core_registers): Adjust for renamed functions.
3833 (amd64_linux_init_abi): Adjust for renamed functions.
3834 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
3836 * amd64-nat.c: Adjust for renamed macros.
3837 * amd64bsd-nat.c (fetch_inferior_registers)
3838 (store_inferior_registers): Use constants from `enum amd64_regnum'
3839 for register numbers. Adjust for renamed variables.
3840 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
3842 (_initialize_amd64fbsd_nat): Use constants from `enum
3843 amd64_regnum' for register numbers.
3844 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
3845 `enum amd64_regnum' for register numbers.
3846 (amd64fbsd_init_abi): Adjust for renamed functions.
3847 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
3848 `enum amd64_regnum' for register numbers.
3849 (amd64nbsd_init_abi): Adjust for renamed functions.
3850 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
3851 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
3852 `enum amd64_regnum' for register numbers.
3853 (amd64obsd_init_abi): Adjust for renamed functions.
3854 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
3856 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
3858 * breakpoint.c (print_one_breakpoint): Do not output spaces
3859 after printing <PENDING> for a pending breakpoint.
3861 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
3863 * printcmd.c (print_scalar_formatted): Initialize val_long
3864 to remove compiler warning message.
3866 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
3868 * defs.h (nquery, yquery): New prototypes.
3869 * breakpoint.c (break_command_1): Use new nquery interface.
3870 * utils.c (defaulted_query, nquery, yquery): New functions.
3872 2004-02-23 Andrew Cagney <cagney@redhat.com>
3874 * hppa-tdep.c (hppa_frame_align): New function.
3875 (hppa32_push_dummy_call): New function.
3876 (hppa64_push_dummy_call): New function.
3877 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
3880 * infcall.c (legacy_push_dummy_code): Don't call deprecated
3881 FIX_CALL_DUMMY when push_dummy_call is available.
3882 (call_function_by_hand, push_dummy_code): Ditto.
3884 2004-02-22 Andrew Cagney <cagney@redhat.com>
3886 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
3887 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
3888 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
3889 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
3890 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
3891 call_dummy_location to ON_STACK.
3893 2004-02-22 Mark Kettenis <kettenis@gnu.org>
3895 * x86-64-linux-tdep.c: Tweak comment.
3896 (amd64_linux_supply_gregset): Renamed from
3897 x86_64_linux_supply_gresget.
3898 (amd64_linux_fill_gregset): Renamed from
3899 x86_64_linux_fill_gregset.
3900 (fetch_core_registers): Adjust for renamed functions.
3901 (amd64_core_fns): Renamed from x86_64_core_fns.
3902 (amd64_linux_sigtramp_start): Renamed from
3903 x86_64_linux_sigtramp_start.
3904 (amd64_linux_pc_in_sigtramp): Renamed from
3905 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
3906 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
3907 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
3908 (amd64_linux_sigcontext_addr): Renamed from
3909 x86_64_linux_sigcontext_addr.
3910 (amd64_linux_sc_reg_offset): Renamed from
3911 x86_64_linux_sc_reg_offset.
3912 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
3913 Adjust for renamed functions and variables.
3914 (_initialize_amd64_linux_tdep): Renamed from
3915 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
3917 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
3918 Adjust for renamed functions.
3920 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
3921 from x86_64_linux_gregset64_reg_offset.
3922 (amd64_linux_gregset32_reg_offset): Rename from
3923 x86_64_linux_gregset64_reg_offset.
3924 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
3925 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
3926 (amd64_linux_dr_set_control): Renamed from
3927 x86_64_linux_dr_set_control. Adjust for renamed functions.
3928 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
3929 Adjust for renamed functions.
3930 (amd64_linux_dr_reset_addr): Renamed from
3931 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
3932 (amd64_linux_dr_get_status): Renamed from
3933 x86_64_linux_dr_get_status. Adjust for renamed functions.
3934 (_initialize_amd64_linux_nat): Renamed from
3935 _initialize_x86_64_linux_nat. Adjust for renamed variables and
3937 * config/i386/nm-x86-64linux.h: Update copyright year.
3938 Adjust for renamed functions.
3940 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
3941 amd64fbsd_sigtramp_start.
3942 (amd64fbsd_sigtramp_end_addr): Renamed from
3943 amd64fbsd_sigtramp_end.
3944 (amd64fbsd_init_abi): Adjust for renamed variables.
3945 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
3947 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
3948 amd64fbsd_sigtramp_start.
3949 (amd64fbsd_sigtramp_end_addr): Renamed from
3950 amd64fbsd_sigtramp_end.
3952 2004-02-22 Andrew Cagney <cagney@redhat.com>
3954 * hppa-tdep.c (hppa32_return_value): New function.
3955 (hppa64_return_value): New function.
3956 (hppa_gdbarch_init): Set return_value; keep disabled.
3958 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
3959 struct-return and inferior function call methods.
3961 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
3963 (struct hppa_frame_cache): Define.
3964 (hppa_frame_cache, hppa_frame_this_id): New functions.
3965 (hppa_frame_prev_register): New function.
3966 (hppa_frame_unwind, hppa_frame_base): New variables.
3967 (hppa_frame_unwind_sniffer): New function.
3968 (hppa_frame_base_address, hppa_unwind_pc): New function.
3969 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
3970 sniffer, and frame base sniffer; keep disabled.
3971 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
3972 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
3974 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
3975 to predicates for "seriously old code".
3977 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
3980 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
3982 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
3984 * config/pa/tm-hppa.h: Update copyright.
3985 (DEPRECATED_INIT_FRAME_PC): Delete macro.
3986 (deprecated_init_frame_pc_default): Delete declaration.
3987 (hppa_frame_init_saved_regs): Delete declaration.
3988 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
3989 * hppa-tdep.c: Include "arch-utils.h".
3990 (hppa_gdbarch_init): Set deprecated init_frame_pc
3991 and deprecated frame_init_saved_regs.
3992 (hppa_frame_init_saved_regs): Make static.
3994 2004-02-22 Mark Kettenis <kettenis@gnu.org>
3996 Remove old 386BSD support.
3997 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
3998 * configure.host: Remove i[34567]86-*-bsd*.
3999 * configure.tgt: Remove i[34567]86-*-bsd*.
4000 * i386b-nat.c: Removed.
4001 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
4002 (i386b-nat.o): Remove dependencies.
4004 * config/i386/i386bsd.mh: Removed.
4005 * config/i386/i386bsd.mt: Removed.
4006 * config/i386/nm-i386bsd.h: Removed.
4007 * config/i386/tm-i386bsd.h: Removed.
4008 * config/i386/xm-i386bsd.h: Removed.
4010 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
4012 * amd64fbsd-tdep.c: Include "solib-svr4.h".
4013 (amd64fbsd_init_abi): Set link map offsets.
4014 * amd64nbsd-tdep.c: Include "slib-svr4.h".
4015 (amd64nbsd_init_abi): Set link map offsets.
4016 * amd64obsd-tdep.c: Include "solib-svr4.h".
4017 (amd64obsd_init_abi): Set link map offsets.
4018 * i386fbsd-tdep.c: Include "solib-svr4.h".
4019 (i386fbsd_init_abi): Set link map offsets.
4020 * i386nbsd-tdep.c: Include "solib-svr4.h".
4021 (i386nbsdelf_init_abi): Set link map offsets.
4022 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
4023 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
4024 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
4025 solib-legacy.o and core-aout.o. Reformat.
4026 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
4027 solib-svr4.o, solib-legacy.o. Reformat.
4028 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
4029 * config/i386/nbsdelf.mh: Reformat.
4030 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
4031 solib-svr4.o, solib-legacy.o and corelow.o.
4032 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
4033 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
4034 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
4035 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
4036 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
4037 (TM_FILE): Set to tm-fbsd.h.
4038 * config/i386/nbsd.mt (TDEPFILES): Reformat.
4039 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
4041 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
4043 (TM_FILE): Set to nm-nbsd.h.
4044 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
4045 Simplify shared library support. Don't include "elf/common.h".
4046 (SVR4_SHARED_LIBS): Don't define.
4047 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
4049 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
4050 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
4051 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
4052 Don't include "i386/tm-i386.h". Include "solib.h".
4053 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
4054 Don't include "i386/tm-i386.h".
4055 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
4056 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
4057 Include "i386/xm-i386.h".
4058 (HOST_LONG_DOUBLE_FORMAT): Remove.
4060 Fix OpenBSD/i386 sigtramp recognition.
4061 * i386-tdep.h: Update copyright year.
4062 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
4063 (i386bsd_sigtramp_end): New prototypes.
4064 (i386fbsd_sigtramp_start_addr): Renamed from
4065 i386fbsd_sigtramp_start.
4066 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
4067 (i386obsd_sigtramp_start_addr): Renamed from
4068 i386obsd_sigtramp_start.
4069 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
4070 * i386bsd-tdep.c: Update copyright year.
4071 (i386bsd_pc_in_sigtramp): Make public.
4072 * i386fbsd-nat.c: Update copyright year.
4073 (_initialize_i386fbsd_nat): Adjust for renamed variables.
4074 * i386fbsd-tdep.c: Update copyright year.
4075 (i386fbsd_sigtramp_start_addr): Renamed from
4076 i386fbsd_sigtramp_start.
4077 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
4078 (i386fbsdaout_init_abi): Adjust for renamed variables.
4079 * i386obsd-nat.c: Update copyright year.
4080 (_initialize_i386obsd_nat): Adjust for renamed variables.
4081 * i386obsd-tdep.c: Include "target.h".
4082 (i386obsd_page_size): New variable.
4083 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
4084 (i386obsd_sigtramp_end): New functions.
4085 (i386obsd_sigtramp_start_addr): Renamed from
4086 i386obsd_sigtramp_start.
4087 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
4088 (i386obsd_init_abi): Adjust for renamed variables. Set
4089 pc_in_sigtramp, sigtramp_start and sigtramp_end.
4090 * Makefile.in (i386obsd-tdep.o): Update dependencies.
4092 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
4093 trampoline change in OpenBSD kernel.
4095 * amd64-nat.c: Update copyright year.
4096 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
4097 architecture from REGCACHE.
4099 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
4100 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
4102 2004-02-21 Mark Kettenis <kettenis@gnu.org>
4104 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
4105 i[34567]86-*-openbsd3.[0-3].
4106 * config/i386/obsdaout.mh: New file.
4108 * config/i386/obsd.mh (MH_FLAGS): Remove.
4111 * i386obsd-tdep.c: Update copyright years. Include
4113 (i386obsd_init_abi): Don't set regset_from_core_section here.
4114 (i386obsd_aout_init_abi): New function. Set
4115 regset_from_core_section here.
4116 (i386obsd_elf_init_abi): New function.
4117 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
4118 * Makefile.in (i386obsd-tdep.o): Update dependecies.
4119 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4120 (TM_FILE): Set to tm-nbsd.h.
4122 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
4125 * solib-svr4.h: Update copyright year.
4126 (svr4_ilp32_fetch_link_map_offsets)
4127 (svr4_lp64_fetch_link_map_offsets): New prototype.
4128 * solib-svr4.c: Update copyright year.
4129 (svr4_ilp32_fetch_link_map_offsets)
4130 (svr4_lp64_fetch_link_map_offsets): New function.
4132 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
4134 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
4135 to the partial symbol table.
4137 2004-02-20 J. brobecker <brobecker@gnat.com>
4139 * PROBLEMS: Add description of problem documented under gdb/1560.
4141 2004-02-20 Mark Kettenis <kettenis@gnu.org>
4143 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
4145 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
4147 (amd64obsd_init_abi): Reorder initializations. Use
4148 amd64obsd_r_reg_offset to initialize the general-purpose register
4149 set details. Set regset_from_core_section.
4150 (_initialize_amd64obsd_tdep): Rename from
4151 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
4152 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
4153 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
4155 * NEWS (New native configurations): Mention OpenBSD/alpha.
4156 * configure.tgt: Add alpha*-*-openbsd*.
4157 * configure.host: Add alpha*-*-openbsd*.
4158 * alphanbsd-tdep.c: Update copyright year.
4159 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
4161 2004-02-20 Andrew Cagney <cagney@redhat.com>
4164 * configure.tgt: Delete target "none-*-*".
4165 * configure.host: Delete host "none-*-*".
4166 * config/none/none.mh: Delete file.
4167 * config/none/none.mt: Delete file.
4168 * config/none/xm-none.h: Delete file.
4169 * config/none/tm-none.h: Delete file.
4170 * config/none/nm-none.h: Delete file.
4172 2004-02-19 Fred Fish <fnf@redhat.com>
4174 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
4175 cache->uses_fp prior to setting it.
4177 2004-02-19 Fred Fish <fnf@redhat.com>
4179 Fix for PR breakpoint/1558.
4180 * sh-tdep.c (IS_JSR): New macro.
4181 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
4183 2004-02-19 Jim Blandy <jimb@redhat.com>
4185 * findvar.c (value_from_register): Doc fix.
4187 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
4189 * printcmd.c (print_scalar_formatted): Do not check for sizeof
4190 type being greater than sizeof of host's LONGEST. Always use
4191 unpack_long() unless format 'f' chosen.
4193 2004-02-19 Joel Brobecker <brobecker@gnat.com>
4195 Committed by Elena Zannoni <ezannoni@redhat.com>
4197 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
4198 contains a symbol wich is the best, non-exact match for the given
4199 pc. Update comments.
4201 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
4203 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
4204 macro, which was part of the now removed Mach 3 port.
4205 * utils.c (request_quit): Ditto.
4207 2004-02-18 Mark Kettenis <kettenis@gnu.org>
4209 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
4210 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
4212 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4214 Committed by Mark Kettenis <kettenis@gnu.org>.
4216 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
4219 2004-02-18 Andrew Cagney <cagney@redhat.com>
4221 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
4222 CONFIG_INSTALL and CONFIG_UNINSTALL.
4223 * configure: Re-generate.
4224 * interps.h (INTERP_TUI): Define.
4225 * Makefile.in: Update dependencies.
4227 (tui-main.o): Specify dependencies.
4228 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
4229 * tui/tui-main.c: New file.
4231 2004-02-18 Mark Kettenis <kettenis@gnu.org>
4233 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
4234 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
4236 * configure.host: Add x86_64-*-openbsd*.
4237 * configure.tgt: Add x86_64-*-openbsd*.
4238 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
4240 * tui/tui.c: Don't include <malloc.h>.
4242 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
4243 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
4246 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
4247 static. Remove extraneous whitespace.
4248 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
4251 2004-02-17 Jim Blandy <jimb@redhat.com>
4253 * findvar.c (value_from_register): Doc fix.
4255 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4257 Committed by Jim Blandy <jimb@redhat.com>.
4259 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
4260 CORE_ADDR as type for selectors. Correct types for GNU run time
4261 message lookup function to use double indirection.
4262 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
4263 * objc-lang.h (lookup_child_selector): Adapt prototype.
4265 * s390-nat.c (SUBOFF): New macro.
4266 (supply_gregset, fill_gregset): Use it to handle debugging
4267 of 32-bit exectuables running under a 64-bit kernel.
4268 * s390-tdep.c: Include "solib-svr4.h".
4269 (s390_svr4_fetch_link_map_offset): New function.
4270 (s390x_svr_fetch_link_map_offset): Likewise.
4271 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
4272 * Makefile.in (s390-tdep.o): Update dependencies.
4274 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
4276 (s390_readinstruction): Reformat. Use read_memory_nobpt.
4277 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
4278 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
4279 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
4280 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
4281 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
4282 S390_SIGNAL_FRAMESIZE,
4283 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
4284 (struct frame_extra_info): Remove.
4285 (s390_memset_extra_info): Remove.
4286 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
4287 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
4288 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
4289 (is_rse): Renamed to ...
4290 (is_rsy): ... this. Support long displacements.
4291 (is_rxe): Renamed to ...
4292 (is_rxy): ... this. Support long displacements.
4293 (compute_x_addr): Support long displacements.
4294 (struct s390_prologue_data): New data type.
4295 (s390_on_stack): Change API to use struct s390_prologue_data.
4296 (s390_store): Reimplement.
4297 (s390_load): New function.
4298 (s390_get_signal_frame_info): Remove.
4299 (s390_get_frame_info): Remove, replace by ...
4300 (s390_analyze_prolog): ... this new function.
4301 (s390_check_function_end): Remove.
4302 (s390_function_start): Remove.
4303 (s390_frameless_function_invokation): Remove.
4304 (s390_is_sigreturn): Remove.
4305 (s390_init_frame_pc_first): Remove.
4306 (s390_init_frame_extra_info): Remove.
4307 (s390_frame_init_saved_regs): Remove.
4308 (s390_frame_saved_pc_nofix): Remove.
4309 (s390_frame_saved_pc): Remove.
4310 (s390_frame_chain): Remove.
4311 (s390_fp_regnum, s390_read_fp): Remove.
4312 (s390_pop_frame_regular, s390_pop_frame): Remove.
4313 (s390_saved_pc_after_call): Remove.
4314 (s390_skip_prologue): Reimplement.
4315 (s390_in_function_epilogue_p): Support long displacements.
4316 (struct s390_unwind_cache): New data structure.
4317 (s390_frame_unwind_cache): New function.
4318 (s390_prologue_frame_unwind_cache): Likewise.
4319 (s390_backchain_frame_unwind_cache): Likewise.
4320 (s390_frame_this_id, s390_frame_prev_register): Likewise.
4321 (s390_frame_unwind): Define.
4322 (s390_frame_sniffer): New function.
4323 (struct s390_pltstub_unwind_cache): New data structure.
4324 (s390_pltstub_frame_unwind_cache): New function.
4325 (s390_pltstub_frame_this_id): Likewise.
4326 (s390_pltstub_frame_prev_register): Likewise.
4327 (s390_pltstub_frame_unwind): Define.
4328 (s390_pltstub_frame_sniffer): New function.
4329 (struct s390_sigtramp_unwind_cache): New data structure.
4330 (s390_sigtramp_frame_unwind_cache): New function.
4331 (s390_sigtramp_frame_this_id): Likewise.
4332 (s390_sigtramp_frame_prev_register): Likewise.
4333 (s390_sigtramp_frame_unwind): Define.
4334 (s390_sigtramp_frame_sniffer): New function.
4335 (s390_frame_base_address, s390_local_base_address): New functions.
4336 (s390_frame_base): Define.
4337 (s390_unwind_pc, s390_unwind_sp): New function.
4338 (s390_push_dummy_call): Use new frame base location.
4339 (s390_unwind_dummy_id): Likewise.
4340 (s390_gdbarch_init): Remove calls to:
4341 set_gdbarch_frameless_function_invocation,
4342 set_gdbarch_deprecated_init_frame_pc,
4343 set_gdbarch_deprecated_frame_chain,
4344 set_gdbarch_deprecated_frame_init_saved_regs,
4345 set_gdbarch_deprecated_pop_frame,
4346 set_gdbarch_deprecated_init_extra_frame_info,
4347 set_gdbarch_deprecated_init_frame_pc_first,
4348 set_gdbarch_deprecated_target_read_fp,
4349 set_gdbarch_deprecated_frame_saved_pc,
4350 set_gdbarch_deprecated_saved_pc_after_call,
4351 set_gdbarch_deprecated_fp_regnum.
4353 set_gdbarch_in_solib_call_trampoline,
4354 frame_unwind_append_sniffer,
4355 frame_base_set_default,
4356 set_gdbarch_unwind_pc,
4357 set_gdbarch_unwind_sp.
4358 * Makefile.in (s390-tdep.o): Update dependencies.
4360 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
4361 (S390_STACK_FRAME_OVERHEAD): Remove.
4362 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
4363 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
4364 (s390_promote_integer_argument): Remove.
4365 (s390_cannot_extract_struct_value_address): Remove.
4366 (s390_use_struct_convention, s390_store_struct_return): Remove.
4367 (s390_extract_return_value, s390_store_return_value): Remove.
4368 (s390_return_value_convention, s390_return_value): New functions.
4369 (is_float_singleton): Handle typedefs.
4370 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
4371 Remove, replace by ...
4372 (s390_function_arg_pass_by_reference, s390_function_arg_float,
4373 s390_function_arg_integer): ... these new functions.
4374 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
4375 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
4376 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
4379 set_gdbarch_deprecated_store_struct_return,
4380 set_gdbarch_deprecated_extract_return_value,
4381 set_gdbarch_deprecated_store_return_value,
4382 set_gdbarch_use_struct_convention,
4383 set_gdbarch_extract_struct_value_address,
4384 set_gdbarch_deprecated_pc_in_call_dummy,
4385 set_gdbarch_deprecated_push_arguments,
4386 set_gdbarch_deprecated_save_dummy_frame_tos,
4387 set_gdbarch_deprecated_push_return_address,
4388 set_gdbarch_deprecated_sizeof_call_dummy_words,
4389 set_gdbarch_deprecated_call_dummy_words,
4390 set_gdbarch_deprecated_dummy_write_sp.
4392 set_gdbarch_push_dummy_call,
4393 set_gdbarch_unwind_dummy_id,
4394 set_gdbarch_return_value.
4396 * config/s390/nm-linux.h: Update comments.
4397 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
4398 (STOPPED_BY_WATCHPOINT): Redefine.
4399 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
4400 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
4401 (s390_stopped_by_watchpoint): Likewise.
4402 (watch_area_cnt): Remove.
4403 * s390-nat.c: Update comments.
4404 (watch_area): Remove typedef.
4405 Global replace watch_area by struct watch_area.
4406 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
4407 (s390_stopped_by_watchpoint): Remove pid argument,
4408 use s390_inferior_tid. Add short-cut for the no watchpoint case.
4409 (s390_fix_watch_points): Remove pid argument,
4410 use s390_inferior_tid. Recompute area spanned by watchpoints.
4411 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
4412 argument. Reimplement.
4414 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
4415 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
4416 (FETCH_INFERIOR_REGISTERS): Define.
4417 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
4419 * config/s390/s390x.mt: Remove.
4420 * config/s390/tm-s390.h: Remove.
4421 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
4422 (TARGET_ELF64): Remove.
4423 (SKIP_TRAMPOLINE_CODE): Do not undefine.
4424 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
4425 s390*-*-* case; always set gdb_target to s390.
4426 * regformats/reg-s390.dat: Remove control registers.
4427 * regformats/reg-s390x.dat: Likewise.
4428 * s390-tdep.h: New file.
4429 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
4430 Include "inferior.h" and "s390-tdep.h".
4431 Remove private definition of offsetof.
4432 (s390_register_u_addr): Remove.
4433 (regmap_gregset, regmap_fpregset): Define.
4434 (supply_gregset, fill_gregset): Reimplement.
4435 (supply_fpregset, fill_fpregset): Likewise.
4436 (s390_inferior_tid): New function.
4437 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
4438 (fetch_inferior_registers, store_inferior_registers): Likewise.
4439 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
4440 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
4441 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
4442 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
4443 (struct gdbarch_tdep): Define.
4444 (struct s390_register_info): Define.
4445 (s390_register_info): New variable.
4446 (s390_register_name): Reimplement.
4447 (s390_register_type): New function.
4448 (s390_register_raw_size, s390x_register_raw_size): Remove.
4449 (s390_cannot_fetch_register): Remove.
4450 (s390_register_byte): Remove.
4451 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
4452 (s390_dwarf_regmap): New variable.
4453 (s390_dwarf_reg_to_regnum): New function.
4454 (s390_stab_reg_to_regnum): Remove.
4455 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
4456 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
4457 (s390_convert_register_p): Likewise.
4458 (s390_register_to_value, s390_value_to_register): Likewise.
4459 (s390_register_reggroup_p): Likewise.
4460 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
4461 s390_gregset, s390x_gregset, s390_fpregset): New variables.
4462 (s390_supply_regset, s390_regset_from_core_section): New functions.
4463 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
4464 (S390_FPR_SIZE): Likewise.
4465 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
4466 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
4467 (S390_NUM_GPRS): Move here from tm-s390.h.
4468 (S390_NUM_FPRS): Likewise.
4469 (s390_in_function_epilogue_p): New function.
4470 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
4471 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
4472 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
4473 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
4474 Replace S390_FP_REGNUM by S390_SP_REGNUM.
4476 set_gdbarch_deprecated_max_register_raw_size,
4477 set_gdbarch_deprecated_max_register_virtual_size,
4478 set_gdbarch_deprecated_register_byte,
4479 set_gdbarch_cannot_fetch_register,
4480 set_gdbarch_cannot_store_register,
4481 set_gdbarch_deprecated_register_size,
4482 set_gdbarch_deprecated_register_raw_size,
4483 set_gdbarch_deprecated_register_virtual_size,
4484 set_gdbarch_deprecated_register_virtual_type,
4485 set_gdbarch_deprecated_register_bytes.
4487 set_gdbarch_num_pseudo_regs,
4488 set_gdbarch_register_type,
4489 set_gdbarch_convert_register_p,
4490 set_gdbarch_register_to_value,
4491 set_gdbarch_value_to_register,
4492 set_gdbarch_register_reggroup_p,
4493 set_gdbarch_regset_from_core_section,
4494 set_gdbarch_pseudo_register_read,
4495 set_gdbarch_pseudo_register_write,
4496 set_gdbarch_in_function_epilogue_p.
4497 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
4498 (s390_tdep_h): New variable.
4500 2004-02-17 Jim Blandy <jimb@redhat.com>
4502 * findvar.c (value_from_register): If the type has no length, just
4503 return an acceptable value --- don't report an internal error.
4505 * stabsread.c (read_type): If we find any type numbers that are
4506 forward references, complain if the references aren't resolved by
4507 the time we're finished reading.
4508 (cleanup_undefined_types): Make error message more appropriate for
4511 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
4513 * Makefile.in (defs_h): Remove dependency on progress_h.
4514 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
4516 * main.c (captured_main): Delete use of START_PROGRESS and
4519 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
4521 * objfiles.c (terminate_minimal_symbol_table): Add back
4522 initialization of MSYMBOL_TYPE.
4524 2004-02-17 David Mosberger <davidm@hpl.hp.com>
4526 Committed by Andrew Cagney.
4527 * Makefile.in (ia64_tdep_h): New macro.
4528 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
4529 (ia64-tdep.o): Likewise.
4530 * ia64-tdep.h: New file.
4531 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
4532 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
4533 (ia64_aix_sigcontext_register_address): Likewise.
4534 (ia64_linux_getunwind_table): Delete declaration.
4535 * ia64-linux-tdep.c: Likewise.
4537 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
4539 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
4540 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
4541 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
4543 2004-02-17 Andrew Cagney <cagney@redhat.com>
4545 * symtab.c (skip_prologue_using_sal): New function.
4546 * symtab.h (skip_prologue_using_sal): Declare.
4547 * frv-tdep.c: Include "symtab.h".
4548 (skip_prologue_using_sal): Delete function.
4549 * mips-tdep.c (skip_prologue_using_sal): Delete function.
4550 * rs6000-tdep.c (refine_prologue_limit): Mention
4551 skip_prologue_using_sal.
4552 * ia64-tdep.c (refine_prologue_limit): Ditto.
4553 * Makefile.in: Update dependencies.
4555 2004-02-16 Andrew Cagney <cagney@redhat.com>
4557 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
4558 START_INFERIOR_TRAPS_EXPECTED.
4559 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
4560 START_INFERIOR_TRAPS_EXPECTED.
4561 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
4563 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
4564 macro, moved to "nm-osf.h". Update copyright.
4565 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
4568 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
4569 and function replacing FRAMELESS_FUNCTION_INVOCATION.
4570 * blockframe.c (legacy_frameless_look_for_prologue): Rename
4571 frameless_look_for_prologue.
4572 * frame.h (legacy_frameless_look_for_prologue): Rename
4573 frameless_look_for_prologue.
4574 * gdbarch.h, gdbarch.c: Re-generate.
4575 * sh64-tdep.c (sh64_gdbarch_init): Update.
4576 * sh-tdep.c (sh_gdbarch_init): Update.
4577 * s390-tdep.c (s390_gdbarch_init): Update.
4578 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4579 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4580 * m68k-tdep.c (m68k_gdbarch_init): Update.
4581 (delta68_frame_args_address): Update.
4582 * m32r-tdep.c (m32r_gdbarch_init): Update.
4583 * hppa-tdep.c (hppa_gdbarch_init): Update.
4584 * h8300-tdep.c (h8300_gdbarch_init): Update.
4585 * frv-tdep.c (frv_gdbarch_init): Update.
4586 (frv_frameless_function_invocation): Update.
4587 * cris-tdep.c (cris_gdbarch_init): Update.
4588 (cris_frameless_function_invocation): Update.
4589 * avr-tdep.c (avr_gdbarch_init): Update.
4590 * arm-tdep.c (arm_gdbarch_init): Update.
4591 * stack.c (frame_info): Update, call predicate.
4592 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
4593 * frame.c (legacy_get_prev_frame): Update, call predicate..
4594 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
4595 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
4596 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
4598 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4599 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4600 * vax-tdep.c (vax_gdbarch_init): Ditto.
4602 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
4605 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
4607 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
4610 2004-02-16 Andrew Cagney <cagney@redhat.com>
4612 * tui/tui-windata.c: Include "gdb_string.h".
4613 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
4614 * tui/tui-layout.c, tui/tui-command.c: Ditto.
4615 * Makefile.in: Update dependencies.
4617 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
4619 * Makefile.in (infrun.o): Add $(gdb_assert_h).
4620 * infrun.c: Include "gdb_assert.h".
4621 (singlestep_ptid, saved_singlestep_ptid)
4622 (stepping_past_singlestep_breakpoint): New variables.
4623 (resume): Set singlestep_ptid. Check for singlestep thread
4625 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
4626 (handle_inferior_event): Handle singlestep thread hop.
4628 2004-02-16 Andrew Cagney <cagney@redhat.com>
4630 * dwarf2-frame.c (dwarf2_frame_ops): New function.
4631 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
4632 (dwarf2_frame_init_reg): Ditto.
4634 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
4635 suggested by Joshua Neuheisel
4637 * configure.in: Always check for curses, including pdcurses.
4638 Warn, instead of error, when no curses are found. Enable TUI when
4639 curses is available.
4640 * configure: Re-generate.
4642 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
4644 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
4645 sh_sh4_register_convert_to_virtual.
4646 (sh_register_convert_to_raw): Rename from
4647 sh_sh4_register_convert_to_raw.
4648 (sh_pseudo_register_read): Accomodate above name change.
4649 (sh_pseudo_register_write): Ditto.
4651 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
4653 * sh-tdep.c (sh_generic_register_name): Remove.
4654 (sh_gdbarch_init): Use sh_sh_register_name in default case.
4656 2004-02-15 Andrew Cagney <cagney@redhat.com>
4658 * configure.in (build_warnings): Add -Wunused-function.
4659 * configure: Re-generate.
4661 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
4662 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
4664 * procfs.c (procfs_init_inferior): Assume that
4665 START_INFERIOR_TRAPS_EXPECTED is defined.
4666 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
4667 * config/ns32k/tm-nbsd.h: Delete file,
4668 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
4670 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
4671 * config/vax/tm-vax.h: Delete file.
4673 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
4674 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
4675 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
4676 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
4677 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
4678 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
4679 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
4681 2004-02-15 Mark Kettenis <kettenis@gnu.org>
4683 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
4684 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4685 (struct dwarf2_frame_ops): New.
4686 (dwarf2_frame_default_init_reg): New function, based on
4687 dwarf2_frame_init_reg.
4688 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
4689 (dwarf2_frame_init_reg): Call architecture-specific function.
4690 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
4691 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
4692 instead of dwarf2_frame_data.
4693 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
4694 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
4696 2004-02-15 Andrew Cagney <cagney@redhat.com>
4698 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
4699 register_gdbarch_swap.
4700 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
4701 * f-lang.c (_initialize_f_language): Update, use
4702 DEPRECATED_REGISTER_GDBARCH_SWAP.
4703 * remote.c (_initialize_remote): Ditto.
4704 * regcache.c (_initialize_regcache): Ditto.
4705 * parse.c (_initialize_parse): Ditto.
4706 * infrun.c (_initialize_infrun): Ditto.
4707 * mi/mi-main.c (_initialize_mi_main): Ditto.
4708 * gdbtypes.c (_initialize_gdbtypes): Ditto.
4710 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
4711 poking .cacheable directly.
4712 * symfile.c (symfile_bfd_open): Ditto.
4714 * Makefile.in: Update all dependencies.
4716 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
4717 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
4718 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
4719 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
4720 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
4722 2004-02-14 Andrew Cagney <cagney@redhat.com>
4724 * arch-utils.c (legacy_convert_register_p): Check
4725 DEPRECATED_REGISTER_CONVERTIBLE_P.
4726 * findvar.c (value_of_register): Ditto.
4728 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
4729 * gdbarch.h, gdbarch.c: Re-generate.
4730 * arch-utils.c (deprecated_register_convertible_not): Delete.
4731 * arch-utils.h (deprecated_register_convertible_not): Delete.
4732 * mi/mi-main.c (get_register): Update. Update copyright.
4733 * infcmd.c (default_print_registers_info): Update.
4735 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
4736 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
4737 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
4738 * gdbarch.h, gdbarch.c: Re-generate.
4739 * frame.c (deprecated_get_next_frame_hack): Delete function.
4740 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
4741 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
4743 * infcall.c (call_function_by_hand): Update.
4745 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
4747 * symfile.c (init_entry_point_info, entry_point_address): Move
4749 * objfiles.c (init_entry_point_info, entry_point_address):..to
4751 * symfile.h (init_entry_point_info, entry_point_address): Remove
4753 * objfiles.h (init_entry_point_info, entry_point_address):Add
4755 * cris-tdep.c: Remove include of symfile.h. Add include of
4758 * mcore-tdep.c: Ditto.
4759 * mn10300-tdep.c: Ditto.
4760 * sh64-tdep.c: Ditto.
4761 * v850-tdep.c: Ditto.
4762 * arm-tdep.c: Remove include of symfile.h.
4763 * blockframe.c: Ditto.
4764 * coffread.c: Ditto.
4766 * dwarf2read.c: Ditto.
4767 * dwarfread.c: Ditto.
4768 * frv-tdep.c: Ditto.
4769 * ia64-tdep.c: Ditto.
4770 * mdebugread.c: Ditto.
4771 * mipsread.c: Ditto.
4772 * rs6000-tdep.c: Ditto.
4773 * s390-tdep.c: Ditto.
4775 * xstormy16-tdep.c: Ditto.
4776 * gdbarch.sh: Remove include of symfile.h.
4777 * gdbarch.c: Regenerate.
4778 * solib-irix.c (enable_break): Use entry_point_address().
4779 Add comment about include file.
4780 * xcoffread.c: Add comment about include file.
4781 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
4782 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
4783 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
4784 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
4785 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
4787 2004-02-13 Andrew Cagney <cagney@redhat.com>
4789 * corelow.c (core_xfer_partial): Use "struct bfd_section".
4790 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
4792 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
4794 2004-02-12 Fred Fish <fnf@redhat.com>
4796 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
4797 set_gdbarch_store_return_value.
4799 2004-02-12 Andrew Cagney <cagney@redhat.com>
4801 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
4802 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
4803 (interrupt_query): Ditto.
4804 (ofunc): Delete unused variable.
4805 * cris-tdep.c (cris_abi): Delete unused function.
4806 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
4807 (cris_get_wide_opcode, cris_get_short_size): Ditto.
4808 (cris_get_asr_quick_shift_steps): Ditto.
4809 (cris_skip_prologue_frameless_p): Ditto.
4810 * arm-tdep.c (arm_push_return_address): Delete unused function.
4811 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
4812 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
4813 * s390-tdep.c (s390_function_start): Delete unused function.
4815 2004-02-12 Andrew Cagney <cagney@redhat.com>
4817 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
4818 gdbarch.h, gdbarch.c: Re-generate.
4819 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
4820 to generic_prologue_frameless_p.
4821 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
4822 * arch-utils.c (generic_prologue_frameless_p): Delete function.
4824 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
4826 * mips-linux-tdep.c: Include "frame.h".
4827 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
4828 (mips_linux_skip_resolver): New functions.
4829 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
4830 and set_gdbarch_in_solib_call_trampoline.
4831 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
4832 to after set_gdbarch_in_solib_return_trampoline. Only set the
4833 solib hooks to mips16 functions if the OS ABI is unknown.
4834 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
4835 including "config/tm-linux.h".
4836 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
4837 * Makefile.in (mips-linux-tdep.o): Update.
4839 2004-02-11 David Carlton <carlton@kealia.com>
4841 * linespec.c (decode_compound): Only look for a class symbol when
4842 considering all but the rightmost component.
4844 2004-02-11 Andrew Cagney <cagney@redhat.com>
4846 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
4847 abi code are are separatly grouped.
4849 2004-02-11 Andrew Cagney <cagney@redhat.com>
4851 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
4852 * gdbarch.h, gdbarch.c: Re-generate.
4853 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4854 * v850-tdep.c (v850_gdbarch_init): Update.
4855 * sh64-tdep.c (sh64_gdbarch_init): Update.
4856 * sh-tdep.c (sh_gdbarch_init): Update.
4857 * s390-tdep.c (s390_gdbarch_init): Update.
4858 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4859 * mips-tdep.c (mips_gdbarch_init): Update.
4860 * mcore-tdep.c (mcore_gdbarch_init): Update.
4861 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4862 * m32r-tdep.c (m32r_gdbarch_init): Update.
4863 * ia64-tdep.c (ia64_gdbarch_init): Update.
4864 * hppa-tdep.c (hppa_gdbarch_init): Update.
4865 * h8300-tdep.c (h8300_gdbarch_init): Update.
4866 * frv-tdep.c (frv_gdbarch_init): Update.
4867 * d10v-tdep.c (d10v_gdbarch_init): Update.
4868 * cris-tdep.c (cris_gdbarch_init): Update.
4869 * avr-tdep.c (avr_gdbarch_init): Update.
4870 * arm-tdep.c (arm_gdbarch_init): Update.
4871 * alpha-tdep.c (alpha_gdbarch_init): Update.
4873 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
4875 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
4877 (sh_sh4al_dsp_register_name): Ditto.
4879 2004-02-10 Andrew Cagney <cagney@redhat.com>
4881 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
4882 (mips_init_frame_pc_first): Delete function.
4883 (mips_frame_saved_pc): Delete function.
4884 (mips_frame_chain): Delete function.
4885 (mips_init_extra_frame_info): Delete function.
4886 (mips_xfer_register): Delete unused variable "reg".
4887 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
4888 (mips_n32n64_return_value): Delete unused variable "reg".
4889 (mips_n32n64_return_value): Delete unused variable "pos".
4890 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
4891 (mips_o32_return_value): Delete unused variable "pos".
4892 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
4893 (mips_print_fp_register): Delete unused variable "namelen"
4894 (mips_print_fp_register): Delete unused variable "flt2"
4895 (get_frame_pointer): Delete function.
4896 (cached_proc_desc): Delete static variable.
4897 (mips_pop_frame): Delete function.
4898 (mips_find_saved_regs): Delete function.
4899 (mips_get_saved_register): Delete function.
4900 (mips_saved_pc_after_call): Delete function.
4901 (SIGFRAME_BASE): Delete macro.
4902 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
4903 (SIGFRAME_PC_OFF): Delete macro.
4904 (SIGFRAME_REGSAVE_OFF): Delete macro.
4905 (mips_dump_tdep): Do not print deleted macro definitions.
4907 2004-02-10 Andrew Cagney <cagney@redhat.com>
4909 * Makefile.in (SFILES): Remove explictly listed tui files.
4910 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
4912 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
4914 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
4915 to use paddr functions to format ia64 addresses and long values.
4916 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
4917 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
4918 (get_kernel_table, ia64_find_proc_info_x): Ditto.
4919 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
4920 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
4922 2004-02-10 Andrew Cagney <cagney@redhat.com>
4924 * defs.h: Do not include "tui.h".
4925 * gdb_curses.h: New file.
4926 * tui/tui-hooks.h: New file.
4927 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
4928 (tui_install_hooks, tui_remove_hooks): Delete declarations.
4929 (tui_initialize_io): Delete declaration.
4930 (tui_initialize_readline: Delete redundant declaration.
4931 (struct tui_point): Delete definition.
4932 * tui/tui-data.h (struct tui_point): Define.
4933 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
4934 * utils.c: Include "tui/tui.h".
4935 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
4936 * printcmd.c [TUI]: Include "tui/tui.h".
4937 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
4938 * tui/tui-command.c: Include "gdb_curses.h".
4939 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
4940 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
4941 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
4942 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
4943 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
4944 * Makefile.in: Update all dependencies.
4945 (tui_hooks_h, gdb_curses_h): Define.
4946 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
4948 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
4950 * objfiles.h (struct objfile): Remove unused fields auxf1 and
4951 auxf2. Add comments about some other rarely used fields.
4953 2004-02-10 Andrew Cagney <cagney@redhat.com>
4955 * Makefile.in (init.c): Fix script removing duplicates. Problem
4956 reported by Peter Schauer.
4958 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
4960 * bcache.c (bcache_xmalloc): Use obstack_init instead of
4961 obstack_specify_allocation.
4962 * objfiles.c (allocate_objfile): Ditto.
4963 * solib-sunos.c (solib_add_common_symbols)
4964 (allocate_rt_common_objfile): Ditto.
4965 * symfile.c (reread_symbols): Ditto.
4966 * gdb_obstack.h: Add comment.
4968 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
4970 * linespec.c (decode_line_1, locate_first_half)
4971 (decode_compound, lookup_prefix_sym): Update comments. Delete old
4974 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
4976 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
4979 2004-02-09 Andrew Cagney <cagney@redhat.com>
4981 * blockframe.c (find_pc_partial_function): If find_pc_overlay
4982 fails, try find_pc_section. Fix PR c++/1267.
4983 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
4984 instead of find_pc_mapped_section.
4985 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
4986 not default to the section containing PC. Fix PR symtab/1519.
4988 2004-02-09 Andrew Cagney <cagney@redhat.com>
4990 * Makefile.in (mips-tdep.o): Update dependencies.
4991 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
4993 (mips_unwind_pc): Return the pseudo PC register.
4994 (mips_unwind_dummy_id): New function.
4995 (mips16_fetch_instruction): New function.
4996 (mips32_fetch_instruction): New function.
4997 (struct mips_frame_cache): Define.
4998 (mips_mdebug_frame_cache): New function.
4999 (mips_mdebug_frame_this_id): New function.
5000 (mips_mdebug_frame_prev_register): New function.
5001 (mips_mdebug_frame_unwind): Define.
5002 (mips_mdebug_frame_sniffer): New function.
5003 (mips_mdebug_frame_base_address): New function.
5004 (mips_mdebug_frame_base): Define.
5005 (mips_mdebug_frame_base_sniffer): New function.
5006 (mips_gdbarch_init): Append unwind and base sniffers. Set
5009 2004-02-08 Andrew Cagney <cagney@redhat.com>
5011 * frame.c: Print both the register number and name.
5013 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
5014 and a sed into a single sed. Make .c and .o patterns more robust.
5016 (INIT_FILES): Replace OBS with COMMON_OBS.
5017 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
5019 2004-02-08 Mark Kettenis <kettenis@gnu.org>
5021 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
5022 the PT_WCOOKIE request.
5024 2004-02-08 Andrew Cagney <cagney@redhat.com>
5026 * mips-tdep.c (mips_unwind_pc): New function.
5027 (mips_gdbarch_init): Set mips_unwind_pc.
5029 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
5030 (get_frame_id): Allow the UNKNOWN_FRAME.
5031 (frame_register_unwind, get_frame_type): Ditto.
5033 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
5034 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
5035 unwind_dummy_id indicates a legacy frame.
5037 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
5038 * configure: Re-generate.
5040 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
5043 2004-02-08 Andrew Cagney <cagney@redhat.com>
5045 * configure.in (CONFIG_ALL): Set to Makefile target, and not
5047 * configure: Re-generate.
5048 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
5049 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
5050 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
5051 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
5052 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
5053 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
5054 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
5055 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
5056 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
5057 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
5059 2004-02-07 Andrew Cagney <cagney@redhat.com>
5061 * Makefile.in: Update all dependencies.
5063 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
5064 * configure: Re-generate.
5065 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
5066 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
5067 (COMMON_OBS): Add "main.o" and "annotate.o".
5068 (ANNOTATE_OBS): Delete.
5069 (OBS): Remove ANNOTATE_OBS.
5070 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
5072 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
5073 against CONFIG_OBS and "main.o".
5074 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
5075 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
5077 * tui/tui-command.c: Include "gdb_string.h", delete register
5078 attribute, use ISO-C function signatures.
5079 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
5080 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
5081 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
5084 * tui/tui-command.c: Change variable and function names to lower
5086 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
5087 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
5088 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
5089 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
5090 * tui/tui-winsource.c, tui/tui.c: Ditto.
5092 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
5094 * buildsym.c (free_pending_blocks, finish_block)
5095 (record_pending_block, make_blockvector, end_symtab): Replace
5096 symbol_obstack with objfile_obstack.
5097 * coffread.c (process_coff_symbol, coff_read_struct_type)
5098 (coff_read_enum_type): Ditto.
5099 * cp-namespace.c (initialize_namespace_symtab)
5100 (check_one_possible_namespace_symbol): Ditto.
5101 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
5102 (dwarf2_symbol_mark_computed): Ditto.
5103 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
5104 * elfread.c (elf_symtab_read): Ditto.
5105 * hpread.c (hpread_symfile_init, hpread_symfile_init)
5106 (hpread_read_enum_type, hpread_read_function_type)
5107 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
5109 * jv-lang.c (get_java_class_symtab, add_class_symbol)
5110 (java_link_class_type): Ditto.
5111 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
5112 (new_symbol): Ditto.
5113 * minsyms.c (install_minimal_symbols): Ditto.
5114 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
5115 (terminate_minimal_symbol_table): Replace symbol_obstack with
5117 (free_objfile): Remove freeing of symbol_obstack.
5118 * objfiles.h: Remove symbol_obstack field.
5119 * pa64solib.c (add_to_solist): Replace symbol_obstack with
5121 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
5123 (solib_add_common_symbols): Replace symbol_obstack with
5125 * somsolib.c (som_solib_add): Ditto.
5126 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5127 (common_block_start, common_block_end): Ditto.
5128 * symfile.c (reread_symbols): Remove freeing and init of
5130 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
5131 * symfile.h: Update comment.
5132 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
5134 * symtab.c (symbol_set_names): Replace symbol_obstack with
5136 * symtab.h (struct general_symbol_info, struct minimal_symbol):
5138 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
5139 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
5142 2004-02-07 Andrew Cagney <cagney@redhat.com>
5144 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
5145 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
5146 fields and variables.
5147 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
5148 (m_beInvisible): Delete macro.
5149 * tui/tui-data.h: Fix case case fields and variables.
5150 (m_genWinPtrIsNull): Delete macro.
5151 (tui_win_list): Rename winList.
5152 (TUI_SRC_WIN): Rename srcWin.
5153 (TUI_DISASM_WIN): Rename disassemWin.
5154 (TUI_DATA_WIN): Rename dataWin.
5155 (TUI_CMD_WIN): Rename cmdWin.
5156 (m_genWinPtrNotNull): Delete macro.
5157 (m_winPtrIsNull): Delete macro.
5158 (m_winPtrNotNull): Delete macro.
5159 (tui_win_is_source_type): Replace m_winIsSourceType
5160 (tui_win_is_auxillary): Replace m_winIsAuzillary.
5161 (tui_win_has_locator): Replace m_hasLocator.
5162 (tui_set_win_highlight): Replace m_setWinHighlightOn and
5163 m_setWinHighlightOff.
5164 * tui/tui-data.c: Update references.
5165 (tui_win_is_source_type, tui_set_win_highlight): New functions.
5166 (tui_win_has_locator, tui_win_is_auxillary): New functions.
5167 * tui/tui-command.c, tui/tui-disasm.c: Update references.
5168 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
5169 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
5170 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
5171 * tui/tui-winsource.c, tui/tui.c: Ditto.
5173 2004-02-07 Mark Kettenis <kettenis@gnu.org>
5175 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
5176 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
5179 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
5180 variable `i6' to `i7'.
5181 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
5183 2004-02-07 Andrew Cagney <cagney@redhat.com>
5185 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
5186 (TuiPoint, TuiPointPtr): Ditto.
5187 (TuiStatus, TuiStatusPtr): Ditto.
5188 (TuiWinType, TuiWinTypePtr): Ditto.
5189 (struct tui_point): Rename _TuiPoint.
5190 (tui_get_low_disassembly_address): Rename
5191 tuiGetLowDisassemblyAddress.
5192 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
5193 (tuiFree): Delete declaration.
5194 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
5195 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
5196 * tui/tui.c (tuiFree): Delete function.
5197 * cli/cli-cmds.c (disassemble_command): Update references.
5198 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
5199 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
5200 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
5201 * tui/tui-winsource.c: Ditto.
5203 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
5205 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
5206 coffstab_build_psymtabs, elfstab_build_psymtabs)
5207 (stabsect_build_psymtabs): Replace psymbol_obstack with
5209 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
5210 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
5212 * dwarfread.c (scan_compilation_units): Ditto.
5213 * elfread.c (elfstab_offset_sections): Ditto.
5214 * hppa-tdep.c (read_unwind_info): Ditto.
5215 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
5216 (hpread_end_psymtab): Ditto.
5217 * mdebugread.c (mdebug_build_psymtabs, add_pending)
5218 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
5220 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5221 * objfiles.c (add_to_objfile_sections)
5222 (build_objfile_section_table): Ditto.
5223 (allocate_objfile): Remove init of psymbol_obstack.
5224 (free_objfile): Remove freeing of psymbol_obstack.
5225 * objfiles.h (struct objfile): Remove field
5226 psymbol_obstack. Update comments.
5227 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
5228 psymbol_obstack with objfile_obstack.
5229 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
5231 * somread.c (som_symfile_offsets, init_import_symbols)
5232 (init_export_symbols): Replace psymbol_obstack with
5234 * somsolib.c (som_solib_add_solib_objfile): Ditto.
5235 * symfile.c (default_symfile_offsets, syms_from_objfile)
5236 (reread_symbols): Remove freeing and init of psymbol_obstack.
5237 (cashier_psymtab): Update comment.
5238 * symmisc.c (print_objfile_statistics): Don't report stats for
5240 * symtab.h (struct general_symbol_info, struct partial_symtab):
5242 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
5243 (xcoff_symfile_offsets): Replace psymbol_obstack with
5246 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
5248 * objfiles.h (struct objfile): Add objfile_obstack field.
5249 Remove type_obstack field.
5251 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
5252 read_structure_scope read_enumeration, new_symbol): Replace
5253 type_obstack with objfile_obstack.
5254 * dwarfread.c (struct_type, enum_type): Ditto.
5255 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
5256 (lookup_fundamental_type): Ditto.
5257 * gdbtypes.h (TYPE_ALLOC): Ditto.
5258 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
5259 (hpread_read_doc_function_type, hpread_read_struct_type)
5260 (fix_static_member_physnames, hpread_read_array_type)
5261 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
5262 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
5263 (java_link_class_type): Ditto.
5264 * mdebugread.c (parse_type): Ditto.
5265 * objfiles.c (allocate_objfile, free_objfile): Ditto.
5266 * solib-sunos.c (solib_add_common_symbols): Ditto.
5267 * stabsread.c (define_symbol, read_type, read_member_functions,
5268 read_cpp_abbrev, read_one_struct_field): Ditto.
5269 * symfile.c (reread_symbols): Ditto.
5270 * symmisc.c (print_objfile_statistics): Ditto.
5272 2004-02-07 Andrew Cagney <cagney@redhat.com>
5274 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
5275 (tui_exec_info_content): Rename TuiExecInfoContent.
5276 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
5277 (TuiWinInfo, TuiWinInfoPtr): Ditto.
5278 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
5279 (TuiList, TuiListPtr): Ditto.
5280 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
5281 (TuiDataType, TuiDataTypePtr): Ditto.
5282 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
5283 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
5284 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
5285 (TuiSourceElement, TuiSourceElementPtr): Ditto.
5286 (TuiDataElement, TuiDataElementPtr): Ditto.
5287 (TuiWinElement, TuiWinElementPtr): Ditto.
5288 (TuiDataInfo, TuiDataInfoPtr): Ditto.
5289 (TuiCommandElement, TuiCommandElementPtr): Ditto.
5290 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
5291 (TuiWhichElement, TuiWhichElementPtr): Ditto.
5292 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
5293 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
5294 * tui/tui-command.c, tui/tui-data.c: Update references.
5295 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
5296 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
5297 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
5298 * tui/tui-winsource.c, tui/tui.c: Ditto.
5300 2004-02-07 Mark Kettenis <kettenis@gnu.org>
5302 * dwarf2-frame.h: Update copyright.
5303 (enum dwarf2_frame_reg_rule): New.
5304 (struct dwarf2_frame_state_reg): New.
5305 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
5306 * dwarf2-frame.c: Update copyright.
5307 (enum dwarf2_reg_rule): Remove.
5308 (struct dwarf2_frame_state): Remove defenition of `struct
5309 dwarf2_frame_state_reg'.
5310 (read_reg): Call get_frame_arch to get the architecture instead of
5311 using CURRENT_GDBARCH.
5312 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
5314 (dwarf2_frame_init_reg): New function.
5315 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
5316 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
5317 initialize the register state. Prefix old `enum dwarf2_reg_rule'
5318 tags with DWARF2_FRAME_.
5319 (dwarf2_frame_prev_register): Call get_frame_arch to get the
5320 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
5321 dwarf2_reg_rule' tags with DWARF2_FRAME_.
5323 2004-02-06 Andrew Cagney <cagney@redhat.com>
5325 * tui/tui-data.h (struct tui_list): Rename _TuiList.
5326 (enum tui_data_type): Rename _TuiDataType.
5327 (struct tui_layout_def): Rename _TuiLayoutDef.
5328 (struct tui_source_element): Rename _TuiSourceElement.
5329 (struct tui_data_element): Rename _TuiDataElement.
5330 (struct tui_command_element): Rename _TuiCommandElement.
5331 (struct tui_locator_element): Rename _TuiLocatorElement.
5332 (union tui_which_element): Define.
5333 (struct tui_win_element): Rename _TuiWinElement.
5334 (struct tui_data_info): Rename _TuiDataInfo.
5335 (struct tui_source_info): Rename _TuiSourceInfo.
5336 (struct tui_command_info): Rename _TuiCommandInfo.
5337 (tui_initialize_static_data): Rename initializeStaticData.
5338 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
5339 (tui_alloc_win_info): Rename allocWinInfo.
5340 (tui_init_generic_part): Rename initGenericPart.
5341 (tui_init_win_info): Rename initWinInfo.
5342 (tui_alloc_content): Rename allocContent.
5343 (tui_add_content_elements): Rename addContentElements.
5344 (tui_init_content_element): Rename initContentElement.
5345 (tui_free_window): Rename freeWindow.
5346 (tui_free_win_content): Rename freeWinContent.
5347 (tui_free_data_content): Rename freeDataContent.
5348 (tui_free_all_source_wins_content): Rename
5349 freeAllSourceWinsContent.
5350 (tui_del_window): Rename tuiDelWindow.
5351 (tui_del_data_windows): Rename tuiDelDataWindows.
5352 (tui_partial_win_by_name): Rename partialWinByName.
5353 (tui_win_name): Rename winName.
5354 (tui_current_layout): Rename currentLayout.
5355 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
5356 (tui_term_height): Rename termHeight.
5357 (tui_set_term_height_to): Rename setTermHeightTo.
5358 (tui_term_width): Rename termWidth.
5359 (tui_set_term_width_to): Rename setTermWidthTo.
5360 (tui_set_gen_win_origin): Rename setGenWinOrigin.
5361 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
5362 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
5363 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
5364 (tui_source_windows): Rename sourceWindows.
5365 (tui_clear_source_windows): Rename clearSourceWindows.
5366 (tui_clear_source_windows_detail): Rename
5367 clearSourceWindowsDetail.
5368 (tui_clear_win_detail): Rename clearWinDetail.
5369 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
5370 (tui_default_tab_len): Rename tuiDefaultTabLen.
5371 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
5372 (tui_win_with_focus): Rename tuiWinWithFocus.
5373 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
5374 (tui_layout_def): Rename tuiLayoutDef.
5375 (tui_win_resized): Rename tuiWinResized.
5376 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
5377 (tui_next_win): Rename tuiNextWin.
5378 (tui_prev_win): Rename tuiPrevWin.
5379 (tui_add_to_source_windows): Rename addToSourceWindows.
5380 * tui/tui-winsource.c, tui/tui-win.c: Update references.
5381 * tui/tui-layout.c, tui/tui-source.c: Ditto.
5382 * tui/tui-stack.c, tui/tui-io.c: Ditto.
5383 * tui/tui.c, tui/tui-data.c: Ditto.
5384 * tui/tui-interp.c, tui/tui-data.c: Ditto.
5385 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
5387 * tui/tui-source.h: Update copyright. Include "tui-data.h".
5388 (struct symtab): Declare.
5389 (tui_set_source_content): Rename tuiSetSourceContent.
5390 (tui_show_symtab_source): Rename tuiShowSource.
5391 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
5392 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
5393 * tui/tui-source.c: Update copyright. Update references.
5394 * tui/tui-win.c, tui/tui-winsource.c: Update references.
5395 * tui/tui-stack.c: Update references.
5397 * tui/tui-win.h: Update copyright. Include "tui-data.h".
5398 (struct tui_win_info): Declare.
5399 (tui_scroll_forward): Rename tuiScrollForward.
5400 (tui_scroll_backward): Rename tuiScrollBackward.
5401 (tui_scroll_left): Rename tuiScrollLeft.
5402 (tui_scroll_right): Rename tuiScrollRight.
5403 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
5404 (tui_resize_all): Rename tuiResizeAll.
5405 (tui_refresh_all_win): Rename tuiRefreshAll.
5406 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
5407 * tui/tui-layout.c, * tui/tui-io.c: Update references.
5408 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
5409 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
5411 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
5412 (tui_erase_data_content): Rename tuiEraseDataContent.
5413 (tui_display_all_data): Rename tuiDisplayAllData.
5414 (tui_check_data_values): Rename tuiCheckDataValues.
5415 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
5416 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
5417 (tui_first_data_element_no_in_line): Rename
5418 tuiFirstDataElementNoInLine.
5419 (tui_delete_data_content_windows): Rename
5420 tuiDeleteDataContentWindows.
5421 (tui_refresh_data_win): Rename tuiRefreshDataWin.
5422 (tui_display_data_from): Rename tuiDisplayDataFrom.
5423 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
5424 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
5425 * tui/tui-win.c, tui/tui-regs.c: Update references.
5426 * tui/tui-layout.c, tui/tui.c: Update references.
5428 * tui/tui-wingeneral.h: Update copyright.
5429 (m_allBeVisible): Delete macro.
5430 (m_allBeInvisible): Delete macro.
5431 (struct tui_gen_win_info): Declare.
5432 (struct tui_win_info): Declare.
5433 (tui_unhighlight_win): Rename unhighlightWin.
5434 (tui_make_visible, tui_make_invisible): Replace makeVisible.
5435 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
5436 (tui_make_window): Rename makeWindow.
5437 (tui_copy_win): Rename copyWin.
5438 (tui_box_win): Rename boxWin.
5439 (tui_highlight_win): Rename highlightWin.
5440 (tui_check_and_display_highlight_if_needed): Rename
5441 checkAndDisplayHighlightIfNeeded.
5442 (tui_refresh_all): Rename refreshAll.
5443 (tui_delete_win): Rename tuiDelwin.
5444 (tui_refresh_win): Rename tuiRefreshWin.
5445 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
5446 (tui_make_visible, tui_make_invisible): New functions.
5447 (tui_make_all_visible, tui_make_all_invisible): New functions.
5448 (make_all_visible): Rename makeAllVisible.
5449 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
5450 * tui/tui-data.c, tui/tui-winsource.c: Update references.
5451 * tui/tui-windata.c, tui/tui-win.c: Update references.
5452 * tui/tui-regs.c, tui/tui-layout.c: Update references.
5453 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
5455 2004-02-06 Mark Kettenis <kettenis@gnu.org>
5457 * proc-api.c (write_with_trace): Initialize local variable to
5458 silence compiler warning.
5460 2004-02-06 Andrew Cagney <cagney@redhat.com>
5462 * tui/tui-source.h: Do not include "defs.h".
5463 (struct tui_win_info): Declare.
5464 (tui_set_source_content_nil): Declare.
5465 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
5466 (union tui_line_or_address): Rename _TuiLineOrAddress.
5467 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
5468 (tui_update_source_window): Rename tuiUpdateSourceWindow.
5469 (tui_update_source_window_as_is): Rename
5470 tuiUpdateSourceWindowAsIs.
5471 (tui_update_source_windows_with_addr): Rename
5472 tuiUpdateSourceWindowsWithAddr.
5473 (tui_update_source_windows_with_line): Rename
5474 tuiUpdateSourceWindowsWithLine.
5475 (tui_clear_source_content): Rename tuiClearSourceContent.
5476 (tui_erase_source_content): Rename tuiEraseSourceContent.
5477 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
5478 (tui_show_source_content): Rename tuiShowSourceContent.
5479 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
5480 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
5481 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
5482 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
5483 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
5484 (tui_update_exec_info): Rename tuiUpdateExecInfo.
5485 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
5486 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
5487 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
5488 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
5489 (struct tui_win_info): Declare.
5490 * tui/tui-stack.c: Update references.
5491 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
5492 * tui/tui-win.c, tui/tui-source.c: Ditto.
5493 * tui/tui.c, tui/tui-disasm.c: Ditto.
5495 2004-02-06 Mark Kettenis <kettenis@gnu.org>
5497 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
5498 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
5500 2004-02-05 Mark Kettenis <kettenis@gnu.org>
5502 * infrun.c (handle_inferior_event): Allow for breakpoint
5503 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
5504 and SIGEMT. Update comments.
5505 * NEWS (Revised SPARC target): Mention support for non-executable
5508 2004-02-04 Mark Kettenis <kettenis@gnu.org>
5510 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
5511 * inftarg.c: Update copyright year.
5512 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
5513 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
5514 (sparc_xfer_wcookie): New function.
5515 * sparc-tdep.c (sparc_fetch_wcookie): New function.
5516 * Makefile.in (sparc-nat.o): Update dependencies.
5517 * config/sparc/nm-nbsd.h: Include "target.h".
5518 (NATIVE_XFER_WCOOKIE): New define.
5519 (sparc_xfer_wcookie): New prototype.
5521 2004-02-04 Andrew Cagney <cagney@redhat.com>
5523 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
5524 SYSCALL_TRAP function.
5525 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
5527 2004-02-04 Andrew Cagney <cagney@redhat.com>
5528 Daniel Jacobowitz <drow@mvista.com>
5530 * objfiles.h: Delete comments refering to inside_entry_func and
5531 DEPRECATED_FRAME_CHAIN_VALID.
5532 * defs.h (inside_entry_func): Update prototype..
5533 * blockframe.c (inside_entry_func): Rename to
5534 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
5535 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
5537 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
5539 * breakpoint.c (struct captured_parse_breakpoint_args): Move
5540 outside of #ifdef SOLIB_ADD region.
5541 (do_restore_lang_radix_cleanup): Ditto.
5542 (resolve_pending_breakpoint): Ditto.
5544 2004-02-03 Andrew Cagney <cagney@redhat.com>
5546 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
5547 (process_note_abi_tag_sections): Delete unused function.
5548 (ia64_read_fp): Delete unused function.
5549 (gdbarch_extract_struct_value_address): Delete declaration.
5551 2004-02-02 Andrew Cagney <cagney@redhat.com>
5553 * vax-tdep.c (vax_frame_chain): Delete call to
5554 deprecated_inside_entry_file.
5555 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
5557 2004-02-02 Mark Kettenis <kettenis@gnu.org>
5559 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
5560 column that's "empty" or "same value" when eliminating REG_RA
5563 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
5565 * NEWS: Add information about new pending breakpoint support.
5567 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
5569 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
5570 and pending fields for pending breakpoint support.
5571 * breakpoint.c (breakpoint_enabled): Add check for not pending.
5572 (condition_command): Only parse condition if not a pending
5574 (print_one_breakpoint): Add support for pending breakpoints.
5575 (describe_other_breakpoints): Add checks to verify we are not
5576 dealing with pending breakpoints.
5577 (check_duplicates): Don't check pending breakpoints.
5578 (set_raw_breakpoint): Initialize pending flag.
5579 (do_restore_lang_radix_cleanup): New cleanup routine.
5580 (resolve_pending_breakpoint): New function.
5581 (re_enable_breakpoints_in_shlibs): Try and resolve any
5582 pending breakpoints via resolve_pending_breakpoint.
5583 (mention): Add pending breakpoint support.
5584 (parse_breakpoint_sals): Add new parameter to pass to
5585 decode_line_1 to indicate silent errors when files or functions
5586 are not found. Change all callers.
5587 (do_captured_parse_breakpoint): New function.
5588 (break_command_1): Change prototype to return an rc value and to
5589 take an optional pending breakpoint pointer. Support creating
5590 a pending breakpoint if a "not found" form of error occurs when
5591 parsing the breakpoint. Also support resolving an existing pending
5592 breakpoint and be silent if the resolution fails.
5593 (create_breakpoints): Change prototype to take pending breakpoint
5594 pointer. When resolving a pending breakpoint, use the new pointer
5595 to provide a conditional or commands added by the end-user.
5596 (delete_breakpoint): Add appropriate check for pending.
5597 (breakpoint_re_set_one): Ditto.
5598 (do_enable_breakpoint): Ditto.
5600 2004-02-02 David Carlton <carlton@kealia.com>
5602 * valops.c (enum oload_classification): New.
5603 (find_overload_match): Break implementation into separate
5604 functions; delete #if 0'd code; look for symbols within
5606 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
5607 (find_oload_champ,oload_method_static,classify_oload_match): New.
5608 * cp-support.h: Add declaration for cp_func_name; update
5609 declaration for make_symbol_overload_list.
5610 * cp-support.c (cp_func_name): New.
5611 (overload_list_add_symbol): Fix comment, use
5612 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
5613 (make_symbol_overload_list): Take a function name and a namespace
5614 instead of a symbol; change implementation.
5615 (make_symbol_overload_list_using): New.
5616 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
5618 2004-02-02 Fred Fish <fnf@redhat.com>
5620 * main.c (gdb_stdtarg): Move definition to group with other
5621 gdb_stdtarg definitions and update copyright years.
5622 * remote-sim.c (gdb_os_write_stderr): Write output to
5623 gdb_stdtargerr stream instead of gdb_stdtarg stream.
5624 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
5625 gdb_stderr stream and update copyright years.
5627 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
5629 * Makefile.in (mips-linux-nat.o): Update dependencies.
5630 * mips-linux-nat.c: Include mips-tdep.h.
5632 2004-02-01 Roland McGrath <roland@redhat.com>
5634 * sol-thread.c (sol_thread_xfer_partial): New function.
5635 (init_sol_thread_ops): Use that for to_xfer_partial hook.
5636 (init_sol_core_ops): Likewise.
5638 * procfs.c (procfs_xfer_partial): New function.
5639 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
5640 * Makefile.in (procfs.o): Add $(auxv_h) dep.
5642 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
5643 procfs_xfer_auxv function.
5645 * procfs.c (procfs_make_note_section): If we can read
5646 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
5647 * linux-proc.c (linux_make_note_section): Likewise.
5651 * Makefile.in (auxv_h): New variable.
5652 (COMMON_OBS): Add auxv.o here.
5653 (auxv.o): New target.
5655 * corelow.c (core_xfer_partial): New function.
5656 (init_core_ops): Use it for core_ops.to_xfer_partial.
5658 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
5659 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
5660 macro if that is defined.
5662 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
5664 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
5665 and check the specified thread for each breakpoint.
5666 * breakpoint.h (bpstat_stop_status): Update prototype.
5667 * infrun.c (handle_inferior_event): Update calls to
5670 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
5672 * Makefile.in (cli-cmds.o): Add $(readline_h).
5674 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
5676 * cli/cli-cmds.c: Include readline.h.
5677 (complete_command): Pass the start of the last word to
5680 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
5682 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
5683 argument, and change first argument to a CORE_ADDR.
5684 * breakpoint.h (bpstat_stop_status): Update prototype.
5685 * infrun.c (adjust_pc_after_break): Add a new comment.
5686 (handle_inferior_event): Update calls to bpstat_stop_status.
5688 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
5690 * breakpoint.h: Update copyright years.
5692 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
5694 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
5695 (bpstat_stop_status): Don't decrement PC.
5696 * breakpoint.h (software_breakpoint_inserted_here_p): Add
5698 * infrun.c (adjust_pc_after_break): New function.
5699 (handle_inferior_event): Call it, early. Remove later references
5700 to DECR_PC_AFTER_BREAK.
5701 (normal_stop): Add commentary.
5703 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
5705 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
5706 2004-01-27 double-free fix.
5708 2004-01-31 Mark Kettenis <kettenis@gnu.org>
5710 * sparc-tdep.c (sparc_fetch_wcookie): New function.
5711 (sparc32_frame_prev_register): Handle StackGhost.
5712 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
5714 2004-01-29 Roland McGrath <roland@redhat.com>
5716 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
5717 * configure: Regenerated.
5719 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
5720 * Makefile.in (procfs.o): Add dep.
5722 2004-01-28 Andrew Cagney <cagney@redhat.com>
5724 * tui/tui-stack.h: Update copyright.
5725 (struct frame_info): Add opaque declaration.
5726 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
5727 (tui_show_locator_content): Rename tuiShowLocatorContent.
5728 (tui_show_frame_info): Rename tuiShowFrameInfo.
5729 * tui/tui-stack.c: Update copyright. Update references.
5730 * tui/tui-winsource.c: Update references.
5731 * tui/tui-win.c: Update references.
5732 * tui/tui-layout.c: Update references.
5733 * tui/tui-hooks.c: Update copyright, update references.
5734 * tui/tui.c: Update copyright, update references.
5735 * tui/tui-disasm.c: Update references.
5737 2004-01-28 David Carlton <carlton@kealia.com>
5739 * dwarf2read.c (add_partial_structure): Use demangled name if
5740 namespace equals "".
5742 2004-01-27 Jim Blandy <jimb@redhat.com>
5744 Clean up misapplied patch:
5745 * dwarf2read.c (determine_prefix): Change one of the two forward
5746 declarations for 'determine_prefix_aux' to a declaration for this.
5747 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
5748 argument to 'die_specification'.
5750 * dwarf2read.c (read_func_scope): Re-indent comment.
5752 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
5754 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
5755 b->exp to NULL after freeing so that error during re-parsing or
5756 evaluation of expressions associated with breakpoint don't
5757 eventually lead to re-freeing of storage.
5758 Committed by Andrew Cagney.
5760 2004-01-27 Andrew Cagney <cagney@redhat.com>
5762 * source.c (ambiguous_line_spec): Delete undefined declaration.
5763 * m32r-rom.c (m32r_set_board_address): Delete unused function.
5764 (m32r_set_server_address, m32r_set_download_path): Ditto.
5765 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
5767 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
5769 * dwarf2read.c: Update calls to changed and renamed functions, and
5770 references to moved variables.
5772 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
5773 language, language_defn, list_in_scope, and ftypes members.
5774 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
5775 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
5776 (baseaddr): Remove globals.
5778 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
5779 (set_cu_language, die_is_declaration, die_specification)
5780 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
5781 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
5782 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
5783 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
5785 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
5786 cu.list_in_scope. Don't initialize cu_header_offset.
5787 (add_partial_symbol): Add local baseaddr.
5788 (psymtab_to_symtab_1): Add local baseaddr. Use
5789 objfile->section_offsets for consistency. Don't initialize
5790 cu_header_offset; do initialize cu.header.offset and
5792 (read_file_scope, read_func_scope, read_lexical_block_scope)
5793 (dwarf_decode_lines, new_symbol): Add local baseaddr.
5795 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
5797 * PROBLEMS: Add gdb/1516.
5799 2003-12-29 Robert Millan <robertmh@gnu.org>
5801 Patch committed by Andrw Cagney.
5802 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
5803 * configure.tgt: Match knetbsd*-gnu.
5805 2004-01-26 Andrew Cagney <cagney@redhat.com>
5807 * breakpoint.c (catch_command_1): Delete #ifdef code.
5808 (catch_fork_command_1): Delete #ifdef wrapper.
5809 (catch_exec_command_1): Ditto.
5810 (catch_load_command_1): Ditto.
5811 (catch_unload_command_1): Ditto.
5813 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
5814 (catch_breakpoint): Delete #if0ed function.
5815 (disable_catch_breakpoint): Ditto.
5816 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
5817 (disable_catch, enable_catch, delete_catch): Ditto.
5819 2004-01-26 Andrew Cagney <cagney@redhat.com>
5821 * remote.c (echo_check, quit_flag): Delete variables.
5822 (cisco_kernel_mode): Delete variable.
5823 (minitelnet_return, tty_input, escape_count): Delete variables.
5824 (remote_cisco_mode): Delete variable.
5825 (remote_cisco_open, remote_cisco_close): Delete function.
5826 (remote_cisco_mourn, remote_cisco_wait): Delete function.
5827 (init_remote_cisco_ops): Delete function.
5828 (_initialize_remote): Do not install "remote cisco" code.
5829 (read_frame): Delete cisco specific code.
5830 (remote_info_process): Delete function.
5831 (remote_wait): Delete cisco specific code.
5832 (remote_cisco_section_offsets): Delete function.
5833 (remote_cisco_objfile_relocate): Delete function.
5834 (remote_async_wait): Delete cisco specific code.
5835 (minitelnet, readtty, readsocket): Delete function.
5837 2004-01-26 Andrew Cagney <cagney@redhat.com>
5839 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
5840 comments mentioning extract_returned_value_address.
5841 * infcmd.c (print_return_value): Update. Add comments on
5842 extract_returned_value_address.
5843 * stack.c (return_command): Add comments on
5844 extract_returned_value_address.
5845 * values.c: Update comment.
5846 * m32r-tdep.c: Update comment.
5847 * sparc-tdep.c: Update comment.
5848 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
5849 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5850 * sh64-tdep.c (sh64_gdbarch_init): Update.
5851 * sh-tdep.c (sh_gdbarch_init): Update.
5852 * s390-tdep.c (s390_gdbarch_init): Update.
5853 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5854 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
5855 * m68k-tdep.c (m68k_gdbarch_init): Update.
5856 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5857 * m32r-tdep.c (m32r_gdbarch_init): Update.
5858 * ia64-tdep.c (ia64_gdbarch_init): Update.
5859 * h8300-tdep.c (h8300_gdbarch_init): Update.
5860 * frv-tdep.c (frv_gdbarch_init): Update.
5861 * arm-tdep.c (arm_gdbarch_init): Update.
5862 * alpha-tdep.c (alpha_gdbarch_init): Update.
5864 2004-01-26 Andrew Cagney <cagney@redhat.com>
5866 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
5867 SYMBOL_LOCATION_FUNCS
5868 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
5869 "struct symbol_ops".
5870 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
5871 type to "struct symbol_ops".
5872 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
5873 (struct symbol): Replace ".aux_value.loc.funcs" and
5874 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
5875 (SYMBOL_OBJFILE): Delete macro.
5876 (SYMBOL_LOCATION_FUNCS): Delete macro.
5877 (SYMBOL_LOCATION_BATON): Update.
5878 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
5879 intead of SYMBOL_LOCATION_FUNCS.
5880 * ax-gdb.c (gen_var_ref): Ditto.
5881 * printcmd.c (address_info): Ditto.
5882 * findvar.c (read_var_value): Ditto.
5883 (symbol_read_needs_frame): Ditto.
5885 2004-01-26 Andrew Cagney <cagney@redhat.com>
5887 * dwarf2read.c (read_func_scope): Document frame-base hack.
5889 2004-01-25 Mark Kettenis <kettenis@gnu.org>
5891 * infcmd.c (print_return_value): Plug memory leak; delete
5892 ui_stream object. Rename argument `structure_return' to
5895 2004-01-25 Mark Kettenis <kettenis@gnu.org>
5897 * infcmd.c (print_return_value): Wrap long lines.
5898 (finish_command_continuation, finish_command): Remove unused
5899 variable `funcaddr'. Fix some coding-standards problems.
5901 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
5902 SECT_SIZE is large enough, not whether it's exactly the right size.
5903 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
5904 TDEP->fpregset to zero.
5906 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
5907 floating-point registers for traditional NetBSD core files.
5908 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
5909 TDEP->sizeof_fpregset here.
5911 2004-01-25 Mark Kettenis <kettenis@gnu.org>
5913 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
5914 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
5915 function with code split out from
5916 sparc32nbsd_sigcontext_frame_cache.
5917 (sparc32nbsd_sigcontext_frame_cache): Use
5918 sparc32nbsd_sigcontext_saved_regs.
5919 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
5921 * sparcobsd-tdep.c: New file.
5922 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
5923 (sparcobsd-tdep.o): New dependency.
5924 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
5925 * config/sparc/obsd.mt: New file.
5927 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
5928 TDEP->fpregset to be initialized to enable core file register
5931 2004-01-24 Mark Kettenis <kettenis@gnu.org>
5933 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
5934 Add opaque declarations.
5935 (sparc64nbsd_sigcontext_saved_regs): New prototype.
5936 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
5937 function with code split out from
5938 sparc64nbsd_sigcontext_frame_cache.
5939 (sparc64nbsd_sigcontext_frame_cache): Use
5940 sparc64nbsd_sigcontext_saved_regs.
5941 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
5943 * sparc64obsd-tdep.c: New file.
5944 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
5945 (sparc64obsd-tdep.o): New dependency.
5946 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
5947 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
5948 * config/sparc/obsd64.mt: New file.
5950 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
5951 read the instruction at PC.
5953 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
5954 value of GDB_OSABI_DEFAULT.
5955 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
5956 instead of GDB_OSABI_NETBSD_AOUT.
5958 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
5960 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
5963 2004-01-23 Andrew Cagney <cagney@redhat.com>
5965 * printcmd.c (display_command): Replace tui_set_display call with
5966 tui_set_layout_for_display_command.
5967 * tui/tui.h (enum tui_win_type): Define.
5968 (tui_set_layout): Delete declaration.
5969 (tui_set_layout_for_display_command): Rename set_tui_layout.
5970 * tui/tui-data.h (enum tui_layout_type): Define.
5971 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
5973 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
5974 (tui_default_win_height): Rename tuiDefaultWinHeight.
5975 (tui_default_win_viewport_height): Rename
5976 tuiDefaultWinViewportHeight.
5977 (tui_set_layout): RenametuiSetLayout.
5978 * tui/tui-layout.c: Update references.
5979 * tui/tui.c: Update references.
5980 * tui/tui-disasm.c: Update references.
5982 2004-01-23 David Carlton <carlton@kealia.com>
5984 Partial workaround for PR c++/1511:
5985 * cp-namespace.c: Include frame.h.
5986 (cp_lookup_transparent_type): New
5987 (cp_lookup_transparent_type_loop): New.
5988 * cp-support.h: Declare cp_lookup_transparent_type.
5989 * symtab.c (basic_lookup_transparent_type): Renamed from
5990 lookup_transparent_type.
5991 (lookup_transparent_type): Replace old body by a call to
5992 current_language->la_lookup_transparent_type.
5993 * symtab.h: Update copyright. Declare
5994 basic_lookup_transparent_type.
5995 * language.h: Update copyright.
5996 (struct language_defn): Add la_lookup_transparent_type.
5997 * language.c: Update copyright.
5998 (unknown_language_defn): Add basic_lookup_transparent_type.
5999 (auto_language_defn): Add basic_lookup_transparent_type.
6000 (local_language_defn): Add basic_lookup_transparent_type.
6001 * ada-lang.c: Update copyright.
6002 (ada_language_defn): Add basic_lookup_transparent_type.
6003 * c-lang.c: Update copyright.
6004 (c_language_defn): Add basic_lookup_transparent_type.
6005 (cplus_language_defn): Add basic_lookup_transparent_type.
6006 (asm_language_defn): Add basic_lookup_transparent_type.
6007 (minimal_language_defn): Add basic_lookup_transparent_type.
6008 * f-lang.c: Update copyright.
6009 (f_language_defn): Add basic_lookup_transparent_type.
6010 * jv-lang.c: Update copyright.
6011 (java_language_defn): Add basic_lookup_transparent_type.
6012 * m2-lang.c: Update copyright.
6013 (m2_language_defn): Add basic_lookup_transparent_type.
6014 * objc-lang.c: Update copyright.
6015 (objc_language_defn): Add basic_lookup_transparent_type.
6016 * p-lang.c: Update copyright.
6017 (p_language_defn): Add basic_lookup_transparent_type.
6018 * scm-lang.c: Update copyright.
6019 (scm_language_defn): Add basic_lookup_transparent_type.
6020 * Makefile.in (cp-namespace.o): Depend on frame.h.
6022 2004-01-23 David Carlton <carlton@kealia.com>
6024 Patch for PR c++/1520:
6025 * dwarf2read.c (read_func_scope): Set processing_current_prefix
6026 properly if we have a specification die.
6027 (determine_prefix_aux): Rename from determine_prefix.
6028 (determine_prefix): Like the old determine_prefix, but never
6031 2004-01-23 Theodore A. Roth <troth@openavr.org>
6033 * avr-tdep.c: Update copyright.
6034 (avr_iaddr_p): Delete unused function.
6035 (avr_saddr_p): Delete unused function.
6037 2004-01-23 David Carlton <carlton@kealia.com>
6039 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
6040 Fix for PR symtab/1534.
6042 2004-01-23 Mark Kettenis <kettenis@gnu.org>
6044 * NEWS (New native configurations): Mention OpenBSD/sparc and
6046 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
6047 * configure.host: Likewise.
6048 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
6049 handler for OpenBSD.
6050 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
6052 2004-01-22 Mark Kettenis <kettenis@gnu.org>
6054 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
6055 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
6057 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
6058 * cli/cli-cmds.c (shell_escape): Likewise.
6060 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
6061 OpenBSD .note.openbsd.ident sections.
6063 2004-01-22 David Carlton <carlton@kealia.com>
6065 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
6066 get_scope_pc_bounds.
6067 (read_file_scope): Ditto.
6068 (get_scope_pc_bounds): New function, produced by extracting code
6069 from the above two functions, consolidating it, and adding support
6070 for DW_TAG_namespace.
6072 2004-01-22 Mark Kettenis <kettenis@gnu.org>
6074 * osabi.c (MAX_NOTESZ): New define.
6075 (check_note): New function.
6076 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
6079 2004-01-21 Roland McGrath <roland@redhat.com>
6081 * MAINTAINERS (write after approval): Add myself.
6083 2004-01-21 Eli Zaretskii <eliz@gnu.org>
6085 * utils.c (init_page_info): Move declarations of `rows' and
6086 `cols' before the __GO32__-specific code. Move the closing brace
6087 outside the #ifdef __GO32__..#endif block.
6088 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
6090 2004-01-21 Paul Brook <paul@codesourcery.com>
6092 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
6093 BPSTAT_WHAT_CHECK_SHLIBS.
6095 2004-01-21 Paul Brook <paul@codesourcery.com>
6097 * MAINTAINERS: Add myself to write-after-approval.
6099 2004-01-20 Andrew Cagney <cagney@redhat.com>
6101 * ax-gdb.c (print_axs_value): Delete unused function.
6102 * jv-lang.c (java_lookup_type): Delete unused function.
6103 * cli/cli-dump.c (dump_filetype): Delete unused function.
6104 * remote-mips.c (remote_mips_insert_hw_breakpoint)
6105 (remote_mips_remove_hw_breakpoint): Delete unused functions.
6106 (mips_getstring): Delete unused function.
6107 (pmon_insert_breakpoint): Delete #if0ed function.
6108 (PMON_MAX_BP): Delete #if0ed MACRO.
6109 (mips_pmon_bp_info): Delete #if0ed variable.
6110 (pmon_remove_breakpoint): Delete #if0ed function.
6111 * monitor.c (monitor_write_even_block): Delete unused function.
6112 (monitor_write_memory_block): Delete #if0ed code.
6113 * dink32-rom.c (dink32_load): Delete unused function.
6114 (_initialize_dink32_rom): Delete #if0ed code.
6115 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
6117 * tui/tui-command.c: Update references.
6118 * tui/tui-io.c: Update references.
6119 * tui/tui-command.h: Update copyright.
6120 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
6122 * source.c (ambiguous_line_spec): Delete never-defined function.
6123 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
6124 * gdbtypes.c (add_name, add_mangled_type): Ditto.
6125 * cli/cli-cmds.c (validate_comname): Ditto.
6127 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
6129 (tui_set_disassem_content): Rename tuiSetDisassemContent.
6130 (tui_show_disassem): Rename tuiShowDisassem.
6131 (tui_show_disassem_and_update_source): Rename
6132 tuiVerticalDisassemScroll.
6133 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
6134 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
6135 * tui/tui.h: Update copyright.
6136 (enum tui_status): Define.
6137 * tui/tui-data.h (enum tui_scroll_direction): Define.
6138 * tui/tui-disasm.c: Update copyright. Update references.
6139 * tui/tui-winsource.c: Update copyright. Update references.
6140 * tui/tui-win.c: Update references.
6141 * tui/tui-layout.c: Update references.
6143 2004-01-20 Andrew Cagney <cagney@redhat.com>
6145 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
6146 sym2 to start of block.
6148 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
6150 * MAINTAINERS: Delete mmalloc.
6151 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
6152 * NEWS: Mention removal of --with-malloc.
6153 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
6154 * config.in: Regenerate.
6155 * configure: Regenerate.
6156 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
6157 USE_MMALLOC, MMCHECK_FORCE.
6158 * gdbinit.in: Remove mmalloc.
6159 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
6160 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
6161 * config/i386/go32.mh: Likewise.
6162 * config/i386/interix.mh: Likewise.
6163 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
6165 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
6167 * linespec.c (decode_variable, symtab_from_filename): Call
6168 error_silent with error message instead of throwing an exception
6170 * defs.h (error_silent, error_output_message): Add prototypes.
6171 (catch_exceptions_with_msg): Ditto.
6172 * utils.c (error_silent, error_output_message): New functions.
6173 * top.c (catch_exceptions_with_msg): New function.
6175 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
6177 * mi/mi-cmds.h (enum print_values): Add definition.
6179 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
6180 type and value for simple data types and just the name and type
6181 for complex ones, if required.
6183 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
6184 children, if required.
6186 2004-01-19 Kevin Buettner <kevinb@redhat.com>
6188 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
6189 unused declarations.
6191 2004-01-19 Andrew Cagney <cagney@redhat.com>
6193 * top.h (mapped_symbol_files): Delete declaration.
6194 * main.c (captured_main): Delete option "m" and "mapped".
6195 * objfiles.c (mapped_symbol_files): Delete variable.
6196 * symfile.c (symbol_file_command): Delete mmap code.
6197 (symbol_file_add_with_addrs_or_offsets): Ditto.
6198 (add_symbol_file_command, reread_separate_symbols): Ditto.
6199 * objfiles.h (OBJF_MAPPED): Delete.
6200 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
6201 (free_objfile) [USE_MMALLOC]: Ditto.
6202 (open_existing_mapped_file): Delete function.
6203 (open_mapped_file): Delete function.
6204 (map_to_file): Delete function.
6206 2004-01-19 Kevin Buettner <kevinb@redhat.com>
6208 * infrun.c (step_into_function): Account for possible breakpoint
6209 adjustment when computing ``stop_func_start''.
6211 2004-01-19 Kevin Buettner <kevinb@redhat.com>
6213 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
6214 the region size against the size of a pointer, not the size of
6215 a register as given by DEPRECATED_REGISTER_SIZE.
6217 2004-01-19 Andrew Cagney <cagney@redhat.com>
6219 * tui/tui-regs.h: Include "tui-data.h".
6220 (tuiFirstRegElementNoInLine): Delete declaration.
6221 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
6222 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
6223 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
6224 (tui_calculate_regs_column_count): Rename
6225 tuiCalculateRegsColumnCount.
6226 (tui_check_register_values): Rename tuiCheckRegisterValues.
6227 (tui_show_registers): Rename tuiShowRegisters.
6228 (tui_display_registers_from_line): Rename
6229 tuiDisplayRegistersFromLine.
6230 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
6231 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
6232 (tui_first_reg_element_no_inline): Rename
6233 tuiFirstRegElementNoInLine.
6234 * tui/tui-data.h: Update copyright.
6235 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
6236 * tui/tui-windata.c: Update copyright, update references.
6237 * tui/tui-regs.c: Update copyright, update references.
6238 * tui/tui-win.c: Update copyright, update references.
6239 * tui/tui-layout.c: Update copyright, update references.
6241 2004-01-18 Andrew Cagney <cagney@redhat.com>
6243 * tui/tui-io.c: Update copyright.
6244 (key_is_end_sequence, key_is_backspace): New functions.
6245 (key_is_command_char, key_is_start_sequence): New function.
6246 (tui_getc): Update references.
6247 * tui/tui-io.h: Update copyright.
6248 (m_tuiStartNewLine): Delete macro.
6249 (m_isBackspace, m_isDeleteChar): Delete macros.
6250 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
6251 (m_isNextPage, m_isPrevPage): Delete macros.
6252 (m_isLeftArrow, m_isRightArrow): Delete macros.
6253 (m_isXdbStyleCommandChar): Delete macro.
6254 (key_is_start_sequence): Declare, replace m_isStartSequence.
6255 (key_is_end_sequence): Declare, replace m_isEndSequence.
6256 (key_is_backspace): Declare ,replace m_isBackspace.
6257 (key_is_command_char): Declare, replace m_isCommandChar.
6258 * tui/tui-command.c: Update copyright.
6259 (tuiDispatchCtrlChar): Update references.
6261 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
6264 * tui/tui-command.c: Rename tui/tuiCommand.c.
6265 * tui/tui-command.h: Rename tui/tuiCommand.h.
6266 * tui/tui-data.c: Rename tui/tuiData.c.
6267 * tui/tui-data.h: Rename tui/tuiData.h.
6268 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
6269 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
6270 * tui/tui-io.c: Rename tui/tuiIO.c.
6271 * tui/tui-io.h: Rename tui/tuiIO.h.
6272 * tui/tui-layout.c: Rename tui/tuiLayout.c.
6273 * tui/tui-layout.h: Rename tui/tuiLayout.h.
6274 * tui/tui-regs.c: Rename tui/tuiRegs.c.
6275 * tui/tui-regs.h: Rename tui/tuiRegs.h.
6276 * tui/tui-source.c: Rename tui/tuiSource.c.
6277 * tui/tui-source.h: Rename tui/tuiSource.h.
6278 * tui/tui-stack.c: Rename tui/tuiStack.c.
6279 * tui/tui-stack.h: Rename tui/tuiStack.h.
6280 * tui/tui-win.c: Rename tui/tuiWin.c.
6281 * tui/tui-win.h: Rename tui/tuiWin.h.
6282 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
6283 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
6284 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
6285 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
6286 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
6287 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
6288 * tui/tui-file.c: Update includes.
6289 * tui/tui-hooks.c: Update includes.
6290 * tui/tui-interp.c: Update includes.
6291 * tui/tui.c: Update includes.
6292 * Makefile.in: Update all tui/ dependencies.
6293 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
6295 * Makefile.in: Update copyright. Update dependencies.
6297 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
6300 2004-01-18 Andrew Cagney <cagney@redhat.com>
6302 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
6303 instead of register_gdbarch_init.
6305 * remote-sds.c (tohex): Delete unused function. Update copyright.
6306 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
6307 * v850-tdep.c (v850_register_virtual_size): Ditto.
6308 * target.c (normal_target_post_startup_inferior): Ditto.
6309 * source.c (ambiguous_line_spec): Ditto.
6310 * remote.c (adapt_remote_get_threadinfo): Ditto.
6311 * mi/mi-out.c (out_field_fmt): Ditto.
6312 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
6313 (output_control_change_notification): Ditto.
6314 * m68k-tdep.c (m68k_register_byte): Ditto.
6315 (m68k_remote_breakpoint_from_pc): Ditto.
6316 * ui-out.c (init_ui_out_state): Delete unused declaration.
6317 * stabsread.c (search_value): Ditto.
6318 * mi/mi-cmd-env.c (env_cli_command): Ditto.
6319 * maint.c (print_section_table): Ditto.
6320 * infrun.c (set_follow_fork_mode_command): Ditto.
6322 2004-01-18 Mark Kettenis <kettenis@gnu.org>
6324 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
6325 DW_CFA_def_cfa_exporession. Add support for
6326 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
6327 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
6329 2004-01-18 Andrew Cagney <cagney@redhat.com>
6331 * ocd.c: Update copyright.
6332 (bdm_read_register_command): Delete unused function.
6333 (_initialize_remote_ocd): Delete commented out reference.
6334 (get_quoted_char, reset_packet): Delete #if0ed function.
6335 (output_packet, put_quoted_char): Delete #if0ed function.
6336 (stu_put_packet, stu_get_packet): Delete #if0ed function.
6337 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
6338 (BDM_BREAKPOINT): Delete #if0ed macro.
6339 (remote_timeout): Delete #if0ed variable.
6341 2004-01-18 Mark Kettenis <kettenis@gnu.org>
6343 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
6344 (core-sol2.o): Remove dependency.
6345 * core-sol2.c: Remove file.
6347 2004-01-17 Andrew Cagney <cagney@redhat.com>
6349 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
6350 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
6353 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
6355 * remote.c: Update copyright years.
6357 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
6359 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
6361 2004-01-17 Andrew Cagney <cagney@redhat.com>
6363 * mdebugread.c: Update copyright.
6364 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
6365 (parse_type, parse_procedure): Ditto.
6366 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
6368 * cris-tdep.c (cris_store_struct_return): Put back accidently
6371 * gdbarch.sh: Update copyright year.
6372 * gdbarch.h, gdbarch.c: Re-generate.
6374 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
6376 Suggested by George Anzinger.
6377 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
6378 correct stack offset. Include unknown opcode numbers in the error
6381 2004-01-17 Andrew Cagney <cagney@redhat.com>
6383 * x86-64-tdep.c (x86_64_init_abi): No need to clear
6384 extract_struct_value_address, i386 does not set it.
6385 * sparc64-tdep.c (sparc64_init_abi): Do not set
6386 extract_struct_value_address, never called.
6387 (sparc64_extract_struct_value_address): Delete function.
6388 * m68hc11-tdep.c: Update copyright.
6389 (m68hc11_gdbarch_init): Delete redundant assignment of
6390 extract_struct_value_address.
6391 * i386-tdep.c: Update copyright.
6392 (i386_gdbarch_init): Do not set extract_struct_value_address,
6394 (i386_extract_struct_value_address): Delete function.
6395 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
6396 extract_struct_value_address, never called.
6397 (sparc32_extract_struct_value_address): #if 0 function. Add
6398 comments explaining its future.
6400 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
6402 * arm-tdep.c (arm_write_pc): New function.
6403 (arm_gdbarch_init): Call set_gdbarch_write_pc.
6405 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
6407 * breakpoint.c (must_shift_inst_regs): Delete.
6408 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
6409 and SHIFT_INST_REGS.
6410 * infcmd.c (step_1, step_1_continuation): Delete references to
6412 * infrun.c (keep_going): Likewise.
6413 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
6414 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
6416 2004-01-17 Andrew Cagney <cagney@redhat.com>
6418 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
6419 * gdbarch.h, gdbarch.c: Re-generate.
6420 * infcmd.c (print_return_value): Delete reference to
6421 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6423 * cris-tdep.c (cris_gdbarch_init): Do not set
6424 deprecated_extract_struct_value_address.
6426 * xstormy16-tdep.c: Update copyright.
6427 (xstormy16_extract_struct_value_address): Update to current
6428 extract struct value address interface.
6429 (xstormy16_gdbarch_init): Set extract_struct_value_address.
6430 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
6431 current extract struct value address interface.
6432 (sh64_gdbarch_init): Set extract_struct_value_address.
6434 * cris-tdep.c: Update copyright.
6435 (cris_extract_struct_value_address): Delete function.
6436 (struct_return_address): Delete variable.
6437 (cris_store_struct_return): Do not set struct_return_address.
6439 * mcore-tdep.c: Update copyright.
6440 (mcore_extract_struct_value_address): Delete function. Update
6442 (mcore_gdbarch_init): Update.
6443 * mn10300-tdep.c: Update copyright.
6444 (mn10300_extract_struct_value_address): Delete function.
6445 (mn10300_gdbarch_init): Update.
6446 * v850-tdep.c: Update copyright.
6447 (v850_extract_struct_value_address): Delete.
6448 (v850_gdbarch_init): Update.
6449 * ns32k-tdep.c: Update copyright.
6450 (ns32k_extract_struct_value_address): Delete.
6451 (ns32k_gdbarch_init): Update.
6452 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
6453 (hppa_gdbarch_init): Update.
6454 * vax-tdep.c: Update copyright.
6455 (vax_extract_struct_value_address): Delete.
6456 (vax_gdbarch_init): Update.
6458 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
6459 * gdbarch.h, gdbarch.c: Re-generate.
6460 * procfs.c (procfs_fetch_registers): Delete reference to
6461 DEPRECATED_NPC_REGNUM.
6462 (procfs_store_registers): Ditto.
6463 * regcache.c (generic_target_write_pc): Simplify.
6464 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
6466 * core-sol2.c (fetch_core_registers): Replace
6467 DEPRECATED_NPC_REGNUM with equivalent tdep value.
6469 * hppa-tdep.c: Update copyright year.
6470 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
6472 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
6474 * mips-tdep.c (mips_write_pc): New function.
6475 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
6476 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
6477 (mips_find_saved_regs, mips_software_single_step: Ditto.
6478 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
6479 mips_init_extra_frame_info, mips_pop_frame): Ditto.
6481 2004-01-17 Andrew Cagney <cagney@redhat.com>
6483 * mips-tdep.c: Re-indent. Group functions by ABI.
6485 2004-01-17 Andrew Cagney <cagney@redhat.com>
6487 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
6488 * gdbarch.c: Re-generate.
6489 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6490 DECR_PC_AFTER_BREAK to zero.
6491 * vax-tdep.c (vax_gdbarch_init): Ditto.
6492 * v850-tdep.c (v850_gdbarch_init): Ditto.
6493 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
6494 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6495 * sh-tdep.c (sh_gdbarch_init): Ditto.
6496 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6497 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6498 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6499 * mips-tdep.c (mips_gdbarch_init): Ditto.
6500 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6501 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6502 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
6503 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6504 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
6505 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6506 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6507 * frv-tdep.c (frv_gdbarch_init): Ditto.
6508 * cris-tdep.c (cris_gdbarch_init): Ditto.
6509 * avr-tdep.c (avr_gdbarch_init): Ditto.
6510 * arm-tdep.c (arm_gdbarch_init): Ditto.
6511 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
6513 2004-01-17 J. Brobecker <brobecker@gnat.com>
6515 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
6516 Delete, no longer used.
6517 (read_subrange_type): New function, mostly extracted from
6519 (read_array_type): Replace extracted code by call to
6520 read_subrange_type().
6521 (dwarf2_get_attr_constant_value): New function.
6522 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
6523 (add_partial_symbol): Likewise.
6524 (process_die): Likewise.
6525 (new_symbol): Likewise.
6526 (read_type_die): Likewise.
6528 2004-01-16 Andrew Cagney <cagney@redhat.com>
6530 * symfile.c: Update copyright year.
6531 (compare_symbols): Delete unused function.
6532 * stabsread.c: Update copyright year.
6533 (lrs_general_complaint): Delete unused function.
6534 (ref_search_value): Ditto.
6535 (get_substring): Delete declaration.
6536 * sh64-tdep.c: Update copyright year.
6537 (sh64_get_gdb_regnum): Delete unused function.
6538 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
6539 Delete unused function.
6541 2004-01-17 Mark Kettenis <kettenis@gnu.org>
6543 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
6544 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
6546 2004-01-16 Andrew Cagney <cagney@redhat.com>
6548 Changes from Peter Schauer.
6549 * rs6000-tdep.c: Update copyright year.
6550 (rs6000_push_dummy_call): Update the stack pointer before
6551 accessing the corresponding stack region.
6552 * rs6000-nat.c: Update copyright year.
6553 (set_host_arch): Set "info.abfd" to "exec_bfd".
6555 2004-01-15 Mark Kettenis <kettenis@gnu.org>
6557 * blockframe.c: Update copyright year.
6558 (inside_entry_func): Don't treat a zero PC specially.
6560 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
6562 * gcore.c (gcore_copy_callback): Use paddr_d to print size
6564 (gcore_create_callback): Ditto. Skip any memory segment that has
6567 2004-01-14 David Carlton <carlton@kealia.com>
6569 Change symbols for C++ nested types to contain the fully qualified
6570 name, if possible. (At least in the DWARF-2 case.) Partial fix
6571 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
6573 * c-exp.y (qualified_type): Handle types nested within classes.
6574 * cp-namespace.c: Update comments.
6575 (cp_set_block_scope): Delete #if 0.
6576 (cp_lookup_nested_type): Handle types nested within classes.
6577 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
6579 (add_partial_symbol): Add the name of the enclosing namespace to
6581 (pdi_needs_namespace): New.
6582 (add_partial_namespace): Tweak comment.
6583 (add_partial_structure): New.
6584 (psymtab_to_symtab_1): Initialize processing_current_prefix
6586 (process_die): instead of here.
6587 (read_structure_scope): Try to figure out the name of the class or
6588 namespace that the structure might be defined within.
6589 (read_enumeration): Generate fully-qualified names, if possible.
6590 (read_namespace): Don't set name to NULL.
6591 (die_specification): New.
6592 (new_symbol): Generate fully-qualified names for types.
6593 (read_type_die): Determine appropriate prefix.
6594 (determine_prefix): New.
6595 (typename_concat): New.
6597 * valops.c (value_aggregate_elt): Pass NOSIDE to
6598 value_struct_elt_for_reference.
6599 (value_struct_elt_for_reference): Make static, add NOSIDE
6600 parameter, call value_maybe_namespace_elt as a last resort.
6601 (value_namespace_elt): Break out code into
6602 value_maybe_namespace_elt.
6603 (value_maybe_namespace_elt): New.
6605 2004-01-12 Andrew Cagney <cagney@redhat.com>
6607 * mips-tdep.c (mips_convert_register_p): Handle both raw and
6608 cooked floating-point registers.
6609 (mips_gdbarch_init): Set convert_register_p, register_to_value,
6610 and value_to_register.
6612 2004-01-13 Andrew Cagney <cagney@redhat.com>
6614 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
6615 * gdbarch.c: Re-generate.
6616 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6617 FUNCTION_START_OFFSET.
6618 * v850-tdep.c (v850_gdbarch_init): Ditto.
6619 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
6620 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6621 * sh-tdep.c (sh_gdbarch_init): Ditto.
6622 * s390-tdep.c (s390_gdbarch_init): Ditto.
6623 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6624 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6625 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6626 * mips-tdep.c (mips_gdbarch_init): Ditto.
6627 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6628 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6629 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6630 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
6631 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6632 * i386-tdep.c (i386_gdbarch_init): Ditto.
6633 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6634 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6635 * frv-tdep.c (frv_gdbarch_init): Ditto.
6636 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6637 * cris-tdep.c (cris_gdbarch_init): Ditto.
6638 * avr-tdep.c (avr_gdbarch_init): Ditto.
6639 * arm-tdep.c (arm_gdbarch_init): Ditto.
6640 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6642 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
6644 * infrun.c (follow_fork_mode_ask): Remove.
6645 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
6646 (follow_fork): Simplify and remove internal error for
6647 follow_fork_mode_ask.
6648 (_initialize_infrun): Update "set follow-fork-mode" help text.
6650 2004-01-13 Andrew Cagney <cagney@redhat.com>
6652 * configure.in: Update copyright year.
6653 (build_warnings): Add -Wunused-label.
6654 * configure: Re-generate.
6656 2004-01-12 Andrew Cagney <cagney@redhat.com>
6658 * exec.h (exec_ops): Make "extern".
6660 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
6661 the function is void.
6662 (mips_pseudo_register_write): Ditto.
6664 2004-01-12 Andrew Cagney <cagney@redhat.com>
6666 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
6667 call. Never defined.
6668 * sparc-tdep.h (struct frame_info): Add opaque declaration.
6669 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
6670 (struct sparc_gregset, struct regcache): Ditto.
6671 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
6673 2004-01-12 Andrew Cagney <cagney@redhat.com>
6675 * mi/ChangeLog: Delete file. Renamed to ...
6676 * mi/ChangeLog-1999-2003: New file.
6677 * tui/ChangeLog: Delete file. Renamed to ...
6678 * tui/ChangeLog-1998-2003: New file.
6680 2004-01-11 Mark Kettenis <kettenis@gnu.org>
6682 * sparc64nbsd-tdep.c: Include "regset.h".
6683 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
6685 (fetch_core_registers): Remove function.
6686 (sparc64nbsd_core_fns): Remove variable.
6687 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
6689 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
6690 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
6691 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
6693 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
6694 sparc_extract_struct_value_address.
6695 (sparc32_gdbarch_init): Set extract_struct_value_address.
6696 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
6698 (sparc64_init_abi): Set extract_struct_value_address. Don't set
6699 return_value_on_stack.
6701 * NEWS: Mention that %cs and %ss have been added to the AMD64
6704 * frame.c: Update copyright year.
6705 (get_prev_frame): Improve comment.
6707 * sparc64fbsd-tdep.c: Include "regset.h".
6708 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
6710 (fetch_core_registers): Remove function.
6711 (sparc64fbsd_core_fns): Remove variable.
6712 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
6714 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
6715 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
6716 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
6718 * sparcnbsd-tdep.c: Include "regset.h".
6719 (fetch_core_registers): Remove function.
6720 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
6721 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
6723 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
6725 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
6727 * sparc-tdep.h (struct regset): Provide opaque declaration.
6728 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
6729 fpregset and sizeof_fpregset members.
6730 * sparc-tdep.c (struct regset): Provide opaque declaration.
6731 (sparc_regset_from_core_section): New function.
6732 (sparc32_gdbarch_init): Initialize TDEP->gregset,
6733 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
6734 Set regset_from_core_section when appropriate.
6736 2004-01-10 Mark Kettenis <kettenis@gnu.org>
6738 * x86-64-tdep.c (amd64_non_pod_p): New function.
6739 (amd64_classify_aggregate): Return class memory for non-POD
6740 C++ structure types.
6742 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
6743 argument. Use it to reserve a register if necessary.
6744 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
6745 amd64_push_arguments.
6747 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
6749 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
6750 register numbers in comments.
6751 * x86-64-tdep.h: Update copyright year.
6752 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
6753 Adjust for addition of %cs and %ss.
6754 * amd64fbsd-nat.c: Update copyright year.
6755 (reg_offset): Add register offsets for %cs and %ss.
6756 * amd64fbsd-tdep.c: Update copyright year.
6757 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
6758 (amd64fbsd_sc_reg_offset): Likewise.
6759 * x86-64-linux-nat.c: Update copyright year.
6760 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
6762 * amd64nbsd-nat.c: Update copyright year.
6763 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
6764 * amd64nbsd-tdep.c: Update copyright year.
6765 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
6766 * x86-64-linux-tdep.c: Update copyright year.
6767 (user_to_gdb_regmap): Add mapping for %cs and %ss.
6768 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
6769 * regformats/reg-x86-64.dat: Add %cs and %ss.
6771 * blockframe.c (inside_entry_func): Reformat. Introduce new local
6772 variables to prevent long lines. Update comments to reflect
6775 2004-01-09 David Carlton <carlton@kealia.com>
6777 Checked in by Elena Zannoni <ezannoni@redhat.com>.
6778 * dwarf2read.c (read_namespace): Pull out name-generating code
6779 into namespace_name. Rename previous_namespace to previous_prefix
6780 and processing_current_namespace to processing_current_prefix..
6781 (namespace_name): New function.
6782 (add_partial_symbol): Substitute uses of pdi->name with
6784 * cp-support.h: Rename processing_current_namespace to
6785 processing_current_prefix.
6786 Update copyright year.
6787 * cp-namespace.c: Rename processing_current_namespace to
6788 processing_current_prefix.
6789 Update copyright year.
6791 2004-01-09 Andrew Cagney <cagney@redhat.com>
6793 * jv-valprint.c, ser-unix.c: Add missing copyright years.
6795 2004-01-09 Mark Kettenis <kettenis@gnu.org>
6797 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
6799 (process_one_symbol): Deal with N_PATCH stabs.
6801 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
6803 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
6805 Update copyright year.
6807 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
6809 * config/pa/tm-hppa.h: Update extern declarations for
6810 hppa32_hpux_frame_saved_pc_in_sigtramp,
6811 hppa32_hpux_frame_base_before_sigtramp, and
6812 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
6814 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
6816 * config/pa/tm-hppah.h: Update copyright years.
6818 2004-01-08 Andrew Cagney <cagney@redhat.com>
6820 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
6821 (mips_o32_reg_struct_has_addr): Delete function.
6822 (mips_gdbarch_init): Update.
6823 (mips_extract_struct_value_address): Delete function.
6825 2004-01-08 David Mosberger <davidm@hpl.hp.com>
6827 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
6830 2004-01-07 Andrew Cagney <cagney@redhat.com>
6832 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
6833 architecture's elf flags (when available).
6835 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
6836 FPU to the start, check the MIPS FPU when looking for an old
6838 (set_mipsfpu_single_command): Update the architecture.
6839 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
6841 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
6842 (mips_mask_address_p): Add "tdep" parameter.
6843 (show_mask_address, mips_addr_bits_remove): Update.
6844 (mips_dump_tdep): Update.
6845 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
6846 (MIPS_STACK_ARGSIZE): Delete macro.
6847 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
6848 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
6849 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
6850 (mips_dump_tdep): Update.
6851 (MIPS_SAVED_REGSIZE): Delete macro.
6852 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
6853 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
6854 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
6855 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
6856 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
6857 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
6858 (mips_pop_frame, return_value_location): Update.
6859 (mips_n32n64_return_value, mips_dump_tdep): Update.
6861 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
6864 * mips-tdep.c: Update copyright.
6865 (mips_gdbarch_init): Merge two code blocks handling the register
6866 name and number layout.
6868 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
6870 * tracepoint.c (validate_actionline): Fix segv at EOF
6872 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
6874 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
6875 properly for static fields.
6877 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
6878 Jason Molenda <jmolenda@apple.com>
6880 * disasm.c: Update copyright to include 2004.
6881 (do_mixed_source_and_assembly): For uiout asm list
6882 and tuple cleanups, initialize to null_cleanup instead of
6883 NULL and do so prior to loop. Only reset when we close off
6884 the tuple/list. Move check for whether to close off the
6885 asm tuple/list to after dump_insns call where it will be run
6886 on each loop iteration.
6888 2004-01-05 Andrew Cagney <cagney@redhat.com>
6890 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
6891 should be a switch case and not a label.
6892 * mips-tdep.c (mips32_next_pc): Delete unused labels
6893 "greater_equal_branch" and "less_zero_branch".
6894 * jv-valprint.c (java_print_value_fields): Delete unused label
6897 * target.c (unpush_target): Only close a target that is in the
6900 2004-01-05 Mark Kettenis <kettenis@gnu.org>
6902 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
6903 address from [sp + 64] instead of %o2.
6905 * frame.c (get_prev_frame): Don't try to unwind the PC. This
6906 fixes PR backtrace/1476.
6908 2004-01-05 Andrew Cagney <cagney@redhat.com>
6910 * libunwind-frame.h (struct frame_id): Add opaque declaration,
6911 move to start of file.
6912 * i386-tdep.h (struct regcache): Add opaque declaration.
6913 * config/ia64/nm-linux.h (struct target_ops): Add opaque
6915 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
6916 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
6917 * win32-nat.c (fake_create_process): Use ISO C style definition.
6918 * stabsread.c (define_symbol): Delete #ifndef
6919 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
6920 stabs_argument_has_addr call, macro never defined.
6922 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
6924 * op50-rom.c: Delete.
6925 * w89k-rom.c: Delete.
6926 * Makefile.in: Remove references.
6928 2004-01-04 Mark Kettenis <kettenis@gnu.org>
6930 * x86-64-tdep.c: Update copyright year.
6931 (struct amd64_register_info): Rename from x86_64_register_info.
6932 (amd64_register_info): Rename from x86_64_register_info.
6933 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
6934 (amd64_register_name): Rename from x86_64_register_name.
6935 (amd64_register_type): Rename from x86_64_register_type.
6936 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
6937 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
6938 (amd64_dwarf_reg_to_regnum): Rename from
6939 x86_64_dwarf_reg_to_regnum.
6940 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
6941 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
6942 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
6943 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
6944 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
6945 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
6946 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
6947 (amd64_frame_cache): Rename from x86_64_frame_cache.
6948 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
6949 (amd64_frame_prev_register): Rename from
6950 x86_64_frame_prev_register.
6951 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
6952 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
6953 (amd64_sigtramp_frame_cache): Rename from
6954 x86_64_sigtramp_frame_cache.
6955 (amd64_sigtramp_frame_prev_register): Rename from
6956 x86_64_sigtramp_frame_prev_register.
6957 (amd64_sigtramp_frame_unwind): Rename from
6958 x86_64_sigtramp_frame_unwind.
6959 (amd64_sigtramp_frame_sniffer): Rename from
6960 x86_64_sigtramp_frame_sniffer.
6961 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
6962 (amd64_frame_base): Rename from x86_64_frame_base.
6963 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
6964 (amd64_frame_align): Rename from x86_64_frame_align.
6965 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
6966 (amd64_regset_from_core_section): Rename from
6967 x86_64_regset_from_core_section.
6968 (x86_64_init_abi): Update comments.
6970 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
6972 * MAINTAINERS (write after approval): Add myself.
6974 2004-01-04 Mark Kettenis <kettenis@gnu.org>
6976 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6979 2004-01-04 Mark Kettenis <kettenis@gnu.org>
6981 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
6982 such that it mentions a specific version of GCC that exhibits this
6985 2004-01-03 Mark Kettenis <kettenis@gnu.org>
6987 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
6988 structure that has a single `float' member, store it in %f1 in
6991 * sparc-sol2-nat.c: Add missing '\'.
6993 * sparc-tdep.c (sparc32_return_value): New function.
6994 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
6996 (sparc32_gdbarch_init): Set return_value, don't set
6997 extract_return_value, store_return_value, use_struct_convention
6998 and return_value_on_stack.
7000 * sparc-sol2-nat.c: Add missing ')'.
7002 2004-01-03 J. Brobecker <brobecker@gnat.com>
7004 * infrun.c (handle_step_into_function): New function.
7005 (handle_inferior_event): Extract out some code into the new
7008 2004-01-03 J. Brobecker <brobecker@gnat.com>
7010 * infrun.c (handle_inferior_event): Move the declaration of
7011 real_stop_pc inside the if blocks where it is used.
7013 2004-01-03 Mark Kettenis <kettenis@gnu.org>
7015 * sparc64-tdep.c (sparc64_16_byte_align_p)
7016 (sparc64_store_floating_fields, sparc64_store_floating_fields):
7017 Use check_typedef to get subtypes of structures and unions.
7018 (sparc64_store_return_value): Fix calculation of the appropriate
7019 offset into VALBUF when storing a structure or union.
7020 (sparc64_return_value): New function.
7021 (sparc64_use_struct_convention): Remove function.
7022 (sparc64_init_abi): Set return_value, don't set
7023 extract_return_value, store_return_value and
7024 use_struct_convention.
7026 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
7028 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
7029 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
7030 gdb/config/alpha/xm-alphaosf.h,
7031 gdb/config/powerpc/tm-ppcle-eabi.h,
7032 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
7033 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
7034 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
7035 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
7036 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
7037 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
7038 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
7039 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
7040 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
7041 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
7042 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
7043 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
7044 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
7045 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
7046 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
7047 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
7048 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
7049 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
7050 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
7051 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
7052 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
7053 Remove lines for .cvsignore files.
7055 2004-01-03 J. Brobecker <brobecker@gnat.com>
7057 * infrun.c: Back out the previous change.
7059 2004-01-03 Mark Kettenis <kettenis@gnu.org>
7061 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
7062 sparc-*-sunos4* to the list of REMOVED configurations.
7064 * configure.tgt: Add back sparc-*-vxworks*.
7065 * remote-vxsparc.c: Remove all includes except for "defs.h",
7066 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
7067 Include "sparc-tdep.h".
7068 (SPARC_R_G1): New define.
7069 (vxsparc_gregset): New variable.
7070 (ext_format_sparc): Remove extern declaration.
7071 (vx_read_register): Rewrite to use sparc32_supply_gregset and
7072 sparc32_supply_fpregset.
7073 (vx_write_register): Rewrite to use sparc32_collect_gregset,
7074 sparc_collect_rwindow and sparc32_collect_fpregset.
7075 * config/sparc/tm-vxworks.h: New file, based on recently removed
7077 * config/sparc/vxworks.mt: New file, based on recently removed
7080 2004-01-03 J. Brobecker <brobecker@gnat.com>
7082 * infrun.c (handle_step_into_function): New function.
7083 (handle_inferior_event): Extract out some code into the new
7086 2004-01-02 Mark Kettenis <kettenis@gnu.org>
7088 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
7089 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
7090 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
7091 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
7092 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
7093 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
7094 (sparc_nat_h): New variable.
7095 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
7096 (tm-sun4os4.h): Remove dependency.
7097 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
7098 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
7099 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
7100 sparc-tdep.o): Update dependencies.
7101 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
7102 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
7103 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
7105 * configure.host: Remove existing sparc-*-lynxos*,
7106 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
7107 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
7108 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
7109 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
7111 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
7112 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
7113 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
7114 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
7115 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
7116 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
7117 sparc64-*-solaris2* and sparc64-*-* triplets.
7118 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
7119 "symtab.h" and "objfiles.h".
7120 (BIAS): Remove define.
7121 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
7122 (X_DISP19): Remove macros.
7123 (sparc_fetch_instruction): Remove function.
7124 (struct gdbarch_tdep): Remove definition.
7125 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
7126 (sparc_breakpoint_from_pc): Remove function.
7127 (struct sparc64_frame_cache): Remove definition.
7128 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
7129 sparc64_unwind_pc): Remove functions.
7130 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
7131 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
7132 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
7133 (sparc64_frame_cache): Change return type to `struct
7134 sparc_frame_cache *'. Simply call sparc_frame_cache.
7135 (sparc64_frame_this_id, sparc64_frame_prev_register,
7136 sparc64_frame_base_address): Use `struct sparc_frame_cache'
7137 instead of `struct sparc64_frame_cache.
7138 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
7139 sparc_analyze_control_transfer, sparc_software_single_step,
7140 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
7141 _initialize_sparc64_tdep): Remove functions.
7142 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
7143 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
7145 (sparc64_supply_gregset, sparc64_collect_gregset,
7146 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
7147 (sparc64_init_abi): New function.
7148 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
7149 inclusion guard. Include "sparc-tdep.h".
7151 (r_tstate_offset, r_fprs_offset): New defines.
7152 (enum sparc_regnum): Remove defenition.
7153 (enum sparc64_regnum): Reformat.
7154 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
7155 (sparc64_init_abi, sparc64_supply_gregset,
7156 sparc64_collect_gregset, sparc64_supply_fpregset,
7157 sparc64_collect_fpregset): New prototypes.
7158 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
7159 Add extern declarations.
7160 (sparc64_sol2_init_abi): New prototype.
7161 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
7162 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
7164 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
7166 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
7168 (_initialize_sparc64fbsd_nat): Remove initialization of
7169 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
7170 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
7171 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
7172 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
7173 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
7174 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
7175 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
7176 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
7177 (sparc64fbsd_r_y_offset): Remove variables.
7178 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
7179 Make static and const.
7180 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
7181 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
7183 (sparc64fbsd_gregset): New variable.
7184 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
7185 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
7186 and sparc64_supply_fpregset.
7187 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
7188 (sparc64fbsd_sigtramp_frame_this_id)
7189 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
7190 (sparc64fbsd_sigtramp_frame_unwind): New variable.
7191 (sparc64fbsd_sigtramp_frame_sniffer): New function.
7192 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
7193 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
7194 * sparcnbsd-tdep.c: Update copyright year. Include
7195 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
7196 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
7197 "value.h" and "sparcnbsd-tdep.h".
7198 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
7199 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
7200 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
7201 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
7203 (sparcnbsd_gregset): New variable.
7204 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
7205 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
7206 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
7207 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
7208 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
7210 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
7211 (sparc32nbsd_sigcontext_frame_this_id)
7212 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
7213 (sparc32nbsd_sigcontext_frame_unwind): New variable.
7214 (sparc32nbsd_sigtramp_frame_sniffer): New function.
7215 (sparcnbsd_get_longjmp_target_32,
7216 sparcnbsd_get_longjmp_target_64): Remove functions.
7217 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
7218 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
7219 sparcnbsd_init_elf): Remove.
7220 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
7221 (sparcnbsd_elf_init_abi): New functions.
7222 (_initialize_sparcnbsd_tdep): New prototype.
7223 (_initialize_sparnbsd_tdep): Update.
7224 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
7225 corelow.o. Add sparc64-nat.o and sparc-nat.o.
7226 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
7227 * config/sparc/linux.mh: Update comment.
7228 (XM_FILE, HOST_IPC): Remove variables.
7229 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
7231 * config/sparc/linux.mt: Update comment.
7232 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
7233 * config/sparc/nbsd.mt: Reformat.
7234 * config/sparc/nbsd64.mh: Update comment.
7235 (NATDEPFILES): Add sparc-nat.o.
7236 * config/sparc/nbsd64.mt: Update comment.
7237 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
7238 (TM_FILE): Set to tm-nbsd.h.
7239 * config/sparc/nbsdelf.mh: Update comment.
7240 (NATDEPFILES): Add sparc-nat.o.
7242 * config/sparc/nbsdaout.mh: Update comment.
7243 (NATDEPFILES): Add sparc-nat.o
7245 * config/sparc/nm-linux.h: Update copyright year. Don't include
7246 "config/nm-svr4.h" and "solib.h". Add protection against multiple
7248 (KERNEL_U_SIZE): Remove define.
7249 (kernel_u_size): Remove prototype.
7250 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
7251 * config/sparc/nm-nbsd.h: Update copyright. Don't include
7253 (CHILD_PREPARE_TO_STORE): Remove define.
7254 * config/sparc/nm-nbsdaout.h: Tweak some comments.
7255 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
7256 sparcnbsd-nat.c: Rewrite files.
7257 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
7258 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
7259 sparcnbsd-tdep.h: Remove files.
7260 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
7261 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
7262 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
7263 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
7264 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
7265 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
7266 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
7267 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
7268 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
7269 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
7270 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
7271 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
7272 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
7273 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
7274 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
7275 * config/sparc/linux64.mh, config/sparc/linux64.mt,
7276 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
7277 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
7278 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
7280 2004-01-02 Andrew Cagney <cagney@redhat.com>
7282 From 2003-12-18 Kazuhiro Inaoka:
7283 * configure.host: Add m32r-linux target.
7285 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
7287 * top.c (print_gdb_version): Update year to 2004.
7289 2004-01-02 Mark Mitchell <mark@codesourcery.com>
7291 * MAINTAINERS: Add myself to the write-after-approval category.
7293 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
7295 From Bernardo Innocenti <bernie@develer.com>:
7296 * configure.tgt: Add uClinux target.
7298 2004-01-02 Andrew Cagney <cagney@redhat.com>
7300 * utils.c (do_my_cleanups): Make static, add forward declaration.
7301 * defs.h (do_my_cleanups): Delete declaration.
7303 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
7305 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
7308 2004-01-02 Mark Kettenis <kettenis@gnu.org>
7310 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
7312 * configure, config.in: Regenerate.
7314 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
7315 tui/ChangeLog-1998-2003.
7321 version-control: never