Stack trace generation involves unwinding the stack to find all the return addresses followed by some sort of debug info parsing (be it embedded DWARF data or reading from a pdb file on disk) and then using that to generate the file, function and line information that will be displayed in the stack trace.
That's how std::stacktrace and co work in general though, doesn't change by having it happen for exceptions
View all comments
Show parent comment
5
u/WerWolv Apr 19 '26
Stack trace generation involves unwinding the stack to find all the return addresses followed by some sort of debug info parsing (be it embedded DWARF data or reading from a pdb file on disk) and then using that to generate the file, function and line information that will be displayed in the stack trace.
That's how
std::stacktraceand co work in general though, doesn't change by having it happen for exceptions