From e52a43f10116f1481d2b8c5cf7b935749cbd3a4d Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 12 Feb 2012 22:43:33 +0000 Subject: * 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. --- winsup/cygwin/sigproc.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'winsup/cygwin/sigproc.cc') 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) -- cgit v1.2.3