PieterWinter
Programmer
Hi,
I'm trying to obtain symbol names from within a running program using dladdr() (using program counter values). The problem is that dladdr() [ on Solaris 2.6 and 2.8 ] only returns 'global' symbols and not 'local' ones.
I.e.
void globalFn(void) { ... }
static void staticFn(void) { ... }
when using dladdr on an address that resides in staticFn, it still returns globalFn.
Does anyone have a suggestion on how I can get 'staticFn' in this case?
Thanks,
Pieter
I'm trying to obtain symbol names from within a running program using dladdr() (using program counter values). The problem is that dladdr() [ on Solaris 2.6 and 2.8 ] only returns 'global' symbols and not 'local' ones.
I.e.
void globalFn(void) { ... }
static void staticFn(void) { ... }
when using dladdr on an address that resides in staticFn, it still returns globalFn.
Does anyone have a suggestion on how I can get 'staticFn' in this case?
Thanks,
Pieter