diff options
author | Christopher Faylor <me@cgf.cx> | 2012-02-13 02:43:33 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2012-02-13 02:43:33 +0400 |
commit | e52a43f10116f1481d2b8c5cf7b935749cbd3a4d (patch) | |
tree | 26a7ead58601442735f5a66d0a2951a900def95d /winsup/cygwin/sigproc.cc | |
parent | ce48510394663e2fbac99395030cdecdf0b61671 (diff) |
* exception.h (stackdump): Declare.
* exceptions.cc (stackdump): Rework to perform all operations needed for a
stackdump and to avoid recursion.
(exception::handle): Use simplified stackdump interface.
* sigproc.cc (signal::exit): Ditto. Delete now, uneeded declaration.
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r-- | winsup/cygwin/sigproc.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index 7850ab1b6..73b934b3d 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -23,6 +23,7 @@ details. */ #include "shared_info.h" #include "cygtls.h" #include "ntdll.h" +#include "exception.h" /* * Convenience defines @@ -373,8 +374,6 @@ close_my_readsig () void _cygtls::signal_exit (int rc) { - extern void stackdump (DWORD, int, bool); - HANDLE myss = my_sendsig; my_sendsig = NULL; /* Make no_signals_allowed return true */ @@ -414,7 +413,7 @@ _cygtls::signal_exit (int rc) } if ((rc & 0x80) && !try_to_debug ()) - stackdump (thread_context.ebp, 1, 1); + stackdump (thread_context.ebp, true); lock_process until_exit (true); if (have_execed || exit_state > ES_PROCESS_LOCKED) |