diff options
Diffstat (limited to 'winsup/cygwin/exception.h')
-rw-r--r-- | winsup/cygwin/exception.h | 12 |
1 files changed, 8 insertions, 4 deletions
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 <exceptions.h> @@ -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); +} |