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/exception.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'winsup/cygwin/exception.h') diff --git a/winsup/cygwin/exception.h b/winsup/cygwin/exception.h index 9f4a6c45c..b0a66b4ee 100644 --- a/winsup/cygwin/exception.h +++ b/winsup/cygwin/exception.h @@ -1,13 +1,12 @@ /* exception.h - Copyright 2010, 2011 Red Hat, Inc. + Copyright 2010, 2011, 2012 Red Hat, Inc. This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */ -#ifndef _EXCEPTION_H -#define _EXCEPTION_H +#pragma once #include @@ -29,5 +28,10 @@ public: ~exception () __attribute__ ((always_inline)) { _except_list = save; } }; -#endif /*_EXCEPTION_H*/ +void stackdump (DWORD, CONTEXT * = NULL, EXCEPTION_RECORD * = NULL); +extern void inline +stackdump (DWORD n, bool) +{ + stackdump (n, (CONTEXT *) 1); +} -- cgit v1.2.3