On Friday, April 06, 2012, janjust wrote:
> Is there a way to extract the line number within the source code just prior
> to a wrapper being called?
> 
> For instance a FORK or malloc were called in file_name.c at line number x
> 
> Is it possible to get that info through client requests?
> 
> I'm thinking something along the lines of passing the instrumented address
> back to the client just before the wrapper and then using
> get_filename_linenum(), though i'm not sure if that's the way to do it.

Try the client requests VALGRIND_MAP_IP_TO_SRCLOC or 
VALGRIND_PRINTF_BACKTRACE ?

J

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to