- Timestamp:
- Jan 30, 2004, 11:17:00 PM (22 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/hmcomm.cpp
r10185 r10433 1 /* $Id: hmcomm.cpp,v 1.4 0 2003-07-28 11:35:31 sandervlExp $ */1 /* $Id: hmcomm.cpp,v 1.41 2004-01-30 22:16:59 bird Exp $ */ 2 2 3 3 /* … … 62 62 static DWORD CommWriteIOHandler(LPASYNCIOREQUEST lpRequest, DWORD *lpdwResult, DWORD *lpdwTimeOut); 63 63 static DWORD CommPollIOHandler(LPASYNCIOREQUEST lpRequest, DWORD *lpdwResult, DWORD *lpdwTimeOut); 64 #ifdef DEBUG 64 #ifdef DEBUG_LOGGING 65 65 static char *DebugCommEvent(DWORD dwEvents); 66 66 static char *DebugModemStatus(DWORD dwModemStatus); … … 249 249 comnr = comname[3] - '1'; 250 250 251 if(handler[comnr] == NULL) 251 if(handler[comnr] == NULL) 252 252 { 253 253 try { … … 445 445 dwEvent |= (COMEvt&0x0080)? EV_ERR:0; 446 446 dwEvent |= (COMEvt&0x0100)? EV_RING:0; 447 447 448 448 #ifdef DEBUG 449 449 if(dwEvent & EV_ERR) { … … 460 460 } 461 461 #endif 462 if((dwEvent & EV_RXCHAR) && (dwMask & EV_RXCHAR)) 462 if((dwEvent & EV_RXCHAR) && (dwMask & EV_RXCHAR)) 463 463 { 464 464 //check if there's really data in the in queue … … 552 552 &ulBytesWritten); 553 553 554 if(lpNumberOfBytesWritten) { 554 if(lpNumberOfBytesWritten) { 555 555 *lpNumberOfBytesWritten = (ret) ? ulBytesWritten : 0; 556 556 dprintf2(("KERNEL32:HMDeviceCommClass::WriteFile %d byte(s) written", *lpNumberOfBytesWritten)); … … 942 942 USHORT COMErr; 943 943 944 if(lpdwErrors == NULL) 944 if(lpdwErrors == NULL) 945 945 lpdwErrors = &dwError; 946 946 947 947 dprintf(("HMDeviceCommClass::ClearCommError")); 948 948 ulLen = sizeof(USHORT); … … 1666 1666 } 1667 1667 } 1668 #ifdef DEBUG 1668 #ifdef DEBUG_LOGGING 1669 1669 //****************************************************************************** 1670 1670 //****************************************************************************** … … 1672 1672 { 1673 1673 static char szCommEvents[128]; 1674 1674 1675 1675 szCommEvents[0] = 0; 1676 1676 … … 1706 1706 { 1707 1707 static char szModemStatus[128]; 1708 1708 1709 1709 szModemStatus[0] = 0; 1710 1710 -
trunk/src/kernel32/oslibdebug.cpp
r8504 r10433 1 /* $Id: oslibdebug.cpp,v 1. 7 2002-05-28 09:53:34 sandervlExp $ */1 /* $Id: oslibdebug.cpp,v 1.8 2004-01-30 22:17:00 bird Exp $ */ 2 2 3 3 /* … … 93 93 HEV hevSem = 0, 94 94 hevQSem = 0, 95 hevWinQSem = 0; 95 hevWinQSem = 0; 96 96 uDB_t DbgBuf = {0}; 97 97 int rc, rc2; … … 237 237 // break; 238 238 if (DbgBuf.Value == 0 && DbgBuf.Buffer == XCPT_BREAKPOINT) 239 { 239 { 240 240 dprintf(("Breakpoint encountered")); 241 // This may be win32 event exception as well as common int3 241 // This may be win32 event exception as well as common int3 242 242 Priority = 0; 243 243 ulElemCode = 0; … … 252 252 //Forward it to receiver 253 253 lpde2 = (LPDEBUG_EVENT) malloc(sizeof(DEBUG_EVENT)); 254 OSLibDebugReadMemory ( lpde, lpde2,sizeof(DEBUG_EVENT),NULL); 254 OSLibDebugReadMemory ( lpde, lpde2,sizeof(DEBUG_EVENT),NULL); 255 #ifdef DEBUG 255 256 dprintf(("DebugThread Win32 Event %s",GetDebugMsgText(lpde2->dwDebugEventCode))); 257 #endif 256 258 DosWriteQueue(QueueHandle, 0, sizeof(DEBUG_EVENT), lpde2, 0); 257 259 //Stay stopped 258 260 } 259 261 dprintf(("DebugThread - waiting for continue signal")); 260 DosWaitEventSem(hevSem, SEM_INDEFINITE_WAIT); 262 DosWaitEventSem(hevSem, SEM_INDEFINITE_WAIT); 261 263 DosResetEventSem(hevSem,&ulNumCalled); 262 264 DbgBuf.Cmd = DBG_C_ReadReg; … … 272 274 DbgBuf.Value = XCPT_CONTINUE_EXECUTION; 273 275 goto DebugApi; 274 } 276 } 275 277 DbgBuf.Cmd = DBG_C_Continue; 276 278 DbgBuf.Value = XCPT_CONTINUE_SEARCH; … … 592 594 USHORT sel = RestoreOS2FS(); 593 595 APIRET rc; 594 dprintf(("OSLibDebugReadMemory - reading from pid %d",superpid)); 596 dprintf(("OSLibDebugReadMemory - reading from pid %d",superpid)); 595 597 DbgBuf.Pid = superpid; 596 598 DbgBuf.Cmd = DBG_C_ReadMemBuf; … … 625 627 PID pidOwner; 626 628 627 dprintf(("OSLibAddWin32Event")); 629 dprintf(("OSLibAddWin32Event")); 628 630 // open main debug semaphore 629 631 strcat(SemName, itoa(getpid(),tmp, 10)); … … 662 664 } 663 665 _interrupt(3); 664 free(lpde_copy); 666 free(lpde_copy); 665 667 DosCloseEventSem(hevSem); 666 668 DosCloseQueue(WinQueueHandle); … … 668 670 return TRUE; 669 671 fail: 670 if (lpde_copy) free(lpde_copy); 672 if (lpde_copy) free(lpde_copy); 671 673 DosCloseEventSem(hevSem); 672 674 DosCloseQueue(WinQueueHandle); -
trunk/src/kernel32/windllbase.cpp
r10397 r10433 1 /* $Id: windllbase.cpp,v 1.3 4 2004-01-15 10:39:06 sandervlExp $ */1 /* $Id: windllbase.cpp,v 1.35 2004-01-30 22:17:00 bird Exp $ */ 2 2 3 3 /* … … 213 213 Win32DllBase *dll; 214 214 215 #ifdef DEBUG 215 216 dprintf(("Win32DllBase::AddRef %s->%s %d", parentname, getModuleName(), referenced+1)); 217 #endif 216 218 ++referenced; 217 219 #ifdef DEBUG
Note:
See TracChangeset
for help on using the changeset viewer.