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
bf8509d3
Commit
bf8509d3
authored
May 14, 2006
by
Eric Pouech
Committed by
Alexandre Julliard
May 15, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Fixed regression for command 'bt all'.
Don't print 'process has terminated' message when detaching from a process (or backtracing it).
parent
0ddd1c9e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
stack.c
programs/winedbg/stack.c
+8
-1
tgt_active.c
programs/winedbg/tgt_active.c
+1
-1
No files found.
programs/winedbg/stack.c
View file @
bf8509d3
...
...
@@ -313,7 +313,11 @@ static void backtrace_tid(struct dbg_process* pcs, DWORD tid)
dbg_printf
(
"Can't get context for thread 0x%lx in current process
\n
"
,
tid
);
}
else
backtrace
();
else
{
stack_fetch_frames
();
backtrace
();
}
ResumeThread
(
dbg_curr_thread
->
handle
);
}
else
dbg_printf
(
"Can't suspend thread 0x%lx in current process
\n
"
,
tid
);
...
...
@@ -331,6 +335,7 @@ static void backtrace_tid(struct dbg_process* pcs, DWORD tid)
*/
static
void
backtrace_all
(
void
)
{
struct
dbg_process
*
process
=
dbg_curr_process
;
THREADENTRY32
entry
;
HANDLE
snapshot
=
CreateToolhelp32Snapshot
(
TH32CS_SNAPTHREAD
,
0
);
...
...
@@ -370,6 +375,8 @@ static void backtrace_all(void)
dbg_curr_process
->
process_io
->
close_process
(
dbg_curr_process
,
FALSE
);
}
CloseHandle
(
snapshot
);
dbg_curr_process
=
process
;
dbg_curr_pid
=
process
?
process
->
pid
:
0
;
}
void
stack_backtrace
(
DWORD
tid
)
...
...
programs/winedbg/tgt_active.c
View file @
bf8509d3
...
...
@@ -490,6 +490,7 @@ static unsigned dbg_handle_debug_event(DEBUG_EVENT* de)
break
;
}
tgt_process_active_close_process
(
dbg_curr_process
,
FALSE
);
dbg_printf
(
"Process of pid=0x%08lx has terminated
\n
"
,
de
->
dwProcessId
);
break
;
case
CREATE_THREAD_DEBUG_EVENT
:
...
...
@@ -917,7 +918,6 @@ static BOOL tgt_process_active_close_process(struct dbg_process* pcs, BOOL kill)
if
(
!
kill
&&
!
DebugActiveProcessStop
(
dbg_curr_pid
))
return
FALSE
;
}
SymCleanup
(
pcs
->
handle
);
dbg_printf
(
"Process of pid=0x%08lx has terminated
\n
"
,
pcs
->
pid
);
dbg_del_process
(
pcs
);
return
TRUE
;
...
...
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