diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-03-22 16:58:08 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-03-22 16:58:08 +0000 |
commit | 8adf9e781b1b67596348ab95877cf6f012ec6a68 (patch) | |
tree | 684f11982aa2e0ab919c9e0ed73d4157e363360d /gdb/mn10300-tdep.c | |
parent | 90ba813f1fcbda33d35d1dac4fda91ce26eb12d8 (diff) | |
download | gdb-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.
Diffstat (limited to 'gdb/mn10300-tdep.c')
-rw-r--r-- | gdb/mn10300-tdep.c | 11 |
1 files changed, 7 insertions, 4 deletions
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 (); } |