[PATCH] If running in GNU gdb, disable grabs

This is a multi-part message in MIME format.

When debugging applications that uses a lot of grabs, such as the GIMP paint core, it is annoying when breakpoints are hit while in a grab. There are ways to remedy this, but for an inexperience developer it appears as if X11 completely freezes.

I have attached two patches to this mail. The first one adds the possibility to disable grabs with the GTK_DEBUG environment variable, the other patch disable grabs if we appear to run in GNU gdb. The approach is inspired by the Qt toolkit which uses the same approach.

I wanted to discuss this on the mailing list before filing any bug report. So, does this make sense to anyone else? I have push access so when these patches have been reviewed and approved, I can push this to git master.

 / Martin


My GIMP Blog:

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]