66

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.

HighLife
  • 4,218
  • 7
  • 40
  • 56

1 Answers1

112

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

set disassembly-flavor intel

to it.

DSM
  • 342,061
  • 65
  • 592
  • 494
  • 16
    I did not have a ~/.gdbinit file, but I created one and added set disassembly-flavor intel to it. Worked Thanks! – HighLife Dec 20 '11 at 00:41