GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Functions | Variables
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 "observable.h"
#include "gdbthread.h"
#include "infcall.h"
#include "gdbarch.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 frame_id *dummy_id, thread_info *thread)
 
static void remove_dummy_frame (struct dummy_frame **dummy_ptr)
 
static bool pop_dummy_frame_bpt (struct breakpoint *b, struct dummy_frame *dummy)
 
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 (frame_id dummy_id, thread_info *thread)
 
void dummy_frame_discard (struct frame_id dummy_id, thread_info *thread)
 
void register_dummy_frame_dtor (frame_id dummy_id, thread_info *thread, 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 (inferior *inf)
 
static int dummy_frame_sniffer (const struct frame_unwind *self, frame_info_ptr this_frame, void **this_prologue_cache)
 
static struct valuedummy_frame_prev_register (frame_info_ptr this_frame, void **this_prologue_cache, int regnum)
 
static void dummy_frame_this_id (frame_info_ptr this_frame, void **this_prologue_cache, struct frame_id *this_id)
 
struct frame_id default_dummy_id (struct gdbarch *gdbarch, frame_info_ptr this_frame)
 
static void fprint_dummy_frames (struct ui_file *file)
 
static void maintenance_print_dummy_frames (const char *args, int from_tty)
 
void _initialize_dummy_frame ()
 

Variables

static struct dummy_framedummy_frame_stack = NULL
 
const struct frame_unwind dummy_frame_unwind
 

Function Documentation

◆ _initialize_dummy_frame()

void _initialize_dummy_frame ( )

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

Referenced by initialize_all_files().

◆ cleanup_dummy_frames()

static void cleanup_dummy_frames ( inferior * inf)
static

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

References dummy_frame_stack, and remove_dummy_frame().

◆ default_dummy_id()

struct frame_id default_dummy_id ( struct gdbarch * gdbarch,
frame_info_ptr this_frame )

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

References frame_id_build(), get_frame_pc(), and get_frame_sp().

◆ dummy_frame_discard()

void dummy_frame_discard ( struct frame_id dummy_id,
thread_info * thread )

◆ dummy_frame_id_eq()

static int dummy_frame_id_eq ( struct dummy_frame_id * id1,
struct dummy_frame_id * id2 )
static

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

References dummy_frame_id::id, and dummy_frame_id::thread.

Referenced by dummy_frame_sniffer(), and lookup_dummy_frame().

◆ dummy_frame_pop()

void dummy_frame_pop ( frame_id dummy_id,
thread_info * thread )

◆ dummy_frame_prev_register()

static struct value * dummy_frame_prev_register ( frame_info_ptr this_frame,
void ** this_prologue_cache,
int regnum )
static

◆ dummy_frame_push()

void dummy_frame_push ( struct infcall_suspend_state * caller_state,
const frame_id * dummy_id,
thread_info * thread )

◆ dummy_frame_sniffer()

static int dummy_frame_sniffer ( const struct frame_unwind * self,
frame_info_ptr this_frame,
void ** this_prologue_cache )
static

◆ dummy_frame_this_id()

static void dummy_frame_this_id ( frame_info_ptr this_frame,
void ** this_prologue_cache,
struct frame_id * this_id )
static

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

References dummy_frame_cache::this_id.

◆ find_dummy_frame_dtor()

int find_dummy_frame_dtor ( dummy_frame_dtor_ftype * dtor,
void * dtor_data )

◆ fprint_dummy_frames()

static void fprint_dummy_frames ( struct ui_file * file)
static

◆ lookup_dummy_frame()

static struct dummy_frame ** lookup_dummy_frame ( struct dummy_frame_id * dummy_id)
static

◆ maintenance_print_dummy_frames()

static void maintenance_print_dummy_frames ( const char * args,
int from_tty )
static

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

References fprint_dummy_frames(), and gdb_stdout.

◆ pop_dummy_frame()

static void pop_dummy_frame ( struct dummy_frame ** dummy_ptr)
static

◆ pop_dummy_frame_bpt()

static bool pop_dummy_frame_bpt ( struct breakpoint * b,
struct dummy_frame * dummy )
static

◆ register_dummy_frame_dtor()

void register_dummy_frame_dtor ( frame_id dummy_id,
thread_info * thread,
dummy_frame_dtor_ftype * dtor,
void * dtor_data )

◆ remove_dummy_frame()

static void remove_dummy_frame ( struct dummy_frame ** dummy_ptr)
static

Variable Documentation

◆ dummy_frame_stack

struct dummy_frame* dummy_frame_stack = NULL
static

◆ dummy_frame_unwind

const struct frame_unwind dummy_frame_unwind
Initial value:
=
{
"dummy",
NULL,
}
static struct value * dummy_frame_prev_register(frame_info_ptr this_frame, void **this_prologue_cache, int regnum)
static int dummy_frame_sniffer(const struct frame_unwind *self, frame_info_ptr this_frame, void **this_prologue_cache)
static void dummy_frame_this_id(frame_info_ptr this_frame, void **this_prologue_cache, struct frame_id *this_id)
enum unwind_stop_reason default_frame_unwind_stop_reason(frame_info_ptr this_frame, void **this_cache)
@ DUMMY_FRAME
Definition frame.h:190

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

Referenced by get_frame_unwind_table().