« Return to Thread: get line number when wrappers are called

get line number when wrappers are called

by janjust :: Rate this Message:

| View in Thread

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.

any ideas?



 « Return to Thread: get line number when wrappers are called