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
776c4a16
Commit
776c4a16
authored
Mar 28, 2016
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 29, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Improve dump_function_descr helper.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bc71c7de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
5 deletions
+22
-5
except_x86_64.c
dlls/msvcrt/except_x86_64.c
+22
-5
No files found.
dlls/msvcrt/except_x86_64.c
View file @
776c4a16
...
...
@@ -73,7 +73,11 @@ typedef struct
UINT
type_info
;
int
offset
;
UINT
handler
;
UINT
frame
;
}
catchblock_info
;
#define TYPE_FLAG_CONST 1
#define TYPE_FLAG_VOLATILE 2
#define TYPE_FLAG_REFERENCE 8
typedef
struct
{
...
...
@@ -84,6 +88,12 @@ typedef struct
UINT
catchblock
;
}
tryblock_info
;
typedef
struct
{
int
ip
;
int
state
;
}
ipmap_info
;
typedef
struct
__cxx_function_descr
{
UINT
magic
;
...
...
@@ -133,6 +143,7 @@ static void dump_function_descr(const cxx_function_descr *descr, ULONG64 image_b
{
unwind_info
*
unwind_table
=
rva_to_ptr
(
descr
->
unwind_table
,
image_base
);
tryblock_info
*
tryblock
=
rva_to_ptr
(
descr
->
tryblock
,
image_base
);
ipmap_info
*
ipmap
=
rva_to_ptr
(
descr
->
ipmap
,
image_base
);
UINT
i
,
j
;
TRACE
(
"magic %x
\n
"
,
descr
->
magic
);
...
...
@@ -147,18 +158,24 @@ static void dump_function_descr(const cxx_function_descr *descr, ULONG64 image_b
{
catchblock_info
*
catchblock
=
rva_to_ptr
(
tryblock
[
i
].
catchblock
,
image_base
);
TRACE
(
" %d: start %d end %d catchlevel %d catch%x(%p) %d
\n
"
,
i
,
TRACE
(
" %d: start %d end %d catchlevel %d catch
%x(%p) %d
\n
"
,
i
,
tryblock
[
i
].
start_level
,
tryblock
[
i
].
end_level
,
tryblock
[
i
].
catch_level
,
tryblock
[
i
].
catchblock
,
catchblock
,
tryblock
[
i
].
catchblock_count
);
for
(
j
=
0
;
j
<
tryblock
[
i
].
catchblock_count
;
j
++
)
{
TRACE
(
" %d: flags %x offset %d handler %x(%p) type %x %s
\n
"
,
j
,
catchblock
->
flags
,
catchblock
->
offset
,
catchblock
->
handler
,
rva_to_ptr
(
catchblock
->
handler
,
image_base
),
catchblock
->
type_info
,
dbgstr_type_info
(
rva_to_ptr
(
catchblock
->
type_info
,
image_base
)));
TRACE
(
" %d: flags %x offset %d handler %x(%p) frame %x type %x %s
\n
"
,
j
,
catchblock
[
j
].
flags
,
catchblock
[
j
].
offset
,
catchblock
[
j
].
handler
,
rva_to_ptr
(
catchblock
[
j
].
handler
,
image_base
),
catchblock
[
j
].
frame
,
catchblock
[
j
].
type_info
,
dbgstr_type_info
(
rva_to_ptr
(
catchblock
[
j
].
type_info
,
image_base
)));
}
}
TRACE
(
"ipmap: %x(%p) %d
\n
"
,
descr
->
ipmap
,
ipmap
,
descr
->
ipmap_count
);
for
(
i
=
0
;
i
<
descr
->
ipmap_count
;
i
++
)
{
TRACE
(
" %d: ip %x state %d
\n
"
,
i
,
ipmap
[
i
].
ip
,
ipmap
[
i
].
state
);
}
TRACE
(
"unwind_help %d
\n
"
,
descr
->
unwind_help
);
TRACE
(
"expect list: %x
\n
"
,
descr
->
expect_list
);
TRACE
(
"flags: %08x
\n
"
,
descr
->
flags
);
...
...
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