GDB (xrefs)
|
#include "defs.h"
#include "cli/cli-cmds.h"
#include "command.h"
#include "filenames.h"
#include "frame.h"
#include "regcache.h"
#include "target.h"
#include "process-stratum-target.h"
#include "value.h"
#include "gdbcore.h"
#include "inferior.h"
#include "gdbthread.h"
#include "gdbsupport/pathstuff.h"
#include "gdbsupport/gdb_tilde_expand.h"
#include <fcntl.h>
#include <kvm.h>
#include <paths.h>
#include "readline/readline.h"
#include <sys/param.h>
#include <sys/proc.h>
#include "bsd-kvm.h"
Go to the source code of this file.
Classes | |
class | bsd_kvm_target |
Macros | |
#define | _KMEMUSER |
Functions | |
static void | bsd_kvm_target_open (const char *arg, int from_tty) |
static LONGEST | bsd_kvm_xfer_memory (CORE_ADDR addr, ULONGEST len, gdb_byte *readbuf, const gdb_byte *writebuf) |
static int | bsd_kvm_fetch_pcb (struct regcache *regcache, struct pcb *paddr) |
static void | bsd_kvm_cmd (const char *arg, int fromtty) |
static void | bsd_kvm_proc_cmd (const char *arg, int fromtty) |
static void | bsd_kvm_pcb_cmd (const char *arg, int fromtty) |
void | bsd_kvm_add_target (int(*supply_pcb)(struct regcache *, struct pcb *)) |
Variables | |
static std::string | bsd_kvm_corefile |
static kvm_t * | core_kd |
static struct pcb * | bsd_kvm_paddr |
static int(* | bsd_kvm_supply_pcb )(struct regcache *regcache, struct pcb *pcb) |
static ptid_t | bsd_kvm_ptid |
static const target_info | bsd_kvm_target_info |
static bsd_kvm_target | bsd_kvm_ops |
struct cmd_list_element * | bsd_kvm_cmdlist |
void bsd_kvm_add_target | ( | int(*)(struct regcache *, struct pcb *) | supply_pcb | ) |
Definition at line 380 of file bsd-kvm.c.
References add_cmd(), add_prefix_cmd(), add_target(), bsd_kvm_cmd(), bsd_kvm_cmdlist, bsd_kvm_pcb_cmd(), bsd_kvm_proc_cmd(), bsd_kvm_ptid, bsd_kvm_supply_pcb, bsd_kvm_target_info, bsd_kvm_target_open(), class_obscure, and cmdlist.
Referenced by _initialize_alphabsd_nat(), _initialize_amd64fbsd_nat(), _initialize_amd64obsd_nat(), _initialize_i386fbsd_nat(), _initialize_i386nbsd_nat(), _initialize_i386obsd_nat(), _initialize_m68kbsd_nat(), _initialize_ppcfbsd_nat(), _initialize_ppcnbsd_nat(), _initialize_ppcobsd_nat(), _initialize_sparc64fbsd_nat(), _initialize_sparc64nbsd_nat(), _initialize_sparc64obsd_nat(), _initialize_sparcnbsd_nat(), and _initialize_vaxbsd_nat().
|
static |
Definition at line 309 of file bsd-kvm.c.
Referenced by bsd_kvm_add_target().
|
static |
Definition at line 214 of file bsd-kvm.c.
References bsd_kvm_supply_pcb, and core_kd.
Referenced by bsd_kvm_target::fetch_registers().
|
static |
Definition at line 346 of file bsd-kvm.c.
References bsd_kvm_paddr, core_kd, error_no_arg(), get_current_regcache(), get_selected_frame(), parse_and_eval_address(), print_stack_frame(), reinit_frame_cache(), SRC_AND_LOC, and target_fetch_registers().
Referenced by bsd_kvm_add_target().
|
static |
Definition at line 317 of file bsd-kvm.c.
References bsd_kvm_paddr, core_kd, error_no_arg(), get_current_regcache(), get_selected_frame(), parse_and_eval_address(), print_stack_frame(), reinit_frame_cache(), SRC_AND_LOC, and target_fetch_registers().
Referenced by bsd_kvm_add_target().
|
static |
Definition at line 109 of file bsd-kvm.c.
References add_thread_silent(), bsd_kvm_corefile, bsd_kvm_ops, bsd_kvm_ptid, core_kd, current_inferior(), get_current_regcache(), get_exec_file(), get_selected_frame(), print_stack_frame(), inferior::push_target(), reinit_frame_cache(), SRC_AND_LOC, switch_to_thread(), target_fetch_registers(), target_preopen(), inferior::unpush_target(), and write_files.
Referenced by bsd_kvm_add_target().
|
static |
Definition at line 161 of file bsd-kvm.c.
References core_kd.
Referenced by bsd_kvm_target::xfer_partial().
struct cmd_list_element* bsd_kvm_cmdlist |
Definition at line 306 of file bsd-kvm.c.
Referenced by bsd_kvm_add_target().
|
static |
Definition at line 52 of file bsd-kvm.c.
Referenced by bsd_kvm_target_open(), bsd_kvm_target::close(), and bsd_kvm_target::files_info().
|
static |
Definition at line 106 of file bsd-kvm.c.
Referenced by bsd_kvm_target_open().
|
static |
Definition at line 58 of file bsd-kvm.c.
Referenced by bsd_kvm_pcb_cmd(), bsd_kvm_proc_cmd(), and bsd_kvm_target::fetch_registers().
|
static |
Definition at line 67 of file bsd-kvm.c.
Referenced by bsd_kvm_add_target(), and bsd_kvm_target_open().
|
static |
Definition at line 62 of file bsd-kvm.c.
Referenced by bsd_kvm_add_target(), and bsd_kvm_fetch_pcb().
|
static |
Definition at line 71 of file bsd-kvm.c.
Referenced by bsd_kvm_add_target(), and bsd_kvm_target::info().
|
static |
Definition at line 55 of file bsd-kvm.c.
Referenced by bsd_kvm_fetch_pcb(), bsd_kvm_pcb_cmd(), bsd_kvm_proc_cmd(), bsd_kvm_target_open(), bsd_kvm_xfer_memory(), bsd_kvm_target::close(), and bsd_kvm_target::fetch_registers().