GDB (xrefs)
Classes | Defines | Functions | Variables
/home/stan/gdb/src/gdb/m32c-tdep.c File Reference
#include "defs.h"
#include <stdarg.h>
#include "gdb_assert.h"
#include "elf-bfd.h"
#include "elf/m32c.h"
#include "gdb/sim-m32c.h"
#include "dis-asm.h"
#include "gdbtypes.h"
#include "regcache.h"
#include "arch-utils.h"
#include "frame.h"
#include "frame-unwind.h"
#include "dwarf2-frame.h"
#include "dwarf2expr.h"
#include "symtab.h"
#include "gdbcore.h"
#include "value.h"
#include "reggroups.h"
#include "prologue-value.h"
#include "target.h"

Go to the source code of this file.

Classes

struct  m32c_reg
struct  gdbarch_tdep
struct  m32c_prologue
struct  m32c_pv_state
struct  srcdest

Defines

#define M32C_MAX_NUM_REGS   (75)
#define M32C_MAX_DWARF_REGNUM   (40)
#define FLAGBIT_B   0x0010
#define FLAGBIT_U   0x0080
#define R(name, type, sim_num)
#define SIM(name)   (m32c_sim_reg_ ## name)
#define R16U(name)   (R(#name, tdep->uint16, SIM (name)))
#define RA(name)   (R(#name, tdep->data_addr_reg_type, SIM (name)))
#define RC(name)   (R(#name, tdep->code_addr_reg_type, SIM (name)))
#define RP(name, type)
#define RBD(name)
#define RBA(name)
#define CB(name, raw_pair)
#define CHL(name, type)
#define CCAT(high, low, type)
#define G(reg)   (mark_general (reg))
#define S(reg)   (mark_system (reg))
#define DMA(reg)   (mark_dma (reg))
#define M32C_MAX_INSN_LEN   (9)

Functions

enum register_status() m32c_move_reg_t (struct m32c_reg *reg, struct regcache *cache, void *buf)
static void make_types (struct gdbarch *arch)
static const char * m32c_register_name (struct gdbarch *gdbarch, int num)
static struct typem32c_register_type (struct gdbarch *arch, int reg_nr)
static int m32c_register_sim_regno (struct gdbarch *gdbarch, int reg_nr)
static int m32c_debug_info_reg_to_regnum (struct gdbarch *gdbarch, int reg_nr)
static int m32c_register_reggroup_p (struct gdbarch *gdbarch, int regnum, struct reggroup *group)
static enum register_status m32c_raw_read (struct m32c_reg *reg, struct regcache *cache, void *buf)
static enum register_status m32c_raw_write (struct m32c_reg *reg, struct regcache *cache, void *buf)
static int m32c_read_flg (struct regcache *cache)
static struct m32c_regm32c_banked_register (struct m32c_reg *reg, struct regcache *cache)
static enum register_status m32c_banked_read (struct m32c_reg *reg, struct regcache *cache, void *buf)
static enum register_status m32c_banked_write (struct m32c_reg *reg, struct regcache *cache, void *buf)
static enum register_status m32c_sb_read (struct m32c_reg *reg, struct regcache *cache, void *buf)
static enum register_status m32c_sb_write (struct m32c_reg *reg, struct regcache *cache, void *buf)
static void m32c_find_part (struct m32c_reg *reg, int *offset_p, int *len_p)
static enum register_status m32c_part_read (struct m32c_reg *reg, struct regcache *cache, void *buf)
static enum register_status m32c_part_write (struct m32c_reg *reg, struct regcache *cache, void *buf)
static enum register_status m32c_cat_read (struct m32c_reg *reg, struct regcache *cache, void *buf)
static enum register_status m32c_cat_write (struct m32c_reg *reg, struct regcache *cache, void *buf)
static enum register_status m32c_r3r2r1r0_read (struct m32c_reg *reg, struct regcache *cache, void *buf)
static enum register_status m32c_r3r2r1r0_write (struct m32c_reg *reg, struct regcache *cache, void *buf)
static enum register_status m32c_pseudo_register_read (struct gdbarch *arch, struct regcache *cache, int cookednum, gdb_byte *buf)
static void m32c_pseudo_register_write (struct gdbarch *arch, struct regcache *cache, int cookednum, const gdb_byte *buf)
static struct m32c_regadd_reg (struct gdbarch *arch, const char *name, struct type *type, int sim_num, m32c_move_reg_t *read, m32c_move_reg_t *write, struct m32c_reg *rx, struct m32c_reg *ry, int n)
static void set_dwarf_regnum (struct m32c_reg *reg, int num)
static struct m32c_regmark_general (struct m32c_reg *reg)
static struct m32c_regmark_dma (struct m32c_reg *reg)
static struct m32c_regmark_system (struct m32c_reg *reg)
static struct m32c_regmark_save_restore (struct m32c_reg *reg)
static void make_regs (struct gdbarch *arch)
static const unsigned char * m32c_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pc, int *len)
static int m32c_pv_push (struct m32c_pv_state *state, pv_t value, int size)
static pv_t m32c_srcdest_fetch (struct m32c_pv_state *state, struct srcdest loc, int size)
static int m32c_srcdest_store (struct m32c_pv_state *state, struct srcdest loc, pv_t value, int size)
static int m32c_sign_ext (int v, int bits)
static unsigned int m32c_next_byte (struct m32c_pv_state *st)
static int m32c_udisp8 (struct m32c_pv_state *st)
static int m32c_sdisp8 (struct m32c_pv_state *st)
static int m32c_udisp16 (struct m32c_pv_state *st)
static int m32c_sdisp16 (struct m32c_pv_state *st)
static int m32c_udisp24 (struct m32c_pv_state *st)
static int m32c_get_src23 (unsigned char *i)
static int m32c_get_dest23 (unsigned char *i)
static struct srcdest m32c_decode_srcdest4 (struct m32c_pv_state *st, int code, int size)
static struct srcdest m32c_decode_sd23 (struct m32c_pv_state *st, int code, int size, int ind)
static int m32c_pv_enter (struct m32c_pv_state *state, int size)
static int m32c_pv_pushm_one (struct m32c_pv_state *state, pv_t reg, int bit, int src, int size)
static int m32c_pv_pushm (struct m32c_pv_state *state, int src)
static int m32c_is_1st_arg_reg (struct m32c_pv_state *state, pv_t value)
static int m32c_is_arg_reg (struct m32c_pv_state *state, pv_t value)
static int m32c_is_arg_spill (struct m32c_pv_state *st, struct srcdest loc, pv_t value)
static int m32c_is_struct_return (struct m32c_pv_state *st, struct srcdest loc, pv_t value)
static int m32c_pushm_is_reg_save (struct m32c_pv_state *st, int src)
static void check_for_saved (void *prologue_untyped, pv_t addr, CORE_ADDR size, pv_t value)
static void m32c_analyze_prologue (struct gdbarch *arch, CORE_ADDR start, CORE_ADDR limit, struct m32c_prologue *prologue)
static CORE_ADDR m32c_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR ip)
static struct m32c_prologuem32c_analyze_frame_prologue (struct frame_info *this_frame, void **this_prologue_cache)
static CORE_ADDR m32c_frame_base (struct frame_info *this_frame, void **this_prologue_cache)
static void m32c_this_id (struct frame_info *this_frame, void **this_prologue_cache, struct frame_id *this_id)
static struct valuem32c_prev_register (struct frame_info *this_frame, void **this_prologue_cache, int regnum)
static CORE_ADDR m32c_unwind_pc (struct gdbarch *arch, struct frame_info *next_frame)
static CORE_ADDR m32c_unwind_sp (struct gdbarch *arch, struct frame_info *next_frame)
static int m32c_reg_arg_type (struct type *type)
static CORE_ADDR m32c_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 m32c_dummy_id (struct gdbarch *gdbarch, struct frame_info *this_frame)
static int m32c_return_by_passed_buf (struct type *type)
static enum return_value_convention m32c_return_value (struct gdbarch *gdbarch, struct value *function, struct type *valtype, struct regcache *regcache, gdb_byte *readbuf, const gdb_byte *writebuf)
static CORE_ADDR m32c_skip_trampoline_code (struct frame_info *frame, CORE_ADDR stop_pc)
static void m32c_m16c_address_to_pointer (struct gdbarch *gdbarch, struct type *type, gdb_byte *buf, CORE_ADDR addr)
static CORE_ADDR m32c_m16c_pointer_to_address (struct gdbarch *gdbarch, struct type *type, const gdb_byte *buf)
static void m32c_virtual_frame_pointer (struct gdbarch *gdbarch, CORE_ADDR pc, int *frame_regnum, LONGEST *frame_offset)
static struct gdbarchm32c_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
void _initialize_m32c_tdep (void)

Variables

static struct reggroupm32c_dma_reggroup
static m32c_move_reg_t m32c_raw_read
static m32c_move_reg_t m32c_raw_write
static m32c_move_reg_t m32c_banked_read
static m32c_move_reg_t m32c_banked_write
static m32c_move_reg_t m32c_sb_read
static m32c_move_reg_t m32c_sb_write
static m32c_move_reg_t m32c_part_read
static m32c_move_reg_t m32c_part_write
static m32c_move_reg_t m32c_cat_read
static m32c_move_reg_t m32c_cat_write
static m32c_move_reg_t m32c_r3r2r1r0_read
static m32c_move_reg_t m32c_r3r2r1r0_write
static struct frame_unwind m32c_unwind
initialize_file_ftype _initialize_m32c_tdep

Define Documentation

#define CB (   name,
  raw_pair 
)
Value:
(add_reg (arch, #name, (raw_pair)->type, 0,             \
            m32c_banked_read, m32c_banked_write,        \
            (raw_pair), (raw_pair + 1), FLAGBIT_B))

Definition at line 781 of file m32c-tdep.c.

Referenced by make_regs().

#define CCAT (   high,
  low,
  type 
)
Value:
(add_reg (arch, #high #low, (type), 0,                  \
            m32c_cat_read, m32c_cat_write, (high), (low), 0))

Definition at line 797 of file m32c-tdep.c.

Referenced by make_regs().

#define CHL (   name,
  type 
)
Value:
(add_reg (arch, #name "h", (type), 0,                                   \
            m32c_part_read, m32c_part_write, name, NULL, 1),            \
   add_reg (arch, #name "l", (type), 0,                                 \
            m32c_part_read, m32c_part_write, name, NULL, 0) - 1)

Definition at line 789 of file m32c-tdep.c.

Referenced by make_regs().

#define DMA (   reg)    (mark_dma (reg))

Definition at line 804 of file m32c-tdep.c.

Referenced by make_regs().

#define FLAGBIT_B   0x0010

Definition at line 729 of file m32c-tdep.c.

#define FLAGBIT_U   0x0080

Definition at line 730 of file m32c-tdep.c.

Referenced by make_regs().

#define G (   reg)    (mark_general (reg))

Definition at line 802 of file m32c-tdep.c.

Referenced by make_regs().

#define M32C_MAX_DWARF_REGNUM   (40)

Definition at line 105 of file m32c-tdep.c.

Referenced by m32c_debug_info_reg_to_regnum().

#define M32C_MAX_INSN_LEN   (9)

Definition at line 1075 of file m32c-tdep.c.

#define M32C_MAX_NUM_REGS   (75)

Definition at line 102 of file m32c-tdep.c.

Referenced by add_reg(), m32c_analyze_prologue(), and set_dwarf_regnum().

#define R (   name,
  type,
  sim_num 
)
Value:
(add_reg (arch, (name), (type), (sim_num),                      \
            m32c_raw_read, m32c_raw_write, NULL, NULL, 0))

Definition at line 737 of file m32c-tdep.c.

#define R16U (   name)    (R(#name, tdep->uint16, SIM (name)))

Definition at line 746 of file m32c-tdep.c.

Referenced by make_regs().

#define RA (   name)    (R(#name, tdep->data_addr_reg_type, SIM (name)))

Definition at line 751 of file m32c-tdep.c.

Referenced by make_regs().

#define RBA (   name)
Value:
(R(NULL, tdep->data_addr_reg_type, SIM (name ## _bank0)),       \
   R(NULL, tdep->data_addr_reg_type, SIM (name ## _bank1)) - 1)

Definition at line 773 of file m32c-tdep.c.

Referenced by make_regs().

#define RBD (   name)
Value:
(R(NULL, tdep->int16, SIM (name ## _bank0)),            \
   R(NULL, tdep->int16, SIM (name ## _bank1)) - 1)

Definition at line 767 of file m32c-tdep.c.

Referenced by make_regs().

#define RC (   name)    (R(#name, tdep->code_addr_reg_type, SIM (name)))

Definition at line 756 of file m32c-tdep.c.

Referenced by make_regs().

#define RP (   name,
  type 
)
Value:
(R(#name "0", (type), SIM (name ## 0)), \
   R(#name "1", (type), SIM (name ## 1)) - 1)

Definition at line 761 of file m32c-tdep.c.

Referenced by make_regs().

#define S (   reg)    (mark_system (reg))

Definition at line 803 of file m32c-tdep.c.

Referenced by make_regs().

#define SIM (   name)    (m32c_sim_reg_ ## name)

Definition at line 742 of file m32c-tdep.c.


Function Documentation

void _initialize_m32c_tdep ( void  )
static struct m32c_reg* add_reg ( struct gdbarch arch,
const char *  name,
struct type type,
int  sim_num,
m32c_move_reg_t read,
m32c_move_reg_t write,
struct m32c_reg rx,
struct m32c_reg ry,
int  n 
) [static, read]
static void check_for_saved ( void *  prologue_untyped,
pv_t  addr,
CORE_ADDR  size,
pv_t  value 
) [static]
static struct m32c_prologue* m32c_analyze_frame_prologue ( struct frame_info this_frame,
void **  this_prologue_cache 
) [static, read]
static void m32c_analyze_prologue ( struct gdbarch arch,
CORE_ADDR  start,
CORE_ADDR  limit,
struct m32c_prologue prologue 
) [static]
static enum register_status m32c_banked_read ( struct m32c_reg reg,
struct regcache cache,
void *  buf 
) [static]

Definition at line 358 of file m32c-tdep.c.

References m32c_banked_register(), m32c_reg::num, and regcache_raw_read().

static struct m32c_reg* m32c_banked_register ( struct m32c_reg reg,
struct regcache cache 
) [static, read]
static enum register_status m32c_banked_write ( struct m32c_reg reg,
struct regcache cache,
void *  buf 
) [static]

Definition at line 370 of file m32c-tdep.c.

References m32c_banked_register(), m32c_reg::num, REG_VALID, and regcache_raw_write().

static const unsigned char* m32c_breakpoint_from_pc ( struct gdbarch gdbarch,
CORE_ADDR pc,
int len 
) [static]

Definition at line 1008 of file m32c-tdep.c.

Referenced by m32c_gdbarch_init().

static enum register_status m32c_cat_read ( struct m32c_reg reg,
struct regcache cache,
void *  buf 
) [static]
static enum register_status m32c_cat_write ( struct m32c_reg reg,
struct regcache cache,
void *  buf 
) [static]
static int m32c_debug_info_reg_to_regnum ( struct gdbarch gdbarch,
int  reg_nr 
) [static]

Definition at line 253 of file m32c-tdep.c.

References gdbarch_tdep::dwarf_regs, gdbarch_tdep(), M32C_MAX_DWARF_REGNUM, and m32c_reg::num.

Referenced by make_regs().

static struct srcdest m32c_decode_sd23 ( struct m32c_pv_state st,
int  code,
int  size,
int  ind 
) [static, read]
static struct srcdest m32c_decode_srcdest4 ( struct m32c_pv_state st,
int  code,
int  size 
) [static, read]
static struct frame_id m32c_dummy_id ( struct gdbarch gdbarch,
struct frame_info this_frame 
) [static, read]
static void m32c_find_part ( struct m32c_reg reg,
int offset_p,
int len_p 
) [static]
static CORE_ADDR m32c_frame_base ( struct frame_info this_frame,
void **  this_prologue_cache 
) [static]
static struct gdbarch* m32c_gdbarch_init ( struct gdbarch_info  info,
struct gdbarch_list arches 
) [static, read]
static int m32c_get_dest23 ( unsigned char *  i) [static]

Definition at line 1228 of file m32c-tdep.c.

Referenced by m32c_analyze_prologue().

static int m32c_get_src23 ( unsigned char *  i) [static]

Definition at line 1219 of file m32c-tdep.c.

Referenced by m32c_analyze_prologue().

static int m32c_is_1st_arg_reg ( struct m32c_pv_state state,
pv_t  value 
) [static]
static int m32c_is_arg_reg ( struct m32c_pv_state state,
pv_t  value 
) [static]
static int m32c_is_arg_spill ( struct m32c_pv_state st,
struct srcdest  loc,
pv_t  value 
) [static]
static int m32c_is_struct_return ( struct m32c_pv_state st,
struct srcdest  loc,
pv_t  value 
) [static]
static void m32c_m16c_address_to_pointer ( struct gdbarch gdbarch,
struct type type,
gdb_byte buf,
CORE_ADDR  addr 
) [static]
static CORE_ADDR m32c_m16c_pointer_to_address ( struct gdbarch gdbarch,
struct type type,
const gdb_byte buf 
) [static]
enum register_status() m32c_move_reg_t ( struct m32c_reg reg,
struct regcache cache,
void *  buf 
)
static unsigned int m32c_next_byte ( struct m32c_pv_state st) [static]
static enum register_status m32c_part_read ( struct m32c_reg reg,
struct regcache cache,
void *  buf 
) [static]
static enum register_status m32c_part_write ( struct m32c_reg reg,
struct regcache cache,
void *  buf 
) [static]
static struct value* m32c_prev_register ( struct frame_info this_frame,
void **  this_prologue_cache,
int  regnum 
) [static, read]
static enum register_status m32c_pseudo_register_read ( struct gdbarch arch,
struct regcache cache,
int  cookednum,
gdb_byte buf 
) [static]
static void m32c_pseudo_register_write ( struct gdbarch arch,
struct regcache cache,
int  cookednum,
const gdb_byte buf 
) [static]
static CORE_ADDR m32c_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 int m32c_pushm_is_reg_save ( struct m32c_pv_state st,
int  src 
) [static]
static int m32c_pv_enter ( struct m32c_pv_state state,
int  size 
) [static]
static int m32c_pv_push ( struct m32c_pv_state state,
pv_t  value,
int  size 
) [static]
static int m32c_pv_pushm ( struct m32c_pv_state state,
int  src 
) [static]
static int m32c_pv_pushm_one ( struct m32c_pv_state state,
pv_t  reg,
int  bit,
int  src,
int  size 
) [static]

Definition at line 1377 of file m32c-tdep.c.

References m32c_pv_push().

Referenced by m32c_pv_pushm().

static enum register_status m32c_r3r2r1r0_read ( struct m32c_reg reg,
struct regcache cache,
void *  buf 
) [static]
static enum register_status m32c_r3r2r1r0_write ( struct m32c_reg reg,
struct regcache cache,
void *  buf 
) [static]
static enum register_status m32c_raw_read ( struct m32c_reg reg,
struct regcache cache,
void *  buf 
) [static]

Definition at line 318 of file m32c-tdep.c.

References m32c_reg::num, and regcache_raw_read().

static enum register_status m32c_raw_write ( struct m32c_reg reg,
struct regcache cache,
void *  buf 
) [static]

Definition at line 326 of file m32c-tdep.c.

References m32c_reg::num, REG_VALID, and regcache_raw_write().

static int m32c_read_flg ( struct regcache cache) [static]
static int m32c_reg_arg_type ( struct type type) [static]
static const char* m32c_register_name ( struct gdbarch gdbarch,
int  num 
) [static]

Definition at line 232 of file m32c-tdep.c.

References gdbarch_tdep(), m32c_reg::name, and gdbarch_tdep::regs.

Referenced by make_regs().

static int m32c_register_reggroup_p ( struct gdbarch gdbarch,
int  regnum,
struct reggroup group 
) [static]
static int m32c_register_sim_regno ( struct gdbarch gdbarch,
int  reg_nr 
) [static]

Definition at line 246 of file m32c-tdep.c.

References gdbarch_tdep(), gdbarch_tdep::regs, and m32c_reg::sim_num.

Referenced by make_regs().

static struct type* m32c_register_type ( struct gdbarch arch,
int  reg_nr 
) [static, read]

Definition at line 239 of file m32c-tdep.c.

References gdbarch_tdep(), gdbarch_tdep::regs, and m32c_reg::type.

Referenced by make_regs().

static int m32c_return_by_passed_buf ( struct type type) [static]

Definition at line 2199 of file m32c-tdep.c.

References code, TYPE_CODE, TYPE_CODE_STRUCT, and TYPE_CODE_UNION.

Referenced by m32c_return_value().

static enum return_value_convention m32c_return_value ( struct gdbarch gdbarch,
struct value function,
struct type valtype,
struct regcache regcache,
gdb_byte readbuf,
const gdb_byte writebuf 
) [static]
static enum register_status m32c_sb_read ( struct m32c_reg reg,
struct regcache cache,
void *  buf 
) [static]
static enum register_status m32c_sb_write ( struct m32c_reg reg,
struct regcache cache,
void *  buf 
) [static]
static int m32c_sdisp16 ( struct m32c_pv_state st) [static]

Definition at line 1197 of file m32c-tdep.c.

References m32c_next_byte(), and m32c_sign_ext().

Referenced by m32c_decode_sd23().

static int m32c_sdisp8 ( struct m32c_pv_state st) [static]

Definition at line 1180 of file m32c-tdep.c.

References m32c_next_byte(), and m32c_sign_ext().

Referenced by m32c_decode_sd23(), and m32c_decode_srcdest4().

static int m32c_sign_ext ( int  v,
int  bits 
) [static]

Definition at line 1159 of file m32c-tdep.c.

Referenced by m32c_sdisp16(), and m32c_sdisp8().

static CORE_ADDR m32c_skip_prologue ( struct gdbarch gdbarch,
CORE_ADDR  ip 
) [static]
static CORE_ADDR m32c_skip_trampoline_code ( struct frame_info frame,
CORE_ADDR  stop_pc 
) [static]
static pv_t m32c_srcdest_fetch ( struct m32c_pv_state state,
struct srcdest  loc,
int  size 
) [static]
static int m32c_srcdest_store ( struct m32c_pv_state state,
struct srcdest  loc,
pv_t  value,
int  size 
) [static]
static void m32c_this_id ( struct frame_info this_frame,
void **  this_prologue_cache,
struct frame_id this_id 
) [static]

Definition at line 1923 of file m32c-tdep.c.

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

static int m32c_udisp16 ( struct m32c_pv_state st) [static]

Definition at line 1187 of file m32c-tdep.c.

References m32c_next_byte().

Referenced by m32c_analyze_prologue(), m32c_decode_sd23(), and m32c_decode_srcdest4().

static int m32c_udisp24 ( struct m32c_pv_state st) [static]

Definition at line 1207 of file m32c-tdep.c.

References m32c_next_byte().

Referenced by m32c_analyze_prologue(), and m32c_decode_sd23().

static int m32c_udisp8 ( struct m32c_pv_state st) [static]

Definition at line 1173 of file m32c-tdep.c.

References m32c_next_byte().

Referenced by m32c_decode_sd23(), and m32c_decode_srcdest4().

static CORE_ADDR m32c_unwind_pc ( struct gdbarch arch,
struct frame_info next_frame 
) [static]
static CORE_ADDR m32c_unwind_sp ( struct gdbarch arch,
struct frame_info next_frame 
) [static]
static void m32c_virtual_frame_pointer ( struct gdbarch gdbarch,
CORE_ADDR  pc,
int frame_regnum,
LONGEST frame_offset 
) [static]
static void make_regs ( struct gdbarch arch) [static]

Definition at line 809 of file m32c-tdep.c.

References gdbarch_tdep::a0, gdbarch_tdep::a1, add_reg(), all_reggroup, CB, CCAT, CHL, gdbarch_tdep::data_addr_reg_type, DMA, gdbarch_tdep::dwarf_regs, gdbarch_tdep::fb, FLAGBIT_U, gdbarch_tdep::flg, G, gdbarch_bfd_arch_info(), gdbarch_tdep(), general_reggroup, gdbarch_tdep::int16, gdbarch_tdep::int32, gdbarch_tdep::int64, gdbarch_tdep::int8, m32c_banked_read, m32c_banked_write, m32c_debug_info_reg_to_regnum(), m32c_pseudo_register_read(), m32c_pseudo_register_write(), m32c_r3r2r1r0_read, m32c_r3r2r1r0_write, m32c_register_name(), m32c_register_reggroup_p(), m32c_register_sim_regno(), m32c_register_type(), m32c_sb_read, m32c_sb_write, mark_save_restore(), memset(), m32c_reg::num, gdbarch_tdep::num_regs, gdbarch_tdep::pc, gdbarch_tdep::r0, gdbarch_tdep::r1, R16U, gdbarch_tdep::r2, gdbarch_tdep::r2r0, gdbarch_tdep::r3, gdbarch_tdep::r3r1r2r0, gdbarch_tdep::r3r2r1r0, RA, RBA, RBD, RC, reggroup_add(), restore_reggroup, RP, S, save_reggroup, gdbarch_tdep::sb, set_dwarf_regnum(), set_gdbarch_dwarf2_reg_to_regnum(), set_gdbarch_num_pseudo_regs(), set_gdbarch_num_regs(), set_gdbarch_pc_regnum(), set_gdbarch_pseudo_register_read(), set_gdbarch_pseudo_register_write(), set_gdbarch_register_name(), set_gdbarch_register_reggroup_p(), set_gdbarch_register_sim_regno(), set_gdbarch_register_type(), set_gdbarch_sp_regnum(), set_gdbarch_stab_reg_to_regnum(), gdbarch_tdep::sp, sp, system_reggroup, m32c_reg::type, gdbarch_tdep::uint16, and gdbarch_tdep::uint8.

Referenced by m32c_gdbarch_init().

static void make_types ( struct gdbarch arch) [static]
static struct m32c_reg* mark_dma ( struct m32c_reg reg) [static, read]

Definition at line 704 of file m32c-tdep.c.

References m32c_reg::dma_p.

static struct m32c_reg* mark_general ( struct m32c_reg reg) [static, read]

Definition at line 695 of file m32c-tdep.c.

References m32c_reg::general_p.

static struct m32c_reg* mark_save_restore ( struct m32c_reg reg) [static, read]

Definition at line 722 of file m32c-tdep.c.

References m32c_reg::save_restore_p.

Referenced by make_regs().

static struct m32c_reg* mark_system ( struct m32c_reg reg) [static, read]

Definition at line 713 of file m32c-tdep.c.

References m32c_reg::system_p.

static void set_dwarf_regnum ( struct m32c_reg reg,
int  num 
) [static]

Variable Documentation

Definition at line 309 of file m32c-tdep.c.

Referenced by m32c_sb_read(), and make_regs().

Definition at line 309 of file m32c-tdep.c.

Referenced by m32c_sb_write(), and make_regs().

Definition at line 312 of file m32c-tdep.c.

Definition at line 312 of file m32c-tdep.c.

struct reggroup* m32c_dma_reggroup [static]

Definition at line 50 of file m32c-tdep.c.

Definition at line 311 of file m32c-tdep.c.

Definition at line 311 of file m32c-tdep.c.

Definition at line 313 of file m32c-tdep.c.

Referenced by make_regs().

Definition at line 313 of file m32c-tdep.c.

Referenced by make_regs().

Definition at line 308 of file m32c-tdep.c.

Referenced by m32c_sb_read().

Definition at line 308 of file m32c-tdep.c.

Referenced by m32c_sb_write().

Definition at line 310 of file m32c-tdep.c.

Referenced by make_regs().

Definition at line 310 of file m32c-tdep.c.

Referenced by make_regs().

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