Author: greatlrd
Date: Fri Mar 2 20:49:47 2007
New Revision: 25953
URL: http://svn.reactos.org/svn/reactos?rev=25953&view=rev
Log:
adding a small debugprint to detect if pseh going into a endless loop, if we see same msg from it repate it self whole time, we known then pseh have gone into endless loop.
Modified:
trunk/reactos/include/reactos/libs/pseh/framebased.h
Modified: trunk/reactos/include/reactos/libs/pseh/framebased.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/libs/pseh/…
==============================================================================
--- trunk/reactos/include/reactos/libs/pseh/framebased.h (original)
+++ trunk/reactos/include/reactos/libs/pseh/framebased.h Fri Mar 2 20:49:47 2007
@@ -29,6 +29,8 @@
#ifndef offsetof
# include <stddef.h>
#endif
+
+unsigned long __cdecl DbgPrint(const char * format, ...);
/*
Fall back to non-optimal, non-native NLG implementation for environments
@@ -71,6 +73,13 @@
_SEHPortableTryLevel_t * trylevel
)
{
+ /*
+ * help detetct if pseh going into endless loop
+ * if we see this debug msg repet never break
+ * we known something cause pseh going into
+ * endless loop, but it should never happen
+ */
+ DbgPrint("_SEHCompilerSpecificHandler(%p)\n", trylevel);
_SEHTryLevel_t * mytrylevel;
mytrylevel = _SEH_CONTAINING_RECORD(trylevel, _SEHTryLevel_t, ST_Header);
_SEHLongJmp(mytrylevel->ST_JmpBuf, 1);