GDB (xrefs)
Macros | Functions | Variables
/tmp/gdb-7.10/gdb/hppaobsd-tdep.c File Reference
#include "defs.h"
#include "osabi.h"
#include "regcache.h"
#include "regset.h"
#include "hppa-tdep.h"
#include "hppabsd-tdep.h"

Go to the source code of this file.

Macros

#define HPPAOBSD_SIZEOF_GREGS   (34 * 4) /* OpenBSD 5.1 and earlier. */
 
#define HPPANBSD_SIZEOF_GREGS   (46 * 4) /* NetBSD and OpenBSD 5.2 and later. */
 
#define HPPAOBSD_SIZEOF_FPREGS   (32 * 8)
 
#define GDB_OSABI_NETBSD_CORE   GDB_OSABI_OPENBSD_ELF
 

Functions

static void hppaobsd_supply_gregset (const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t len)
 
static void hppaobsd_supply_fpregset (const struct regset *regset, struct regcache *regcache, int regnum, const void *fpregs, size_t len)
 
static void hppaobsd_iterate_over_regset_sections (struct gdbarch *gdbarch, iterate_over_regset_sections_cb *cb, void *cb_data, const struct regcache *regcache)
 
static void hppaobsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 
static enum gdb_osabi hppaobsd_core_osabi_sniffer (bfd *abfd)
 
void _initialize_hppabsd_tdep (void)
 

Variables

static const struct regset hppaobsd_gregset
 
static const struct regset hppaobsd_fpregset
 

Macro Definition Documentation

#define GDB_OSABI_NETBSD_CORE   GDB_OSABI_OPENBSD_ELF

Definition at line 172 of file hppaobsd-tdep.c.

Referenced by hppaobsd_core_osabi_sniffer().

#define HPPANBSD_SIZEOF_GREGS   (46 * 4) /* NetBSD and OpenBSD 5.2 and later. */

Definition at line 32 of file hppaobsd-tdep.c.

Referenced by hppaobsd_supply_gregset().

#define HPPAOBSD_SIZEOF_FPREGS   (32 * 8)
#define HPPAOBSD_SIZEOF_GREGS   (34 * 4) /* OpenBSD 5.1 and earlier. */

Function Documentation

void _initialize_hppabsd_tdep ( void  )
static enum gdb_osabi hppaobsd_core_osabi_sniffer ( bfd *  abfd)
static

Definition at line 175 of file hppaobsd-tdep.c.

References GDB_OSABI_NETBSD_CORE, and GDB_OSABI_UNKNOWN.

Referenced by _initialize_hppabsd_tdep().

static void hppaobsd_init_abi ( struct gdbarch_info  info,
struct gdbarch gdbarch 
)
static
static void hppaobsd_iterate_over_regset_sections ( struct gdbarch gdbarch,
iterate_over_regset_sections_cb cb,
void *  cb_data,
const struct regcache regcache 
)
static

Definition at line 148 of file hppaobsd-tdep.c.

References HPPAOBSD_SIZEOF_FPREGS, and HPPAOBSD_SIZEOF_GREGS.

Referenced by hppaobsd_init_abi().

static void hppaobsd_supply_fpregset ( const struct regset regset,
struct regcache regcache,
int  regnum,
const void *  fpregs,
size_t  len 
)
static
static void hppaobsd_supply_gregset ( const struct regset regset,
struct regcache regcache,
int  regnum,
const void *  gregs,
size_t  len 
)
static

Variable Documentation

const struct regset hppaobsd_fpregset
static
Initial value:
=
{
NULL,
}
static void hppaobsd_supply_fpregset(const struct regset *regset, struct regcache *regcache, int regnum, const void *fpregs, size_t len)

Definition at line 139 of file hppaobsd-tdep.c.

const struct regset hppaobsd_gregset
static
Initial value:
=
{
NULL,
NULL,
}
static void hppaobsd_supply_gregset(const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t len)
Definition: hppaobsd-tdep.c:42
#define REGSET_VARIABLE_SIZE
Definition: regset.h:52

Definition at line 131 of file hppaobsd-tdep.c.