This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: C programs introspection using binutils/gdb
- From: Ben Elliston <bje at au dot ibm dot com>
- To: binutils at sources dot redhat dot com
- Date: 02 Apr 2004 11:04:28 +1000
- Subject: Re: C programs introspection using binutils/gdb
- References: <406C15FE.3060109@lifl.fr>
Alexandre Courbot <Alexandre.Courbot@lifl.fr> writes:
> I wonder however if this is the best solution for that purpose, and
> if I haven't overestimated gdb scripting capabilities in that
> respect. Or maybe there is another tool that allows similar results
> (I've thought of gprof but it seems much less controllable than
> gdb). I'd also be interested in hearing people who attempted similar
> experiences (can't find anything similar after a good google
> search).
You might consider running your program under a simulator. SID, for
instance, is capable of logging simulated time and accesses to memory,
which you can then post-process. See http://sources.redhat.com/sid/.
Ben