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
f7c48da3
Commit
f7c48da3
authored
Jan 28, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement DbgUiGet/SetThreadDebugObject().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b6292124
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
ntdll.spec
dlls/ntdll/ntdll.spec
+2
-2
process.c
dlls/ntdll/process.c
+16
-0
winternl.h
include/winternl.h
+2
-0
No files found.
dlls/ntdll/ntdll.spec
View file @
f7c48da3
...
...
@@ -38,10 +38,10 @@
@ stub DbgUiContinue
@ stub DbgUiConvertStateChangeStructure
# @ stub DbgUiDebugActiveProcess
# @ stub DbgUiGetThreadDebugObject
@ stdcall DbgUiGetThreadDebugObject()
@ stdcall DbgUiIssueRemoteBreakin(long)
@ stdcall DbgUiRemoteBreakin(ptr)
# @ stub DbgUiSetThreadDebugObject
@ stdcall DbgUiSetThreadDebugObject(long)
# @ stub DbgUiStopDebugging
@ stub DbgUiWaitStateChange
@ stdcall DbgUserBreakPoint()
...
...
dlls/ntdll/process.c
View file @
f7c48da3
...
...
@@ -119,6 +119,22 @@ NTSTATUS WINAPI RtlCreateUserProcess( UNICODE_STRING *path, ULONG attributes,
}
/***********************************************************************
* DbgUiGetThreadDebugObject (NTDLL.@)
*/
HANDLE
WINAPI
DbgUiGetThreadDebugObject
(
void
)
{
return
NtCurrentTeb
()
->
DbgSsReserved
[
1
];
}
/***********************************************************************
* DbgUiSetThreadDebugObject (NTDLL.@)
*/
void
WINAPI
DbgUiSetThreadDebugObject
(
HANDLE
handle
)
{
NtCurrentTeb
()
->
DbgSsReserved
[
1
]
=
handle
;
}
/***********************************************************************
* DbgUiRemoteBreakin (NTDLL.@)
*/
void
WINAPI
DbgUiRemoteBreakin
(
void
*
arg
)
...
...
include/winternl.h
View file @
f7c48da3
...
...
@@ -3020,8 +3020,10 @@ typedef struct _PS_CREATE_INFO
NTSYSAPI
void
WINAPI
DbgBreakPoint
(
void
);
NTSYSAPI
NTSTATUS
WINAPIV
DbgPrint
(
LPCSTR
fmt
,
...);
NTSYSAPI
NTSTATUS
WINAPIV
DbgPrintEx
(
ULONG
iComponentId
,
ULONG
Level
,
LPCSTR
fmt
,
...);
NTSYSAPI
HANDLE
WINAPI
DbgUiGetThreadDebugObject
(
void
);
NTSYSAPI
NTSTATUS
WINAPI
DbgUiIssueRemoteBreakin
(
HANDLE
);
NTSYSAPI
void
WINAPI
DbgUiRemoteBreakin
(
void
*
);
NTSYSAPI
void
WINAPI
DbgUiSetThreadDebugObject
(
HANDLE
);
NTSYSAPI
void
WINAPI
DbgUserBreakPoint
(
void
);
NTSYSAPI
NTSTATUS
WINAPI
LdrAccessResource
(
HMODULE
,
const
IMAGE_RESOURCE_DATA_ENTRY
*
,
void
**
,
PULONG
);
NTSYSAPI
NTSTATUS
WINAPI
LdrAddDllDirectory
(
const
UNICODE_STRING
*
,
void
**
);
...
...
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