Setting disassembly flavour to Intel in LLDB

X-Istence picture X-Istence · Mar 22, 2012 · Viewed 14.2k times · Source

Is there a way to set the disassembly flavour like there is in GDB within LLDB so that it spits out Intel style assembly rather than AT&T style?

set disassembly-flavor intel # GDB

but for LLDB.

Answer

0xced picture 0xced · Feb 1, 2014

The exact line to write in your ~/.lldbinit file is

settings set target.x86-disassembly-flavor intel

In the future, you will also be able to tweak how immediate values are displayed with the new settings: target.use-hex-immediates and target.hex-immediates-style.