Debugging drags, mouse capture / pointer grab, kdevelop3 freezes
Alex Bligh
alex at alex.org.uk
Tue Apr 18 09:24:02 BST 2006
Hi,
I'm using kdevelop 3.4.3 and gdb 6.3-debian (Ubuntu Breezy defaults), and
seem to have a consistent problem debugging a wxWidgets / gtk application
if a breakpoint is hit, or a SEGV occurs, during a drag. The application
is compiled using the standard "hello world" template and wasn't build
using any kdevelop project templates.
More specifically, if the mouse has been captured using the various wx
primatives, which do a gdk_pointer_grab in the end, then upon gdb getting
control back, the entire kdevelop environment is frozen. It redraws, but
nothing works. What seems to be the case is that X still thinks the mouse
etc. is captured by the (now frozen) application under debug, and is not
passing any events on. I get the SEGV box (or whatever caused the
debugger to be entered) but no more.
There appears no way out, except CTRL-ALT-F1 to go back to a console,
then
killall [APPLICATION]
killall gdb
CTRL-ALT-F7 to go back to X then shows kdevelop unfrozen, and the world
continues, though obviously without any debugging info.
This makes it really hard to debug drags. Now I'm not sure why X is
carrying state between two apps (I'm not an X guru), or indeed whose
responsibility it should be to clear things up. Any ideas for a
fix or work-around?
Alex
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list