This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: disassemble on Linux x64


On Fri, May 04, 2007 at 03:57:11AM +0800, jj shen wrote:
> "disassemble main" shows that getuid() corresponds to "callq addr".
> But when I try to "disassemble getuid" or "disassemble addr", GDB says
> it is not a vaild function address.

Start the program running first.  Those functions are in shared
libraries.  You may be seeing the PLT entry.

> Is callq a new instruction added by x86-64? What is the difference
> to the call instruction?

Roughly nothing.

> Another question: do I need to use a 32-bit GDB to debug 32-bit program?

No.

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]