GDB (xrefs)
Macros | Functions | Variables
/tmp/gdb-7.10/gdb/amd64fbsd-nat.c File Reference
#include "defs.h"
#include "inferior.h"
#include "regcache.h"
#include "target.h"
#include <signal.h>
#include <sys/types.h>
#include <sys/ptrace.h>
#include <sys/sysctl.h>
#include <sys/user.h>
#include <machine/reg.h>
#include "fbsd-nat.h"
#include "amd64-tdep.h"
#include "amd64-nat.h"
#include "amd64bsd-nat.h"
#include "x86-nat.h"
#include <machine/pcb.h>
#include <osreldate.h>
#include "bsd-kvm.h"

Go to the source code of this file.

Macros

#define REG_OFFSET(member)   offsetof (struct reg, member)
 
#define SC_REG_OFFSET   amd64fbsd_sc_reg_offset
 
#define SC_RIP_OFFSET   SC_REG_OFFSET[AMD64_RIP_REGNUM]
 
#define SC_RSP_OFFSET   SC_REG_OFFSET[AMD64_RSP_REGNUM]
 
#define SC_RBP_OFFSET   SC_REG_OFFSET[AMD64_RBP_REGNUM]
 

Functions

static int amd64fbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
 
static void amd64fbsd_mourn_inferior (struct target_ops *ops)
 
static const struct target_descamd64fbsd_read_description (struct target_ops *ops)
 
void _initialize_amd64fbsd_nat (void)
 

Variables

static int amd64fbsd64_r_reg_offset []
 
static int amd64fbsd32_r_reg_offset [I386_NUM_GREGS]
 
static void(* super_mourn_inferior )(struct target_ops *ops)
 

Macro Definition Documentation

#define REG_OFFSET (   member)    offsetof (struct reg, member)

Definition at line 40 of file amd64fbsd-nat.c.

#define SC_RBP_OFFSET   SC_REG_OFFSET[AMD64_RBP_REGNUM]
#define SC_REG_OFFSET   amd64fbsd_sc_reg_offset
#define SC_RIP_OFFSET   SC_REG_OFFSET[AMD64_RIP_REGNUM]
#define SC_RSP_OFFSET   SC_REG_OFFSET[AMD64_RSP_REGNUM]

Function Documentation

void _initialize_amd64fbsd_nat ( void  )
static void amd64fbsd_mourn_inferior ( struct target_ops ops)
static

Definition at line 146 of file amd64fbsd-nat.c.

References super_mourn_inferior, and x86_cleanup_dregs().

Referenced by _initialize_amd64fbsd_nat().

static const struct target_desc* amd64fbsd_read_description ( struct target_ops ops)
static
static int amd64fbsd_supply_pcb ( struct regcache regcache,
struct pcb *  pcb 
)
static

Variable Documentation

int amd64fbsd32_r_reg_offset[I386_NUM_GREGS]
static
Initial value:
=
{
14 * 8, 13 * 8,
12 * 8, 11 * 8,
20 * 8, 10 * 8,
9 * 8, 8 * 8,
17 * 8, 19 * 8,
18 * 8, 21 * 8,
-1, -1, -1, -1
}

Definition at line 83 of file amd64fbsd-nat.c.

Referenced by _initialize_amd64fbsd_nat().

int amd64fbsd64_r_reg_offset[]
static
Initial value:
=
{
REG_OFFSET (r_rax),
REG_OFFSET (r_rbx),
REG_OFFSET (r_rcx),
REG_OFFSET (r_rdx),
REG_OFFSET (r_rsi),
REG_OFFSET (r_rdi),
REG_OFFSET (r_rbp),
REG_OFFSET (r_rsp),
REG_OFFSET (r_r8),
REG_OFFSET (r_r9),
REG_OFFSET (r_r10),
REG_OFFSET (r_r11),
REG_OFFSET (r_r12),
REG_OFFSET (r_r13),
REG_OFFSET (r_r14),
REG_OFFSET (r_r15),
REG_OFFSET (r_rip),
REG_OFFSET (r_rflags),
REG_OFFSET (r_cs),
REG_OFFSET (r_ss),
-1,
-1,
-1,
-1
}
#define REG_OFFSET(member)
Definition: amd64fbsd-nat.c:40

Definition at line 45 of file amd64fbsd-nat.c.

Referenced by _initialize_amd64fbsd_nat().

void(* super_mourn_inferior) (struct target_ops *ops)
static

Definition at line 143 of file amd64fbsd-nat.c.

Referenced by _initialize_amd64fbsd_nat(), and amd64fbsd_mourn_inferior().