user3312448
user3312448

Reputation: 31

i am failing to set intel as disassembly flavour in gdb

i want to set disassembly flavour to intel ........ i tried the following...............................

$ gdb -q

/root/.gdbinit:1: Error in sourced command file:

No symbol table is loaded. Use the "file" command.

(gdb) set disassembly-flavour intel

No symbol table is loaded. Use the "file" command.

i have entered set "disassembly-flavour intel" in file ~/.gdbinit

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

Upvotes: 3

Views: 4409

Answers (1)

user184968
user184968

Reputation:

You made a mistake in the command. You should have written flavor. Instead you wrote flavour.

(gdb) help set disassembly-flavor
Set the disassembly flavor.
The valid values are "att" and "intel", and the default value is "att".

And this is an example:

>gdb -q
(gdb) show disassembly-flavor
The disassembly flavor is "att".
(gdb) set disassembly-flavor intel
(gdb) show disassembly-flavor
The disassembly flavor is "intel".
(gdb)

Upvotes: 6

Related Questions