Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the disassembly syntax to intel using gdb?

Tags:

c

gdb

(gdb) set disassemble intel
Ambiguous set command "disassemble intel": disassemble-next-line, disassembler-options.

When i set the disassembly syntax to intel, it show this error.

like image 799
Henok Tesfaye Avatar asked Dec 08 '22 12:12

Henok Tesfaye


2 Answers

Please use:

set disassembly-flavor intel

see GDB Manual for more details

like image 79
doron Avatar answered Dec 28 '22 15:12

doron


To make the change permanent you must add it to your gdb config file:

echo "set disassembly-flavor intel" >> ~/.gdbinit

Then run:

cat  ~/.gdbinit

to make sure the file has the proper content.

like image 42
Da3kL10rd Avatar answered Dec 28 '22 14:12

Da3kL10rd