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
0c9195c6
Commit
0c9195c6
authored
Jul 14, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Jul 14, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove additional current process tracking in backtrace_all as it can
refer to freed memory.
parent
04a8cff1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
stack.c
programs/winedbg/stack.c
+3
-8
No files found.
programs/winedbg/stack.c
View file @
0c9195c6
...
@@ -209,17 +209,13 @@ static void backtrace_all(void)
...
@@ -209,17 +209,13 @@ static void backtrace_all(void)
entry
.
dwSize
=
sizeof
(
entry
);
entry
.
dwSize
=
sizeof
(
entry
);
if
(
Thread32First
(
snapshot
,
&
entry
))
if
(
Thread32First
(
snapshot
,
&
entry
))
{
{
struct
dbg_process
*
cp
=
dbg_curr_process
;
DWORD
cpid
=
dbg_curr_pid
;
do
do
{
{
if
(
entry
.
th32OwnerProcessID
==
GetCurrentProcessId
())
continue
;
if
(
entry
.
th32OwnerProcessID
==
GetCurrentProcessId
())
continue
;
if
(
dbg_curr_process
&&
dbg_curr_pid
!=
cpid
)
if
(
dbg_curr_process
&&
dbg_curr_pid
!=
entry
.
th32OwnerProcessID
)
dbg_detach_debuggee
();
dbg_detach_debuggee
();
if
(
entry
.
th32OwnerProcessID
==
cpid
)
if
(
entry
.
th32OwnerProcessID
!=
dbg_curr_pid
)
dbg_curr_process
=
cp
;
else
if
(
entry
.
th32OwnerProcessID
!=
dbg_curr_pid
)
{
{
if
(
!
dbg_attach_debuggee
(
entry
.
th32OwnerProcessID
,
FALSE
,
TRUE
))
if
(
!
dbg_attach_debuggee
(
entry
.
th32OwnerProcessID
,
FALSE
,
TRUE
))
{
{
...
@@ -236,9 +232,8 @@ static void backtrace_all(void)
...
@@ -236,9 +232,8 @@ static void backtrace_all(void)
}
}
while
(
Thread32Next
(
snapshot
,
&
entry
));
while
(
Thread32Next
(
snapshot
,
&
entry
));
if
(
dbg_curr_process
&&
dbg_curr_pid
!=
cpid
)
if
(
dbg_curr_process
)
dbg_detach_debuggee
();
dbg_detach_debuggee
();
dbg_curr_process
=
cp
;
dbg_curr_pid
=
cpid
;
}
}
CloseHandle
(
snapshot
);
CloseHandle
(
snapshot
);
}
}
...
...
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