How to set up "gdb" for Intel syntax

Asked

Viewed 153 times

1

I’m trying to set up the gdb for syntax intel, however I am getting the following message :

Ambiguous set command "dis intel": disable-randomization, disassemble-next-line,
disassembly-flavor, disconnected-dprintf...

I’m tempted the procedures below, but when I perform the second procedure the above message appears.

root@debian:/home/novousuario# gdb -q
(gdb) set dis intel
(gdb) quit
root@debian:/home/novousuario# echo "set dis intel" > ~/.gdbinit 
root@debian:/home/novousuario# cat ~/.gdbinit

1 answer

1


The error is occurring because the command is abbreviated ("dis").

Try the complete form of the command (in interactive mode and/or in the file ~/.gdbinit):

set disassembly-flavor intel
  • Perfect, manow.. what will ? Should I perform some sort of configuration to accept abbreviations ?

  • No, you don’t. The gdb did not accept the abbreviation because it has several commands starting with "dis" (ambiguity error). But if you abbreviate, for example, to set disassembly intel, will work :)

  • Massa vlw... I got it...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.