diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2014-12-16 14:54:18 +0000 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2014-12-16 14:54:18 +0000 |
commit | 6a0b920512b72542b3f1a3d232fba7ded45ea455 (patch) | |
tree | 9fb25c9217e0a0c671faf507e4990b3205bbeade /disassembler | |
parent | f610c0597e001cb1043aa4074afe25ae79a800e3 (diff) | |
download | art-6a0b920512b72542b3f1a3d232fba7ded45ea455.zip art-6a0b920512b72542b3f1a3d232fba7ded45ea455.tar.gz art-6a0b920512b72542b3f1a3d232fba7ded45ea455.tar.bz2 |
Fix crash in x86 disassembler.
Probably a typo from last refactoring.
Change-Id: I086a87120ca0f0dfddbe803573b0e0f79cc6d945
Diffstat (limited to 'disassembler')
-rw-r--r-- | disassembler/disassembler_x86.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/disassembler/disassembler_x86.cc b/disassembler/disassembler_x86.cc index b58f5fa..1a768c8 100644 --- a/disassembler/disassembler_x86.cc +++ b/disassembler/disassembler_x86.cc @@ -171,7 +171,7 @@ std::string DisassemblerX86::DumpAddress(uint8_t mod, uint8_t rm, uint8_t rex64, std::ostringstream address; if (mod == 0 && rm == 5) { if (!supports_rex_) { // Absolute address. - *address_bits = *reinterpret_cast<const uint32_t*>(**instr); + *address_bits = *reinterpret_cast<const uint32_t*>(*instr); address << StringPrintf("[0x%x]", *address_bits); } else { // 64-bit RIP relative addressing. address << StringPrintf("[RIP + 0x%x]", *reinterpret_cast<const uint32_t*>(*instr)); |