GDBserver
Loading...
Searching...
No Matches
Functions
netbsd_nat Namespace Reference

Functions

const char * pid_to_exec_file (pid_t pid)
 
static bool netbsd_thread_lister (const pid_t pid, gdb::function_view< bool(const struct kinfo_lwp *)> callback)
 
bool thread_alive (ptid_t ptid)
 
const char * thread_name (ptid_t ptid)
 
void for_each_thread (pid_t pid, gdb::function_view< void(ptid_t)> callback)
 
void enable_proc_events (pid_t pid)
 
int qxfer_siginfo (pid_t pid, const char *annex, unsigned char *readbuf, unsigned const char *writebuf, CORE_ADDR offset, int len)
 
int write_memory (pid_t pid, unsigned const char *writebuf, CORE_ADDR offset, size_t len, size_t *xfered_len)
 
int read_memory (pid_t pid, unsigned char *readbuf, CORE_ADDR offset, size_t len, size_t *xfered_len)
 

Function Documentation

◆ enable_proc_events()

void netbsd_nat::enable_proc_events ( pid_t pid)

Definition at line 170 of file netbsd-nat.c.

References ptrace.

◆ for_each_thread()

void netbsd_nat::for_each_thread ( pid_t pid,
gdb::function_view< void(ptid_t)> callback )

Definition at line 154 of file netbsd-nat.c.

References netbsd_thread_lister().

◆ netbsd_thread_lister()

static bool netbsd_nat::netbsd_thread_lister ( const pid_t pid,
gdb::function_view< bool(const struct kinfo_lwp *)> callback )
static

Definition at line 56 of file netbsd-nat.c.

Referenced by for_each_thread(), thread_alive(), and thread_name().

◆ pid_to_exec_file()

const char * netbsd_nat::pid_to_exec_file ( pid_t pid)

Definition at line 38 of file netbsd-nat.c.

◆ qxfer_siginfo()

int netbsd_nat::qxfer_siginfo ( pid_t pid,
const char * annex,
unsigned char * readbuf,
unsigned const char * writebuf,
CORE_ADDR offset,
int len )

Definition at line 187 of file netbsd-nat.c.

References ptrace.

◆ read_memory()

int netbsd_nat::read_memory ( pid_t pid,
unsigned char * readbuf,
CORE_ADDR offset,
size_t len,
size_t * xfered_len )

Definition at line 258 of file netbsd-nat.c.

References ptrace.

◆ thread_alive()

bool netbsd_nat::thread_alive ( ptid_t ptid)

Definition at line 110 of file netbsd-nat.c.

References netbsd_thread_lister().

◆ thread_name()

const char * netbsd_nat::thread_name ( ptid_t ptid)

Definition at line 127 of file netbsd-nat.c.

References netbsd_thread_lister().

◆ write_memory()

int netbsd_nat::write_memory ( pid_t pid,
unsigned const char * writebuf,
CORE_ADDR offset,
size_t len,
size_t * xfered_len )

Definition at line 216 of file netbsd-nat.c.

References ptrace.