Sample source code:
#include<iostream>
#include <stdexcept>
int main()
{
std::cout<<"Before the try block" << std::endl;
try {
throw std::runtime_error("Test exception");
} catch (...) {
std::cout << "Catched the exception" << std::endl;
}
std::cout<<"After the try block" << std::endl;
return 0;
}
This is what get output when running gdbserver after an exception is
thrown in the code being debugged.
Listening on port 2345
Remote debugging from host 192.168.70.8, port 44782
Before the try block
terminate called after throwing an instance of 'std::runtime_error'
Expected output (which is what is output when not running under gdbserver)
Before the try block
Catched the exception
After the try block
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1969379
Title:
gdbserver on Windows does not catch thrown exceptions
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdb-mingw-w64/+bug/1969379/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs