Ignore:
Timestamp:
Jun 17, 1999, 11:52:01 PM (26 years ago)
Author:
phaller
Message:

Fix: preparing support for HandleManager on kernel objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/exceptions.cpp

    r100 r114  
    1 /* $Id: exceptions.cpp,v 1.3 1999-06-10 20:47:51 phaller Exp $ */
     1/* $Id: exceptions.cpp,v 1.4 1999-06-17 21:51:59 phaller Exp $ */
    22
    33/*
     
    2323 *  __try{...}__finally{...}
    2424 *  statements is simply not documented by Microsoft. There could be different
    25  *  reasons for this: 
    26  *  One reason could be that they try to hide the fact that exception 
    27  *  handling in Win32 looks almost the same as in OS/2 2.x. 
     25 *  reasons for this:
     26 *  One reason could be that they try to hide the fact that exception
     27 *  handling in Win32 looks almost the same as in OS/2 2.x.
    2828 *  Another reason could be that Microsoft does not want others to write
    29  *  binary compatible implementations of the Win32 API (like us). 
    30  *
    31  *  Whatever the reason, THIS SUCKS!! Ensuring portabilty or future 
    32  *  compatability may be valid reasons to keep some things undocumented. 
    33  *  But exception handling is so basic to Win32 that it should be 
     29 *  binary compatible implementations of the Win32 API (like us).
     30 *
     31 *  Whatever the reason, THIS SUCKS!! Ensuring portabilty or future
     32 *  compatability may be valid reasons to keep some things undocumented.
     33 *  But exception handling is so basic to Win32 that it should be
    3434 *  documented!
    3535 *
     
    3737 *  -Most functions need better parameter checking.
    3838 *  -I do not know how to handle exceptions within an exception handler.
    39  *   or what is done when ExceptionNestedException is returned from an 
     39 *   or what is done when ExceptionNestedException is returned from an
    4040 *   exception handler
    4141 *  -Real exceptions are not yet implemented. only the exception functions
     
    310310      pszExceptionName = "Guard Page Violation";
    311311      sprintf(szData,
    312               "R/W %08x at %08x.",
     312              "R/W %08xh at %08xh.",
    313313              pERepRec->ExceptionInfo[0],
    314314              pERepRec->ExceptionInfo[1]);
     
    334334        case XCPT_READ_ACCESS:
    335335           sprintf (szData,
    336                     "Read Access at address %08x",
     336                    "Read Access at address %08xh",
    337337                    pERepRec->ExceptionInfo[1]);
    338338           break;
     
    567567
    568568  if (rc == NO_ERROR)
    569     dprintf(("%s (#%u), Obj #%u, Offset %08x\n",
     569    dprintf(("%s (#%u), obj #%u:%08x\n",
    570570             szModule,
    571571             ulModule,
     
    602602
    603603  if (pCtxRec->ContextFlags & CONTEXT_INTEGER)         /* check flags */
    604     dprintf(("   EAX=%08x ESI=%08x\n"
    605              "   EBX=%08x EDI=%08x\n"
    606              "   ECX=%08x\n"
    607              "   EDX=%08x\n",
     604    dprintf(("   EAX=%08x EBX=%08x ESI=%08x\n"
     605             "   ECX=%08x EDX=%08x EDI=%08x\n",
    608606             pCtxRec->ctx_RegEax,
     607             pCtxRec->ctx_RegEbx,
    609608             pCtxRec->ctx_RegEsi,
    610              pCtxRec->ctx_RegEbx,
    611              pCtxRec->ctx_RegEdi,
    612609             pCtxRec->ctx_RegEcx,
    613              pCtxRec->ctx_RegEdx));
     610             pCtxRec->ctx_RegEdx,
     611             pCtxRec->ctx_RegEdi));
    614612
    615613  if (pCtxRec->ContextFlags & CONTEXT_SEGMENTS)        /* check flags */
    616     dprintf(("   DS=%08x\n"
    617              "   ES=%08x\n"
    618              "   FS=%08x\n"
    619              "   GS=%08x\n",
     614    dprintf(("   DS=%04x     ES=%08x"
     615             "   FS=%04x     GS=%04x\n",
    620616              pCtxRec->ctx_SegDs,
    621617              pCtxRec->ctx_SegEs,
Note: See TracChangeset for help on using the changeset viewer.