Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
79cb7798
Commit
79cb7798
authored
Oct 07, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Move the 16-bit debugger functions to kernel16.c.
parent
c57fd07d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
48 deletions
+23
-48
debugger.c
dlls/kernel32/debugger.c
+0
-48
kernel16.c
dlls/kernel32/kernel16.c
+23
-0
No files found.
dlls/kernel32/debugger.c
View file @
79cb7798
...
...
@@ -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"
...
...
@@ -358,23 +357,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.@)
*
* Raises an exception so that a debugger (if attached)
...
...
@@ -421,36 +403,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.@)
*
* Allows a process to determine if there is a debugger attached.
...
...
dlls/kernel32/kernel16.c
View file @
79cb7798
...
...
@@ -175,6 +175,29 @@ INT16 WINAPI lstrlen16( LPCSTR 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)
*/
void
WINAPI
hmemcpy16
(
LPVOID
dst
,
LPCVOID
src
,
LONG
count
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment