* include/sys/cygwin.h: Define CYGWIN_SIGNAL_STRING.

* exceptins.cc (sigpacket::process): Send a _CYGWIN_SIGNAL_STRING to gdb if the
process is being debugged.  A WIP.
This commit is contained in:
Christopher Faylor
2005-11-01 05:55:30 +00:00
parent dc1b6289a6
commit b7bb9f5fde
3 changed files with 14 additions and 5 deletions

View File

@ -1095,11 +1095,12 @@ sigpacket::process ()
if (si.si_signo == SIGTSTP || si.si_signo == SIGTTIN || si.si_signo == SIGTTOU)
sig_clear (SIGCONT);
#if 0
char sigmsg[24];
__small_sprintf (sigmsg, "cygwin: signal %d\n", si.si_signo);
OutputDebugString (sigmsg);
#endif
if (being_debugged ())
{
char sigmsg[sizeof (_CYGWIN_SIGNAL_STRING " 0xffffffff")];
__small_sprintf (sigmsg, _CYGWIN_SIGNAL_STRING " %p", si.si_signo);
OutputDebugString (sigmsg);
}
if (handler == (void *) SIG_DFL)
{