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

Go to the source code of this file.

Classes

struct  m32r_unwind_cache

Defines

#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 struct frame_unwind m32r_frame_unwind
static struct frame_base m32r_frame_base
static gdbarch_init_ftype m32r_gdbarch_init

Define Documentation

#define DEFAULT_SEARCH_LIMIT   128

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

Referenced by m32r_skip_prologue().


Function Documentation

void _initialize_m32r_tdep ( void  )
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 171 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, read]

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

References frame_id_build(), get_frame_pc(), get_frame_register_unsigned(), M32R_SP_REGNUM, and sp.

Referenced by m32r_gdbarch_init().

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 49 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 880 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, read]
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, read]
static struct gdbarch* m32r_gdbarch_init ( struct gdbarch_info  info,
struct gdbarch_list arches 
) [static, read]
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 663 of file m32r-tdep.c.

References M32R_PC_REGNUM, regcache_cooked_read_unsigned(), and ULONGEST.

Referenced by m32r_gdbarch_init().

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

Definition at line 222 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, read]
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 823 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 671 of file m32r-tdep.c.

References frame_unwind_register_unsigned(), and M32R_SP_REGNUM.

Referenced by m32r_gdbarch_init().


Variable Documentation

struct frame_base m32r_frame_base [static]
Initial value:

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

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

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 214 of file m32r-tdep.c.

Referenced by m32r_register_name().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines