Dear devs,
I'm testing this new nigthly (debugger branch 6570). I reported (in the thread related to the previous nightly for the debbugger branch) a possible bug when dbg is catching an exception.
Basically I discussed the behavior of the dbg interface, implemented in CB, when an exception is thrown. The previous nightly wasn't printing any informatin in the debugger panel.
The present nightly is improved and (at least for me) now is good enough, a message is appearing in the debugger panel (and a small window from the application bar) when an excpetion is thrown.
The call stack is showing the file and the line in which the exception was thrown. But in the debugger panel the message is (setting a breakpoint at throwSomething(); and then "next line")
Debugger name and version: GNU gdb (GDB) 7.1
Child process PID: 3456
At C:\Development\Projects\testException\main.cpp:13
Unknown file:
In __cxa_throw () ()
Well the file should be known! The debug log is
> cont
Catchpoint 1 (exception thrown), 0x00401610 in __cxa_throw ()
>>>>>>cb_gdb:
You can use the following test case to replicate the issue.
#include <iostream>
#include <stdexcept>
void throwSomething(void);
using namespace std;
int main()
{
try
{
throwSomething();
}
catch(std::runtime_error& except)
{
cout << "Hello Exceptions " << except.what() << endl;
}
cout << "This is the end" << endl;
return 0;
}
void throwSomething(void)
{
throw std::runtime_error("The Exception");
}
Hope this helps
Max