On Fri, Oct 10, 2008 at 03:03:57PM -0400, Girish Moodalbail wrote:
> Hello folks,
> 
> I have a quick question on how to obtain the name of the function given 
> that you have a function pointer to that function? MDB's 
> *mdb_lookup_by_addr() *doesn't seem to work.

mdb_lookup_by_addr() should be what you want;  something like:

        GElf_Sym sym;
        char buf[MDB_SYM_NAMELEN];

        if (mdb_lookup_by_addr(addr, MDB_SYM_FUZZY, buf, MDB_SYM_NAMELEN,
            &sym) == -1)
                // failed

is the standard invocation.  What, exactly, are you trying?

Cheers,
- jonathan


Reply via email to