Easiest way to get function name/offset from a hex address?
Easiest way to get function name/offset from a hex address?
- Subject: Easiest way to get function name/offset from a hex address?
- From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>
- Date: Wed, 28 Jan 2009 14:15:02 -0500
- Thread-topic: Easiest way to get function name/offset from a hex address?
Title: Easiest way to get function name/offset from a hex address?
I'm using -finstrument-functions to figure out what the stream of calls is that causes my program to crash. Since -finstrument-functions instruments everything with calls to __cyg_profile_func_enter() & __cyg_profile_func_enter(), I have the hex address of the function that is being called, and the site where it is being called from. I'd like to convert that information to printable strings so I know the name of the function and the offset from the start of the function (or, better yet, the line number, but I'll live with the offset). Is there a simple way of doing this lookup? I looked into nlist(), and it appears to have some of the information I need, but I don't see how to get the function names from the information it gives me.
Any help is appreciated.
Thanks,
Cem Karan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden