This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Tracing all 'call' instructions in a gdb session
- From: Daniel Jacobowitz <drow at false dot org>
- To: Thomas Glanzmann <sithglan at stud dot uni-erlangen dot de>,gdb at sources dot redhat dot com
- Date: Mon, 27 Jun 2005 18:03:39 -0400
- Subject: Re: Tracing all 'call' instructions in a gdb session
- References: <20050627220122.GF8659@cip.informatik.uni-erlangen.de>
On Tue, Jun 28, 2005 at 12:01:22AM +0200, Thomas Glanzmann wrote:
> Hello,
> I like to trace every 'call instruction' in a executable. How do I
> obtain this with gdb or are there other tools to obtain that?
>
> Like tracepoint every call instruction and gather eip and 'jump to'
> address?
Sorry, GDB can't help you with this. Not today, anyway. You'd need
both tracepoints and a more flexible facility for setting breakpoints
automatically.
A profiler might be a better tool. I bet you can get valgrind to do
this somehow.
--
Daniel Jacobowitz
CodeSourcery, LLC