GDB (xrefs)
Classes | Enumerations | Functions | Variables
/home/stan/gdb/src/gdb/rx-tdep.c File Reference
#include "defs.h"
#include "arch-utils.h"
#include "prologue-value.h"
#include "target.h"
#include "regcache.h"
#include "opcode/rx.h"
#include "dis-asm.h"
#include "gdbtypes.h"
#include "frame.h"
#include "frame-unwind.h"
#include "frame-base.h"
#include "value.h"
#include "gdbcore.h"
#include "dwarf2-frame.h"
#include "elf/rx.h"
#include "elf-bfd.h"

Go to the source code of this file.

Classes

struct  gdbarch_tdep
struct  rx_prologue
struct  rx_get_opcode_byte_handle

Enumerations

enum  {
  RX_SP_REGNUM = 0, RX_R1_REGNUM = 1, RX_R4_REGNUM = 4, RX_FP_REGNUM = 6,
  RX_R15_REGNUM = 15, RX_PC_REGNUM = 19, RX_ACC_REGNUM = 25, RX_NUM_REGS = 26
}

Functions

static const char * rx_register_name (struct gdbarch *gdbarch, int regnr)
static struct typerx_register_type (struct gdbarch *gdbarch, int reg_nr)
static void check_for_saved (void *result_untyped, pv_t addr, CORE_ADDR size, pv_t value)
static int rx_get_opcode_byte (void *handle)
static void rx_analyze_prologue (CORE_ADDR start_pc, CORE_ADDR limit_pc, struct rx_prologue *result)
static CORE_ADDR rx_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
static struct rx_prologuerx_analyze_frame_prologue (struct frame_info *this_frame, void **this_prologue_cache)
static CORE_ADDR rx_frame_base (struct frame_info *this_frame, void **this_prologue_cache)
static void rx_frame_this_id (struct frame_info *this_frame, void **this_prologue_cache, struct frame_id *this_id)
static struct valuerx_frame_prev_register (struct frame_info *this_frame, void **this_prologue_cache, int regnum)
static CORE_ADDR rx_unwind_pc (struct gdbarch *gdbarch, struct frame_info *this_frame)
static CORE_ADDR rx_unwind_sp (struct gdbarch *gdbarch, struct frame_info *this_frame)
static struct frame_id rx_dummy_id (struct gdbarch *gdbarch, struct frame_info *this_frame)
static CORE_ADDR rx_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 enum return_value_convention rx_return_value (struct gdbarch *gdbarch, struct value *function, struct type *valtype, struct regcache *regcache, gdb_byte *readbuf, const gdb_byte *writebuf)
static const gdb_byterx_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr, int *lenptr)
static struct gdbarchrx_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
void _initialize_rx_tdep (void)

Variables

static struct frame_unwind rx_frame_unwind
initialize_file_ftype _initialize_rx_tdep

Enumeration Type Documentation

anonymous enum
Enumerator:
RX_SP_REGNUM 
RX_R1_REGNUM 
RX_R4_REGNUM 
RX_FP_REGNUM 
RX_R15_REGNUM 
RX_PC_REGNUM 
RX_ACC_REGNUM 
RX_NUM_REGS 

Definition at line 41 of file rx-tdep.c.


Function Documentation

void _initialize_rx_tdep ( void  )

Definition at line 868 of file rx-tdep.c.

References _initialize_rx_tdep, register_gdbarch_init(), and rx_gdbarch_init().

static void check_for_saved ( void *  result_untyped,
pv_t  addr,
CORE_ADDR  size,
pv_t  value 
) [static]
static struct rx_prologue* rx_analyze_frame_prologue ( struct frame_info this_frame,
void **  this_prologue_cache 
) [static, read]
static void rx_analyze_prologue ( CORE_ADDR  start_pc,
CORE_ADDR  limit_pc,
struct rx_prologue result 
) [static]
static const gdb_byte* rx_breakpoint_from_pc ( struct gdbarch gdbarch,
CORE_ADDR pcptr,
int lenptr 
) [static]

Definition at line 760 of file rx-tdep.c.

Referenced by rx_gdbarch_init().

static struct frame_id rx_dummy_id ( struct gdbarch gdbarch,
struct frame_info this_frame 
) [static, read]

Definition at line 487 of file rx-tdep.c.

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

Referenced by rx_gdbarch_init().

static CORE_ADDR rx_frame_base ( struct frame_info this_frame,
void **  this_prologue_cache 
) [static]
static struct value* rx_frame_prev_register ( struct frame_info this_frame,
void **  this_prologue_cache,
int  regnum 
) [static, read]
static void rx_frame_this_id ( struct frame_info this_frame,
void **  this_prologue_cache,
struct frame_id this_id 
) [static]

Definition at line 424 of file rx-tdep.c.

References frame_id_build(), get_frame_func(), and rx_frame_base().

static struct gdbarch* rx_gdbarch_init ( struct gdbarch_info  info,
struct gdbarch_list arches 
) [static, read]
static int rx_get_opcode_byte ( void *  handle) [static]

Definition at line 173 of file rx-tdep.c.

References rx_get_opcode_byte_handle::pc, exsummary::status, and target_read_memory().

Referenced by rx_analyze_prologue().

static CORE_ADDR rx_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* rx_register_name ( struct gdbarch gdbarch,
int  regnr 
) [static]

Definition at line 96 of file rx-tdep.c.

Referenced by rx_gdbarch_init().

static struct type* rx_register_type ( struct gdbarch gdbarch,
int  reg_nr 
) [static, read]
static enum return_value_convention rx_return_value ( struct gdbarch gdbarch,
struct value function,
struct type valtype,
struct regcache regcache,
gdb_byte readbuf,
const gdb_byte writebuf 
) [static]
static CORE_ADDR rx_skip_prologue ( struct gdbarch gdbarch,
CORE_ADDR  pc 
) [static]

Definition at line 354 of file rx-tdep.c.

References find_pc_partial_function(), name, rx_prologue::prologue_end, and rx_analyze_prologue().

Referenced by rx_gdbarch_init().

static CORE_ADDR rx_unwind_pc ( struct gdbarch gdbarch,
struct frame_info this_frame 
) [static]

Definition at line 467 of file rx-tdep.c.

References frame_unwind_register_unsigned(), RX_PC_REGNUM, and ULONGEST.

Referenced by rx_gdbarch_init().

static CORE_ADDR rx_unwind_sp ( struct gdbarch gdbarch,
struct frame_info this_frame 
) [static]

Definition at line 477 of file rx-tdep.c.

References frame_unwind_register_unsigned(), RX_SP_REGNUM, sp, and ULONGEST.

Referenced by rx_gdbarch_init().


Variable Documentation

struct frame_unwind rx_frame_unwind [static]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines