Best way to invoke gdb from inside program to print its stacktrace?
You mentioned on my other answer (now deleted) that you also want to see line numbers. I’m not sure how to do that when invoking gdb from inside your application. But I’m going to share with you a couple of ways to print a simple stacktrace with function names and their respective line numbers without … Read more