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
38d7ea5c
Commit
38d7ea5c
authored
May 17, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Output minidump streams in order they appear in the file.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
61f31d14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
26 deletions
+13
-26
minidump.c
tools/winedump/minidump.c
+13
-26
No files found.
tools/winedump/minidump.c
View file @
38d7ea5c
...
...
@@ -40,21 +40,6 @@ static void dump_mdmp_string(DWORD rva)
printf
(
"<<?>>"
);
}
static
const
MINIDUMP_DIRECTORY
*
get_mdmp_dir
(
const
MINIDUMP_HEADER
*
hdr
,
unsigned
int
str_idx
)
{
const
MINIDUMP_DIRECTORY
*
dir
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
hdr
->
NumberOfStreams
;
i
++
)
{
dir
=
PRD
(
hdr
->
StreamDirectoryRva
+
i
*
sizeof
(
MINIDUMP_DIRECTORY
),
sizeof
(
MINIDUMP_DIRECTORY
));
if
(
!
dir
)
continue
;
if
(
dir
->
StreamType
==
str_idx
)
return
dir
;
}
return
NULL
;
}
enum
FileSig
get_kind_mdmp
(
void
)
{
const
DWORD
*
pdw
;
...
...
@@ -69,9 +54,9 @@ enum FileSig get_kind_mdmp(void)
void
mdmp_dump
(
void
)
{
const
MINIDUMP_HEADER
*
hdr
=
PRD
(
0
,
sizeof
(
MINIDUMP_HEADER
));
UINT
idx
,
ndir
=
0
;
const
MINIDUMP_DIRECTORY
*
dir
;
const
void
*
stream
;
unsigned
int
idx
;
if
(
!
hdr
)
{
...
...
@@ -79,27 +64,29 @@ void mdmp_dump(void)
return
;
}
printf
(
"Signature: %
u (%.4s)
\n
"
,
(
UINT
)
hdr
->
Signature
,
(
const
char
*
)
&
hdr
->
Signature
);
printf
(
"Version: %
x
\n
"
,
(
UINT
)
hdr
->
Version
);
printf
(
"NumberOfStreams: %u
\n
"
,
(
UINT
)
hdr
->
NumberOfStreams
);
printf
(
"Signature: %
#x (%.4s)
\n
"
,
hdr
->
Signature
,
(
const
char
*
)
&
hdr
->
Signature
);
printf
(
"Version: %
#x
\n
"
,
hdr
->
Version
);
printf
(
"NumberOfStreams: %u
\n
"
,
hdr
->
NumberOfStreams
);
printf
(
"StreamDirectoryRva: %u
\n
"
,
(
UINT
)
hdr
->
StreamDirectoryRva
);
printf
(
"CheckSum: %u
\n
"
,
(
UINT
)
hdr
->
CheckSum
);
printf
(
"CheckSum: %u
\n
"
,
hdr
->
CheckSum
);
printf
(
"TimeDateStamp: %s
\n
"
,
get_time_str
(
hdr
->
TimeDateStamp
));
printf
(
"Flags: %x%08x
\n
"
,
(
UINT
)(
hdr
->
Flags
>>
32
),
(
UINT
)
hdr
->
Flags
);
for
(
idx
=
0
;
idx
<
=
LastReservedStream
;
idx
++
)
for
(
idx
=
0
;
idx
<
hdr
->
NumberOfStreams
;
++
idx
)
{
if
(
!
(
dir
=
get_mdmp_dir
(
hdr
,
idx
)))
continue
;
dir
=
PRD
(
hdr
->
StreamDirectoryRva
+
idx
*
sizeof
(
MINIDUMP_DIRECTORY
),
sizeof
(
*
dir
));
if
(
!
dir
)
break
;
stream
=
PRD
(
dir
->
Location
.
Rva
,
dir
->
Location
.
DataSize
);
printf
(
"Directory [%u]: "
,
ndir
++
);
printf
(
"Stream [%u]: "
,
idx
);
switch
(
dir
->
StreamType
)
{
case
ThreadListStream
:
{
const
MINIDUMP_THREAD_LIST
*
mtl
=
(
const
MINIDUMP_THREAD_LIST
*
)
stream
;
const
MINIDUMP_THREAD
*
mt
=
mtl
->
Threads
;
unsigned
int
i
;
const
MINIDUMP_THREAD_LIST
*
mtl
=
stream
;
const
MINIDUMP_THREAD
*
mt
=
mtl
->
Threads
;
unsigned
int
i
;
printf
(
"Threads: %u
\n
"
,
(
UINT
)
mtl
->
NumberOfThreads
);
for
(
i
=
0
;
i
<
mtl
->
NumberOfThreads
;
i
++
,
mt
++
)
...
...
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