diff options
author | Christopher Faylor <me@cgf.cx> | 2012-02-12 22:43:33 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2012-02-12 22:43:33 +0000 |
commit | e52a43f10116f1481d2b8c5cf7b935749cbd3a4d (patch) | |
tree | 26a7ead58601442735f5a66d0a2951a900def95d /winsup/cygwin/exception.h | |
parent | ce48510394663e2fbac99395030cdecdf0b61671 (diff) | |
download | cygnal-e52a43f10116f1481d2b8c5cf7b935749cbd3a4d.tar.gz cygnal-e52a43f10116f1481d2b8c5cf7b935749cbd3a4d.tar.bz2 cygnal-e52a43f10116f1481d2b8c5cf7b935749cbd3a4d.zip |
* 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/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); +} |