* 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.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user