This is an archive of the discontinued LLVM Phabricator instance.

respect target.x86-disassembly-flavor when using `memory read`
ClosedPublic

Authored by crowell on Jul 1 2017, 1:11 PM.

Details

Summary

in DataDumpExtractor, respect the disassembly flavor, useful for using x/i (gdb-style) or memory read --format instruction

(lldb) x/i $pc
->  0x1000013fe: 48 c7 85 50 fb ff ff 00 00 00 00  movq   $0x0, -0x4b0(%rbp)
(lldb) settings set target.x86-disassembly-flavor intel
(lldb) x/i $pc
->  0x1000013fe: 48 c7 85 50 fb ff ff 00 00 00 00  mov    qword ptr [rbp - 0x4b0], 0x0

instead of how it was previously

(lldb) x/i $pc
->  0x1000013fe: 48 c7 85 50 fb ff ff 00 00 00 00  movq   $0x0, -0x4b0(%rbp)
(lldb) settings set target.x86-disassembly-flavor intel
(lldb) x/i $pc
->  0x1000013fe: 48 c7 85 50 fb ff ff 00 00 00 00  movq   $0x0, -0x4b0(%rbp)

Diff Detail

Repository
rL LLVM

Event Timeline

crowell created this revision.Jul 1 2017, 1:11 PM
crowell edited the summary of this revision. (Show Details)Jul 1 2017, 1:19 PM
labath accepted this revision.Jul 3 2017, 2:16 AM
labath added a subscriber: labath.

looks good

This revision is now accepted and ready to land.Jul 3 2017, 2:16 AM
jasonmolenda closed this revision.Jul 10 2017, 9:23 PM
jasonmolenda added a subscriber: jasonmolenda.

I committed this for Jeffrey in r307618.