Permanently Change Disassembly Flavor in GDB

HighLife picture HighLife · Dec 20, 2011 · Viewed 18k times · Source

How can I permanently change the disassembly flavor in GDB. I tried:set disassembly-flavor intel in GDB, but when I fire up GDB later it still has the att flavor.

Answer

DSM picture DSM · Dec 20, 2011

gdb executes a ~/.gdbinit file when it starts, if present; you should be able to add the line

set disassembly-flavor intel

to it.