On Thu, Jul 7, 2016 at 8:59 AM, E. G. Patrick Bos <p....@esciencecenter.nl>
wrote:
> I'm using callgrind to analyse a c++ program (roofit) which builds a
> large tree of many interdependent objects of a few classes. Ideally, I
> would like to track not only the function calls, but also from (and to)
> which object they are called, so for instance including the address of
> the passed `this` pointer.
>
> Is such a thing possible and/or has it been tried before? And if not,
> would it be difficult to implement?
>
>
take a look at http://rr-project.org/
with it, you can record a run of your program
then play it back, deterministically, in gdb.
Once you identify the object addresses giving you trouble,
you can set watchpoints on them, replay,
and catch the origins of the eventual segfault
I havent used it in earnest yet,
but its at the top of my must-learn-tools list.
Id love to see valgrind running one of these recorded sessions,
it would yield a tremendous amount of info for use in
further gdb replay-sessions
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users