GDB (xrefs)
Classes | Macros | Functions | Variables
/tmp/gdb-7.10/gdb/m32r-tdep.c File Reference
#include "defs.h"
#include "frame.h"
#include "frame-unwind.h"
#include "frame-base.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "gdbcmd.h"
#include "gdbcore.h"
#include "value.h"
#include "inferior.h"
#include "symfile.h"
#include "objfiles.h"
#include "osabi.h"
#include "language.h"
#include "arch-utils.h"
#include "regcache.h"
#include "trad-frame.h"
#include "dis-asm.h"
#include "m32r-tdep.h"

Go to the source code of this file.

Classes

struct  m32r_unwind_cache
 

Macros

#define DEFAULT_SEARCH_LIMIT   128
 

Functions

void _initialize_m32r_tdep (void)
 
static CORE_ADDR m32r_frame_align (struct gdbarch *gdbarch, CORE_ADDR sp)
 
static int m32r_memory_insert_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
 
static int m32r_memory_remove_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt)
 
static const gdb_bytem32r_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr, int *lenptr)
 
static const char * m32r_register_name (struct gdbarch *gdbarch, int reg_nr)
 
static struct typem32r_register_type (struct gdbarch *gdbarch, int reg_nr)
 
static void m32r_store_return_value (struct type *type, struct regcache *regcache, const void *valbuf)
 
static int decode_prologue (struct gdbarch *gdbarch, CORE_ADDR start_pc, CORE_ADDR scan_limit, CORE_ADDR *pl_endptr, unsigned long *framelength)
 
static CORE_ADDR m32r_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
 
static struct m32r_unwind_cachem32r_frame_unwind_cache (struct frame_info *this_frame, void **this_prologue_cache)
 
static CORE_ADDR m32r_read_pc (struct regcache *regcache)
 
static CORE_ADDR m32r_unwind_sp (struct gdbarch *gdbarch, struct frame_info *next_frame)
 
static CORE_ADDR m32r_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 void m32r_extract_return_value (struct type *type, struct regcache *regcache, void *dst)
 
static enum return_value_convention m32r_return_value (struct gdbarch *gdbarch, struct value *function, struct type *valtype, struct regcache *regcache, gdb_byte *readbuf, const gdb_byte *writebuf)
 
static CORE_ADDR m32r_unwind_pc (struct gdbarch *gdbarch, struct frame_info *next_frame)
 
static void m32r_frame_this_id (struct frame_info *this_frame, void **this_prologue_cache, struct frame_id *this_id)
 
static struct valuem32r_frame_prev_register (struct frame_info *this_frame, void **this_prologue_cache, int regnum)
 
static CORE_ADDR m32r_frame_base_address (struct frame_info *this_frame, void **this_cache)
 
static struct frame_id m32r_dummy_id (struct gdbarch *gdbarch, struct frame_info *this_frame)
 
static struct gdbarchm32r_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
 

Variables

char * m32r_register_names []
 
static const struct frame_unwind m32r_frame_unwind
 
static const struct frame_base m32r_frame_base
 
static gdbarch_init_ftype m32r_gdbarch_init
 

Macro Definition Documentation

#define DEFAULT_SEARCH_LIMIT   128

Definition at line 464 of file m32r-tdep.c.

Referenced by m32r_skip_prologue().

Function Documentation

void _initialize_m32r_tdep ( void  )

Definition at line 968 of file m32r-tdep.c.

References m32r_gdbarch_init, and register_gdbarch_init().

static int decode_prologue ( struct gdbarch gdbarch,
CORE_ADDR  start_pc,
CORE_ADDR  scan_limit,
CORE_ADDR pl_endptr,
unsigned long *  framelength 
)
static
static const gdb_byte* m32r_breakpoint_from_pc ( struct gdbarch gdbarch,
CORE_ADDR pcptr,
int lenptr 
)
static

Definition at line 169 of file m32r-tdep.c.

References gdbarch_byte_order().

Referenced by m32r_gdbarch_init().

static struct frame_id m32r_dummy_id ( struct gdbarch gdbarch,
struct frame_info this_frame 
)
static
static void m32r_extract_return_value ( struct type type,
struct regcache regcache,
void *  dst 
)
static
static CORE_ADDR m32r_frame_align ( struct gdbarch gdbarch,
CORE_ADDR  sp 
)
static

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

Referenced by m32r_gdbarch_init().

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

Definition at line 878 of file m32r-tdep.c.

References m32r_unwind_cache::base, and m32r_frame_unwind_cache().

static struct value* m32r_frame_prev_register ( struct frame_info this_frame,
void **  this_prologue_cache,
int  regnum 
)
static
static void m32r_frame_this_id ( struct frame_info this_frame,
void **  this_prologue_cache,
struct frame_id this_id 
)
static
static struct m32r_unwind_cache* m32r_frame_unwind_cache ( struct frame_info this_frame,
void **  this_prologue_cache 
)
static
static struct gdbarch* m32r_gdbarch_init ( struct gdbarch_info  info,
struct gdbarch_list arches 
)
static
static int m32r_memory_insert_breakpoint ( struct gdbarch gdbarch,
struct bp_target_info bp_tgt 
)
static
static int m32r_memory_remove_breakpoint ( struct gdbarch gdbarch,
struct bp_target_info bp_tgt 
)
static
static CORE_ADDR m32r_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 CORE_ADDR m32r_read_pc ( struct regcache regcache)
static

Definition at line 661 of file m32r-tdep.c.

References M32R_PC_REGNUM, and regcache_cooked_read_unsigned().

Referenced by m32r_gdbarch_init().

static const char* m32r_register_name ( struct gdbarch gdbarch,
int  reg_nr 
)
static

Definition at line 220 of file m32r-tdep.c.

References M32R_NUM_REGS, and m32r_register_names.

Referenced by m32r_gdbarch_init().

static struct type* m32r_register_type ( struct gdbarch gdbarch,
int  reg_nr 
)
static
static enum return_value_convention m32r_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 m32r_skip_prologue ( struct gdbarch gdbarch,
CORE_ADDR  pc 
)
static
static void m32r_store_return_value ( struct type type,
struct regcache regcache,
const void *  valbuf 
)
static
static CORE_ADDR m32r_unwind_pc ( struct gdbarch gdbarch,
struct frame_info next_frame 
)
static

Definition at line 821 of file m32r-tdep.c.

References frame_unwind_register_unsigned(), and M32R_PC_REGNUM.

Referenced by m32r_gdbarch_init().

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

Definition at line 669 of file m32r-tdep.c.

References frame_unwind_register_unsigned(), and M32R_SP_REGNUM.

Referenced by m32r_gdbarch_init().

Variable Documentation

const struct frame_base m32r_frame_base
static
Initial value:
= {
m32r_frame_base_address
}
static const struct frame_unwind m32r_frame_unwind
Definition: m32r-tdep.c:868
static CORE_ADDR m32r_frame_base_address(struct frame_info *this_frame, void **this_cache)
Definition: m32r-tdep.c:878

Definition at line 885 of file m32r-tdep.c.

const struct frame_unwind m32r_frame_unwind
static
Initial value:
= {
NULL,
}
static struct value * m32r_frame_prev_register(struct frame_info *this_frame, void **this_prologue_cache, int regnum)
Definition: m32r-tdep.c:860
int default_frame_sniffer(const struct frame_unwind *self, struct frame_info *this_frame, void **this_prologue_cache)
Definition: frame-unwind.c:170
enum unwind_stop_reason default_frame_unwind_stop_reason(struct frame_info *this_frame, void **this_cache)
Definition: frame-unwind.c:180
static void m32r_frame_this_id(struct frame_info *this_frame, void **this_prologue_cache, struct frame_id *this_id)
Definition: m32r-tdep.c:830

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

gdbarch_init_ftype m32r_gdbarch_init
static

Definition at line 904 of file m32r-tdep.c.

Referenced by _initialize_m32r_tdep().

char* m32r_register_names[]
Initial value:
= {
"r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7",
"r8", "r9", "r10", "r11", "r12", "fp", "lr", "sp",
"psw", "cbr", "spi", "spu", "bpc", "pc", "accl", "acch",
"evb"
}

Definition at line 212 of file m32r-tdep.c.

Referenced by m32r_register_name().