Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsStackFrameUnix.cpp File Reference
#include "nsStackFrameUnix.h"
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "nscore.h"

Go to the source code of this file.

Functions

void DemangleSymbol (const char *aSymbol, char *aBuffer, int aBufLen)

Function Documentation

void DemangleSymbol ( const char *  aSymbol,
char *  aBuffer,
int  aBufLen 
)

Definition at line 67 of file nsStackFrameUnix.cpp.

{
    aBuffer[0] = '\0';

#if defined(MOZ_DEMANGLE_SYMBOLS)
    /* See demangle.h in the gcc source for the voodoo */
    char * demangled = abi::__cxa_demangle(aSymbol,0,0,0);
    
    if (demangled)
    {
        strncpy(aBuffer,demangled,aBufLen);
        free(demangled);
    }
#endif // MOZ_DEMANGLE_SYMBOLS
}

Here is the caller graph for this function: