GDB (xrefs)
Macros | Functions | Variables
/tmp/gdb-7.10/gdb/sparc64obsd-tdep.c File Reference
#include "defs.h"
#include "frame.h"
#include "frame-unwind.h"
#include "gdbcore.h"
#include "osabi.h"
#include "regcache.h"
#include "regset.h"
#include "symtab.h"
#include "objfiles.h"
#include "trad-frame.h"
#include "obsd-tdep.h"
#include "sparc64-tdep.h"
#include "solib-svr4.h"
#include "bsd-uthread.h"

Go to the source code of this file.

Macros

#define SPARC64OBSD_UTHREAD_FP_OFFSET   232
 
#define SPARC64OBSD_UTHREAD_PC_OFFSET   240
 

Functions

static void sparc64obsd_supply_gregset (const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t len)
 
static void sparc64obsd_supply_fpregset (const struct regset *regset, struct regcache *regcache, int regnum, const void *fpregs, size_t len)
 
static int sparc64obsd_pc_in_sigtramp (CORE_ADDR pc, const char *name)
 
static struct sparc_frame_cachesparc64obsd_frame_cache (struct frame_info *this_frame, void **this_cache)
 
static void sparc64obsd_frame_this_id (struct frame_info *this_frame, void **this_cache, struct frame_id *this_id)
 
static struct valuesparc64obsd_frame_prev_register (struct frame_info *this_frame, void **this_cache, int regnum)
 
static int sparc64obsd_sigtramp_frame_sniffer (const struct frame_unwind *self, struct frame_info *this_frame, void **this_cache)
 
static struct sparc_frame_cachesparc64obsd_trapframe_cache (struct frame_info *this_frame, void **this_cache)
 
static void sparc64obsd_trapframe_this_id (struct frame_info *this_frame, void **this_cache, struct frame_id *this_id)
 
static struct valuesparc64obsd_trapframe_prev_register (struct frame_info *this_frame, void **this_cache, int regnum)
 
static int sparc64obsd_trapframe_sniffer (const struct frame_unwind *self, struct frame_info *this_frame, void **this_cache)
 
static void sparc64obsd_supply_uthread (struct regcache *regcache, int regnum, CORE_ADDR addr)
 
static void sparc64obsd_collect_uthread (const struct regcache *regcache, int regnum, CORE_ADDR addr)
 
static void sparc64obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 
void _initialize_sparc64obsd_tdep (void)
 

Variables

const struct sparc_gregmap sparc64obsd_gregmap
 
const struct sparc_gregmap sparc64obsd_core_gregmap
 
static const int sparc64obsd_page_size = 8192
 
static const int sparc64obsd_sigreturn_offset []
 
static const struct frame_unwind sparc64obsd_frame_unwind
 
static const struct frame_unwind sparc64obsd_trapframe_unwind
 
static const struct regset sparc64obsd_gregset
 
static const struct regset sparc64obsd_fpregset
 

Macro Definition Documentation

#define SPARC64OBSD_UTHREAD_FP_OFFSET   232

Definition at line 319 of file sparc64obsd-tdep.c.

Referenced by sparc64obsd_collect_uthread(), and sparc64obsd_supply_uthread().

#define SPARC64OBSD_UTHREAD_PC_OFFSET   240

Definition at line 320 of file sparc64obsd-tdep.c.

Referenced by sparc64obsd_collect_uthread(), and sparc64obsd_supply_uthread().

Function Documentation

void _initialize_sparc64obsd_tdep ( void  )
static void sparc64obsd_collect_uthread ( const struct regcache regcache,
int  regnum,
CORE_ADDR  addr 
)
static
static struct sparc_frame_cache* sparc64obsd_frame_cache ( struct frame_info this_frame,
void **  this_cache 
)
static
static struct value* sparc64obsd_frame_prev_register ( struct frame_info this_frame,
void **  this_cache,
int  regnum 
)
static
static void sparc64obsd_frame_this_id ( struct frame_info this_frame,
void **  this_cache,
struct frame_id this_id 
)
static
static void sparc64obsd_init_abi ( struct gdbarch_info  info,
struct gdbarch gdbarch 
)
static
static int sparc64obsd_pc_in_sigtramp ( CORE_ADDR  pc,
const char *  name 
)
static
static int sparc64obsd_sigtramp_frame_sniffer ( const struct frame_unwind self,
struct frame_info this_frame,
void **  this_cache 
)
static
static void sparc64obsd_supply_fpregset ( const struct regset regset,
struct regcache regcache,
int  regnum,
const void *  fpregs,
size_t  len 
)
static

Definition at line 91 of file sparc64obsd-tdep.c.

References sparc64_bsd_fpregmap, and sparc64_supply_fpregset().

static void sparc64obsd_supply_gregset ( const struct regset regset,
struct regcache regcache,
int  regnum,
const void *  gregs,
size_t  len 
)
static
static void sparc64obsd_supply_uthread ( struct regcache regcache,
int  regnum,
CORE_ADDR  addr 
)
static
static struct sparc_frame_cache* sparc64obsd_trapframe_cache ( struct frame_info this_frame,
void **  this_cache 
)
static
static struct value* sparc64obsd_trapframe_prev_register ( struct frame_info this_frame,
void **  this_cache,
int  regnum 
)
static
static int sparc64obsd_trapframe_sniffer ( const struct frame_unwind self,
struct frame_info this_frame,
void **  this_cache 
)
static
static void sparc64obsd_trapframe_this_id ( struct frame_info this_frame,
void **  this_cache,
struct frame_id this_id 
)
static

Variable Documentation

const struct sparc_gregmap sparc64obsd_core_gregmap
Initial value:
=
{
0 * 8,
1 * 8,
2 * 8,
3 * 8,
-1,
-1,
7 * 8,
22 * 8,
4
}

Definition at line 60 of file sparc64obsd-tdep.c.

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

Definition at line 409 of file sparc64obsd-tdep.c.

Referenced by sparc64obsd_init_abi().

const struct frame_unwind sparc64obsd_frame_unwind
static
Initial value:
=
{
NULL,
}
static struct value * sparc64obsd_frame_prev_register(struct frame_info *this_frame, void **this_cache, int regnum)
static int sparc64obsd_sigtramp_frame_sniffer(const struct frame_unwind *self, struct frame_info *this_frame, void **this_cache)
static void sparc64obsd_frame_this_id(struct frame_info *this_frame, void **this_cache, struct frame_id *this_id)
enum unwind_stop_reason default_frame_unwind_stop_reason(struct frame_info *this_frame, void **this_cache)
Definition: frame-unwind.c:180

Definition at line 222 of file sparc64obsd-tdep.c.

const struct sparc_gregmap sparc64obsd_gregmap
Initial value:
=
{
0 * 8,
1 * 8,
2 * 8,
3 * 8,
-1,
-1,
5 * 8,
20 * 8,
4
}

Definition at line 47 of file sparc64obsd-tdep.c.

const struct regset sparc64obsd_gregset
static
Initial value:
=
{
}
static void sparc64obsd_supply_gregset(const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t len)

Definition at line 404 of file sparc64obsd-tdep.c.

Referenced by sparc64obsd_init_abi().

const int sparc64obsd_page_size = 8192
static

Definition at line 113 of file sparc64obsd-tdep.c.

Referenced by sparc64obsd_frame_cache(), and sparc64obsd_pc_in_sigtramp().

const int sparc64obsd_sigreturn_offset[]
static
Initial value:
= {
0xf0,
0xec,
0xe8,
-1
}

Definition at line 116 of file sparc64obsd-tdep.c.

Referenced by sparc64obsd_pc_in_sigtramp().

const struct frame_unwind sparc64obsd_trapframe_unwind
static
Initial value:
=
{
NULL,
}
static int sparc64obsd_trapframe_sniffer(const struct frame_unwind *self, struct frame_info *this_frame, void **this_cache)
static struct value * sparc64obsd_trapframe_prev_register(struct frame_info *this_frame, void **this_cache, int regnum)
enum unwind_stop_reason default_frame_unwind_stop_reason(struct frame_info *this_frame, void **this_cache)
Definition: frame-unwind.c:180
static void sparc64obsd_trapframe_this_id(struct frame_info *this_frame, void **this_cache, struct frame_id *this_id)

Definition at line 305 of file sparc64obsd-tdep.c.