This is the mail archive of the gdb@sources.redhat.com 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: Tracing all 'call' instructions in a gdb session


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


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