Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
44eed246
Commit
44eed246
authored
Mar 13, 2011
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Fix StackWalk when dwarf or pdb unwinders are called on first frame (CPU i386).
parent
c5f329e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
14 deletions
+11
-14
cpu_i386.c
dlls/dbghelp/cpu_i386.c
+11
-14
No files found.
dlls/dbghelp/cpu_i386.c
View file @
44eed246
...
...
@@ -217,26 +217,23 @@ static BOOL i386_stack_walk(struct cpu_stack_walk* csw, LPSTACKFRAME64 frame, CO
{
DWORD_PTR
xframe
;
struct
pdb_cmd_pair
cpair
[
4
];
CONTEXT
newctx
=
*
context
;
if
(
dwarf2_virtual_unwind
(
csw
,
frame
->
AddrPC
.
Offset
-
deltapc
,
context
,
&
xframe
))
if
(
dwarf2_virtual_unwind
(
csw
,
frame
->
AddrPC
.
Offset
-
deltapc
,
&
newctx
,
&
xframe
))
{
frame
->
AddrStack
.
Mode
=
frame
->
AddrFrame
.
Mode
=
frame
->
AddrReturn
.
Mode
=
AddrModeFlat
;
frame
->
AddrStack
.
Offset
=
context
->
Esp
=
xframe
;
frame
->
AddrFrame
.
Offset
=
context
->
Ebp
;
frame
->
AddrReturn
.
Offset
=
context
->
Eip
;
frame
->
AddrReturn
.
Mode
=
AddrModeFlat
;
frame
->
AddrReturn
.
Offset
=
newctx
.
Eip
;
goto
done_pep
;
}
cpair
[
0
].
name
=
"$ebp"
;
cpair
[
0
].
pvalue
=
&
context
->
Ebp
;
cpair
[
1
].
name
=
"$esp"
;
cpair
[
1
].
pvalue
=
&
context
->
Esp
;
cpair
[
2
].
name
=
"$eip"
;
cpair
[
2
].
pvalue
=
&
context
->
Eip
;
cpair
[
3
].
name
=
NULL
;
cpair
[
3
].
pvalue
=
NULL
;
cpair
[
0
].
name
=
"$ebp"
;
cpair
[
0
].
pvalue
=
&
newctx
.
Ebp
;
cpair
[
1
].
name
=
"$esp"
;
cpair
[
1
].
pvalue
=
&
newctx
.
Esp
;
cpair
[
2
].
name
=
"$eip"
;
cpair
[
2
].
pvalue
=
&
newctx
.
Eip
;
cpair
[
3
].
name
=
NULL
;
cpair
[
3
].
pvalue
=
NULL
;
if
(
pdb_virtual_unwind
(
csw
,
frame
->
AddrPC
.
Offset
-
deltapc
,
context
,
cpair
))
if
(
pdb_virtual_unwind
(
csw
,
frame
->
AddrPC
.
Offset
-
deltapc
,
&
newctx
,
cpair
))
{
frame
->
AddrStack
.
Mode
=
frame
->
AddrFrame
.
Mode
=
frame
->
AddrReturn
.
Mode
=
AddrModeFlat
;
frame
->
AddrStack
.
Offset
=
context
->
Esp
;
frame
->
AddrFrame
.
Offset
=
context
->
Ebp
;
frame
->
AddrReturn
.
Offset
=
context
->
Eip
;
frame
->
AddrReturn
.
Mode
=
AddrModeFlat
;
frame
->
AddrReturn
.
Offset
=
newctx
.
Eip
;
goto
done_pep
;
}
}
...
...
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