2
Dump of assembler code for function foo@plt:
0x0000000000400528 <foo@plt+0>: jmpq   *0x2004d2(%rip)        # 0x600a00 <_GLOBAL_OFFSET_TABLE_+40>
0x000000000040052e <foo@plt+6>: pushq  $0x2
0x0000000000400533 <foo@plt+11>:    jmpq   0x4004f8
(gdb) disas 0x4004f8
No function contains specified address.

I knwo 0x4004f8 is the entry point of procedure linkage table,but why I can't disas it?

compile-fan
  • 16,885
  • 22
  • 59
  • 73

1 Answers1

6

disas with one address needs to find the function the address is contained within to know how much to disassemble.

Either with disas with two arguments, or x/i.

Also see: How can I force GDB to disassemble?

Community
  • 1
  • 1
Douglas Leeder
  • 52,368
  • 9
  • 94
  • 137