GDB (xrefs)
Classes | Functions | Variables
/tmp/gdb-7.10/gdb/dummy-frame.c File Reference
#include "defs.h"
#include "dummy-frame.h"
#include "regcache.h"
#include "frame.h"
#include "inferior.h"
#include "frame-unwind.h"
#include "command.h"
#include "gdbcmd.h"
#include "observer.h"
#include "gdbthread.h"
#include "infcall.h"

Go to the source code of this file.

Classes

struct  dummy_frame_id
 
struct  dummy_frame_dtor_list
 
struct  dummy_frame
 
struct  dummy_frame_cache
 

Functions

static int dummy_frame_id_eq (struct dummy_frame_id *id1, struct dummy_frame_id *id2)
 
void dummy_frame_push (struct infcall_suspend_state *caller_state, const struct frame_id *dummy_id, ptid_t ptid)
 
static void remove_dummy_frame (struct dummy_frame **dummy_ptr)
 
static int pop_dummy_frame_bpt (struct breakpoint *b, void *dummy_voidp)
 
static void pop_dummy_frame (struct dummy_frame **dummy_ptr)
 
static struct dummy_frame ** lookup_dummy_frame (struct dummy_frame_id *dummy_id)
 
void dummy_frame_pop (struct frame_id dummy_id, ptid_t ptid)
 
void dummy_frame_discard (struct frame_id dummy_id, ptid_t ptid)
 
void register_dummy_frame_dtor (struct frame_id dummy_id, ptid_t ptid, dummy_frame_dtor_ftype *dtor, void *dtor_data)
 
int find_dummy_frame_dtor (dummy_frame_dtor_ftype *dtor, void *dtor_data)
 
static void cleanup_dummy_frames (struct target_ops *target, int from_tty)
 
static int dummy_frame_sniffer (const struct frame_unwind *self, struct frame_info *this_frame, void **this_prologue_cache)
 
static struct valuedummy_frame_prev_register (struct frame_info *this_frame, void **this_prologue_cache, int regnum)
 
static void dummy_frame_this_id (struct frame_info *this_frame, void **this_prologue_cache, struct frame_id *this_id)
 
static void fprint_dummy_frames (struct ui_file *file)
 
static void maintenance_print_dummy_frames (char *args, int from_tty)
 
void _initialize_dummy_frame (void)
 

Variables

static struct dummy_framedummy_frame_stack = NULL
 
const struct frame_unwind dummy_frame_unwind
 

Function Documentation

void _initialize_dummy_frame ( void  )
static void cleanup_dummy_frames ( struct target_ops target,
int  from_tty 
)
static

Definition at line 274 of file dummy-frame.c.

References remove_dummy_frame().

Referenced by _initialize_dummy_frame().

void dummy_frame_discard ( struct frame_id  dummy_id,
ptid_t  ptid 
)

Definition at line 221 of file dummy-frame.c.

References lookup_dummy_frame(), and remove_dummy_frame().

Referenced by check_longjmp_breakpoint_for_call_dummy().

static int dummy_frame_id_eq ( struct dummy_frame_id id1,
struct dummy_frame_id id2 
)
static
void dummy_frame_pop ( struct frame_id  dummy_id,
ptid_t  ptid 
)

Definition at line 205 of file dummy-frame.c.

References gdb_assert, lookup_dummy_frame(), and pop_dummy_frame().

Referenced by call_function_by_hand_dummy(), and frame_pop().

static struct value* dummy_frame_prev_register ( struct frame_info this_frame,
void **  this_prologue_cache,
int  regnum 
)
static
void dummy_frame_push ( struct infcall_suspend_state caller_state,
const struct frame_id dummy_id,
ptid_t  ptid 
)
static int dummy_frame_sniffer ( const struct frame_unwind self,
struct frame_info this_frame,
void **  this_prologue_cache 
)
static
static void dummy_frame_this_id ( struct frame_info this_frame,
void **  this_prologue_cache,
struct frame_id this_id 
)
static

Definition at line 365 of file dummy-frame.c.

References gdb_assert, and dummy_frame_cache::this_id.

int find_dummy_frame_dtor ( dummy_frame_dtor_ftype dtor,
void *  dtor_data 
)
static void fprint_dummy_frames ( struct ui_file file)
static
static struct dummy_frame** lookup_dummy_frame ( struct dummy_frame_id dummy_id)
static
static void maintenance_print_dummy_frames ( char *  args,
int  from_tty 
)
static
static void pop_dummy_frame ( struct dummy_frame **  dummy_ptr)
static
static int pop_dummy_frame_bpt ( struct breakpoint b,
void *  dummy_voidp 
)
static
void register_dummy_frame_dtor ( struct frame_id  dummy_id,
ptid_t  ptid,
dummy_frame_dtor_ftype dtor,
void *  dtor_data 
)
static void remove_dummy_frame ( struct dummy_frame **  dummy_ptr)
static

Variable Documentation

struct dummy_frame* dummy_frame_stack = NULL
static

Definition at line 85 of file dummy-frame.c.

Referenced by dummy_frame_push().

const struct frame_unwind dummy_frame_unwind
Initial value:
=
{
NULL,
}
static struct value * dummy_frame_prev_register(struct frame_info *this_frame, void **this_prologue_cache, int regnum)
Definition: dummy-frame.c:336
static int dummy_frame_sniffer(const struct frame_unwind *self, struct frame_info *this_frame, void **this_prologue_cache)
Definition: dummy-frame.c:289
static void dummy_frame_this_id(struct frame_info *this_frame, void **this_prologue_cache, struct frame_id *this_id)
Definition: dummy-frame.c:365
enum unwind_stop_reason default_frame_unwind_stop_reason(struct frame_info *this_frame, void **this_cache)
Definition: frame-unwind.c:180

Definition at line 376 of file dummy-frame.c.

Referenced by frame_unwind_init().