Symbol table, atos, nlist
Symbol table, atos, nlist
- Subject: Symbol table, atos, nlist
- From: Antonio Ferraioli <email@hidden>
- Date: Fri, 4 Mar 2005 10:51:53 +0100
Hello,
I'm not sure this is the correct mailing list to write about this subject,
if I'm wrong please tell me if there is a more appropriate one
I'm tracing the program execution using the --finstrument-functions compliation flags
provided by the gcc complier
this let me define two callbacks methods
that I use for tracing purposes
/** According to gcc documentation: called upon function entry */
void __attribute__((__no_instrument_function__))
__cyg_profile_func_enter(void *this_fn, void *call_site)
{
callDeep += 2;
cygDebugMessage(deepPrefix(@"enter", this_fn, call_site));
}
/** According to gcc documentation: called upon function exit */
void __attribute__((__no_instrument_function__))
__cyg_profile_func_exit(void *this_fn, void *call_site)
{
cygDebugMessage(deepPrefix(@"exit", this_fn, call_site));
callDeep -= 2;
}
I know that the "this_fn" parameter is the address of the called function
I'm tracing, and I'm able to translate it to a symbol name using the
atos command tool
what I'd like to do is to translate the "this_fn" pointer
into a symbol name directly into my tracing callbacks
and not with an external line tool like atos
I tried to give a llok to the man dyld(3) nlist(3)
but with no success
can you give me some help at this subject
thank you
sincerely
antonio
_______________________________________________
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