GDB (API)
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  gdbarch_tdep

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)
void _initialize_m32c_tdep (void)

Variables

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.

#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.

#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.

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

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

#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.

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

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

#define M32C_MAX_DWARF_REGNUM   (40)

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

#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.

#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.

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

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

#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.

#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.

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

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

#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.

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

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

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

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


Function Documentation

void _initialize_m32c_tdep ( void  )

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

enum register_status() m32c_move_reg_t ( struct m32c_reg *  reg,
struct regcache *  cache,
void *  buf 
)

Variable Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines