|
From: John R.
|
> please tell me *HOW* to disassemble instructions
(gdb) x/i <address> # see "help data": x/FMT ADDR 'i'==>instruction
If you don't have a running program, or the address, handy,
then create one:
$ cat foo.S
.byte 0xF0,0xF,0xC7,0xE,0,0,0,0,0,0,0,0
$ gcc -c foo.S
$ gdb foo.o
(gdb) x/i 0
0x0: lock cmpxchg8b (%esi)
--
|