Re: Tracing all 'call' instructions in a gdb session

Daniel Jacobowitz
2005-06-27T22:03:47Z

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