• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why no execinfo.h?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why no execinfo.h?


  • Subject: Re: Why no execinfo.h?
  • From: Steve Checkoway <email@hidden>
  • Date: Fri, 21 Apr 2006 12:16:56 -0700


On Apr 21, 2006, at 9:38 AM, Rush Manbert wrote:

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

Ah, good to know. Thank you.

- Steve

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Why no execinfo.h? (From: Rush Manbert <email@hidden>)
 >Re: Why no execinfo.h? (From: Eric Albert <email@hidden>)
 >Re: Why no execinfo.h? (From: Rush Manbert <email@hidden>)
 >Re: Why no execinfo.h? (From: Steve Checkoway <email@hidden>)
 >Re: Why no execinfo.h? (From: Rush Manbert <email@hidden>)

  • Prev by Date: Re: Crash on G3
  • Next by Date: huge temporary files
  • Previous by thread: Re: Why no execinfo.h?
  • Next by thread: error for object : incorrect checksum for freed object
  • Index(es):
    • Date
    • Thread