From: Andrew Cagney Date: Sat, 13 Oct 2001 19:40:31 +0000 (+0000) Subject: From 2001-07-09 D.J. Barrow : X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=83e6b173e791941d7bbd5a0b2057832f56e28b1d;p=binutils-gdb.git From 2001-07-09 D.J. Barrow : * gdbarch.sh: Fixed CALL_DUMMY_BREAKPOINT_OFFSET to check CALL_DUMMY_BREAKPOINT_OFFSET_P. * gdbarch.c: Regenerate. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5426ccaa549..2acf23d31e7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2001-10-13 Andrew Cagney + + From 2001-07-09 D.J. Barrow : + * gdbarch.sh: Fixed CALL_DUMMY_BREAKPOINT_OFFSET to check + CALL_DUMMY_BREAKPOINT_OFFSET_P. + * gdbarch.c: Regenerate. + 2001-10-13 Mark Kettenis * thread-db.c: Fix a few formatting mistakes. diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 0d073dd7fe0..2517ebaf7b7 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -632,7 +632,7 @@ verify_gdbarch (struct gdbarch *gdbarch) internal_error (__FILE__, __LINE__, "gdbarch: verify_gdbarch: call_dummy_start_offset invalid"); if ((GDB_MULTI_ARCH >= 2) - && (gdbarch->call_dummy_breakpoint_offset == -1)) + && (gdbarch->call_dummy_breakpoint_offset_p && gdbarch->call_dummy_breakpoint_offset == -1)) internal_error (__FILE__, __LINE__, "gdbarch: verify_gdbarch: call_dummy_breakpoint_offset invalid"); if ((GDB_MULTI_ARCH >= 1) @@ -2992,7 +2992,7 @@ set_gdbarch_call_dummy_start_offset (struct gdbarch *gdbarch, CORE_ADDR gdbarch_call_dummy_breakpoint_offset (struct gdbarch *gdbarch) { - if (gdbarch->call_dummy_breakpoint_offset == -1) + if (gdbarch->call_dummy_breakpoint_offset_p && gdbarch->call_dummy_breakpoint_offset == -1) internal_error (__FILE__, __LINE__, "gdbarch: gdbarch_call_dummy_breakpoint_offset invalid"); if (gdbarch_debug >= 2) diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index d18a5f292ea..a1d5962b5b9 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -440,7 +440,7 @@ v:1:USE_GENERIC_DUMMY_FRAMES:int:use_generic_dummy_frames::::0:-1 v:2:CALL_DUMMY_LOCATION:int:call_dummy_location::::0:0 f:2:CALL_DUMMY_ADDRESS:CORE_ADDR:call_dummy_address:void:::0:0::gdbarch->call_dummy_location == AT_ENTRY_POINT && gdbarch->call_dummy_address == 0 v:2:CALL_DUMMY_START_OFFSET:CORE_ADDR:call_dummy_start_offset::::0:-1:::0x%08lx -v:2:CALL_DUMMY_BREAKPOINT_OFFSET:CORE_ADDR:call_dummy_breakpoint_offset::::0:-1:::0x%08lx::CALL_DUMMY_BREAKPOINT_OFFSET_P +v:2:CALL_DUMMY_BREAKPOINT_OFFSET:CORE_ADDR:call_dummy_breakpoint_offset::::0:-1::gdbarch->call_dummy_breakpoint_offset_p && gdbarch->call_dummy_breakpoint_offset == -1:0x%08lx::CALL_DUMMY_BREAKPOINT_OFFSET_P v:1:CALL_DUMMY_BREAKPOINT_OFFSET_P:int:call_dummy_breakpoint_offset_p::::0:-1 v:2:CALL_DUMMY_LENGTH:int:call_dummy_length::::0:-1:::::CALL_DUMMY_LOCATION == BEFORE_TEXT_END || CALL_DUMMY_LOCATION == AFTER_TEXT_END f:2:PC_IN_CALL_DUMMY:int:pc_in_call_dummy:CORE_ADDR pc, CORE_ADDR sp, CORE_ADDR frame_address:pc, sp, frame_address::0:0