rename old disasm methods: use GAS (GNU assembly) for AT&T syntax naming
This commit is contained in:
parent
22774a0534
commit
bc2e9fb177
@ -409,7 +409,7 @@ x86_insn disassembler::decode(bx_bool is_32, bx_bool is_64, bx_address cs_base,
|
||||
if (intel_mode)
|
||||
print_disassembly_intel(&insn, opcode);
|
||||
else
|
||||
print_disassembly_att (&insn, opcode);
|
||||
print_disassembly_gas (&insn, opcode);
|
||||
|
||||
if (branch_hint == BRANCH_NOT_TAKEN)
|
||||
{
|
||||
|
@ -186,7 +186,7 @@ public:
|
||||
{ return decode(1, 1, cs_base, ip, instr, disbuf); }
|
||||
|
||||
void set_syntax_intel();
|
||||
void set_syntax_att();
|
||||
void set_syntax_gas();
|
||||
|
||||
void set_offset_mode_hex(bx_bool mode) { offset_mode_hex = mode; }
|
||||
void set_mem_datasize_print(bx_bool mode) { print_mem_datasize = mode; }
|
||||
@ -289,7 +289,7 @@ private:
|
||||
const char *seg, const char *base, const char *index, int scale, Bit32s disp);
|
||||
|
||||
void print_disassembly_intel(const x86_insn *insn, const BxDisasmOpcodeInfo_t *entry);
|
||||
void print_disassembly_att (const x86_insn *insn, const BxDisasmOpcodeInfo_t *entry);
|
||||
void print_disassembly_gas (const x86_insn *insn, const BxDisasmOpcodeInfo_t *entry);
|
||||
|
||||
public:
|
||||
|
||||
|
@ -222,7 +222,7 @@ void disassembler::print_disassembly_intel(const x86_insn *insn, const BxDisasmO
|
||||
// AT&T STYLE
|
||||
//////////////////
|
||||
|
||||
void disassembler::set_syntax_att()
|
||||
void disassembler::set_syntax_gas()
|
||||
{
|
||||
intel_mode = 0;
|
||||
|
||||
@ -241,11 +241,11 @@ void disassembler::set_syntax_att()
|
||||
|
||||
void disassembler::toggle_syntax_mode()
|
||||
{
|
||||
if (intel_mode) set_syntax_att();
|
||||
if (intel_mode) set_syntax_gas();
|
||||
else set_syntax_intel();
|
||||
}
|
||||
|
||||
void disassembler::print_disassembly_att(const x86_insn *insn, const BxDisasmOpcodeInfo_t *entry)
|
||||
void disassembler::print_disassembly_gas(const x86_insn *insn, const BxDisasmOpcodeInfo_t *entry)
|
||||
{
|
||||
// print opcode
|
||||
dis_sprintf("%s ", entry->AttOpcode);
|
||||
|
Loading…
Reference in New Issue
Block a user