If the problem you're experiencing is something else please explain better what it is.
Using the test case attached in my previous message compile it (I'm using -O0 -gstabs+ and GDB 7.1, MINGW with GCC 4.5.0 and latest packages). Set a breakpoint in the line where the call
throwSomething(); is present. BE SURE to have the call stack debugging window disabled (not shown).
A) Run the debugger and when it stops at the breakpoints send a "next line"
Effects:
1) A small yellow window appears from the application bar (WINDOWS) telling "unknown file"
2) the message
Debugger name and version: GNU gdb (GDB) 7.1
Child process PID: 1108
At C:/Development/Projects/test/main.cpp:12
Unknown file:
In __cxa_throw () ()
appears on debug panel
3) there is no yellow triangle and the debugger is not jumping to the line where the exception was thrown
B) stops the debug session and repeat the test but, this time, BE SURE that the call stack debugging window is shown (docked). Start the debugger and at the breakpoint send a "next line". Now you get
1) A small yellow window appears from the application bar (WINDOWS) telling "unknown file". The same as before.
2) On debugger panel you get
Debugger name and version: GNU gdb (GDB) 7.1
Child process PID: 2668
At C:/Development/Projects/test/main.cpp:12
Unknown file:
In __cxa_throw () ()
At C:/Development/Projects/test/main.cpp:27
So the "unknown file" is still present but a new line appears after the __cxa_throw(). Is the line where the exception was thrown.
3) The debuuger jumps to the line main.cpp:27 and a small triangle at that line is shown.
So in the end with the call stack window it works, without the call stack window it doesn't work. Quite strange (to me
. Is that the correct behavior? Why in any case a red line with "unknow file" appears?
What is unknown? (don't say the file name
)
In the end I use the call stack window, it deserves to stay always open
Note2: there is a setting in the debugger's options -> "when stopping, auto-switch to first frame with valid source info", if you want to see the yellow marker this option should be on!
Yes I know
, it is on!
Hope this helps
Max