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
40052019
Commit
40052019
authored
Jan 15, 2021
by
Paul Gofman
Committed by
Alexandre Julliard
Jan 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Support UWOP_PUSH_MACHFRAME on x64.
Signed-off-by:
Paul Gofman
<
pgofman@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6bcde005
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
cpu_x86_64.c
dlls/dbghelp/cpu_x86_64.c
+19
-2
No files found.
dlls/dbghelp/cpu_x86_64.c
View file @
40052019
...
...
@@ -474,6 +474,7 @@ static BOOL interpret_function_table_entry(struct cpu_stack_walk* csw,
DWORD64
newframe
,
prolog_offset
,
off
,
value
;
M128A
floatvalue
;
union
handler_data
handler_data
;
BOOL
mach_frame
=
FALSE
;
/* FIXME: we have some assumptions here */
assert
(
context
);
...
...
@@ -556,7 +557,23 @@ static BOOL interpret_function_table_entry(struct cpu_stack_walk* csw,
set_float_reg
(
context
,
info
->
UnwindCode
[
i
].
u
.
OpInfo
,
floatvalue
);
break
;
case
UWOP_PUSH_MACHFRAME
:
FIXME
(
"PUSH_MACHFRAME %u
\n
"
,
info
->
UnwindCode
[
i
].
u
.
OpInfo
);
if
(
info
->
Flags
&
UNW_FLAG_CHAININFO
)
{
FIXME
(
"PUSH_MACHFRAME with chained unwind info.
\n
"
);
break
;
}
if
(
i
+
get_opcode_size
(
info
->
UnwindCode
[
i
])
<
info
->
CountOfCodes
)
{
FIXME
(
"PUSH_MACHFRAME is not the last opcode.
\n
"
);
break
;
}
if
(
info
->
UnwindCode
[
i
].
u
.
OpInfo
)
context
->
Rsp
+=
0x8
;
if
(
!
sw_read_mem
(
csw
,
context
->
Rsp
,
&
context
->
Rip
,
sizeof
(
DWORD64
)))
return
FALSE
;
if
(
!
sw_read_mem
(
csw
,
context
->
Rsp
+
24
,
&
context
->
Rsp
,
sizeof
(
DWORD64
)))
return
FALSE
;
mach_frame
=
TRUE
;
break
;
default:
FIXME
(
"unknown code %u
\n
"
,
info
->
UnwindCode
[
i
].
u
.
UnwindOp
);
...
...
@@ -569,7 +586,7 @@ static BOOL interpret_function_table_entry(struct cpu_stack_walk* csw,
&
handler_data
,
sizeof
(
handler_data
)))
return
FALSE
;
function
=
&
handler_data
.
chain
;
/* restart with the chained info */
}
return
default_unwind
(
csw
,
context
);
return
mach_frame
?
TRUE
:
default_unwind
(
csw
,
context
);
}
/* fetch_next_frame()
...
...
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