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
6c0ecd09
Commit
6c0ecd09
authored
Mar 14, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Debugging our own process is disallowed.
parent
de6a0a86
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
debugger.c
dlls/kernel32/tests/debugger.c
+3
-0
debugger.c
server/debugger.c
+1
-0
No files found.
dlls/kernel32/tests/debugger.c
View file @
6c0ecd09
...
...
@@ -537,6 +537,9 @@ static void test_debug_loop(int argc, char **argv)
}
pid
=
GetCurrentProcessId
();
ret
=
DebugActiveProcess
(
pid
);
ok
(
!
ret
,
"DebugActiveProcess() succeeded on own process.
\n
"
);
get_file_name
(
blackbox_file
);
cmd
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
argv
[
0
])
+
strlen
(
arguments
)
+
strlen
(
blackbox_file
)
+
10
);
sprintf
(
cmd
,
"%s%s%08x %s"
,
argv
[
0
],
arguments
,
pid
,
blackbox_file
);
...
...
server/debugger.c
View file @
6c0ecd09
...
...
@@ -421,6 +421,7 @@ void generate_debug_event( struct thread *thread, int code, const void *arg )
static
int
debugger_attach
(
struct
process
*
process
,
struct
thread
*
debugger
)
{
if
(
process
->
debugger
)
goto
error
;
/* already being debugged */
if
(
debugger
->
process
==
process
)
goto
error
;
if
(
!
is_process_init_done
(
process
))
goto
error
;
/* still starting up */
if
(
list_empty
(
&
process
->
thread_list
))
goto
error
;
/* no thread running in the process */
...
...
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