GDB (xrefs)
Classes | Functions | Variables
/tmp/gdb-7.10/gdb/vax-tdep.c File Reference
#include "defs.h"
#include "arch-utils.h"
#include "dis-asm.h"
#include "floatformat.h"
#include "frame.h"
#include "frame-base.h"
#include "frame-unwind.h"
#include "gdbcore.h"
#include "gdbtypes.h"
#include "osabi.h"
#include "regcache.h"
#include "regset.h"
#include "trad-frame.h"
#include "value.h"
#include "vax-tdep.h"

Go to the source code of this file.

Classes

struct  vax_frame_cache
 

Functions

static const char * vax_register_name (struct gdbarch *gdbarch, int regnum)
 
static struct typevax_register_type (struct gdbarch *gdbarch, int regnum)
 
static void vax_supply_gregset (const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t len)
 
static void vax_iterate_over_regset_sections (struct gdbarch *gdbarch, iterate_over_regset_sections_cb *cb, void *cb_data, const struct regcache *regcache)
 
static CORE_ADDR vax_store_arguments (struct regcache *regcache, int nargs, struct value **args, CORE_ADDR sp)
 
static CORE_ADDR vax_push_dummy_call (struct gdbarch *gdbarch, struct value *function, struct regcache *regcache, CORE_ADDR bp_addr, int nargs, struct value **args, CORE_ADDR sp, int struct_return, CORE_ADDR struct_addr)
 
static struct frame_id vax_dummy_id (struct gdbarch *gdbarch, struct frame_info *this_frame)
 
static enum return_value_convention vax_return_value (struct gdbarch *gdbarch, struct value *function, struct type *type, struct regcache *regcache, gdb_byte *readbuf, const gdb_byte *writebuf)
 
static const gdb_bytevax_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pc, int *len)
 
static CORE_ADDR vax_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
 
static struct vax_frame_cachevax_frame_cache (struct frame_info *this_frame, void **this_cache)
 
static void vax_frame_this_id (struct frame_info *this_frame, void **this_cache, struct frame_id *this_id)
 
static struct valuevax_frame_prev_register (struct frame_info *this_frame, void **this_cache, int regnum)
 
static CORE_ADDR vax_frame_base_address (struct frame_info *this_frame, void **this_cache)
 
static CORE_ADDR vax_frame_args_address (struct frame_info *this_frame, void **this_cache)
 
static int vax_frame_num_args (struct frame_info *frame)
 
static CORE_ADDR vax_unwind_pc (struct gdbarch *gdbarch, struct frame_info *next_frame)
 
static struct gdbarchvax_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
 
void _initialize_vax_tdep (void)
 

Variables

static const struct regset vax_gregset
 
static const struct frame_unwind vax_frame_unwind
 
static const struct frame_base vax_frame_base
 

Function Documentation

void _initialize_vax_tdep ( void  )

Definition at line 527 of file vax-tdep.c.

References gdbarch_register(), and vax_gdbarch_init().

static const gdb_byte* vax_breakpoint_from_pc ( struct gdbarch gdbarch,
CORE_ADDR pc,
int len 
)
static

Definition at line 256 of file vax-tdep.c.

Referenced by vax_gdbarch_init().

static struct frame_id vax_dummy_id ( struct gdbarch gdbarch,
struct frame_info this_frame 
)
static

Definition at line 192 of file vax-tdep.c.

References frame_id_build(), get_frame_pc(), get_frame_register_unsigned(), and VAX_FP_REGNUM.

Referenced by vax_gdbarch_init().

static CORE_ADDR vax_frame_args_address ( struct frame_info this_frame,
void **  this_cache 
)
static

Definition at line 416 of file vax-tdep.c.

References get_frame_register_unsigned(), and VAX_AP_REGNUM.

static CORE_ADDR vax_frame_base_address ( struct frame_info this_frame,
void **  this_cache 
)
static

Definition at line 408 of file vax-tdep.c.

References vax_frame_cache::base, and vax_frame_cache().

static struct vax_frame_cache* vax_frame_cache ( struct frame_info this_frame,
void **  this_cache 
)
static
static int vax_frame_num_args ( struct frame_info frame)
static
static struct value* vax_frame_prev_register ( struct frame_info this_frame,
void **  this_cache,
int  regnum 
)
static
static void vax_frame_this_id ( struct frame_info this_frame,
void **  this_cache,
struct frame_id this_id 
)
static
static struct gdbarch* vax_gdbarch_init ( struct gdbarch_info  info,
struct gdbarch_list arches 
)
static
static void vax_iterate_over_regset_sections ( struct gdbarch gdbarch,
iterate_over_regset_sections_cb cb,
void *  cb_data,
const struct regcache regcache 
)
static

Definition at line 95 of file vax-tdep.c.

References VAX_NUM_REGS.

Referenced by vax_gdbarch_init().

static CORE_ADDR vax_push_dummy_call ( struct gdbarch gdbarch,
struct value function,
struct regcache regcache,
CORE_ADDR  bp_addr,
int  nargs,
struct value **  args,
CORE_ADDR  sp,
int  struct_return,
CORE_ADDR  struct_addr 
)
static
static const char* vax_register_name ( struct gdbarch gdbarch,
int  regnum 
)
static

Definition at line 40 of file vax-tdep.c.

References regnum.

Referenced by vax_gdbarch_init().

static struct type* vax_register_type ( struct gdbarch gdbarch,
int  regnum 
)
static

Definition at line 59 of file vax-tdep.c.

References builtin_type::builtin_int, and builtin_type().

Referenced by vax_gdbarch_init().

static enum return_value_convention vax_return_value ( struct gdbarch gdbarch,
struct value function,
struct type type,
struct regcache regcache,
gdb_byte readbuf,
const gdb_byte writebuf 
)
static
static CORE_ADDR vax_skip_prologue ( struct gdbarch gdbarch,
CORE_ADDR  pc 
)
static

Definition at line 268 of file vax-tdep.c.

References gdbarch_byte_order(), and read_memory_unsigned_integer().

Referenced by vax_gdbarch_init().

static CORE_ADDR vax_store_arguments ( struct regcache regcache,
int  nargs,
struct value **  args,
CORE_ADDR  sp 
)
static
static void vax_supply_gregset ( const struct regset regset,
struct regcache regcache,
int  regnum,
const void *  gregs,
size_t  len 
)
static

Definition at line 71 of file vax-tdep.c.

References regcache_raw_supply(), and VAX_NUM_REGS.

static CORE_ADDR vax_unwind_pc ( struct gdbarch gdbarch,
struct frame_info next_frame 
)
static

Definition at line 446 of file vax-tdep.c.

References frame_unwind_register_unsigned(), and VAX_PC_REGNUM.

Referenced by vax_gdbarch_init().

Variable Documentation

const struct frame_base vax_frame_base
static
Initial value:
=
{
}
static CORE_ADDR vax_frame_args_address(struct frame_info *this_frame, void **this_cache)
Definition: vax-tdep.c:416
static CORE_ADDR vax_frame_base_address(struct frame_info *this_frame, void **this_cache)
Definition: vax-tdep.c:408
static const struct frame_unwind vax_frame_unwind
Definition: vax-tdep.c:396

Definition at line 421 of file vax-tdep.c.

const struct frame_unwind vax_frame_unwind
static
Initial value:
=
{
NULL,
}
static void vax_frame_this_id(struct frame_info *this_frame, void **this_cache, struct frame_id *this_id)
Definition: vax-tdep.c:375
int default_frame_sniffer(const struct frame_unwind *self, struct frame_info *this_frame, void **this_prologue_cache)
Definition: frame-unwind.c:170
static struct value * vax_frame_prev_register(struct frame_info *this_frame, void **this_cache, int regnum)
Definition: vax-tdep.c:388
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 396 of file vax-tdep.c.

const struct regset vax_gregset
static
Initial value:
=
{
NULL,
}
static void vax_supply_gregset(const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t len)
Definition: vax-tdep.c:71

Definition at line 86 of file vax-tdep.c.