GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Macros | Functions | Variables
amd64-linux-nat.c File Reference
#include "defs.h"
#include "inferior.h"
#include "regcache.h"
#include "elf/common.h"
#include <sys/uio.h>
#include "nat/gdb_ptrace.h"
#include <asm/prctl.h>
#include <sys/reg.h>
#include "gregset.h"
#include "gdb_proc_service.h"
#include "amd64-nat.h"
#include "amd64-tdep.h"
#include "amd64-linux-tdep.h"
#include "i386-linux-tdep.h"
#include "gdbsupport/x86-xstate.h"
#include "x86-linux-nat.h"
#include "nat/linux-ptrace.h"
#include "nat/amd64-linux-siginfo.h"

Go to the source code of this file.

Classes

struct  amd64_linux_nat_target
 

Macros

#define PTRACE_ARCH_PRCTL   30
 

Functions

static void amd64_linux_collect_native_gregset (const struct regcache *regcache, void *gregs, int regnum)
 
void supply_gregset (struct regcache *regcache, const elf_gregset_t *gregsetp)
 
void fill_gregset (const struct regcache *regcache, elf_gregset_t *gregsetp, int regnum)
 
void supply_fpregset (struct regcache *regcache, const elf_fpregset_t *fpregsetp)
 
void fill_fpregset (const struct regcache *regcache, elf_fpregset_t *fpregsetp, int regnum)
 
ps_err_e ps_get_thread_area (struct ps_prochandle *ph, lwpid_t lwpid, int idx, void **base)
 
void _initialize_amd64_linux_nat ()
 

Variables

static amd64_linux_nat_target the_amd64_linux_nat_target
 
static int amd64_linux_gregset32_reg_offset []
 

Macro Definition Documentation

◆ PTRACE_ARCH_PRCTL

#define PTRACE_ARCH_PRCTL   30

Definition at line 45 of file amd64-linux-nat.c.

Function Documentation

◆ _initialize_amd64_linux_nat()

void _initialize_amd64_linux_nat ( )

Definition at line 429 of file amd64-linux-nat.c.

Referenced by initialize_all_files().

◆ amd64_linux_collect_native_gregset()

static void amd64_linux_collect_native_gregset ( const struct regcache * regcache,
void * gregs,
int regnum )
static

◆ fill_fpregset()

void fill_fpregset ( const struct regcache * regcache,
elf_fpregset_t * fpregsetp,
int regnum )

Definition at line 196 of file amd64-linux-nat.c.

References amd64_collect_fxsave(), and regnum.

◆ fill_gregset()

void fill_gregset ( const struct regcache * regcache,
elf_gregset_t * gregsetp,
int regnum )

Definition at line 174 of file amd64-linux-nat.c.

References amd64_linux_collect_native_gregset(), and regnum.

◆ ps_get_thread_area()

ps_err_e ps_get_thread_area ( struct ps_prochandle * ph,
lwpid_t lwpid,
int idx,
void ** base )

◆ supply_fpregset()

void supply_fpregset ( struct regcache * regcache,
const elf_fpregset_t * fpregsetp )

Definition at line 186 of file amd64-linux-nat.c.

References amd64_supply_fxsave().

◆ supply_gregset()

void supply_gregset ( struct regcache * regcache,
const elf_gregset_t * gregsetp )

Definition at line 164 of file amd64-linux-nat.c.

References amd64_supply_native_gregset().

Variable Documentation

◆ amd64_linux_gregset32_reg_offset

int amd64_linux_gregset32_reg_offset[]
static
Initial value:
=
{
RAX * 8, RCX * 8,
RDX * 8, RBX * 8,
RSP * 8, RBP * 8,
RSI * 8, RDI * 8,
RIP * 8, EFLAGS * 8,
CS * 8, SS * 8,
DS * 8, ES * 8,
FS * 8, GS * 8,
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1,
-1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
-1,
ORIG_RAX * 8
}

Definition at line 69 of file amd64-linux-nat.c.

Referenced by amd64_linux_collect_native_gregset().

◆ the_amd64_linux_nat_target

amd64_linux_nat_target the_amd64_linux_nat_target
static

Definition at line 58 of file amd64-linux-nat.c.