mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
kernel32: Move the 16-bit debugger functions to kernel16.c.
This commit is contained in:
parent
c57fd07d27
commit
79cb7798f9
@ -22,7 +22,6 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "winerror.h"
|
||||
#include "wine/winbase16.h"
|
||||
#include "wine/server.h"
|
||||
#include "kernel_private.h"
|
||||
#include "wine/debug.h"
|
||||
@ -357,23 +356,6 @@ void WINAPI OutputDebugStringW( LPCWSTR str )
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* OutputDebugString (KERNEL.115)
|
||||
*
|
||||
* Output by a 16 bit application of an ascii string to a debugger (if attached)
|
||||
* and program log.
|
||||
*
|
||||
* PARAMS
|
||||
* str [I] The message to be logged and given to the debugger.
|
||||
*
|
||||
* RETURNS
|
||||
*/
|
||||
void WINAPI OutputDebugString16( LPCSTR str )
|
||||
{
|
||||
OutputDebugStringA( str );
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* DebugBreak (KERNEL32.@)
|
||||
*
|
||||
@ -420,36 +402,6 @@ BOOL WINAPI DebugBreakProcess(HANDLE hProc)
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* DebugBreak (KERNEL.203)
|
||||
*
|
||||
* Raises an exception in a 16 bit application so that a debugger (if attached)
|
||||
* can take some action.
|
||||
*
|
||||
* PARAMS
|
||||
*
|
||||
* RETURNS
|
||||
*
|
||||
* BUGS
|
||||
*
|
||||
* Only 386 compatible processors implemented.
|
||||
*/
|
||||
void WINAPI DebugBreak16(
|
||||
CONTEXT86 *context) /* [in/out] A pointer to the 386 compatible processor state. */
|
||||
{
|
||||
#ifdef __i386__
|
||||
EXCEPTION_RECORD rec;
|
||||
|
||||
rec.ExceptionCode = EXCEPTION_BREAKPOINT;
|
||||
rec.ExceptionFlags = 0;
|
||||
rec.ExceptionRecord = NULL;
|
||||
rec.ExceptionAddress = (LPVOID)context->Eip;
|
||||
rec.NumberParameters = 0;
|
||||
NtRaiseException( &rec, context, TRUE );
|
||||
#endif /* defined(__i386__) */
|
||||
}
|
||||
|
||||
|
||||
/***********************************************************************
|
||||
* IsDebuggerPresent (KERNEL32.@)
|
||||
*
|
||||
|
@ -174,6 +174,29 @@ INT16 WINAPI lstrlen16( LPCSTR str )
|
||||
return (INT16)lstrlenA( str );
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* OutputDebugString (KERNEL.115)
|
||||
*/
|
||||
void WINAPI OutputDebugString16( LPCSTR str )
|
||||
{
|
||||
OutputDebugStringA( str );
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* DebugBreak (KERNEL.203)
|
||||
*/
|
||||
void WINAPI DebugBreak16( CONTEXT *context )
|
||||
{
|
||||
EXCEPTION_RECORD rec;
|
||||
|
||||
rec.ExceptionCode = EXCEPTION_BREAKPOINT;
|
||||
rec.ExceptionFlags = 0;
|
||||
rec.ExceptionRecord = NULL;
|
||||
rec.ExceptionAddress = (LPVOID)context->Eip;
|
||||
rec.NumberParameters = 0;
|
||||
NtRaiseException( &rec, context, TRUE );
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* hmemcpy (KERNEL.348)
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user