I want to reset the return line from a C ++ program on Linux in the same format as gdb. I tried using the backtrace () and backtrace_symbols () functions for this purpose. These return function names and offsets. I can use the __cxa_demangle () function to get a readable function name.
Is there a way to get file / line positions, how is this done with gdb?
source
share