Permanently Change Disassembly Flavor in GDB

LinuxAssemblyGdb

Linux Problem Overview


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.

Linux Solutions


Solution 1 - Linux

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

set disassembly-flavor intel

to it.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionHighLifeView Question on Stackoverflow
Solution 1 - LinuxDSMView Answer on Stackoverflow