Refactoring `stackTrace` to perform frame look ups in a more on-demand fashion to improve overall performance. Additionally adding additional information to the `exceptionInfo` request to report exception stacks there instead of merging the exception stack into the stack trace. The `exceptionInfo` request is only called if a stop event occurs with `reason='exception'`, which should mitigate the performance of `SBThread::GetCurrentException` calls. Adding unit tests for exception handling and stack trace supporting.
7 lines
142 B
C++
7 lines
142 B
C++
#include <stdexcept>
|
|
|
|
int main(int argc, char const *argv[]) {
|
|
throw std::invalid_argument("throwing exception for testing");
|
|
return 0;
|
|
}
|