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
fbd08d59
Commit
fbd08d59
authored
Jan 16, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Kill the whole target process on exit in auto mode.
parent
6d2063f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
tgt_active.c
programs/winedbg/tgt_active.c
+11
-6
No files found.
programs/winedbg/tgt_active.c
View file @
fbd08d59
...
...
@@ -774,7 +774,7 @@ enum dbg_start dbg_active_auto(int argc, char* argv[])
hFile
=
parser_generate_command_file
(
"echo Modules:"
,
"info share"
,
"echo Threads:"
,
"info threads"
,
"
backtrace"
,
"detach
"
,
NULL
);
"
kill
"
,
NULL
);
}
else
if
(
!
strcmp
(
argv
[
0
],
"--minidump"
))
{
...
...
@@ -839,7 +839,16 @@ enum dbg_start dbg_active_auto(int argc, char* argv[])
static
BOOL
tgt_process_active_close_process
(
struct
dbg_process
*
pcs
,
BOOL
kill
)
{
if
(
pcs
==
dbg_curr_process
)
if
(
kill
)
{
DWORD
exit_code
=
0
;
if
(
pcs
==
dbg_curr_process
&&
dbg_curr_thread
->
in_exception
)
exit_code
=
dbg_curr_thread
->
excpt_record
.
ExceptionCode
;
TerminateProcess
(
pcs
->
handle
,
exit_code
);
}
else
if
(
pcs
==
dbg_curr_process
)
{
/* remove all set breakpoints in debuggee code */
break_set_xpoints
(
FALSE
);
...
...
@@ -853,10 +862,6 @@ static BOOL tgt_process_active_close_process(struct dbg_process* pcs, BOOL kill)
ContinueDebugEvent
(
dbg_curr_pid
,
dbg_curr_tid
,
DBG_CONTINUE
);
}
}
if
(
kill
)
{
TerminateProcess
(
pcs
->
handle
,
0
);
}
else
{
if
(
!
DebugActiveProcessStop
(
pcs
->
pid
))
return
FALSE
;
...
...
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