Home » Linux » Permanently Change Disassembly Flavor in GDB

Permanently Change Disassembly Flavor in GDB

Posted by: admin November 29, 2017 Leave a comment

Questions:

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.

Answers:

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

set disassembly-flavor intel

to it.