GDB (xrefs)
Macros | Functions | Variables
/tmp/gdb-7.10/gdb/hppa-linux-nat.c File Reference
#include "defs.h"
#include "gdbcore.h"
#include "regcache.h"
#include "inferior.h"
#include "target.h"
#include "linux-nat.h"
#include <sys/procfs.h>
#include <sys/ptrace.h>
#include <linux/version.h>
#include <asm/ptrace.h>
#include "hppa-linux-offsets.h"
#include "hppa-tdep.h"
#include "gregset.h"

Go to the source code of this file.

Macros

#define GR_REGNUM(_n)   (HPPA_R0_REGNUM+_n)
 
#define TR_REGNUM(_n)   (HPPA_TR0_REGNUM+_n)
 

Functions

static CORE_ADDR hppa_linux_register_addr (int regno, CORE_ADDR blockend)
 
static void fetch_register (struct regcache *regcache, int regno)
 
static void store_register (const struct regcache *regcache, int regno)
 
static void hppa_linux_fetch_inferior_registers (struct target_ops *ops, struct regcache *regcache, int regno)
 
static void hppa_linux_store_inferior_registers (struct target_ops *ops, struct regcache *regcache, int regno)
 
void supply_gregset (struct regcache *regcache, const gdb_gregset_t *gregsetp)
 
void fill_gregset (const struct regcache *regcache, gdb_gregset_t *gregsetp, int regno)
 
void supply_fpregset (struct regcache *regcache, const gdb_fpregset_t *fpregsetp)
 
void fill_fpregset (const struct regcache *regcache, gdb_fpregset_t *fpregsetp, int regno)
 
void _initialize_hppa_linux_nat (void)
 

Variables

static const int u_offsets []
 
static const int greg_map []
 

Macro Definition Documentation

#define GR_REGNUM (   _n)    (HPPA_R0_REGNUM+_n)

Definition at line 179 of file hppa-linux-nat.c.

#define TR_REGNUM (   _n)    (HPPA_TR0_REGNUM+_n)

Definition at line 180 of file hppa-linux-nat.c.

Function Documentation

void _initialize_hppa_linux_nat ( void  )
static void fetch_register ( struct regcache regcache,
int  regno 
)
static
void fill_fpregset ( const struct regcache regcache,
gdb_fpregset_t fpregsetp,
int  regno 
)

Definition at line 369 of file hppa-linux-nat.c.

References HPPA_FP0_REGNUM, regcache_raw_collect(), and to.

void fill_gregset ( const struct regcache regcache,
gdb_gregset_t gregsetp,
int  regno 
)

Definition at line 329 of file hppa-linux-nat.c.

References greg_map, and regcache_raw_collect().

static void hppa_linux_fetch_inferior_registers ( struct target_ops ops,
struct regcache regcache,
int  regno 
)
static

Definition at line 271 of file hppa-linux-nat.c.

References fetch_register(), gdbarch_num_regs(), and get_regcache_arch().

Referenced by _initialize_hppa_linux_nat().

static CORE_ADDR hppa_linux_register_addr ( int  regno,
CORE_ADDR  blockend 
)
static

Definition at line 151 of file hppa-linux-nat.c.

References _, error(), and u_offsets.

Referenced by fetch_register(), and store_register().

static void hppa_linux_store_inferior_registers ( struct target_ops ops,
struct regcache regcache,
int  regno 
)
static

Definition at line 292 of file hppa-linux-nat.c.

References gdbarch_num_regs(), get_regcache_arch(), and store_register().

Referenced by _initialize_hppa_linux_nat().

static void store_register ( const struct regcache regcache,
int  regno 
)
static
void supply_fpregset ( struct regcache regcache,
const gdb_fpregset_t fpregsetp 
)

Definition at line 350 of file hppa-linux-nat.c.

References from, HPPA_FP0_REGNUM, and regcache_raw_supply().

void supply_gregset ( struct regcache regcache,
const gdb_gregset_t gregsetp 
)

Definition at line 312 of file hppa-linux-nat.c.

References greg_map, and regcache_raw_supply().

Variable Documentation

const int greg_map[]
static
Initial value:
=
{
GR_REGNUM(12), GR_REGNUM(13), GR_REGNUM(14), GR_REGNUM(15),
GR_REGNUM(16), GR_REGNUM(17), GR_REGNUM(18), GR_REGNUM(19),
GR_REGNUM(20), GR_REGNUM(21), GR_REGNUM(22), GR_REGNUM(23),
GR_REGNUM(24), GR_REGNUM(25), GR_REGNUM(26), GR_REGNUM(27),
GR_REGNUM(28), GR_REGNUM(29), GR_REGNUM(30), GR_REGNUM(31),
HPPA_SR4_REGNUM+1, HPPA_SR4_REGNUM+2, HPPA_SR4_REGNUM+3, HPPA_SR4_REGNUM+4,
HPPA_SR4_REGNUM, HPPA_SR4_REGNUM+5, HPPA_SR4_REGNUM+6, HPPA_SR4_REGNUM+7,
}
#define GR_REGNUM(_n)
#define TR_REGNUM(_n)

Definition at line 181 of file hppa-linux-nat.c.

Referenced by fill_gregset(), and supply_gregset().

const int u_offsets[]
static

Definition at line 44 of file hppa-linux-nat.c.

Referenced by hppa_linux_register_addr().