GDB (xrefs)
Defines | Functions | Variables
/home/stan/gdb/src/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 "gdb_assert.h"
#include "gdb_string.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.

Defines

#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 struct regsetamd64obsd_regset_from_core_section (struct gdbarch *gdbarch, const char *sect_name, size_t sect_size)
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 int amd64obsd_page_size = 4096
int amd64obsd_r_reg_offset []
static int amd64obsd_sc_reg_offset []
static int amd64obsd_uthread_reg_offset []
static struct frame_unwind amd64obsd_trapframe_unwind

Define Documentation

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

Referenced by amd64obsd_trapframe_cache().

#define AMD64OBSD_UTHREAD_RSP_OFFSET   400

Definition at line 256 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 struct regset* amd64obsd_regset_from_core_section ( struct gdbarch gdbarch,
const char *  sect_name,
size_t  sect_size 
) [static, read]
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, read]
static struct value* amd64obsd_trapframe_prev_register ( struct frame_info this_frame,
void **  this_cache,
int  regnum 
) [static, read]

Definition at line 413 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 403 of file amd64obsd-tdep.c.

References amd64obsd_trapframe_cache(), and trad_frame_get_id().


Variable Documentation

const int amd64obsd_page_size = 4096 [static]

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

Referenced by amd64obsd_sigcontext_addr(), and amd64obsd_sigtramp_p().

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 168 of file amd64obsd-tdep.c.

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

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 197 of file amd64obsd-tdep.c.

Referenced by amd64obsd_init_abi().

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 226 of file amd64obsd-tdep.c.

Referenced by amd64obsd_collect_uthread(), and amd64obsd_supply_uthread().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines