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 "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 value * | dummy_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_frame * | dummy_frame_stack = NULL |
const struct frame_unwind | dummy_frame_unwind |
void _initialize_dummy_frame | ( | void | ) |
Definition at line 424 of file dummy-frame.c.
References _, add_cmd(), class_maintenance, cleanup_dummy_frames(), maintenance_print_dummy_frames(), maintenanceprintlist, and observer_attach_inferior_created().
|
static |
Definition at line 274 of file dummy-frame.c.
References remove_dummy_frame().
Referenced by _initialize_dummy_frame().
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 |
Definition at line 46 of file dummy-frame.c.
References frame_id_eq(), dummy_frame_id::id, dummy_frame_id::ptid, and ptid_equal().
Referenced by dummy_frame_sniffer(), and lookup_dummy_frame().
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 |
Definition at line 336 of file dummy-frame.c.
References gdb_assert, get_frame_arch(), not_lval, dummy_frame_cache::prev_regcache, regcache_cooked_read(), register_type(), value_contents_writeable(), and value_zero().
void dummy_frame_push | ( | struct infcall_suspend_state * | caller_state, |
const struct frame_id * | dummy_id, | ||
ptid_t | ptid | ||
) |
Definition at line 91 of file dummy-frame.c.
References dummy_frame::caller_state, dummy_frame_stack, dummy_frame::id, dummy_frame_id::id, dummy_frame::next, and dummy_frame_id::ptid.
Referenced by call_function_by_hand_dummy().
|
static |
Definition at line 289 of file dummy-frame.c.
References dummy_frame::caller_state, dummy_frame_id_eq(), FRAME_OBSTACK_ZALLOC, gdbarch_dummy_id(), get_frame_arch(), get_infcall_suspend_state_regcache(), dummy_frame::id, inferior_ptid, dummy_frame::next, dummy_frame_cache::prev_regcache, and dummy_frame_cache::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 | ||
) |
Definition at line 254 of file dummy-frame.c.
References dummy_frame_dtor_list::dtor, dummy_frame_dtor_list::dtor_data, dummy_frame::dtor_list, dummy_frame_dtor_list::next, and dummy_frame::next.
Referenced by compile_object_run(), and dummy_frame_context_saver_drop().
|
static |
Definition at line 387 of file dummy-frame.c.
References fprint_frame_id(), fprintf_unfiltered(), gdb_print_host_address(), dummy_frame::id, dummy_frame_id::id, dummy_frame::next, dummy_frame_id::ptid, and target_pid_to_str().
Referenced by maintenance_print_dummy_frames().
|
static |
Definition at line 186 of file dummy-frame.c.
References dummy_frame_id_eq(), and dummy_frame::next.
Referenced by dummy_frame_discard(), dummy_frame_pop(), and register_dummy_frame_dtor().
|
static |
Definition at line 404 of file dummy-frame.c.
References _, do_cleanups(), fprint_dummy_frames(), gdb_fopen(), gdb_stdout, make_cleanup_ui_file_delete(), and perror_with_name().
Referenced by _initialize_dummy_frame().
|
static |
Definition at line 153 of file dummy-frame.c.
References dummy_frame::caller_state, dummy_frame_dtor_list::dtor, dummy_frame_dtor_list::dtor_data, dummy_frame::dtor_list, dummy, gdb_assert, dummy_frame::id, inferior_ptid, iterate_over_breakpoints(), dummy_frame_dtor_list::next, dummy_frame::next, pop_dummy_frame_bpt(), dummy_frame_id::ptid, ptid_equal(), reinit_frame_cache(), restore_infcall_suspend_state(), and xfree().
Referenced by dummy_frame_pop().
|
static |
Definition at line 129 of file dummy-frame.c.
References delete_breakpoint(), disp_del, breakpoint::disposition, dummy, breakpoint::frame_id, frame_id_eq(), dummy_frame::id, dummy_frame_id::id, pid_to_thread_id(), dummy_frame_id::ptid, breakpoint::related_breakpoint, and breakpoint::thread.
Referenced by pop_dummy_frame().
void register_dummy_frame_dtor | ( | struct frame_id | dummy_id, |
ptid_t | ptid, | ||
dummy_frame_dtor_ftype * | dtor, | ||
void * | dtor_data | ||
) |
Definition at line 234 of file dummy-frame.c.
References dummy_frame_dtor_list::dtor, dummy_frame_dtor_list::dtor_data, dummy_frame::dtor_list, gdb_assert, lookup_dummy_frame(), dummy_frame_dtor_list::next, and xmalloc().
Referenced by call_function_by_hand_dummy(), and dummy_frame_context_saver_setup().
|
static |
Definition at line 107 of file dummy-frame.c.
References dummy_frame::caller_state, discard_infcall_suspend_state(), dummy_frame_dtor_list::dtor, dummy_frame_dtor_list::dtor_data, dummy_frame::dtor_list, dummy, dummy_frame_dtor_list::next, dummy_frame::next, and xfree().
Referenced by cleanup_dummy_frames(), and dummy_frame_discard().
|
static |
Definition at line 85 of file dummy-frame.c.
Referenced by dummy_frame_push().
const struct frame_unwind dummy_frame_unwind |
Definition at line 376 of file dummy-frame.c.
Referenced by frame_unwind_init().