Re: debugging and gtk



Hi Jim, I don't know if this is relevant for what you're doing, but another
option is to switch desktops. 

On KDE anyway, if ddd blocks with a "the pointer seems to be locked, continuing
automatically in 10 seconds" message, switching to another desktop and back (eg.
CTRL-F2, then CTRL-F1) breaks the lock and lets you debug. 

It confuses ddd and gtk a bit, but it's better then being completely stuck.

John

Jim Edwards wrote:
> 
> Havoc,
> 
> Well, I found that I could build Xnest without updating X so I gave it a try,
> alas it wounīt work for me because I use GtkGlArea and I canīt get the GL
> configuration I need on the Xnest.  But you pointed me in the right direction
> - I just needed to run gdb on a display different than the one I run my
> application on.   After that it took just a few minutes to find the problem.
> 
> Thanks
> Jim
> 
> Jim Edwards wrote:
> 
> > Havoc Pennington wrote:
> >
> > > Jim Edwards <jimedwards altavista com> writes:
> > > >
> > > > When running under gdb I often find that when the run stops at a break
> > > > point or because the program has crashed that my mouse focus is īstuckī
> > > > in the last gtk window in use and that I canīt get back to the gdb
> > > > interface in my xterm.
> > > > I have to go login remotely and kill the process.
> > > > Is there a way to unstick the focus or otherwise prevent this from
> > > > happening.
> > > >
> > >
> > > One useful trick is to debug inside an Xnest.
> > >
> > > Havoc
> > >
> >
> > Okay, this is a new one for me.   It looks like I need to update my Xfree86
> > version to install it.  Then I would start the Xnest and run the debugger
> > outside of it with the display set so that my application windows run under
> > it?  Or do I run the debugger inside the Xnest in which case it seems like I
> > still have the same problem but can kill the process without going to
> > another machine?   I just want to understand just what Iīll gain  before I
> > go through the pain of updating XFree86.
> >
> > Thanks,
> > Jim
> >




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