|
From: Jeroen N. W. <jn...@xs...> - 2005-11-15 20:34:29
|
> >> >> Uhm.. how do I get the segname of a NSegment from a tool? >> >> I only have fnIdx... >> >> >> >> I suppose this needs a function >> >> Char* VG_(am_get_segname)(Int fnIdx) >> > >> > A bit like VG_(am_get_filename) you mean ;-) >> >> Which is in coregrind/pub_core_aspacemgr.h, not in >> include/pub_tool_aspacemgr.h ... I needed to move it, for blanket. I >> don't >> see why this interface cannot be public. > > These things can certainly be made public. You shouldn't view the > set of core functions available to tools as fixed and unchangeable. > It's just that until now we knew of no need to make it public, and > in general there is a desire to minimise the amount of core functionality > that tools can see, for the usual software-engineering reasons. > > So what you want is for VG_(am_get_filename) to moved to the tool > iface file, and also VG_(am_get_segname) to be created, yes? I would like VG_(am_get_filename) to moved to the tool iface file, yes. I don't understand about VG_(am_get_segname). The name of the segment is the name of the file to which the segment is mapped, or from which the segment was loaded; right? Jeroen. |