Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-debug-dev] "Suspend" button

> 
> Hi all!
> 
> It's me again about "Suspend" button in Windows 2000. :)
> 
> I downloaded 03.10.2003 nightly build and try to play with selection =
> during debug session as Alain suggested. But anyway, "Suspend" button =
> remained disabled when a program is in running state, not stopped.
> 

The problem is two fold, after a quick investigation:

1) Yes, there is a bug in the code, that will always return false when
   checking if suspend is supported, for windows.  That will be corrected.

2) GDB on cygwin has a peculiar behaviour, if a program is debug with
   a redirect console(via "set new-console" command) it is not possible
   to interupt it i.e. sending gdb a SIGINT will not work.

   This is the same problem we have with Solaris gdb, when using --tty to
   redirect the console we are not able to suspend the inferior(the application)
   via a SIGINT to gdb.

> Should I post a bug?
> 

Yes.

We will try to find other hacks(way around) to make this work.
Can not guarantee it will be in the comming release.
One avenue is to find manually the PID of the inferior, spawn by gdb
and send ourselfs the SIGINT or the Break Event for windows platform. 
We could do this by extendig Spawner.raise();




Back to the top