|
From: Philippe W. <phi...@sk...> - 2013-01-01 19:34:51
|
On Mon, 2012-12-31 at 12:17 -0800, Roger Binns wrote: > > It might be a good idea to have a new memcheck option > > --keep-alloc-stacktrace=yes|no and/or to allow to (optionally) remember > > and report the alloc stack trace in addition to the "free" stack > > trace. This will however imply (for a 64 bits platform) 8 bytes more > > per allocated block. > What will it take to get this into valgrind proper and the ability to show > both free and alloc stacks? I think it would not be very difficult. Not too clear if we just need the option: --keep-alloc-stacktrace=yes|no remember alloc stack trace for freed blocks [no] or if we better have something like: --keep-alloc-stacktrace=yes|until-freed|no [until-freed] --keep-free-stacktrace=yes|no [yes] or maybe --keep-stacktraces=alloc|free|alloc-and-free|alloc-else-free|none [alloc-else-free] (default values in [] brackets are backward compatible with current behaviour). Philippe |