65

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,140
  • 7
  • 38
  • 54

1 Answers1

109

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
  • 319,184
  • 61
  • 566
  • 472
  • 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