This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: disassemble on Linux x64
- From: Daniel Jacobowitz <drow at false dot org>
- To: jj shen <kbottle at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Thu, 3 May 2007 16:09:50 -0400
- Subject: Re: disassemble on Linux x64
- References: <293b12a20705031255u1d211aa3hec1c464566d16b1f@mail.gmail.com> <293b12a20705031257x595cda47t1f87e1aa719e486d@mail.gmail.com>
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