|
From: Michael B A. <io...@gm...> - 2008-07-09 15:07:32
|
On 7/9/08, Tom Hughes <to...@co...> wrote: > Michael B Allen wrote: > > > > It would be slick if valgrind had an option to *not* discard symbols > > for a named library. There are a lot of DSOs being used these days. > > > > If it was that easy we'd have done it long since - the problem is that a > second DSO might get mapped at the same address and then you get a second > set of symbols which overlap. > > So you need to know which set of symbols applied at the point that the > stack trace was recorded. It seems to me there are a number of ways to improve this situation. For example you could "lazily discard" symbols. Meaning, don't dicard symbols on munmap, discard them immediately before the loader tries to re-mmap a new lib into the same address range. I think that would work 98% of the time. Mike |