Tracing all 'call' instructions in a gdb session

Daniel Jacobowitz drow@false.org
Mon Jun 27 22:03:00 GMT 2005


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



More information about the Gdb mailing list