GDB (API)
Classes | Defines | Enumerations | Functions | Variables
/home/stan/gdb/src/gdb/i386-tdep.h File Reference

Go to the source code of this file.

Classes

struct  gdbarch_tdep

Defines

#define I386_NUM_GREGS   16
#define I386_NUM_XREGS   9
#define I386_SSE_NUM_REGS   (I386_MXCSR_REGNUM + 1)
#define I386_AVX_NUM_REGS   (I386_YMM7H_REGNUM + 1)
#define I386_MAX_REGISTER_SIZE   16
#define I386_SEL_RPL   0x0003 /* Requester's Privilege Level mask. */
#define I386_SEL_UPL   0x0003 /* User Privilige Level. */
#define I386_SEL_KPL   0x0000 /* Kernel Privilige Level. */
#define I386_MAX_INSN_LEN   (16)

Enumerations

enum  struct_return {
  pcc_struct_return, reg_struct_return, pcc_struct_return, reg_struct_return,
  pcc_struct_return, reg_struct_return
}
enum  i386_regnum {
  I386_EAX_REGNUM, I386_ECX_REGNUM, I386_EDX_REGNUM, I386_EBX_REGNUM,
  I386_ESP_REGNUM, I386_EBP_REGNUM, I386_ESI_REGNUM, I386_EDI_REGNUM,
  I386_EIP_REGNUM, I386_EFLAGS_REGNUM, I386_CS_REGNUM, I386_SS_REGNUM,
  I386_DS_REGNUM, I386_ES_REGNUM, I386_FS_REGNUM, I386_GS_REGNUM,
  I386_ST0_REGNUM, I386_MXCSR_REGNUM = 40, I386_YMM0H_REGNUM, I386_YMM7H_REGNUM = I386_YMM0H_REGNUM + 7
}
enum  record_i386_regnum {
  X86_RECORD_REAX_REGNUM, X86_RECORD_RECX_REGNUM, X86_RECORD_REDX_REGNUM, X86_RECORD_REBX_REGNUM,
  X86_RECORD_RESP_REGNUM, X86_RECORD_REBP_REGNUM, X86_RECORD_RESI_REGNUM, X86_RECORD_REDI_REGNUM,
  X86_RECORD_R8_REGNUM, X86_RECORD_R9_REGNUM, X86_RECORD_R10_REGNUM, X86_RECORD_R11_REGNUM,
  X86_RECORD_R12_REGNUM, X86_RECORD_R13_REGNUM, X86_RECORD_R14_REGNUM, X86_RECORD_R15_REGNUM,
  X86_RECORD_REIP_REGNUM, X86_RECORD_EFLAGS_REGNUM, X86_RECORD_CS_REGNUM, X86_RECORD_SS_REGNUM,
  X86_RECORD_DS_REGNUM, X86_RECORD_ES_REGNUM, X86_RECORD_FS_REGNUM, X86_RECORD_GS_REGNUM
}

Functions

int i386_fp_regnum_p (struct gdbarch *, int)
int i386_fpc_regnum_p (struct gdbarch *, int)
struct typei387_ext_type (struct gdbarch *gdbarch)
int i386_byte_regnum_p (struct gdbarch *gdbarch, int regnum)
int i386_word_regnum_p (struct gdbarch *gdbarch, int regnum)
int i386_dword_regnum_p (struct gdbarch *gdbarch, int regnum)
int i386_xmm_regnum_p (struct gdbarch *gdbarch, int regnum)
int i386_ymm_regnum_p (struct gdbarch *gdbarch, int regnum)
const char * i386_pseudo_register_name (struct gdbarch *gdbarch, int regnum)
struct typei386_pseudo_register_type (struct gdbarch *gdbarch, int regnum)
void i386_pseudo_register_read_into_value (struct gdbarch *gdbarch, struct regcache *regcache, int regnum, struct value *result)
void i386_pseudo_register_write (struct gdbarch *gdbarch, struct regcache *regcache, int regnum, const gdb_byte *buf)
CORE_ADDR i386_pe_skip_trampoline_code (struct frame_info *frame, CORE_ADDR pc, char *name)
CORE_ADDR i386_skip_main_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
int i386_sigtramp_p (struct frame_info *this_frame)
int i386_register_reggroup_p (struct gdbarch *gdbarch, int regnum, struct reggroup *group)
void i386_supply_gregset (const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t len)
void i386_collect_gregset (const struct regset *regset, const struct regcache *regcache, int regnum, void *gregs, size_t len)
struct regseti386_regset_from_core_section (struct gdbarch *gdbarch, const char *sect_name, size_t sect_size)
struct displaced_step_closure * i386_displaced_step_copy_insn (struct gdbarch *gdbarch, CORE_ADDR from, CORE_ADDR to, struct regcache *regs)
void i386_displaced_step_fixup (struct gdbarch *gdbarch, struct displaced_step_closure *closure, CORE_ADDR from, CORE_ADDR to, struct regcache *regs)
void i386_elf_init_abi (struct gdbarch_info, struct gdbarch *)
void i386_svr4_init_abi (struct gdbarch_info, struct gdbarch *)
int i386_process_record (struct gdbarch *gdbarch, struct regcache *regcache, CORE_ADDR addr)
void i386bsd_init_abi (struct gdbarch_info, struct gdbarch *)
int i386_stap_is_single_operand (struct gdbarch *gdbarch, const char *s)
int i386_stap_parse_special_token (struct gdbarch *gdbarch, struct stap_parse_info *p)

Variables

CORE_ADDR i386fbsd_sigtramp_start_addr
CORE_ADDR i386fbsd_sigtramp_end_addr
CORE_ADDR i386obsd_sigtramp_start_addr
CORE_ADDR i386obsd_sigtramp_end_addr
int i386fbsd4_sc_reg_offset []
int i386fbsd_sc_reg_offset []
int i386nbsd_sc_reg_offset []
int i386obsd_sc_reg_offset []
int i386bsd_sc_reg_offset []

Define Documentation

Definition at line 252 of file i386-tdep.h.

#define I386_MAX_INSN_LEN   (16)

Definition at line 288 of file i386-tdep.h.

#define I386_MAX_REGISTER_SIZE   16

Definition at line 255 of file i386-tdep.h.

#define I386_NUM_GREGS   16

Definition at line 248 of file i386-tdep.h.

#define I386_NUM_XREGS   9

Definition at line 249 of file i386-tdep.h.

#define I386_SEL_KPL   0x0000 /* Kernel Privilige Level. */

Definition at line 284 of file i386-tdep.h.

#define I386_SEL_RPL   0x0003 /* Requester's Privilege Level mask. */

Definition at line 282 of file i386-tdep.h.

#define I386_SEL_UPL   0x0003 /* User Privilige Level. */

Definition at line 283 of file i386-tdep.h.

Definition at line 251 of file i386-tdep.h.


Enumeration Type Documentation

Enumerator:
I386_EAX_REGNUM 
I386_ECX_REGNUM 
I386_EDX_REGNUM 
I386_EBX_REGNUM 
I386_ESP_REGNUM 
I386_EBP_REGNUM 
I386_ESI_REGNUM 
I386_EDI_REGNUM 
I386_EIP_REGNUM 
I386_EFLAGS_REGNUM 
I386_CS_REGNUM 
I386_SS_REGNUM 
I386_DS_REGNUM 
I386_ES_REGNUM 
I386_FS_REGNUM 
I386_GS_REGNUM 
I386_ST0_REGNUM 
I386_MXCSR_REGNUM 
I386_YMM0H_REGNUM 
I386_YMM7H_REGNUM 

Definition at line 194 of file i386-tdep.h.

Enumerator:
X86_RECORD_REAX_REGNUM 
X86_RECORD_RECX_REGNUM 
X86_RECORD_REDX_REGNUM 
X86_RECORD_REBX_REGNUM 
X86_RECORD_RESP_REGNUM 
X86_RECORD_REBP_REGNUM 
X86_RECORD_RESI_REGNUM 
X86_RECORD_REDI_REGNUM 
X86_RECORD_R8_REGNUM 
X86_RECORD_R9_REGNUM 
X86_RECORD_R10_REGNUM 
X86_RECORD_R11_REGNUM 
X86_RECORD_R12_REGNUM 
X86_RECORD_R13_REGNUM 
X86_RECORD_R14_REGNUM 
X86_RECORD_R15_REGNUM 
X86_RECORD_REIP_REGNUM 
X86_RECORD_EFLAGS_REGNUM 
X86_RECORD_CS_REGNUM 
X86_RECORD_SS_REGNUM 
X86_RECORD_DS_REGNUM 
X86_RECORD_ES_REGNUM 
X86_RECORD_FS_REGNUM 
X86_RECORD_GS_REGNUM 

Definition at line 220 of file i386-tdep.h.

Enumerator:
pcc_struct_return 
reg_struct_return 
pcc_struct_return 
reg_struct_return 
pcc_struct_return 
reg_struct_return 

Definition at line 49 of file i386-tdep.h.


Function Documentation

int i386_byte_regnum_p ( struct gdbarch *  gdbarch,
int  regnum 
)

Definition at line 143 of file i386-tdep.c.

void i386_collect_gregset ( const struct regset regset,
const struct regcache *  regcache,
int  regnum,
void *  gregs,
size_t  len 
)

Definition at line 3218 of file i386-tdep.c.

struct displaced_step_closure* i386_displaced_step_copy_insn ( struct gdbarch *  gdbarch,
CORE_ADDR  from,
CORE_ADDR  to,
struct regcache *  regs 
) [read]

Definition at line 550 of file i386-tdep.c.

void i386_displaced_step_fixup ( struct gdbarch *  gdbarch,
struct displaced_step_closure *  closure,
CORE_ADDR  from,
CORE_ADDR  to,
struct regcache *  regs 
)

Definition at line 587 of file i386-tdep.c.

int i386_dword_regnum_p ( struct gdbarch *  gdbarch,
int  regnum 
)

Definition at line 165 of file i386-tdep.c.

void i386_elf_init_abi ( struct gdbarch_info  ,
struct gdbarch *   
)

Definition at line 3772 of file i386-tdep.c.

int i386_fp_regnum_p ( struct gdbarch *  ,
int   
)

Definition at line 234 of file i386-tdep.c.

int i386_fpc_regnum_p ( struct gdbarch *  ,
int   
)

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

CORE_ADDR i386_pe_skip_trampoline_code ( struct frame_info *  frame,
CORE_ADDR  pc,
char *  name 
)

Definition at line 3342 of file i386-tdep.c.

int i386_process_record ( struct gdbarch *  gdbarch,
struct regcache *  regcache,
CORE_ADDR  addr 
)

Definition at line 4342 of file i386-tdep.c.

const char* i386_pseudo_register_name ( struct gdbarch *  gdbarch,
int  regnum 
)

Definition at line 273 of file i386-tdep.c.

void i386_pseudo_register_read_into_value ( struct gdbarch *  gdbarch,
struct regcache *  regcache,
int  regnum,
struct value *  result 
)

Definition at line 2896 of file i386-tdep.c.

struct type* i386_pseudo_register_type ( struct gdbarch *  gdbarch,
int  regnum 
) [read]

Definition at line 2852 of file i386-tdep.c.

void i386_pseudo_register_write ( struct gdbarch *  gdbarch,
struct regcache *  regcache,
int  regnum,
const gdb_byte buf 
)

Definition at line 2994 of file i386-tdep.c.

int i386_register_reggroup_p ( struct gdbarch *  gdbarch,
int  regnum,
struct reggroup *  group 
)

Definition at line 3864 of file i386-tdep.c.

struct regset* i386_regset_from_core_section ( struct gdbarch *  gdbarch,
const char *  sect_name,
size_t  sect_size 
) [read]

Definition at line 3302 of file i386-tdep.c.

int i386_sigtramp_p ( struct frame_info *  this_frame)

Definition at line 3373 of file i386-tdep.c.

CORE_ADDR i386_skip_main_prologue ( struct gdbarch *  gdbarch,
CORE_ADDR  pc 
)

Definition at line 1675 of file i386-tdep.c.

int i386_stap_is_single_operand ( struct gdbarch *  gdbarch,
const char *  s 
)

Definition at line 3445 of file i386-tdep.c.

int i386_stap_parse_special_token ( struct gdbarch *  gdbarch,
struct stap_parse_info p 
)

Definition at line 3457 of file i386-tdep.c.

void i386_supply_gregset ( const struct regset regset,
struct regcache *  regcache,
int  regnum,
const void *  gregs,
size_t  len 
)

Definition at line 3195 of file i386-tdep.c.

void i386_svr4_init_abi ( struct gdbarch_info  ,
struct gdbarch *   
)

Definition at line 3791 of file i386-tdep.c.

int i386_word_regnum_p ( struct gdbarch *  gdbarch,
int  regnum 
)

Definition at line 154 of file i386-tdep.c.

int i386_xmm_regnum_p ( struct gdbarch *  gdbarch,
int  regnum 
)

Definition at line 208 of file i386-tdep.c.

int i386_ymm_regnum_p ( struct gdbarch *  gdbarch,
int  regnum 
)

Definition at line 193 of file i386-tdep.c.

void i386bsd_init_abi ( struct gdbarch_info  ,
struct gdbarch *   
)

Definition at line 77 of file i386bsd-tdep.c.

struct type* i387_ext_type ( struct gdbarch *  gdbarch) [read]

Definition at line 2740 of file i386-tdep.c.


Variable Documentation

Definition at line 56 of file i386bsd-tdep.c.

Definition at line 184 of file i386fbsd-tdep.c.

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

Definition at line 48 of file i386fbsd-tdep.c.

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

Definition at line 61 of file i386nbsd-tdep.c.

Definition at line 181 of file i386obsd-tdep.c.

Definition at line 178 of file i386obsd-tdep.c.

Definition at line 177 of file i386obsd-tdep.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines