Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a24e330b
Commit
a24e330b
authored
Jan 28, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement DbgUiConnectToDbg().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f7c48da3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
ntdll.spec
dlls/ntdll/ntdll.spec
+1
-1
process.c
dlls/ntdll/process.c
+16
-0
winternl.h
include/winternl.h
+1
-0
No files found.
dlls/ntdll/ntdll.spec
View file @
a24e330b
...
...
@@ -34,7 +34,7 @@
@ stub DbgPrompt
# @ stub DbgQueryDebugFilterState
# @ stub DbgSetDebugFilterState
@ st
ub DbgUiConnectToDbg
@ st
dcall DbgUiConnectToDbg()
@ stub DbgUiContinue
@ stub DbgUiConvertStateChangeStructure
# @ stub DbgUiDebugActiveProcess
...
...
dlls/ntdll/process.c
View file @
a24e330b
...
...
@@ -135,6 +135,22 @@ void WINAPI DbgUiSetThreadDebugObject( HANDLE handle )
}
/***********************************************************************
* DbgUiConnectToDbg (NTDLL.@)
*/
NTSTATUS
WINAPI
DbgUiConnectToDbg
(
void
)
{
HANDLE
handle
;
NTSTATUS
status
;
OBJECT_ATTRIBUTES
attr
=
{
sizeof
(
attr
)
};
if
(
DbgUiGetThreadDebugObject
())
return
STATUS_SUCCESS
;
/* already connected */
status
=
NtCreateDebugObject
(
&
handle
,
DEBUG_ALL_ACCESS
,
&
attr
,
0
);
if
(
!
status
)
DbgUiSetThreadDebugObject
(
handle
);
return
status
;
}
/***********************************************************************
* DbgUiRemoteBreakin (NTDLL.@)
*/
void
WINAPI
DbgUiRemoteBreakin
(
void
*
arg
)
...
...
include/winternl.h
View file @
a24e330b
...
...
@@ -3020,6 +3020,7 @@ 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
NTSTATUS
WINAPI
DbgUiConnectToDbg
(
void
);
NTSYSAPI
HANDLE
WINAPI
DbgUiGetThreadDebugObject
(
void
);
NTSYSAPI
NTSTATUS
WINAPI
DbgUiIssueRemoteBreakin
(
HANDLE
);
NTSYSAPI
void
WINAPI
DbgUiRemoteBreakin
(
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