GDB (API)
Defines | Typedefs | Enumerations | Functions | Variables
/home/stan/gdb/src/gdb/cris-tdep.c File Reference
#include "defs.h"
#include "frame.h"
#include "frame-unwind.h"
#include "frame-base.h"
#include "trad-frame.h"
#include "dwarf2-frame.h"
#include "symtab.h"
#include "inferior.h"
#include "gdbtypes.h"
#include "gdbcore.h"
#include "gdbcmd.h"
#include "target.h"
#include "value.h"
#include "opcode/cris.h"
#include "osabi.h"
#include "arch-utils.h"
#include "regcache.h"
#include "gdb_assert.h"
#include "objfiles.h"
#include "solib.h"
#include "solib-svr4.h"
#include "gdb_string.h"
#include "dis-asm.h"
#include "cris-tdep.h"

Go to the source code of this file.

Defines

#define SIGTRAMP_INSN0   0x9c5f /* movu.w 0xXX, $r9 */
#define SIGTRAMP_OFFSET0   0
#define SIGTRAMP_INSN1   0xe93d /* break 13 */
#define SIGTRAMP_OFFSET1   4
#define SIGTRAMP_LEN   (sizeof sigtramp_code)
#define CRISV10_ELF_NGREG   35
#define CRISV32_ELF_NGREG   32

Typedefs

typedef struct
instruction_environment 
inst_env_type
typedef unsigned char cris_elf_greg_t [4]
typedef cris_elf_greg_t cris_elf_gregset_t [CRISV10_ELF_NGREG]
typedef cris_elf_greg_t crisv32_elf_gregset_t [CRISV32_ELF_NGREG]

Enumerations

enum  cris_num_regs { NUM_FREGS = 0, NUM_GENREGS = 16, NUM_SPECREGS = 16, NUM_SUPPREGS = 16 }
enum  cris_regnums {
  CRIS_FP_REGNUM = 8, STR_REGNUM = 9, RET_REGNUM = 10, ARG1_REGNUM = 10,
  ARG2_REGNUM = 11, ARG3_REGNUM = 12, ARG4_REGNUM = 13, VR_REGNUM = 17,
  MOF_REGNUM = 23, SRP_REGNUM = 27, P0_REGNUM = 16, P4_REGNUM = 20,
  CCR_REGNUM = 21, P8_REGNUM = 24, IBR_REGNUM = 25, IRP_REGNUM = 26,
  BAR_REGNUM = 28, DCCR_REGNUM = 29, BRP_REGNUM = 30, USP_REGNUM = 31,
  ACR_REGNUM = 15, BZ_REGNUM = 16, PID_REGNUM = 18, SRS_REGNUM = 19,
  WZ_REGNUM = 20, EXS_REGNUM = 21, EDA_REGNUM = 22, DZ_REGNUM = 24,
  EBP_REGNUM = 25, ERP_REGNUM = 26, NRP_REGNUM = 28, CCS_REGNUM = 29,
  CRISV32USP_REGNUM = 30, SPC_REGNUM = 31, CRISV32PC_REGNUM = 32, S0_REGNUM = 33,
  S1_REGNUM = 34, S2_REGNUM = 35, S3_REGNUM = 36, S4_REGNUM = 37,
  S5_REGNUM = 38, S6_REGNUM = 39, S7_REGNUM = 40, S8_REGNUM = 41,
  S9_REGNUM = 42, S10_REGNUM = 43, S11_REGNUM = 44, S12_REGNUM = 45,
  S13_REGNUM = 46, S14_REGNUM = 47, S15_REGNUM = 48
}
enum  cris_instruction_sizes { INST_BYTE_SIZE = 0, INST_WORD_SIZE = 1, INST_DWORD_SIZE = 2 }
enum  cris_addressing_modes { REGISTER_MODE = 1, INDIRECT_MODE = 2, AUTOINC_MODE = 3 }
enum  cris_prefix_addressing_modes { PREFIX_INDEX_MODE = 2, PREFIX_ASSIGN_MODE = 3, PREFIX_OFFSET_MODE = 2 }
enum  cris_opcode_masks {
  BRANCH_SIGNED_SHORT_OFFSET_MASK = 0x1, SIGNED_EXTEND_BIT_MASK = 0x2, SIGNED_BYTE_MASK = 0x80, SIGNED_BYTE_EXTEND_MASK = 0xFFFFFF00,
  SIGNED_WORD_MASK = 0x8000, SIGNED_WORD_EXTEND_MASK = 0xFFFF0000, SIGNED_DWORD_MASK = 0x80000000, SIGNED_QUICK_VALUE_MASK = 0x20,
  SIGNED_QUICK_VALUE_EXTEND_MASK = 0xFFFFFFC0
}

Functions

void _initialize_cris_tdep (void)

Variables

struct cris_spec_reg cris_spec_regs []
initialize_file_ftype _initialize_cris_tdep

Define Documentation

#define CRISV10_ELF_NGREG   35

Definition at line 3821 of file cris-tdep.c.

#define CRISV32_ELF_NGREG   32

Definition at line 3824 of file cris-tdep.c.

#define SIGTRAMP_INSN0   0x9c5f /* movu.w 0xXX, $r9 */

Definition at line 172 of file cris-tdep.c.

#define SIGTRAMP_INSN1   0xe93d /* break 13 */

Definition at line 174 of file cris-tdep.c.

#define SIGTRAMP_LEN   (sizeof sigtramp_code)

Definition at line 183 of file cris-tdep.c.

#define SIGTRAMP_OFFSET0   0

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

#define SIGTRAMP_OFFSET1   4

Definition at line 175 of file cris-tdep.c.


Typedef Documentation

typedef unsigned char cris_elf_greg_t[4]

Definition at line 3818 of file cris-tdep.c.

Definition at line 3822 of file cris-tdep.c.

Definition at line 3825 of file cris-tdep.c.

typedef struct instruction_environment inst_env_type

Enumeration Type Documentation

Enumerator:
REGISTER_MODE 
INDIRECT_MODE 
AUTOINC_MODE 

Definition at line 504 of file cris-tdep.c.

Enumerator:
INST_BYTE_SIZE 
INST_WORD_SIZE 
INST_DWORD_SIZE 

Definition at line 496 of file cris-tdep.c.

Enumerator:
NUM_FREGS 
NUM_GENREGS 
NUM_SPECREGS 
NUM_SUPPREGS 

Definition at line 51 of file cris-tdep.c.

Enumerator:
BRANCH_SIGNED_SHORT_OFFSET_MASK 
SIGNED_EXTEND_BIT_MASK 
SIGNED_BYTE_MASK 
SIGNED_BYTE_EXTEND_MASK 
SIGNED_WORD_MASK 
SIGNED_WORD_EXTEND_MASK 
SIGNED_DWORD_MASK 
SIGNED_QUICK_VALUE_MASK 
SIGNED_QUICK_VALUE_EXTEND_MASK 

Definition at line 522 of file cris-tdep.c.

Enumerator:
PREFIX_INDEX_MODE 
PREFIX_ASSIGN_MODE 
PREFIX_OFFSET_MODE 

Definition at line 512 of file cris-tdep.c.

Enumerator:
CRIS_FP_REGNUM 
STR_REGNUM 
RET_REGNUM 
ARG1_REGNUM 
ARG2_REGNUM 
ARG3_REGNUM 
ARG4_REGNUM 
VR_REGNUM 
MOF_REGNUM 
SRP_REGNUM 
P0_REGNUM 
P4_REGNUM 
CCR_REGNUM 
P8_REGNUM 
IBR_REGNUM 
IRP_REGNUM 
BAR_REGNUM 
DCCR_REGNUM 
BRP_REGNUM 
USP_REGNUM 
ACR_REGNUM 
BZ_REGNUM 
PID_REGNUM 
SRS_REGNUM 
WZ_REGNUM 
EXS_REGNUM 
EDA_REGNUM 
DZ_REGNUM 
EBP_REGNUM 
ERP_REGNUM 
NRP_REGNUM 
CCS_REGNUM 
CRISV32USP_REGNUM 
SPC_REGNUM 
CRISV32PC_REGNUM 
S0_REGNUM 
S1_REGNUM 
S2_REGNUM 
S3_REGNUM 
S4_REGNUM 
S5_REGNUM 
S6_REGNUM 
S7_REGNUM 
S8_REGNUM 
S9_REGNUM 
S10_REGNUM 
S11_REGNUM 
S12_REGNUM 
S13_REGNUM 
S14_REGNUM 
S15_REGNUM 

Definition at line 81 of file cris-tdep.c.


Function Documentation

void _initialize_cris_tdep ( void  )

Definition at line 3902 of file cris-tdep.c.


Variable Documentation

struct cris_spec_reg cris_spec_regs[]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines