Hi, I am producing stacktraces by calling backtrace to get the stack and backtrace_symbols to print each frame. backtrace_symbols is returning some extra unprintable characters at the start of each array entry.
each array entry starts with this unprintable character (repeats 7 times followed by \n). 0X8ff void *arr[NUM_STACKFRAMES]; int nSize = backtrace(arr, NUM_STACKFRAMES); char **sym = backtrace_symbols(arr, nSize); int ii; for (ii = 0; ii < nSize; ii++) { printf("%s\n", sym[ii]); } free(sym); Is there a way to get each stack entry without seeing the unprintable characters ? Tom
_______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev