space manager for the name of the file it was mapped from as a fallback
solution.
This allows us to print the names of exe/dll files in the stack trace
when running programs under wine.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7327
{
Int used;
SegInfo* si;
+ const NSegment *seg;
+ HChar* filename;
vg_assert(nbuf > 0);
for (si = segInfo_list; si != NULL; si = si->next) {
return True;
}
}
+ if ((seg = VG_(am_find_nsegment(a))) != NULL &&
+ (filename = VG_(am_get_filename)(seg)) != NULL)
+ {
+ VG_(strncpy_safely)(buf, filename, nbuf);
+ return True;
+ }
return False;
}