aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2004-05-112004-05-11 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-83/+19
* infrun.c (step_over_function): Delete function. (handle_step_into_function): Use insert_step_resume_breakpoint. (insert_step_resume_breakpoint): Fix assertion.
2004-05-11(defaulted_query): Just use the normal query input type when printing theNick Roberts1-3/+3
annotations.
2004-05-11*** empty log message ***Nick Roberts1-0/+5
2004-05-112004-05-11 Andrew Cagney <cagney@redhat.com>Andrew Cagney4-76/+32
* infrun.c (handle_inferior_event): Simplify code handling step-into or return-from a signal trampoline. Index: testsuite/ChangeLog 2004-05-11 Andrew Cagney <cagney@redhat.com> * gdb.base/sigstep.exp (advancei): Update KFAILs. gdb/1613 is fixed but revealed gdb/1639.
2004-05-112004-05-11 Andrew Cagney <cagney@redhat.com>Andrew Cagney3-2/+7
* ppcnbsd-tdep.c: Include "gdb_assert.h". * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
2004-05-11* ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken codeJim Blandy2-26/+8
with a call to internal_error.
2004-05-11* ppc-tdep.h (struct gdbarch_tdep): Change definition ofJim Blandy12-65/+285
ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this processor variant lacks those registers. (ppc_floating_point_unit_p): Change description to make it clear that this returns info about the ISA, not the ABI. * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to return true or false by checking tdep->ppc_fp0_regnum and tdep->ppc_fpscr_regnum. The original code replicated the BFD arch/mach switching done in rs6000_gdbarch_init; it's better to keep that logic there, and just check the results here. (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and tdep->ppc_fpscr_regnum to -1 to indicate that we have no floating-point registers. (ppc_supply_fpregset, ppc_collect_fpregset) (rs6000_push_dummy_call, rs6000_extract_return_value) (rs6000_store_return_value): Assert that we have floating-point registers. (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME. (rs6000_frame_cache): Don't note the locations at which floating-point registers were saved if we have no fprs. * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP registers. (fetch_regs_user_thread, fetch_regs_kernel_thread) (store_regs_user_thread, store_regs_kernel_thread): Only call supply_fprs / fill_fprs if we actually have floating-point registers. (special_register_p): Check ppc_fpscr_regnum before matching against it. (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't supply / collect fpscr if we don't have it. * ppc-bdm.c: #include "gdb_assert.h". (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we have floating-point registers, since I can't test this code on FP-free systems to adapt it. * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the fpscr and floating point register numbers if they don't exist. (fetch_register): Assert that we have floating-point registers before we reach the code that handles them. (store_register): Same. And use tdep instead of calling gdbarch_tdep again. (fill_fpregset): Don't try to collect FP registers and fpscr if we don't have them. (ppc_linux_sigtramp_cache): Don't record the saved locations of fprs and fpscr if we don't have them. (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we don't have them. * ppcnbsd-nat.c: #include "gdb_assert.h". (getfpregs_supplies): Assert that we have floating-point registers. * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same. * ppcobsd-tdep.c: #include "gdb_assert.h". (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we have floating-point registers. * rs6000-nat.c (regmap): Don't match against the fpscr and floating point register numbers if they don't exist. (fetch_inferior_registers, store_inferior_registers, fetch_core_registers): Only fetch / store / supply the floating-point registers and the fpscr if we have them. * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o) (ppcobsd-tdep.o): Update dependencies.
2004-05-102004-05-10 Andrew Cagney <cagney@redhat.com>Andrew Cagney4-12/+11
* infrun.c (through_sigtramp_breakpoint): Delete variable. (context_switch): Do not switch through_sigtramp_breakpoint. * gdbthread.h (save_infrun_state, load_infrun_state) (struct thread_info): Delete through_sigtramp_breakpoint parameter and structure member. * thread.c (load_infrun_state, save_infrun_state): Update.
2004-05-10* m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.Mark Kettenis2-0/+6
2004-05-10 * acinclude.m4: Quote macro names being defined by AC_DEFUNDaniel Jacobowitz3-32/+38
throughout. * aclocal.m4: Regenerate.
2004-05-10Back out change. The NetBSD changes need Jason Thorpe's approval, butJim Blandy12-263/+65
he hasn't reviewed it yet.
2004-05-10* alphanbsd-tdep.c: Fix include of "gdb_string.h".Nathan J. Williams2-1/+5
2004-05-102004-05-10 Andrew Cagney <cagney@redhat.com>Andrew Cagney4-260/+126
* infrun.c (check_sigtramp2): Delete function. (handle_inferior_event): When single stepping, and taking a signal, set a breakpoint at the signal return address. Delete redundant calls to check_sigtramp2. (insert_step_resume_breakpoint): New function. (through_sigtramp_breakpoint, handle_inferior_event) (follow_exec, wait_for_inferior, fetch_inferior_event) (currently_stepping, keep_going): Delete most uses of through_sigtramp_breakpoint, not that it should be deleted. (delete_breakpoint_current_contents): Delete function. Index: testsuite/ChangeLog 2004-05-10 Andrew Cagney <cagney@redhat.com> * gdb.base/signals.exp (signal_tests_1): Simplify "continue to func1" and "next to 2nd alarm", kernel bug avoided.
2004-05-102004-05-10 Randolph Chung <tausq@debian.org>Randolph Chung3-1/+34
* config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux target. * config/pa/tm-linux.h: New file.
2004-05-10 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middleDaniel Jacobowitz2-2/+9
of prefixes. Don't print the prefix twice in the CLI.
2004-05-10* ppc-tdep.h (struct gdbarch_tdep): Change definition ofJim Blandy12-65/+263
ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this processor variant lacks those registers. (ppc_floating_point_unit_p): Change description to make it clear that this returns info about the ISA, not the ABI. * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to return true or false by checking tdep->ppc_fp0_regnum and tdep->ppc_fpscr_regnum. The original code replicated the BFD arch/mach switching done in rs6000_gdbarch_init; it's better to keep that logic there, and just check the results here. (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and tdep->ppc_fpscr_regnum to -1 to indicate that we have no floating-point registers. (ppc_supply_fpregset, ppc_collect_fpregset) (rs6000_push_dummy_call, rs6000_extract_return_value) (rs6000_store_return_value): Assert that we have floating-point registers. (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME. (rs6000_frame_cache): Don't note the locations at which floating-point registers were saved if we have no fprs. * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP registers. (fetch_regs_user_thread, fetch_regs_kernel_thread) (store_regs_user_thread, store_regs_kernel_thread): Only call supply_fprs / fill_fprs if we actually have floating-point registers. (special_register_p): Check ppc_fpscr_regnum before matching against it. (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't supply / collect fpscr if we don't have it. * ppc-bdm.c: #include "gdb_assert.h". (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we have floating-point registers, since I can't test this code on FP-free systems to adapt it. * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the fpscr and floating point register numbers if they don't exist. (fetch_register): Assert that we have floating-point registers before we reach the code that handles them. (store_register): Same. And use tdep instead of calling gdbarch_tdep again. (fill_fpregset): Don't try to collect FP registers and fpscr if we don't have them. (ppc_linux_sigtramp_cache): Don't record the saved locations of fprs and fpscr if we don't have them. (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we don't have them. * ppcnbsd-nat.c: #include "gdb_assert.h". (getfpregs_supplies): Assert that we have floating-point registers. * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same. * ppcobsd-tdep.c: #include "gdb_assert.h". (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we have floating-point registers. * rs6000-nat.c (regmap): Don't match against the fpscr and floating point register numbers if they don't exist. (fetch_inferior_registers, store_inferior_registers, fetch_core_registers): Only fetch / store / supply the floating-point registers and the fpscr if we have them. * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o) (ppcobsd-tdep.o): Update dependencies.
2004-05-10* rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, doJim Blandy2-1/+4
collect all the gprs.
2004-05-10* rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error inJim Blandy2-1/+6
loop collecting gprs.
2004-05-10 PR external/1568Daniel Jacobowitz3-8/+37
* gdb.base/bigcore.exp: Check the size of the dumped core file. XFAIL if it is smaller than bytes_allocated. * gdb.base/bigcore.c (bytes_allocated): Make static and unsigned. (main): Make chunks_allocated unsigned. Correct comment.
2004-05-102004-05-09 Andrew Cagney <cagney@redhat.com>Andrew Cagney3-127/+12
* remote-vx.c (net_step): Delete step-range code. * remote.c (remote_resume, init_all_packet_configs) (set_remote_protocol_E_packet_cmd) (show_remote_protocol_E_packet_cmd) (remote_protocol_E, show_remote_cmd, _initialize_remote) (remote_protocol_e, set_remote_protocol_e_packet_cmd) (show_remote_protocol_e_packet_cmd): Ditto.
2004-05-09* hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.Mark Kettenis2-1/+5
2004-05-09* hppa-tdep.h: Update copyright year.Mark Kettenis2-1/+6
(struct trad_frame_saved_reg): Add opaque declaration.
2004-05-09* amd64-tdep.c (amd64_return_value): ImplementMark Kettenis2-4/+24
RETURN_VALUE_ABI_RETURNS_ADDRESS.
2004-05-09* m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)Mark Kettenis2-0/+64
(m68k_value_to_register): New functions. (m68k_gdbarch_init): Set convert_register_p, register_to_value and value_to_register.
2004-05-08* defs.h (enum return_value_convention): AddMark Kettenis5-55/+118
RETURN_VALUE_ABI_RETURNS_ADDRESS and RETURN_VALUE_ABI_PRESERVES_ADDRESS. * infcmd.c (legacy_return_value): New function. (print_return_value): Rwerite to implement RETURN_VALUE_ABI_RETURNS_ADDRESS. * values.c (using_struct_return): Check for inequality to RETURN_VALUE_REGISTER_CONVENTION instead of equality to RETURN_VALUE_STRUCT_CONVENTION. * i386-tdep.c (i386_return_value): Implement RETURN_VALUE_ABI_RETURNS_ADDRESS.
2004-05-08* vax-tdep.c: Tweak comments. Reorder include files. Don'tMark Kettenis3-26/+36
include "symtab.h", "opcode/vax.h" and "inferior.h". (vax_skip_prologue): Replace calls to read_memory_integer by calls to read_memory_unsigned_integer. (vax_gdbarch_init): Reorder. (_initialize_vax_tdep): Spell out prototype. * Makefile.in (vax-tdep.o): Update dependencies.
2004-05-082004-05-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney5-22/+6
* infrun.c (resume): Delete call to DO_DEFERRED_STORES. * target.c (target_detach, target_disconnect): Ditto. 2004-05-08 Andrew Cagney <cagney@redhat.com> * gdbint.texinfo (Target Architecture Definition): Delete description of DO_DEFERRED_STORES.
2004-05-082004-05-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney5-11/+13
* infcall.c (call_function_by_hand): When no DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos. * rs6000-tdep.c (rs6000_gdbarch_init): Do not set DEPRECATED_SAVE_DUMMY_FRAME_TOS. * mn10300-tdep.c (mn10300_gdbarch_init): Ditto. * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2004-05-082004-05-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney9-96/+12
* gdbint.texinfo (Target Architecture Definition): Delete references to DEPRECATED_FIX_CALL_DUMMY. 2004-05-08 Andrew Cagney <cagney@redhat.com> * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete. * gdbarch.h, gdbarch.c: Re-generate. * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated_fix_call_dummy. * v850-tdep.c (v850_gdbarch_init): Ditto. * infcall.c (call_function_by_hand): Do not call DEPRECATED_FIX_CALL_DUMMY.
2004-05-082004-05-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney16-188/+24
* gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS) (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete. * gdbarch.h, gdbarch.c: Re-generate. * arm-linux-tdep.c (arm_linux_call_dummy_words) (arm_linux_init_abi): Do not set deprecated_call_dummy_words or deprecated_sizeof_call_dummy_words. * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto. * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto. * v850-tdep.c (v850_gdbarch_init): Ditto. * sh64-tdep.c (sh64_gdbarch_init): Ditto. * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto. * mn10300-tdep.c (mn10300_gdbarch_init): Ditto. * mcore-tdep.c (mcore_gdbarch_init): Ditto. * arch-utils.h (legacy_call_dummy_words) (legacy_sizeof_call_dummy_words): Delete declarations. * arch-utils.c (legacy_call_dummy_words) (legacy_sizeof_call_dummy_words): Delete variables. Index: doc/ChangeLog 2004-05-08 Andrew Cagney <cagney@redhat.com> * gdbint.texinfo (Target Architecture Definition): Delete description of DEPRECATED_CALL_DUMMY_WORDS, DEPRECATED_SIZEOF_CALL_DUMMY_WORDS, and CALL_DUMMY.
2004-05-082004-05-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney9-128/+29
* gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete. * gdbarch.h, gdbarch.c: Re-generate. * inferior.h (PUSH_DUMMY_FRAME): Delete macro. * infcall.c (call_function_by_hand): Eliminate call to DEPRECATED_PUSH_DUMMY_FRAME. * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated push_dummy_frame. (ns32k_push_dummy_frame): Delete function.
2004-05-082004-05-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney9-88/+16
* ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated_call_dummy_breakpoint_offset or deprecated_call_dummy_start_offset. * dummy-frame.c, arm-tdep.c: Update comments. * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET) (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete. * gdbarch.h, gdbarch.c: Re-generate. Index: doc/ChangeLog 2004-05-08 Andrew Cagney <cagney@redhat.com> * gdbint.texinfo (Target Architecture Definition): Delete reference to DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET.
2004-05-082004-05-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-84/+5
* infcall.c (legacy_push_dummy_code): Delete function. (push_dummy_code): Delete call.
2004-05-082004-05-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney6-20/+16
* gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete. * gdbarch.h, gdbarch.c: Re-generate. * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating DEPRECATED_USE_GENERIC_DUMMY_FRAMES. * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto. * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
2004-05-082004-05-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney4-44/+5
* breakpoint.h (deprecated_frame_in_dummy): Delete declaration. (struct frame_info): Delete opaque declaration. * breakpoint.c (deprecated_frame_in_dummy): Delete function. * frame.c (get_frame_type): Delete call.
2004-05-082004-05-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney4-39/+7
* ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated pc_in_call_dummy. * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete. * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
2004-05-08* alphanbsd-tdep.c: Include "gdb_string.h".Mark Kettenis4-8/+16
* armnbsd-tdep.c: Update copyright year. Include "gdb_string.h". * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update dependencies.
2004-05-08* delta68-nat.c: Remove file.Mark Kettenis4-148/+7
* m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address) (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions. * Makefile.in (ALLDEPFILES): Remove delta68-nat.c. (delta68-nat.o): Remove dependency.
2004-05-08* m68k-tdep.c (m68k_frameless_function_invocation): RemoveMark Kettenis2-15/+7
function. (m68k_gdbarch_init): Don't set deprecated_frameless_function_invocation.
2004-05-082004-05-07 Randolph Chung <tausq@debian.org>Randolph Chung3-7/+16
* hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use read_memory_nobpt for code reading when doing frame unwinding. * hppa-linux-tdep.c (insns_match_pattern): Likewise.
2004-05-082004-05-07 Randolph Chung <tausq@debian.org>Randolph Chung2-9/+35
* hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc instead of sp, handle sigaltstack case. (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the signal handler and not that of the caller. (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to hppa_linux_sigtramp_find_sigcontext.
2004-05-082004-05-07 Randolph Chung <tausq@debian.org>Randolph Chung4-21/+134
* Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and hppa-linux-nat.c. (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules. * hppa-linux-nat.c (fetch_register, store_register): Define. (fetch_inferior_registers, store_inferior_registers): Define. (supply_gregset): Add comment and clean up some unneeded code. (fill_gregset): Add comment and fix so that it saves registers in the right place in the gregset. (fill_fpregset): Fix buffer overrun problem. * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
2004-05-082004-05-07 Randolph Chung <tausq@debian.org>Randolph Chung4-58/+164
* hppa-tdep.c (hppa_frame_prev_register_helper): New function to do common handling of the pcoqt register. (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert to use helper function. (hppa_frame_unwind_sniffer): Only use if unwind entry is present. (hppa_fallback_frame_cache, hppa_fallback_frame_this_id) (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New generic fallback unwinder when all else fails. (hppa_gdbarch_init): Add fallback sniffer. * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype. * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert to use helper function.
2004-05-08 * config/djgpp/fnchange.lst: Add translation rules forJoel Brobecker2-0/+7
gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
2004-05-08 * gdb.arch/powerpc-aix-prologue.c: New file.Joel Brobecker3-0/+142
* gdb.arch/powerpc-aix-prologue.exp: New file.
2004-05-07* frame.c (get_prev_frame_1): Work around GCC bug.Mark Kettenis3-6/+26
* frame.h: Add comment about GCC bug.
2004-05-072004-05-07 Andrew Cagney <cagney@redhat.com>Andrew Cagney7-1/+49
* observer.c: Include "commands.h" and "gdbcmd.h". (observer_debug, _initialize_observer): Add the command "set/show debug observer". * observer.sh: When observer debugging, log notify calls. * Makefile.in (observer.o): Update dependencies. Index: doc/ChangeLog 2004-05-07 Andrew Cagney <cagney@redhat.com> * observer.texi (GDB Observers): Add "Debugging" section. Include cross reference to "set/show debug observer". * gdb.texinfo (Debugging Output): Document "set/show debug observer".
2004-05-072004-05-07 Jason Molenda (jmolenda@apple.com)Jason Molenda2-3/+7
* cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
2004-05-07* aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,Jim Blandy2-8/+18
fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum to recognize gpr regnums, instead of assuming that tdep->ppc_fp0_regnum marks the end of the general-purpose registers.
2004-05-07* ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert thatJim Blandy2-0/+11
the given architecture has floating-point registers.