* 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:
parent
dc1b6289a6
commit
b7bb9f5fde
|
@ -1,3 +1,9 @@
|
|||
2005-11-01 Christopher Faylor <cgf@timesys.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2005-10-29 Christopher Faylor <cgf@timesys.com>
|
||||
|
||||
* exceptions.cc (signal_exit): Eliminate setting of main thread
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -17,6 +17,8 @@ details. */
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define _CYGWIN_SIGNAL_STRING "cYgSiGw00f"
|
||||
|
||||
extern pid_t cygwin32_winpid_to_pid (int);
|
||||
extern void cygwin32_win32_to_posix_path_list (const char *, char *);
|
||||
extern int cygwin32_win32_to_posix_path_list_buf_size (const char *);
|
||||
|
|
Loading…
Reference in New Issue