From 7861024dc2355cf82f372736cba08f1bdf6f5278 Mon Sep 17 00:00:00 2001 From: Jimmy Guo Date: Wed, 2 Aug 2000 22:18:42 +0000 Subject: [PATCH] * gdbarch.sh: Add print_p field for CALL_DUMMY_BREAKPINT_OFFSET to be printed only if CALL_DUMMY_BREAKPOINT_OFFSET_P. * gdbarch.c: Regenerated. --- gdb/ChangeLog | 7 +++++++ gdb/gdbarch.c | 7 ++++--- gdb/gdbarch.sh | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3fda676db74..478c7b3d3ec 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2000-08-02 Jimmy Guo + + * gdbarch.sh: Add print_p field for CALL_DUMMY_BREAKPINT_OFFSET + to be printed only if CALL_DUMMY_BREAKPOINT_OFFSET_P. + + * gdbarch.c: Regenerated. + 2000-08-02 Elena Zannoni * remote-vx.c (vx_add_symbols): Fix typos. diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 55e58da325a..9a6813be614 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -1524,9 +1524,10 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file) (long) CALL_DUMMY_START_OFFSET); #endif #ifdef CALL_DUMMY_BREAKPOINT_OFFSET - fprintf_unfiltered (file, - "gdbarch_dump: CALL_DUMMY_BREAKPOINT_OFFSET = 0x%08lx\n", - (long) CALL_DUMMY_BREAKPOINT_OFFSET); + if (CALL_DUMMY_BREAKPOINT_OFFSET_P) + fprintf_unfiltered (file, + "gdbarch_dump: CALL_DUMMY_BREAKPOINT_OFFSET = 0x%08lx\n", + (long) CALL_DUMMY_BREAKPOINT_OFFSET); #endif #ifdef CALL_DUMMY_BREAKPOINT_OFFSET_P fprintf_unfiltered (file, diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index aeed515b06d..a64d340c304 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -350,7 +350,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 +v:2:CALL_DUMMY_BREAKPOINT_OFFSET:CORE_ADDR:call_dummy_breakpoint_offset::::0:-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 -- 2.30.2