mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:06:04 +00:00
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.
svn path=/trunk/; revision=25953
This commit is contained in:
parent
6a00d9d64a
commit
e48040833f
1 changed files with 9 additions and 0 deletions
|
@ -30,6 +30,8 @@
|
|||
# include <stddef.h>
|
||||
#endif
|
||||
|
||||
unsigned long __cdecl DbgPrint(const char * format, ...);
|
||||
|
||||
/*
|
||||
Fall back to non-optimal, non-native NLG implementation for environments
|
||||
without their own (e.g., currently, kernel-mode ReactOS/Windows). THIS IS NOT
|
||||
|
@ -71,6 +73,13 @@ static __declspec(noreturn) __inline void __stdcall _SEHCompilerSpecificHandler
|
|||
_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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue