GDB (xrefs)
Loading...
Searching...
No Matches
Functions
netbsd-nat.c File Reference
#include "defs.h"
#include "netbsd-nat.h"
#include "nat/netbsd-nat.h"
#include "gdbthread.h"
#include "netbsd-tdep.h"
#include "inferior.h"
#include "gdbarch.h"
#include "gdbsupport/buildargv.h"
#include <sys/types.h>
#include <sys/ptrace.h>
#include <sys/sysctl.h>
#include <sys/wait.h>

Go to the source code of this file.

Functions

static std::string nbsd_pid_to_cwd (int pid)
 
static bool nbsd_pid_to_kinfo_proc2 (pid_t pid, struct kinfo_proc2 *kp)
 
static gdb::unique_xmalloc_ptr< char[]> nbsd_pid_to_cmdline (int pid)
 
static void nbsd_add_threads (nbsd_nat_target *target, pid_t pid)
 
static gdb::unique_xmalloc_ptr< struct kinfo_vmentry[]> nbsd_kinfo_get_vmmap (pid_t pid, size_t *size)
 
static void nbsd_resume (nbsd_nat_target *target, ptid_t ptid, int step, enum gdb_signal signal)
 
static pid_t nbsd_wait (ptid_t ptid, struct target_waitstatus *ourstatus, target_wait_flags options)
 

Function Documentation

◆ nbsd_add_threads()

static void nbsd_add_threads ( nbsd_nat_target * target,
pid_t pid )
static

◆ nbsd_kinfo_get_vmmap()

static gdb::unique_xmalloc_ptr< struct kinfo_vmentry[]> nbsd_kinfo_get_vmmap ( pid_t pid,
size_t * size )
static

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

References pid, and size.

Referenced by nbsd_nat_target::find_memory_regions(), and nbsd_nat_target::info_proc().

◆ nbsd_pid_to_cmdline()

static gdb::unique_xmalloc_ptr< char[]> nbsd_pid_to_cmdline ( int pid)
static

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

References pid, and size.

Referenced by nbsd_nat_target::info_proc().

◆ nbsd_pid_to_cwd()

static std::string nbsd_pid_to_cwd ( int pid)
static

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

References pid.

Referenced by nbsd_nat_target::info_proc().

◆ nbsd_pid_to_kinfo_proc2()

static bool nbsd_pid_to_kinfo_proc2 ( pid_t pid,
struct kinfo_proc2 * kp )
static

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

References pid, and size.

Referenced by nbsd_nat_target::info_proc().

◆ nbsd_resume()

static void nbsd_resume ( nbsd_nat_target * target,
ptid_t ptid,
int step,
enum gdb_signal signal )
static

◆ nbsd_wait()

static pid_t nbsd_wait ( ptid_t ptid,
struct target_waitstatus * ourstatus,
target_wait_flags options )
static