Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2012-02-13 02:43:33 +0400
committerChristopher Faylor <me@cgf.cx>2012-02-13 02:43:33 +0400
commite52a43f10116f1481d2b8c5cf7b935749cbd3a4d (patch)
tree26a7ead58601442735f5a66d0a2951a900def95d /winsup/cygwin/exception.h
parentce48510394663e2fbac99395030cdecdf0b61671 (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/exception.h')
-rw-r--r--winsup/cygwin/exception.h12
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);
+}