GDB (xrefs)
|
#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 value * | dummy_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_frame * | dummy_frame_stack = NULL |
const struct frame_unwind | dummy_frame_unwind |
void _initialize_dummy_frame | ( | ) |
Definition at line 431 of file dummy-frame.c.
Referenced by initialize_all_files().
|
static |
Definition at line 275 of file dummy-frame.c.
References dummy_frame_stack, and remove_dummy_frame().
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().
void dummy_frame_discard | ( | struct frame_id | dummy_id, |
thread_info * | thread ) |
Definition at line 222 of file dummy-frame.c.
References dummy_frame_id::id, lookup_dummy_frame(), remove_dummy_frame(), and dummy_frame_id::thread.
Referenced by check_longjmp_breakpoint_for_call_dummy().
|
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().
void dummy_frame_pop | ( | frame_id | dummy_id, |
thread_info * | thread ) |
Definition at line 206 of file dummy-frame.c.
References dummy_frame_id::id, lookup_dummy_frame(), pop_dummy_frame(), and dummy_frame_id::thread.
Referenced by call_function_by_hand_dummy(), and frame_pop().
|
static |
Definition at line 337 of file dummy-frame.c.
References value::contents_writeable(), readable_regcache::cooked_read(), get_frame_arch(), not_lval, dummy_frame_cache::prev_regcache, register_type(), regnum, and value::zero().
void dummy_frame_push | ( | struct infcall_suspend_state * | caller_state, |
const frame_id * | dummy_id, | ||
thread_info * | thread ) |
Definition at line 92 of file dummy-frame.c.
References dummy_frame::caller_state, dummy_frame_stack, dummy_frame_id::id, dummy_frame::id, dummy_frame::next, and dummy_frame_id::thread.
Referenced by call_function_by_hand_dummy().
|
static |
Definition at line 290 of file dummy-frame.c.
References dummy_frame::caller_state, dummy_frame_id_eq(), dummy_frame_stack, FRAME_OBSTACK_ZALLOC, gdbarch_dummy_id(), get_frame_arch(), get_infcall_suspend_state_regcache(), dummy_frame::id, inferior_thread(), dummy_frame::next, dummy_frame_cache::prev_regcache, and dummy_frame_cache::this_id.
|
static |
Definition at line 367 of file dummy-frame.c.
References dummy_frame_cache::this_id.
int find_dummy_frame_dtor | ( | dummy_frame_dtor_ftype * | dtor, |
void * | dtor_data ) |
Definition at line 255 of file dummy-frame.c.
References dummy_frame_dtor_list::dtor, dummy_frame_dtor_list::dtor_data, dummy_frame::dtor_list, dummy_frame_stack, dummy_frame_dtor_list::next, and dummy_frame::next.
Referenced by compile_object_run().
|
static |
Definition at line 403 of file dummy-frame.c.
References dummy_frame_stack, gdb_printf(), dummy_frame_id::id, dummy_frame::id, dummy_frame::next, thread_info::ptid, dummy_frame_id::thread, and frame_id::to_string().
Referenced by maintenance_print_dummy_frames().
|
static |
Definition at line 187 of file dummy-frame.c.
References dummy_frame_id_eq(), dummy_frame_stack, and dummy_frame::next.
Referenced by dummy_frame_discard(), dummy_frame_pop(), and register_dummy_frame_dtor().
|
static |
Definition at line 415 of file dummy-frame.c.
References fprint_dummy_frames(), and gdb_stdout.
|
static |
Definition at line 152 of file dummy-frame.c.
References all_breakpoints_safe(), bp, dummy_frame_dtor_list::dtor, dummy_frame_dtor_list::dtor_data, dummy, inferior_thread(), dummy_frame_dtor_list::next, dummy_frame::next, pop_dummy_frame_bpt(), reinit_frame_cache(), restore_infcall_suspend_state(), and xfree().
Referenced by dummy_frame_pop().
|
static |
Definition at line 130 of file dummy-frame.c.
References delete_breakpoint(), disp_del, breakpoint::disposition, dummy, breakpoint::frame_id, breakpoint::related_breakpoint, and breakpoint::thread.
Referenced by pop_dummy_frame().
void register_dummy_frame_dtor | ( | frame_id | dummy_id, |
thread_info * | thread, | ||
dummy_frame_dtor_ftype * | dtor, | ||
void * | dtor_data ) |
Definition at line 235 of file dummy-frame.c.
References dummy_frame_dtor_list::dtor, dummy_frame_dtor_list::dtor_data, dummy_frame::dtor_list, dummy_frame_id::id, lookup_dummy_frame(), dummy_frame_dtor_list::next, and dummy_frame_id::thread.
Referenced by call_function_by_hand_dummy().
|
static |
Definition at line 108 of file dummy-frame.c.
References discard_infcall_suspend_state(), dummy_frame_dtor_list::dtor, dummy_frame_dtor_list::dtor_data, dummy, dummy_frame_dtor_list::next, dummy_frame::next, and xfree().
Referenced by cleanup_dummy_frames(), and dummy_frame_discard().
|
static |
Definition at line 86 of file dummy-frame.c.
Referenced by cleanup_dummy_frames(), dummy_frame_push(), dummy_frame_sniffer(), find_dummy_frame_dtor(), fprint_dummy_frames(), and lookup_dummy_frame().
const struct frame_unwind dummy_frame_unwind |
Definition at line 379 of file dummy-frame.c.
Referenced by get_frame_unwind_table().