Call stack with std::abort()
Hi,
I am running CLion on macOS and Linux, debugging with gdb. My code uses a lot of assertion to check the precondition of my functions and calls std::abort() when they are not satisfied. When this is the case, there is no way to know where the abort happened.
With lldb, the experience is much better as I can see where std::abort has been called and inspect the call stack. Unfortunately, lldb does not seem to support the pretty printers for now and I am stuck with gdb.
So do you know how to inspect the call stack with gdb when the code reached std::abort ?
Best regards,
Francois
Please sign in to leave a comment.