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
17de5daa
Commit
17de5daa
authored
Dec 03, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Add dumping of UWOP_EPILOG entries.
parent
8c41a215
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
pe.c
tools/winedump/pe.c
+22
-1
No files found.
tools/winedump/pe.c
View file @
17de5daa
...
...
@@ -833,6 +833,7 @@ struct unwind_info_epilogue_armnt
#define UWOP_SET_FPREG 3
#define UWOP_SAVE_NONVOL 4
#define UWOP_SAVE_NONVOL_FAR 5
#define UWOP_EPILOG 6
#define UWOP_SAVE_XMM128 8
#define UWOP_SAVE_XMM128_FAR 9
#define UWOP_PUSH_MACHFRAME 10
...
...
@@ -861,7 +862,7 @@ static void dump_x86_64_unwind_info( const struct runtime_function_x86_64 *funct
info
=
RVA
(
function
->
UnwindData
,
sizeof
(
*
info
)
);
printf
(
" unwind info at %08x
\n
"
,
function
->
UnwindData
);
if
(
info
->
version
!=
1
)
if
(
info
->
version
>
2
)
{
printf
(
" *** unknown version %u
\n
"
,
info
->
version
);
return
;
...
...
@@ -878,6 +879,11 @@ static void dump_x86_64_unwind_info( const struct runtime_function_x86_64 *funct
for
(
i
=
0
;
i
<
info
->
count
;
i
++
)
{
if
(
info
->
opcodes
[
i
].
code
==
UWOP_EPILOG
)
{
i
++
;
continue
;
}
printf
(
" 0x%02x: "
,
info
->
opcodes
[
i
].
offset
);
switch
(
info
->
opcodes
[
i
].
code
)
{
...
...
@@ -934,6 +940,21 @@ static void dump_x86_64_unwind_info( const struct runtime_function_x86_64 *funct
}
}
if
(
info
->
version
==
2
&&
info
->
opcodes
[
0
].
code
==
UWOP_EPILOG
)
/* print the epilogs */
{
unsigned
int
end
=
function
->
EndAddress
;
unsigned
int
size
=
info
->
opcodes
[
0
].
offset
;
printf
(
" epilog 0x%x bytes
\n
"
,
size
);
if
(
info
->
opcodes
[
0
].
info
)
printf
(
" at %08x-%08x
\n
"
,
end
-
size
,
end
);
for
(
i
=
1
;
i
<
info
->
count
&&
info
->
opcodes
[
i
].
code
==
UWOP_EPILOG
;
i
++
)
{
unsigned
int
offset
=
(
info
->
opcodes
[
i
].
info
<<
8
)
+
info
->
opcodes
[
i
].
offset
;
if
(
!
offset
)
break
;
printf
(
" at %08x-%08x
\n
"
,
end
-
offset
,
end
-
offset
+
size
);
}
}
handler_data
=
(
const
union
handler_data
*
)
&
info
->
opcodes
[(
info
->
count
+
1
)
&
~
1
];
if
(
info
->
flags
&
UNW_FLAG_CHAININFO
)
{
...
...
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