Debugging, and losing the display

Posted by: canuckInOR

Debugging, and losing the display - 03/08/2002 11:47

Hi all,

There's a SEGV error somewhere in the app I'm writing. When that happens, since the app has already grabbed control of the display, the display freezes with whatever was displayed when the app died. My current method of kickstarting the display is to drop into the shell by serial connection, and exit (since that forces the player to go through the init cycle). Is there an easier way to get my display back? Is this something that hijack could detect and fix -- if an application dies of a SEGV, grab the display back and update it?

Second, when I connect gdb to a running process that has bound to the hijack menu, the menu item disappears. Any ideas on why?

Thanks,
Posted by: canuckInOR

Re: Debugging, and losing the display - 03/08/2002 12:07

Is there an easier way to get my display back?

I managed to answer this question. I changed the location of where I bind the buttons to a spot after the SEGV occurs. Now I can simply toggle the standby mode. Edit: Of course, now that I fixed the first, I've discovered a second that's in a spot I can't move the button binding after, so I'm back where I started...

Is this something that hijack could detect and fix -- if an application dies of a SEGV, grab the display back and update it?

It would also need to wrest control of the buttons back...

Cheers,