On Thu, 2013-02-28 at 14:53 -0800, Kyle Mahan wrote:
> Hi all, I'm wondering if it's possible for memcheck to show the last
> place that some memory was accessible before being leaked. For
> example, I would like to see the line numbers for both "allocated
> here" and "leaked here" in the example below.
>
>
> int* g() {
> int* x = new int[256]; <-- allocated here
> ...
> return x;
> }
>
>
> int f() {
>
> int* x = g();
> ...
>
> return 0; <-- leaked here
>
> }
No, this is not supported.
IIRC, there was an experimental tool (omega ?)
that was trying to do that. To my knowledge, there were some
conceptual problems in it but I do not know the details.
Philippe
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users