Not able to get the debug symbols when process crashes
I am trying to get the back trace information through backtrace() and backtrace_symbols() API's when the process crashes due to segmentation fault. Iam compiling with options as
CXXFLAGS = -Wall -g -ftemplate-depth-64 -rdynamic
Only getting the backtrace in the form like: process[address]. But normal format of the backtrace should be process(function+offset) [address]. Am i missing something in compilation options or any thins else? Please suggest me. Thanks in advance.
I would try running gdb or some other debugger on your process, so that you can check whether the problem is in the executable itself or in the way you're using the backtrace APIs.
|All times are GMT -5. The time now is 03:34 AM.|