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
4705b8a6
Commit
4705b8a6
authored
Apr 02, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid crash when trying to attach to a terminating process.
parent
23d4aab2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
debugger.c
server/debugger.c
+5
-5
No files found.
server/debugger.c
View file @
4705b8a6
...
...
@@ -425,6 +425,7 @@ static int debugger_attach( struct process *process, struct thread *debugger )
if
(
process
->
debugger
)
goto
error
;
/* already being debugged */
if
(
process
->
init_event
)
goto
error
;
/* still starting up */
if
(
!
process
->
thread_list
)
goto
error
;
/* no thread running in the process */
/* make sure we don't create a debugging loop */
for
(
thread
=
debugger
;
thread
;
thread
=
thread
->
process
->
debugger
)
...
...
@@ -437,19 +438,18 @@ static int debugger_attach( struct process *process, struct thread *debugger )
suspend_process
(
process
);
/* we must have been able to attach all threads */
if
(
!
process
->
thread_list
)
goto
error2
;
for
(
thread
=
process
->
thread_list
;
thread
;
thread
=
thread
->
proc_next
)
{
if
(
!
thread
->
attached
)
{
resume_process
(
process
);
goto
error
;
}
if
(
!
thread
->
attached
)
goto
error2
;
}
if
(
set_process_debugger
(
process
,
debugger
))
return
1
;
resume_process
(
process
);
return
0
;
error2:
resume_process
(
process
);
error:
set_error
(
STATUS_ACCESS_DENIED
);
return
0
;
...
...
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