Changeset 21916 for trunk/src/kernel32/exceptions.cpp
- Timestamp:
- Dec 18, 2011, 10:28:22 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 bin 2 Makefile.inc 1 env.cmd 2 LocalConfig.kmk
-
-
Property svn:mergeinfo
set to
/branches/gcc-kmk merged eligible
- Property svn:ignore
-
trunk/src/kernel32/exceptions.cpp
r21662 r21916 109 109 static PEXCEPTION_HANDLER StartupCodeHandler = NULL; 110 110 111 extern "C" PWINEXCEPTION_FRAME GetExceptionRecord(ULONG offset, ULONG segment); 111 extern "C" { 112 113 PWINEXCEPTION_FRAME GetExceptionRecord(ULONG offset, ULONG segment); 112 114 113 115 LONG WIN32API UnhandledExceptionFilter(PWINEXCEPTION_POINTERS lpexpExceptionInfo); … … 118 120 PCONTEXTRECORD pCtxRec, PVOID p, PSZ szTrapDump); 119 121 120 extern "C"121 122 int __cdecl __seh_handler(PWINEXCEPTION_RECORD pRec, 122 123 PWINEXCEPTION_FRAME pFrame, 123 124 PCONTEXTRECORD pContext, PVOID pVoid); 124 125 125 extern "C"126 126 PWINEXCEPTION_FRAME __cdecl __seh_get_prev_frame(PWINEXCEPTION_FRAME pFrame); 127 127 … … 162 162 } 163 163 164 #if 0164 #ifdef __EMX__ 165 165 static inline WINEXCEPTION_FRAME * EXC_push_frame( WINEXCEPTION_FRAME *frame ) 166 166 { … … 182 182 183 183 /***************************************************************************** 184 * Name : VOID _ Pascal OS2RaiseException184 * Name : VOID __cdecl OS2RaiseException 185 185 * Purpose : Unwinds exception handlers (heavily influenced by Wine) 186 186 * Parameters: ... … … 195 195 void WIN32API RtlRaiseException(WINEXCEPTION_RECORD *rec, WINCONTEXT *context); 196 196 197 VOID _ Pascal OS2RaiseException(DWORD dwExceptionCode,197 VOID __cdecl OS2RaiseException(DWORD dwExceptionCode, 198 198 DWORD dwExceptionFlags, 199 199 DWORD cArguments, … … 308 308 } 309 309 310 #if 1 310 #ifndef __EMX__ 311 extern "C" 311 312 DWORD EXC_CallHandler( WINEXCEPTION_RECORD *record, WINEXCEPTION_FRAME *frame, 312 313 WINCONTEXT *context, WINEXCEPTION_FRAME **dispatcher, … … 441 442 } 442 443 /***************************************************************************** 443 * Name : int _ Pascal OS2RtlUnwind444 * Name : int __cdecl OS2RtlUnwind 444 445 * Purpose : Unwinds exception handlers (heavily influenced by Wine) 445 446 * Parameters: ... … … 452 453 *****************************************************************************/ 453 454 454 int _ Pascal OS2RtlUnwind(PWINEXCEPTION_FRAME pEndFrame,455 int __cdecl OS2RtlUnwind(PWINEXCEPTION_FRAME pEndFrame, 455 456 LPVOID unusedEip, 456 457 PWINEXCEPTION_RECORD pRecord, … … 756 757 } 757 758 758 P SZpszExceptionName = "<unknown>"; /* points to name/type excpt */759 PCSZ pszExceptionName = "<unknown>"; /* points to name/type excpt */ 759 760 APIRET rc = XCPT_CONTINUE_SEARCH; /* excpt-dep. code */ 760 761 BOOL fExcptSoftware = FALSE; /* software/hardware gen. exceptn */ … … 1181 1182 1182 1183 if(lpszExeName) { 1183 DosWrite(hFile, "\n", 2, &ulBytesWritten);1184 DosWrite(hFile, (PVOID)"\n", 2, &ulBytesWritten); 1184 1185 DosWrite(hFile, lpszExeName, strlen(lpszExeName), &ulBytesWritten); 1185 DosWrite(hFile, "\n", 2, &ulBytesWritten);1186 DosWrite(hFile, (PVOID)"\n", 2, &ulBytesWritten); 1186 1187 } 1187 1188 } … … 1791 1792 * Author : Sander van Leeuwen [Sun, 1999/08/21 12:16] 1792 1793 *****************************************************************************/ 1793 void OS2SetExceptionHandler(void *exceptframe)1794 void SYSTEM OS2SetExceptionHandler(void *exceptframe) 1794 1795 { 1795 1796 PEXCEPTIONREGISTRATIONRECORD pExceptRec = (PEXCEPTIONREGISTRATIONRECORD)exceptframe; … … 1954 1955 * Author : Sander van Leeuwen [Sun, 1999/08/21 12:16] 1955 1956 *****************************************************************************/ 1956 void OS2UnsetExceptionHandler(void *exceptframe)1957 void SYSTEM OS2UnsetExceptionHandler(void *exceptframe) 1957 1958 { 1958 1959 PEXCEPTIONREGISTRATIONRECORD pExceptRec = (PEXCEPTIONREGISTRATIONRECORD)exceptframe; … … 1986 1987 //***************************************************************************** 1987 1988 1989 } // extern "C" 1990
Note:
See TracChangeset
for help on using the changeset viewer.