aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-03-22 16:58:08 +0000
committerAndrew Cagney <cagney@redhat.com>2004-03-22 16:58:08 +0000
commit8adf9e781b1b67596348ab95877cf6f012ec6a68 (patch)
tree684f11982aa2e0ab919c9e0ed73d4157e363360d
parent90ba813f1fcbda33d35d1dac4fda91ce26eb12d8 (diff)
downloadgdb-8adf9e781b1b67596348ab95877cf6f012ec6a68.zip
gdb-8adf9e781b1b67596348ab95877cf6f012ec6a68.tar.gz
gdb-8adf9e781b1b67596348ab95877cf6f012ec6a68.tar.bz2
2004-03-22 Andrew Cagney <cagney@redhat.com>
* frame.h (generic_pop_current_frame): Delete declaration. (deprecate_pop_dummy_frame): Deprecate generic_pop_dummy_frame. * dummy-frame.c (deprecated_pop_dummy_frame): Update. (generic_pop_current_frame): Delete function. * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to generic_pop_current_frame. * v850-tdep.c (v850_pop_frame): Update. * mcore-tdep.c (mcore_pop_frame): Update. * sh64-tdep.c (sh64_pop_frame): Update. * h8300-tdep.c (h8300_pop_frame): Update.
-rw-r--r--gdb/ChangeLog14
-rw-r--r--gdb/dummy-frame.c17
-rw-r--r--gdb/frame.h3
-rw-r--r--gdb/h8300-tdep.c2
-rw-r--r--gdb/mcore-tdep.c2
-rw-r--r--gdb/mn10300-tdep.c11
-rw-r--r--gdb/sh64-tdep.c2
-rw-r--r--gdb/v850-tdep.c2
-rw-r--r--gdb/xstormy16-tdep.c2
9 files changed, 28 insertions, 27 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8062186..8b55d42 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,19 @@
2004-03-22 Andrew Cagney <cagney@redhat.com>
+ * frame.h (generic_pop_current_frame): Delete declaration.
+ (deprecate_pop_dummy_frame): Deprecate
+ generic_pop_dummy_frame.
+ * dummy-frame.c (deprecated_pop_dummy_frame): Update.
+ (generic_pop_current_frame): Delete function.
+ * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
+ generic_pop_current_frame.
+ * v850-tdep.c (v850_pop_frame): Update.
+ * mcore-tdep.c (mcore_pop_frame): Update.
+ * sh64-tdep.c (sh64_pop_frame): Update.
+ * h8300-tdep.c (h8300_pop_frame): Update.
+
+2004-03-22 Andrew Cagney <cagney@redhat.com>
+
* frame.h (deprecated_pc_in_call_dummy): Rename
generic_pc_in_call_dummy.
* dummy-frame.h (pc_in_dummy_frame): Delete declaration.
diff --git a/gdb/dummy-frame.c b/gdb/dummy-frame.c
index 66918b6..2c5153e 100644
--- a/gdb/dummy-frame.c
+++ b/gdb/dummy-frame.c
@@ -256,21 +256,6 @@ generic_save_call_dummy_addr (CORE_ADDR lo, CORE_ADDR hi)
dummy_frame_stack->call_hi = hi;
}
-/* Restore the machine state from either the saved dummy stack or a
- real stack frame. */
-
-void
-generic_pop_current_frame (void (*popper) (struct frame_info * frame))
-{
- struct frame_info *frame = get_current_frame ();
- if (get_frame_type (frame) == DUMMY_FRAME)
- /* NOTE: cagney/2002-22-23: Does this ever occure? Surely a dummy
- frame will have already been poped by the "infrun.c" code. */
- generic_pop_dummy_frame ();
- else
- (*popper) (frame);
-}
-
/* Discard the innermost dummy frame from the dummy frame stack
(passed in as a parameter). */
@@ -284,7 +269,7 @@ discard_innermost_dummy (struct dummy_frame **stack)
}
void
-generic_pop_dummy_frame (void)
+deprecated_pop_dummy_frame (void)
{
struct dummy_frame *dummy_frame = dummy_frame_stack;
diff --git a/gdb/frame.h b/gdb/frame.h
index 8d7ff1a..927403a 100644
--- a/gdb/frame.h
+++ b/gdb/frame.h
@@ -565,8 +565,7 @@ extern struct frame_info *block_innermost_frame (struct block *);
extern CORE_ADDR deprecated_read_register_dummy (CORE_ADDR pc,
CORE_ADDR fp, int);
extern void generic_push_dummy_frame (void);
-extern void generic_pop_current_frame (void (*)(struct frame_info *));
-extern void generic_pop_dummy_frame (void);
+extern void deprecated_pop_dummy_frame (void);
extern int deprecated_pc_in_call_dummy (CORE_ADDR pc, CORE_ADDR sp,
CORE_ADDR fp);
diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c
index d15c435..c6f55f8 100644
--- a/gdb/h8300-tdep.c
+++ b/gdb/h8300-tdep.c
@@ -743,7 +743,7 @@ h8300_pop_frame (void)
get_frame_base (frame),
get_frame_base (frame)))
{
- generic_pop_dummy_frame ();
+ deprecated_pop_dummy_frame ();
}
else
{
diff --git a/gdb/mcore-tdep.c b/gdb/mcore-tdep.c
index 6e3df98..321ba69 100644
--- a/gdb/mcore-tdep.c
+++ b/gdb/mcore-tdep.c
@@ -752,7 +752,7 @@ mcore_pop_frame (void)
if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (fi), get_frame_base (fi),
get_frame_base (fi)))
- generic_pop_dummy_frame ();
+ deprecated_pop_dummy_frame ();
else
{
/* Write out the PC we saved. */
diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c
index 21f5069..5e3a5f8 100644
--- a/gdb/mn10300-tdep.c
+++ b/gdb/mn10300-tdep.c
@@ -749,10 +749,13 @@ mn10300_pop_frame_regular (struct frame_info *frame)
static void
mn10300_pop_frame (void)
{
- /* This function checks for and handles generic dummy frames, and
- calls back to our function for ordinary frames. */
- generic_pop_current_frame (mn10300_pop_frame_regular);
-
+ struct frame_info *frame = get_current_frame ();
+ if (get_frame_type (frame) == DUMMY_FRAME)
+ /* NOTE: cagney/2002-22-23: Does this ever occure? Surely a dummy
+ frame will have already been poped by the "infrun.c" code. */
+ deprecated_pop_dummy_frame ();
+ else
+ mn10300_pop_frame_regular (frame);
/* Throw away any cached frame information. */
flush_cached_frames ();
}
diff --git a/gdb/sh64-tdep.c b/gdb/sh64-tdep.c
index f0fba0d..1d7b313 100644
--- a/gdb/sh64-tdep.c
+++ b/gdb/sh64-tdep.c
@@ -1373,7 +1373,7 @@ sh64_pop_frame (void)
if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (frame),
get_frame_base (frame),
get_frame_base (frame)))
- generic_pop_dummy_frame ();
+ deprecated_pop_dummy_frame ();
else
{
fp = get_frame_base (frame);
diff --git a/gdb/v850-tdep.c b/gdb/v850-tdep.c
index c4c5978..948143c 100644
--- a/gdb/v850-tdep.c
+++ b/gdb/v850-tdep.c
@@ -885,7 +885,7 @@ v850_pop_frame (void)
if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (frame),
get_frame_base (frame),
get_frame_base (frame)))
- generic_pop_dummy_frame ();
+ deprecated_pop_dummy_frame ();
else
{
write_register (E_PC_REGNUM, DEPRECATED_FRAME_SAVED_PC (frame));
diff --git a/gdb/xstormy16-tdep.c b/gdb/xstormy16-tdep.c
index 33c8b4e..9e7b016 100644
--- a/gdb/xstormy16-tdep.c
+++ b/gdb/xstormy16-tdep.c
@@ -326,7 +326,7 @@ xstormy16_pop_frame (void)
if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (fi), get_frame_base (fi),
get_frame_base (fi)))
{
- generic_pop_dummy_frame ();
+ deprecated_pop_dummy_frame ();
}
else
{