summaryrefslogtreecommitdiff
path: root/gdb/dummy-frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/dummy-frame.c')
-rw-r--r--gdb/dummy-frame.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/gdb/dummy-frame.c b/gdb/dummy-frame.c
index 3b10c51640b..af9d957639f 100644
--- a/gdb/dummy-frame.c
+++ b/gdb/dummy-frame.c
@@ -32,7 +32,8 @@
#include "command.h"
#include "gdbcmd.h"
-static void dummy_frame_this_id (struct frame_info *next_frame,
+static void dummy_frame_this_id (const struct frame_unwind *self,
+ struct frame_info *next_frame,
void **this_prologue_cache,
struct frame_id *this_id);
@@ -301,7 +302,8 @@ generic_pop_dummy_frame (void)
register value is taken from the local copy of the register buffer. */
static void
-dummy_frame_prev_register (struct frame_info *next_frame,
+dummy_frame_prev_register (const struct frame_unwind *self,
+ struct frame_info *next_frame,
void **this_prologue_cache,
int regnum, int *optimized,
enum lval_type *lvalp, CORE_ADDR *addrp,
@@ -312,7 +314,7 @@ dummy_frame_prev_register (struct frame_info *next_frame,
/* Call the ID method which, if at all possible, will set the
prologue cache. */
- dummy_frame_this_id (next_frame, this_prologue_cache, &id);
+ dummy_frame_this_id (self, next_frame, this_prologue_cache, &id);
dummy = (*this_prologue_cache);
gdb_assert (dummy != NULL);
@@ -341,7 +343,8 @@ dummy_frame_prev_register (struct frame_info *next_frame,
dummy cache is located and and saved in THIS_PROLOGUE_CACHE. */
static void
-dummy_frame_this_id (struct frame_info *next_frame,
+dummy_frame_this_id (const struct frame_unwind *self,
+ struct frame_info *next_frame,
void **this_prologue_cache,
struct frame_id *this_id)
{
@@ -400,7 +403,7 @@ dummy_frame_this_id (struct frame_info *next_frame,
(*this_id).stack_addr);
}
-static struct frame_unwind dummy_frame_unwind =
+static const struct frame_unwind dummy_frame_unwind =
{
DUMMY_FRAME,
dummy_frame_this_id,
@@ -408,7 +411,8 @@ static struct frame_unwind dummy_frame_unwind =
};
const struct frame_unwind *
-dummy_frame_sniffer (struct frame_info *next_frame)
+dummy_frame_sniffer (const struct frame_unwind_sniffer *self,
+ struct frame_info *next_frame)
{
CORE_ADDR pc = frame_pc_unwind (next_frame);
if (DEPRECATED_PC_IN_CALL_DUMMY_P ()