Added binary compatible __EH_prolog.

This commit is contained in:
Jon Griffiths 2001-01-11 22:30:19 +00:00 committed by Alexandre Julliard
parent 558b66077f
commit e5348e27b3
2 changed files with 18 additions and 9 deletions

View File

@ -44,14 +44,6 @@ typedef struct _EXCEPTION_REGISTRATION
PCONTEXT, PEXCEPTION_RECORD);
} EXCEPTION_REGISTRATION;
/*********************************************************************
* _EH_prolog (MSVCRT.@)
*/
void __cdecl MSVCRT__EH_prolog(void)
{
FIXME("stub\n");
}
/*********************************************************************
* _XcptFilter (MSVCRT.@)
*/
@ -61,6 +53,23 @@ int __cdecl MSVCRT__XcptFilter(int ex, PEXCEPTION_POINTERS ptr)
return UnhandledExceptionFilter(ptr);
}
/*********************************************************************
* _EH_prolog (MSVCRT.@)
*/
#ifdef __i386__
/* Provided for VC++ binary compatability only */
__ASM_GLOBAL_FUNC(MSVCRT__EH_prolog,
"pushl $0xff\n\t"
"pushl %eax\n\t"
"pushl %fs:0\n\t"
"movl %esp, %fs:0\n\t"
"movl 12(%esp), %eax\n\t"
"movl %ebp, 12(%esp)\n\t"
"leal 12(%esp), %ebp\n\t"
"pushl %eax\n\t"
"ret");
#endif
/*******************************************************************
* _global_unwind2 (MSVCRT.@)
*/

View File

@ -74,7 +74,7 @@ debug_channels (msvcrt)
@ cdecl -noimport _CItan() MSVCRT__CItan
@ cdecl -noimport _CItanh() MSVCRT__CItanh
@ stub _CxxThrowException
@ cdecl _EH_prolog() MSVCRT__EH_prolog # FIXME: crashes relay debugging
@ cdecl -i386 -norelay _EH_prolog() MSVCRT__EH_prolog
@ cdecl _Getdays() MSVCRT__Getdays
@ cdecl _Getmonths() MSVCRT__Getmonths
@ cdecl _Getnames() MSVCRT__Getnames