aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2003-03-19 20:14:01 +0000
committerJoel Brobecker <brobecker@gnat.com>2003-03-19 20:14:01 +0000
commit5ef7553b46b9cacf88508ce2eb42f6f7b70a56ca (patch)
treeb2c5f99799e60219f0645ad3b2c6fe8975f1bddc
parent7bde89676de964a96a4d3d6e2972fca584882afa (diff)
downloadgdb-5ef7553b46b9cacf88508ce2eb42f6f7b70a56ca.zip
gdb-5ef7553b46b9cacf88508ce2eb42f6f7b70a56ca.tar.gz
gdb-5ef7553b46b9cacf88508ce2eb42f6f7b70a56ca.tar.bz2
* hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
method, now that hppa_push_dummy_frame has a conformant prototype. * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation for the switch to multiarch partial.
-rw-r--r--gdb/ChangeLog10
-rw-r--r--gdb/config/pa/tm-hppa.h4
-rw-r--r--gdb/hppa-tdep.c2
3 files changed, 13 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index de6db2d..a9f9dd5 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,13 @@
+2003-03-19 J. Brobecker <brobecker@gnat.com>
+
+ Continuing work to convert the hppa targets to multiarch partial.
+
+ * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
+ method, now that hppa_push_dummy_frame has a conformant prototype.
+ * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
+ inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
+ for the switch to multiarch partial.
+
2003-03-19 Kevin Buettner <kevinb@redhat.com>
* mdebugread.c (parse_symbol): For stEnd, we're done counting
diff --git a/gdb/config/pa/tm-hppa.h b/gdb/config/pa/tm-hppa.h
index 7ec3c8b..a14be09 100644
--- a/gdb/config/pa/tm-hppa.h
+++ b/gdb/config/pa/tm-hppa.h
@@ -450,10 +450,10 @@ extern void hppa_frame_find_saved_regs (struct frame_info *,
/* Things needed for making the inferior call functions. */
-/* Push an empty stack frame, to record the current PC, etc. */
-
+#if !GDB_MULTI_ARCH
#define DEPRECATED_PUSH_DUMMY_FRAME hppa_push_dummy_frame ()
extern void hppa_push_dummy_frame (void);
+#endif
/* Discard from the stack the innermost frame,
restoring all saved registers. */
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index 1cce60d..f6ebdf6 100644
--- a/gdb/hppa-tdep.c
+++ b/gdb/hppa-tdep.c
@@ -5000,7 +5000,7 @@ hppa_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
set_gdbarch_frame_locals_address (gdbarch, hppa_frame_locals_address);
set_gdbarch_frame_num_args (gdbarch, hppa_frame_num_args);
set_gdbarch_frame_args_skip (gdbarch, 0);
- /* set_gdbarch_deprecated_push_dummy_frame (gdbarch, hppa_push_dummy_frame); */
+ set_gdbarch_deprecated_push_dummy_frame (gdbarch, hppa_push_dummy_frame);
set_gdbarch_deprecated_pop_frame (gdbarch, hppa_pop_frame);
set_gdbarch_call_dummy_length (gdbarch, INSTRUCTION_SIZE * 28);
set_gdbarch_call_dummy_start_offset (gdbarch, 0);