Re: Why no execinfo.h?
Re: Why no execinfo.h?
- Subject: Re: Why no execinfo.h?
- From: Rush Manbert <email@hidden>
- Date: Fri, 21 Apr 2006 09:38:44 -0700
Steve Checkoway wrote:
On Apr 20, 2006, at 4:56 PM, Rush Manbert wrote:
The only remaining issue is that the name returned by dladdr is
mangled. My function called "level" is returned as _Z5leveli. I know
about c++filt, is there any library function that can demangle the
names?
There is. It's in <cxxabi.h>
char * abi::__cxa_demangle( const char *mangled_name, char
*output_buffer, size_t *length, int *status );
I'm not sure what the status field is, but the rest is clear.
Thanks Steve. This is just what I needed.
Re: status, from the source:
*STATUS is set to one of the following values:
0: The demangling operation succeeded.
-1: A memory allocation failure occurred.
-2: MANGLED_NAME is not a valid name under the C++ ABI mangling rules.
-3: One of the arguments is invalid
Best regards,
Rush
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden