search for: backtrace_symbols_fd

Displaying 3 results from an estimated 3 matches for "backtrace_symbols_fd".

2008 Sep 05
0
[LLVMdev] Demangling question
..._name != NULL) { fprintf(outstream, "%s\n", demangled_name); // Result may be a realloc of input buffer. buffer = demangled_name; } } } free(symbols); free(buffer); } #else backtrace_symbols_fd(StackTrace, depth, STDERR_FILENO); #endif #endif } Oh, and one other thing I haven't figured out is how to add a test for <cxxabi.h> into LLVM's configure script. In any case, if someone wants to work on this feel free to use this code, I've been too busy lately t...
2011 Apr 05
0
[LLVMdev] Transition C->bitcode->assembly->object looses frame pointers
....h> void myfunc3(void) { int j, nptrs; #define SIZE 100 void *buffer[100]; char **strings; nptrs = backtrace(buffer, SIZE); printf("backtrace() returned %d addresses\n", nptrs); /* The call backtrace_symbols_fd(buffer, nptrs, STDOUT_FILENO) would produce similar output to the following: */ strings = backtrace_symbols(buffer, nptrs); if (strings == NULL) { perror("backtrace_symbols"); exit(EXIT_FAILURE); } f...
2011 Apr 05
3
[LLVMdev] Transition C->bitcode->assembly->object looses frame pointers
Hi James, We've indeed passed the appropriate (and even excessive) flags to the appropriate pipeline parts, that is: llvm-gcc -O1 -fno-omit-frame-pointers -g $in -emit-llvm -S -o $name.ll llc --disable-fp-elim $name.ll -o $name.S g++ -fno-omit-frame-pointers -c $name.S , but that didn't work Alex On Tue, Apr 5, 2011 at 4:40 PM, James Molloy <James.Molloy at arm.com> wrote: