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
1e12e90c
Commit
1e12e90c
authored
Sep 11, 2010
by
Eric Pouech
Committed by
Alexandre Julliard
Sep 13, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Fix regression with prevented StackWalk on i386 CPU to be called with a NULL context.
parent
ba5e8098
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
cpu_i386.c
dlls/dbghelp/cpu_i386.c
+18
-0
No files found.
dlls/dbghelp/cpu_i386.c
View file @
1e12e90c
...
...
@@ -108,6 +108,9 @@ static BOOL i386_stack_walk(struct cpu_stack_walk* csw, LPSTACKFRAME64 frame, CO
WORD
val
;
BOOL
do_switch
;
unsigned
deltapc
=
1
;
#ifdef __i386__
CONTEXT
_context
;
#endif
/* sanity check */
if
(
curr_mode
>=
stm_done
)
return
FALSE
;
...
...
@@ -120,6 +123,21 @@ static BOOL i386_stack_walk(struct cpu_stack_walk* csw, LPSTACKFRAME64 frame, CO
curr_mode
==
stm_start
?
"start"
:
(
curr_mode
==
stm_16bit
?
"16bit"
:
"32bit"
),
(
void
*
)(
DWORD_PTR
)
curr_switch
,
(
void
*
)(
DWORD_PTR
)
next_switch
);
#ifdef __i386__
if
(
!
context
)
{
/* setup a pseudo context for the rest of the code (esp. unwinding) */
context
=
&
_context
;
memset
(
context
,
0
,
sizeof
(
*
context
));
context
->
ContextFlags
=
CONTEXT_CONTROL
|
CONTEXT_SEGMENTS
;
if
(
frame
->
AddrPC
.
Mode
!=
AddrModeFlat
)
context
->
SegCs
=
frame
->
AddrPC
.
Segment
;
context
->
Eip
=
frame
->
AddrPC
.
Offset
;
if
(
frame
->
AddrFrame
.
Mode
!=
AddrModeFlat
)
context
->
SegSs
=
frame
->
AddrFrame
.
Segment
;
context
->
Ebp
=
frame
->
AddrFrame
.
Offset
;
if
(
frame
->
AddrStack
.
Mode
!=
AddrModeFlat
)
context
->
SegSs
=
frame
->
AddrStack
.
Segment
;
context
->
Esp
=
frame
->
AddrStack
.
Offset
;
}
#endif
if
(
curr_mode
==
stm_start
)
{
THREAD_BASIC_INFORMATION
info
;
...
...
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