GDB (xrefs)
Defines | Functions | Variables
/home/stan/gdb/src/gdb/alphanbsd-tdep.c File Reference
#include "defs.h"
#include "frame.h"
#include "gdbcore.h"
#include "osabi.h"
#include "regcache.h"
#include "regset.h"
#include "value.h"
#include "gdb_assert.h"
#include "gdb_string.h"
#include "alpha-tdep.h"
#include "alphabsd-tdep.h"
#include "nbsd-tdep.h"
#include "solib-svr4.h"
#include "target.h"

Go to the source code of this file.

Defines

#define ALPHANBSD_SIZEOF_GREGS   (32 * 8)
#define ALPHANBSD_SIZEOF_FPREGS   ((32 * 8) + 8)
#define RETCODE_NWORDS   4
#define RETCODE_SIZE   (RETCODE_NWORDS * 4)

Functions

static void alphanbsd_supply_fpregset (const struct regset *regset, struct regcache *regcache, int regnum, const void *fpregs, size_t len)
static void alphanbsd_supply_gregset (const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t len)
static void alphanbsd_aout_supply_gregset (const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t len)
struct regsetalphanbsd_regset_from_core_section (struct gdbarch *gdbarch, const char *sect_name, size_t sect_size)
static LONGEST alphanbsd_sigtramp_offset (struct gdbarch *gdbarch, CORE_ADDR pc)
static int alphanbsd_pc_in_sigtramp (struct gdbarch *gdbarch, CORE_ADDR pc, const char *func_name)
static CORE_ADDR alphanbsd_sigcontext_addr (struct frame_info *frame)
static void alphanbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
static enum gdb_osabi alphanbsd_core_osabi_sniffer (bfd *abfd)
void _initialize_alphanbsd_tdep (void)

Variables

static struct regset alphanbsd_gregset
static struct regset alphanbsd_fpregset
static struct regset alphanbsd_aout_gregset
static const gdb_byte sigtramp_retcode []

Define Documentation

#define ALPHANBSD_SIZEOF_FPREGS   ((32 * 8) + 8)
#define ALPHANBSD_SIZEOF_GREGS   (32 * 8)
#define RETCODE_NWORDS   4

Definition at line 209 of file alphanbsd-tdep.c.

Referenced by alphanbsd_sigtramp_offset().

#define RETCODE_SIZE   (RETCODE_NWORDS * 4)

Definition at line 210 of file alphanbsd-tdep.c.

Referenced by alphanbsd_sigtramp_offset().


Function Documentation

void _initialize_alphanbsd_tdep ( void  )
static void alphanbsd_aout_supply_gregset ( const struct regset regset,
struct regcache regcache,
int  regnum,
const void *  gregs,
size_t  len 
) [static]
static enum gdb_osabi alphanbsd_core_osabi_sniffer ( bfd *  abfd) [static]

Definition at line 295 of file alphanbsd-tdep.c.

References GDB_OSABI_NETBSD_ELF, and GDB_OSABI_UNKNOWN.

Referenced by _initialize_alphanbsd_tdep().

static void alphanbsd_init_abi ( struct gdbarch_info  info,
struct gdbarch gdbarch 
) [static]
static int alphanbsd_pc_in_sigtramp ( struct gdbarch gdbarch,
CORE_ADDR  pc,
const char *  func_name 
) [static]

Definition at line 243 of file alphanbsd-tdep.c.

References alphanbsd_sigtramp_offset(), and nbsd_pc_in_sigtramp().

Referenced by alphanbsd_init_abi().

struct regset* alphanbsd_regset_from_core_section ( struct gdbarch gdbarch,
const char *  sect_name,
size_t  sect_size 
) [read]
static CORE_ADDR alphanbsd_sigcontext_addr ( struct frame_info frame) [static]

Definition at line 251 of file alphanbsd-tdep.c.

References get_frame_base(), and get_next_frame().

Referenced by alphanbsd_init_abi().

static LONGEST alphanbsd_sigtramp_offset ( struct gdbarch gdbarch,
CORE_ADDR  pc 
) [static]
static void alphanbsd_supply_fpregset ( const struct regset regset,
struct regcache regcache,
int  regnum,
const void *  fpregs,
size_t  len 
) [static]
static void alphanbsd_supply_gregset ( const struct regset regset,
struct regcache regcache,
int  regnum,
const void *  gregs,
size_t  len 
) [static]

Variable Documentation

struct regset alphanbsd_aout_gregset [static]
Initial value:

Definition at line 156 of file alphanbsd-tdep.c.

Referenced by alphanbsd_regset_from_core_section().

struct regset alphanbsd_fpregset [static]
Initial value:

Definition at line 150 of file alphanbsd-tdep.c.

Referenced by alphanbsd_regset_from_core_section().

struct regset alphanbsd_gregset [static]
Initial value:

Definition at line 144 of file alphanbsd-tdep.c.

Referenced by alphanbsd_regset_from_core_section().

Initial value:
{
  0x00, 0x00, 0x1e, 0xa6,       
  0x10, 0x00, 0xde, 0x23,       
  0x27, 0x01, 0x1f, 0x20,       
  0x83, 0x00, 0x00, 0x00,       
}

Definition at line 202 of file alphanbsd-tdep.c.

Referenced by alphanbsd_sigtramp_offset().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines