update tools.disassembler.udis structs

db4
Joe Groff 2009-09-18 17:57:50 -05:00
parent e6bc708882
commit 36fc70160d
1 changed files with 53 additions and 52 deletions

View File

@ -4,7 +4,8 @@ USING: tools.disassembler namespaces combinators
alien alien.syntax alien.c-types lexer parser kernel alien alien.syntax alien.c-types lexer parser kernel
sequences layouts math math.order alien.libraries sequences layouts math math.order alien.libraries
math.parser system make fry arrays libc destructors math.parser system make fry arrays libc destructors
tools.disassembler.utils splitting alien.data ; tools.disassembler.utils splitting alien.data
classes.struct ;
IN: tools.disassembler.udis IN: tools.disassembler.udis
<< <<
@ -17,57 +18,57 @@ IN: tools.disassembler.udis
LIBRARY: libudis86 LIBRARY: libudis86
C-STRUCT: ud_operand STRUCT: ud_operand
{ "int" "type" } { type int }
{ "uchar" "size" } { size uchar }
{ "ulonglong" "lval" } { lval ulonglong }
{ "int" "base" } { base int }
{ "int" "index" } { index int }
{ "uchar" "offset" } { offset uchar }
{ "uchar" "scale" } ; { scale uchar } ;
C-STRUCT: ud STRUCT: ud
{ "void*" "inp_hook" } { inp_hook void* }
{ "uchar" "inp_curr" } { inp_curr uchar }
{ "uchar" "inp_fill" } { inp_fill uchar }
{ "FILE*" "inp_file" } { inp_file FILE* }
{ "uchar" "inp_ctr" } { inp_ctr uchar }
{ "uchar*" "inp_buff" } { inp_buff uchar* }
{ "uchar*" "inp_buff_end" } { inp_buff_end uchar* }
{ "uchar" "inp_end" } { inp_end uchar }
{ "void*" "translator" } { translator void* }
{ "ulonglong" "insn_offset" } { insn_offset ulonglong }
{ "char[32]" "insn_hexcode" } { insn_hexcode char[32] }
{ "char[64]" "insn_buffer" } { insn_buffer char[64] }
{ "uint" "insn_fill" } { insn_fill uint }
{ "uchar" "dis_mode" } { dis_mode uchar }
{ "ulonglong" "pc" } { pc ulonglong }
{ "uchar" "vendor" } { vendor uchar }
{ "struct map_entry*" "mapen" } { mapen void* }
{ "int" "mnemonic" } { mnemonic int }
{ "ud_operand[3]" "operand" } { operand ud_operand[3] }
{ "uchar" "error" } { error uchar }
{ "uchar" "pfx_rex" } { pfx_rex uchar }
{ "uchar" "pfx_seg" } { pfx_seg uchar }
{ "uchar" "pfx_opr" } { pfx_opr uchar }
{ "uchar" "pfx_adr" } { pfx_adr uchar }
{ "uchar" "pfx_lock" } { pfx_lock uchar }
{ "uchar" "pfx_rep" } { pfx_rep uchar }
{ "uchar" "pfx_repe" } { pfx_repe uchar }
{ "uchar" "pfx_repne" } { pfx_repne uchar }
{ "uchar" "pfx_insn" } { pfx_insn uchar }
{ "uchar" "default64" } { default64 uchar }
{ "uchar" "opr_mode" } { opr_mode uchar }
{ "uchar" "adr_mode" } { adr_mode uchar }
{ "uchar" "br_far" } { br_far uchar }
{ "uchar" "br_near" } { br_near uchar }
{ "uchar" "implicit_addr" } { implicit_addr uchar }
{ "uchar" "c1" } { c1 uchar }
{ "uchar" "c2" } { c2 uchar }
{ "uchar" "c3" } { c3 uchar }
{ "uchar[256]" "inp_cache" } { inp_cache uchar[256] }
{ "uchar[64]" "inp_sess" } { inp_sess uchar[64] }
{ "ud_itab_entry*" "itab_entry" } ; { itab_entry ud_itab_entry* } ;
FUNCTION: void ud_translate_intel ( ud* u ) ; FUNCTION: void ud_translate_intel ( ud* u ) ;
FUNCTION: void ud_translate_att ( ud* u ) ; FUNCTION: void ud_translate_att ( ud* u ) ;
@ -98,7 +99,7 @@ FUNCTION: uint ud_insn_len ( ud* u ) ;
FUNCTION: char* ud_lookup_mnemonic ( int c ) ; FUNCTION: char* ud_lookup_mnemonic ( int c ) ;
: <ud> ( -- ud ) : <ud> ( -- ud )
"ud" malloc-object &free ud malloc-struct &free
dup ud_init dup ud_init
dup cell-bits ud_set_mode dup cell-bits ud_set_mode
dup UD_SYN_INTEL ud_set_syntax ; dup UD_SYN_INTEL ud_set_syntax ;