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

Go to the source code of this file.

Macros

#define AMD64OBSD_UTHREAD_RSP_OFFSET   400
 
#define amd64obsd_tf_reg_offset   amd64obsd_sc_reg_offset
 

Functions

static void amd64obsd_supply_regset (const struct regset *regset, struct regcache *regcache, int regnum, const void *regs, size_t len)
 
static void amd64obsd_iterate_over_regset_sections (struct gdbarch *gdbarch, iterate_over_regset_sections_cb *cb, void *cb_data, const struct regcache *regcache)
 
static int amd64obsd_sigtramp_p (struct frame_info *this_frame)
 
static CORE_ADDR amd64obsd_sigcontext_addr (struct frame_info *this_frame)
 
static void amd64obsd_supply_uthread (struct regcache *regcache, int regnum, CORE_ADDR addr)
 
static void amd64obsd_collect_uthread (const struct regcache *regcache, int regnum, CORE_ADDR addr)
 
static struct trad_frame_cacheamd64obsd_trapframe_cache (struct frame_info *this_frame, void **this_cache)
 
static void amd64obsd_trapframe_this_id (struct frame_info *this_frame, void **this_cache, struct frame_id *this_id)
 
static struct valueamd64obsd_trapframe_prev_register (struct frame_info *this_frame, void **this_cache, int regnum)
 
static int amd64obsd_trapframe_sniffer (const struct frame_unwind *self, struct frame_info *this_frame, void **this_prologue_cache)
 
static void amd64obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 
static void amd64obsd_core_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 
void _initialize_amd64obsd_tdep (void)
 

Variables

static const struct regset amd64obsd_combined_regset
 
static const int amd64obsd_page_size = 4096
 
int amd64obsd_r_reg_offset []
 
static int amd64obsd_sc_reg_offset []
 
static int amd64obsd_uthread_reg_offset []
 
static const struct frame_unwind amd64obsd_trapframe_unwind
 

Macro Definition Documentation

#define amd64obsd_tf_reg_offset   amd64obsd_sc_reg_offset

Definition at line 352 of file amd64obsd-tdep.c.

Referenced by amd64obsd_trapframe_cache().

#define AMD64OBSD_UTHREAD_RSP_OFFSET   400

Definition at line 255 of file amd64obsd-tdep.c.

Referenced by amd64obsd_collect_uthread(), and amd64obsd_supply_uthread().

Function Documentation

void _initialize_amd64obsd_tdep ( void  )
static void amd64obsd_collect_uthread ( const struct regcache regcache,
int  regnum,
CORE_ADDR  addr 
)
static
static void amd64obsd_core_init_abi ( struct gdbarch_info  info,
struct gdbarch gdbarch 
)
static
static void amd64obsd_init_abi ( struct gdbarch_info  info,
struct gdbarch gdbarch 
)
static
static void amd64obsd_iterate_over_regset_sections ( struct gdbarch gdbarch,
iterate_over_regset_sections_cb cb,
void *  cb_data,
const struct regcache regcache 
)
static
static CORE_ADDR amd64obsd_sigcontext_addr ( struct frame_info this_frame)
static
static int amd64obsd_sigtramp_p ( struct frame_info this_frame)
static
static void amd64obsd_supply_regset ( const struct regset regset,
struct regcache regcache,
int  regnum,
const void *  regs,
size_t  len 
)
static
static void amd64obsd_supply_uthread ( struct regcache regcache,
int  regnum,
CORE_ADDR  addr 
)
static
static struct trad_frame_cache* amd64obsd_trapframe_cache ( struct frame_info this_frame,
void **  this_cache 
)
static
static struct value* amd64obsd_trapframe_prev_register ( struct frame_info this_frame,
void **  this_cache,
int  regnum 
)
static

Definition at line 412 of file amd64obsd-tdep.c.

References amd64obsd_trapframe_cache(), and trad_frame_get_register().

static int amd64obsd_trapframe_sniffer ( const struct frame_unwind self,
struct frame_info this_frame,
void **  this_prologue_cache 
)
static
static void amd64obsd_trapframe_this_id ( struct frame_info this_frame,
void **  this_cache,
struct frame_id this_id 
)
static

Definition at line 402 of file amd64obsd-tdep.c.

References amd64obsd_trapframe_cache(), and trad_frame_get_id().

Variable Documentation

const struct regset amd64obsd_combined_regset
static
Initial value:
=
{
}
static void amd64obsd_supply_regset(const struct regset *regset, struct regcache *regcache, int regnum, const void *regs, size_t len)

Definition at line 55 of file amd64obsd-tdep.c.

const int amd64obsd_page_size = 4096
static

Definition at line 79 of file amd64obsd-tdep.c.

Referenced by amd64obsd_sigcontext_addr(), and amd64obsd_sigtramp_p().

int amd64obsd_r_reg_offset[]
Initial value:
=
{
14 * 8,
13 * 8,
3 * 8,
2 * 8,
1 * 8,
0 * 8,
12 * 8,
15 * 8,
4 * 8,
5 * 8,
6 * 8,
7 * 8,
8 * 8,
9 * 8,
10 * 8,
11 * 8,
16 * 8,
17 * 8,
18 * 8,
19 * 8,
20 * 8,
21 * 8,
22 * 8,
23 * 8
}

Definition at line 167 of file amd64obsd-tdep.c.

Referenced by _initialize_amd64obsd_nat(), _initialize_amd64obsd_tdep(), and amd64obsd_init_abi().

int amd64obsd_sc_reg_offset[]
static
Initial value:
=
{
14 * 8,
13 * 8,
3 * 8,
2 * 8,
1 * 8,
0 * 8,
12 * 8,
24 * 8,
4 * 8,
5 * 8,
6 * 8,
7 * 8,
8 * 8,
9 * 8,
10 * 8,
11 * 8,
21 * 8,
23 * 8,
22 * 8,
25 * 8,
18 * 8,
17 * 8,
16 * 8,
15 * 8
}

Definition at line 196 of file amd64obsd-tdep.c.

Referenced by amd64obsd_init_abi().

const struct frame_unwind amd64obsd_trapframe_unwind
static
Initial value:
= {
NULL,
}
static void amd64obsd_trapframe_this_id(struct frame_info *this_frame, void **this_cache, struct frame_id *this_id)
static int amd64obsd_trapframe_sniffer(const struct frame_unwind *self, struct frame_info *this_frame, void **this_prologue_cache)
static struct value * amd64obsd_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

Definition at line 442 of file amd64obsd-tdep.c.

int amd64obsd_uthread_reg_offset[]
static
Initial value:
=
{
19 * 8,
16 * 8,
18 * 8,
17 * 8,
14 * 8,
13 * 8,
15 * 8,
-1,
12 * 8,
11 * 8,
10 * 8,
9 * 8,
8 * 8,
7 * 8,
6 * 8,
5 * 8,
20 * 8,
4 * 8,
21 * 8,
-1,
3 * 8,
2 * 8,
1 * 8,
0 * 8
}

Definition at line 225 of file amd64obsd-tdep.c.

Referenced by amd64obsd_collect_uthread(), and amd64obsd_supply_uthread().