Set GDB disassembly syntax for Intel
The "Set dis Intel", which is popular in various Linux books, is no longer applicable, and the following error occurs:
Ambiguous set command "Dis Intel": Disable-randomization, Disassemble-next-line, Disassembly-flavor, Disconnected-tracing ...
The correct command is:
sudo echo "set Disassembly-flavor Intel" > ~/.gdbinit
GDB will search for the. gdbinit file in a certain path order (usually the current directory and then the user directory) when it is started, and will automatically execute the command if it is found. This feature allows the user to put some frequently used commands in this file, so that they do not have to manually execute the commands each time they enter GDB. In fact,. Gdbinit is a script that can even define a number of commonly used GDB command sequences as a new command, so as long as the new command is entered in GDB, the command sequence defined is automatically executed.
In addition, if the user is already in gdb, then go to modify. Gdbinit, as long as through:
will allow those new additions to take effect.
[GDB] Set GDB disassembly syntax for Intel