Henok Tesfaye
Henok Tesfaye

Reputation: 9560

How to change the disassembly syntax to intel using 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.

Upvotes: 21

Views: 21765

Answers (2)

doron
doron

Reputation: 28892

Please use:

set disassembly-flavor intel

see GDB Manual for more details

For a more permanent change please look: here

Upvotes: 41

Da3kL10rd
Da3kL10rd

Reputation: 380

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.

Upvotes: 23

Related Questions