From: Daniel Jacobowitz <drow@false.org>
To: jj shen <kbottle@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: disassemble on Linux x64
Date: Thu, 03 May 2007 20:10:00 -0000 [thread overview]
Message-ID: <20070503200950.GB727@caradoc.them.org> (raw)
In-Reply-To: <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
prev parent reply other threads:[~2007-05-03 20:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <293b12a20705031255u1d211aa3hec1c464566d16b1f@mail.gmail.com>
2007-05-03 19:57 ` jj shen
2007-05-03 20:10 ` Daniel Jacobowitz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070503200950.GB727@caradoc.them.org \
--to=drow@false.org \
--cc=gdb@sourceware.org \
--cc=kbottle@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox