aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Guo <guo@cup.hp.com>2000-08-02 22:18:42 +0000
committerJimmy Guo <guo@cup.hp.com>2000-08-02 22:18:42 +0000
commit7861024dc2355cf82f372736cba08f1bdf6f5278 (patch)
tree677043be5a41d7a437a03f79ee11fe3275f93115
parentbac5fc66f280b8765d36bcc60dc4f8b59558b066 (diff)
downloadgdb-7861024dc2355cf82f372736cba08f1bdf6f5278.zip
gdb-7861024dc2355cf82f372736cba08f1bdf6f5278.tar.gz
gdb-7861024dc2355cf82f372736cba08f1bdf6f5278.tar.bz2
* gdbarch.sh: Add print_p field for CALL_DUMMY_BREAKPINT_OFFSET
to be printed only if CALL_DUMMY_BREAKPOINT_OFFSET_P. * gdbarch.c: Regenerated.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/gdbarch.c7
-rwxr-xr-xgdb/gdbarch.sh2
3 files changed, 12 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3fda676..478c7b3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2000-08-02 Jimmy Guo <guo@hpcleara.cup.hp.com>
+
+ * 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 <ezannoni@kwikemart.cygnus.com>
* remote-vx.c (vx_add_symbols): Fix typos.
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c
index 55e58da..9a6813b 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 aeed515..a64d340 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