- Timestamp:
- Dec 31, 1999, 11:47:12 AM (26 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/makefile
r2253 r2280 1 # $Id: makefile,v 1.7 5 1999-12-29 18:49:50sandervl Exp $1 # $Id: makefile,v 1.76 1999-12-31 10:47:11 sandervl Exp $ 2 2 3 3 # … … 47 47 atom.obj disk.obj directory.obj cvtbitmap.obj hmmmap.obj winfakepeldr.obj \ 48 48 cvtaccel.obj cvticon.obj cvticongrp.obj oslibexcept.obj cpu.obj process.obj \ 49 cvtcursor.obj cvtcursorgrp.obj stubs.obj interlock.obj toolhelp.obj codepage.obj 49 cvtcursor.obj cvtcursorgrp.obj stubs.obj interlock.obj toolhelp.obj codepage.obj \ 50 debug.obj oslibdebug.obj 50 51 51 52 … … 211 212 $(PDWIN32_INCLUDE)\wprocess.h \ 212 213 $(PDWIN32_INCLUDE)\win\thread.h \ 214 oslibdebug.h \ 213 215 console2.h \ 214 216 mmap.h \ … … 413 415 codepage.obj: codepage.cpp oslibdos.h profile.h $(PDWIN32_INCLUDE)\codepage.h 414 416 417 debug.obj: debug.cpp oslibdebug.h 418 oslibdebug.obj: oslibdebug.cpp oslibdebug.h 419 415 420 clean: 416 421 $(RM) *.OBJ *.LIB *.dll *.lrf *.res *.map *.pch kernelrsrc.asm -
trunk/src/kernel32/stubs.cpp
r2229 r2280 1 /* $Id: stubs.cpp,v 1.1 6 1999-12-28 19:16:35sandervl Exp $ */1 /* $Id: stubs.cpp,v 1.17 1999-12-31 10:47:11 sandervl Exp $ */ 2 2 3 3 /* … … 607 607 608 608 609 /*****************************************************************************610 * Name : BOOL WIN32API ContinueDebugEvent611 * Purpose : The ContinueDebugEvent function enables a debugger to continue612 * a thread that previously reported a debugging event.613 * Parameters: DWORD dwProcessId process to continue614 DWORD dwThreadId thread to continue615 DWORD dwContinueStatus continuation status616 * Variables :617 * Result : If the function succeeds, the return value is nonzero.618 * If the function fails, the return value is zero.619 * To get extended error information, call GetLastError.620 * Remark : Only the thread that created dwProcessId with the CreateProcess621 * function can call ContinueDebugEvent.622 * After the ContinueDebugEvent function succeeds, the specified623 * thread continues. Depending on the debugging event previously624 * reported by the thread, different actions occur. If the continued625 * thread previously reported an EXIT_THREAD_DEBUG_EVENT626 * debugging event, ContinueDebugEvent closes the handle the627 * debugger has to the thread. If the continued thread previously628 * reported an EXIT_PROCESS_DEBUG_EVENT debugging event,629 * ContinueDebugEvent closes the handles the debugger has to the630 * process and to the thread.631 * Status : UNTESTED STUB632 *633 * Author : Markus Montkowski [Thu, 1998/05/19 11:46]634 *****************************************************************************/635 636 BOOL WIN32API ContinueDebugEvent( DWORD dwProcessId, DWORD dwThreadId,637 DWORD dwContinueStatus)638 {639 640 dprintf(("KERNEL32: ContinueDebugEvent(%08x,%08x,%08x)not implemented\n",641 dwProcessId, dwThreadId, dwContinueStatus642 ));643 644 return (FALSE);645 }646 609 647 610 /***************************************************************************** … … 2870 2833 } 2871 2834 2872 2873 /*****************************************************************************2874 * Name : BOOL WaitForDebugEvent2875 * Purpose : The WaitForDebugEvent function waits for a debugging event to2876 * occur in a process being debugged.2877 * Parameters: LPDEBUG_EVENT lpde address of structure for event information2878 * DWORD dwTimeout number of milliseconds to wait for event2879 * Variables :2880 * Result : TRUE / FALSE2881 * Remark :2882 * Status : UNTESTED STUB2883 *2884 * Author : Patrick Haller [Mon, 1998/06/15 08:00]2885 *****************************************************************************/2886 2887 BOOL WIN32API WaitForDebugEvent(LPDEBUG_EVENT lpde,2888 DWORD dwTimeout)2889 {2890 dprintf(("KERNEL32: WaitForDebugEvent(%08xh,%08xh) not implemented.\n",2891 lpde,2892 dwTimeout));2893 2894 return (FALSE);2895 }2896 2897 2898 2835 /***************************************************************************** 2899 2836 * Name : BOOL WaitNamedPipeA -
trunk/src/kernel32/wprocess.cpp
r2264 r2280 1 /* $Id: wprocess.cpp,v 1.6 2 1999-12-30 11:19:54sandervl Exp $ */1 /* $Id: wprocess.cpp,v 1.63 1999-12-31 10:47:12 sandervl Exp $ */ 2 2 3 3 /* … … 32 32 #include "exceptutil.h" 33 33 #include "oslibmisc.h" 34 #include "oslibdebug.h" 34 35 35 36 #include "console.h" … … 707 708 LPPROCESS_INFORMATION lpProcessInfo ) 708 709 { 710 THDB *pThreadDB = (THDB*)GetThreadTHDB(); 711 char *cmdline = NULL; 709 712 BOOL rc; 710 char *cmdline = NULL;711 713 712 714 dprintf(("KERNEL32: CreateProcessA %s cline:%s inherit:%d cFlags:%x Env:%x CurDir:%s StartupFlags:%x\n", … … 722 724 lpEnvironment, lpCurrentDirectory, lpStartupInfo, 723 725 lpProcessInfo) == TRUE) 724 return(TRUE); 725 726 { 727 if (dwCreationFlags & DEBUG_PROCESS && pThreadDB != NULL) 728 { 729 if(pThreadDB->pidDebuggee != 0) 730 { 731 // TODO: handle this 732 dprintf(("KERNEL32: CreateProcess ERROR: This thread is already a debugger\n")); 733 } 734 else 735 { 736 pThreadDB->pidDebuggee = lpProcessInfo->dwProcessId; 737 OSLibStartDebugger((ULONG*)&pThreadDB->pidDebuggee); 738 } 739 } 740 else pThreadDB->pidDebuggee = 0; 741 742 return(TRUE); 743 } 726 744 //probably a win32 exe, so run it in the pe loader 727 745 if(lpApplicationName) { … … 751 769 lpEnvironment, lpCurrentDirectory, lpStartupInfo, 752 770 lpProcessInfo); 771 if(rc == TRUE) { 772 if (dwCreationFlags & DEBUG_PROCESS && pThreadDB != NULL) 773 { 774 if(pThreadDB->pidDebuggee != 0) 775 { 776 // TODO: handle this 777 dprintf(("KERNEL32: CreateProcess ERROR: This thread is already a debugger\n")); 778 } 779 else 780 { 781 pThreadDB->pidDebuggee = lpProcessInfo->dwProcessId; 782 OSLibStartDebugger((ULONG*)&pThreadDB->pidDebuggee); 783 } 784 } 785 else 786 pThreadDB->pidDebuggee = 0; 787 } 753 788 if(cmdline) 754 789 free(cmdline);
Note:
See TracChangeset
for help on using the changeset viewer.