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
4b865129
Commit
4b865129
authored
Apr 22, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Build with nameless unions/structs.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fdd0ad59
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
21 deletions
+15
-21
lib.c
tools/winedump/lib.c
+1
-3
minidump.c
tools/winedump/minidump.c
+14
-16
pdb.c
tools/winedump/pdb.c
+0
-2
pe.c
tools/winedump/pe.c
+0
-0
No files found.
tools/winedump/lib.c
View file @
4b865129
...
@@ -25,8 +25,6 @@
...
@@ -25,8 +25,6 @@
#include <stdlib.h>
#include <stdlib.h>
#include <fcntl.h>
#include <fcntl.h>
#define NONAMELESSUNION
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
#include "winnt.h"
#include "winnt.h"
...
@@ -60,7 +58,7 @@ static void dump_import_object(const IMPORT_OBJECT_HEADER *ioh)
...
@@ -60,7 +58,7 @@ static void dump_import_object(const IMPORT_OBJECT_HEADER *ioh)
printf
(
" Symbol name : %s
\n
"
,
name
);
printf
(
" Symbol name : %s
\n
"
,
name
);
printf
(
" Type : %s
\n
"
,
(
ioh
->
Type
<
ARRAY_SIZE
(
obj_type
))
?
obj_type
[
ioh
->
Type
]
:
"unknown"
);
printf
(
" Type : %s
\n
"
,
(
ioh
->
Type
<
ARRAY_SIZE
(
obj_type
))
?
obj_type
[
ioh
->
Type
]
:
"unknown"
);
printf
(
" Name type : %s
\n
"
,
(
ioh
->
NameType
<
ARRAY_SIZE
(
name_type
))
?
name_type
[
ioh
->
NameType
]
:
"unknown"
);
printf
(
" Name type : %s
\n
"
,
(
ioh
->
NameType
<
ARRAY_SIZE
(
name_type
))
?
name_type
[
ioh
->
NameType
]
:
"unknown"
);
printf
(
" %-13s: %u
\n
"
,
(
ioh
->
NameType
==
IMPORT_OBJECT_ORDINAL
)
?
"Ordinal"
:
"Hint"
,
ioh
->
u
.
Ordinal
);
printf
(
" %-13s: %u
\n
"
,
(
ioh
->
NameType
==
IMPORT_OBJECT_ORDINAL
)
?
"Ordinal"
:
"Hint"
,
ioh
->
Ordinal
);
printf
(
"
\n
"
);
printf
(
"
\n
"
);
}
}
}
}
...
...
tools/winedump/minidump.c
View file @
4b865129
...
@@ -21,8 +21,6 @@
...
@@ -21,8 +21,6 @@
#include "config.h"
#include "config.h"
#include <stdarg.h>
#include <stdarg.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "winedump.h"
#include "winedump.h"
#include "winver.h"
#include "winver.h"
#include "dbghelp.h"
#include "dbghelp.h"
...
@@ -86,7 +84,7 @@ void mdmp_dump(void)
...
@@ -86,7 +84,7 @@ void mdmp_dump(void)
printf
(
"NumberOfStreams: %u
\n
"
,
(
UINT
)
hdr
->
NumberOfStreams
);
printf
(
"NumberOfStreams: %u
\n
"
,
(
UINT
)
hdr
->
NumberOfStreams
);
printf
(
"StreamDirectoryRva: %u
\n
"
,
(
UINT
)
hdr
->
StreamDirectoryRva
);
printf
(
"StreamDirectoryRva: %u
\n
"
,
(
UINT
)
hdr
->
StreamDirectoryRva
);
printf
(
"CheckSum: %u
\n
"
,
(
UINT
)
hdr
->
CheckSum
);
printf
(
"CheckSum: %u
\n
"
,
(
UINT
)
hdr
->
CheckSum
);
printf
(
"TimeDateStamp: %s
\n
"
,
get_time_str
(
hdr
->
u
.
TimeDateStamp
));
printf
(
"TimeDateStamp: %s
\n
"
,
get_time_str
(
hdr
->
TimeDateStamp
));
printf
(
"Flags: %x%08x
\n
"
,
(
UINT
)(
hdr
->
Flags
>>
32
),
(
UINT
)
hdr
->
Flags
);
printf
(
"Flags: %x%08x
\n
"
,
(
UINT
)(
hdr
->
Flags
>>
32
),
(
UINT
)
hdr
->
Flags
);
for
(
idx
=
0
;
idx
<=
LastReservedStream
;
idx
++
)
for
(
idx
=
0
;
idx
<=
LastReservedStream
;
idx
++
)
...
@@ -298,7 +296,7 @@ void mdmp_dump(void)
...
@@ -298,7 +296,7 @@ void mdmp_dump(void)
str
=
"???"
;
str
=
"???"
;
break
;
break
;
}
}
printf
(
" Processor: %s (#%d CPUs)
\n
"
,
str
,
msi
->
u
.
s
.
NumberOfProcessors
);
printf
(
" Processor: %s (#%d CPUs)
\n
"
,
str
,
msi
->
NumberOfProcessors
);
switch
(
msi
->
MajorVersion
)
switch
(
msi
->
MajorVersion
)
{
{
case
3
:
case
3
:
...
@@ -323,8 +321,8 @@ void mdmp_dump(void)
...
@@ -323,8 +321,8 @@ void mdmp_dump(void)
case
0
:
str
=
"2000"
;
break
;
case
0
:
str
=
"2000"
;
break
;
case
1
:
str
=
"XP"
;
break
;
case
1
:
str
=
"XP"
;
break
;
case
2
:
case
2
:
if
(
msi
->
u
.
s
.
ProductType
==
1
)
str
=
"XP"
;
if
(
msi
->
ProductType
==
1
)
str
=
"XP"
;
else
if
(
msi
->
u
.
s
.
ProductType
==
3
)
str
=
"Server 2003"
;
else
if
(
msi
->
ProductType
==
3
)
str
=
"Server 2003"
;
else
str
=
"5-????"
;
else
str
=
"5-????"
;
break
;
break
;
default:
str
=
"5-????"
;
break
;
default:
str
=
"5-????"
;
break
;
...
@@ -334,23 +332,23 @@ void mdmp_dump(void)
...
@@ -334,23 +332,23 @@ void mdmp_dump(void)
switch
(
msi
->
MinorVersion
)
switch
(
msi
->
MinorVersion
)
{
{
case
0
:
case
0
:
if
(
msi
->
u
.
s
.
ProductType
==
1
)
str
=
"Vista"
;
if
(
msi
->
ProductType
==
1
)
str
=
"Vista"
;
else
if
(
msi
->
u
.
s
.
ProductType
==
3
)
str
=
"Server 2008"
;
else
if
(
msi
->
ProductType
==
3
)
str
=
"Server 2008"
;
else
str
=
"6-????"
;
else
str
=
"6-????"
;
break
;
break
;
case
1
:
case
1
:
if
(
msi
->
u
.
s
.
ProductType
==
1
)
str
=
"Win7"
;
if
(
msi
->
ProductType
==
1
)
str
=
"Win7"
;
else
if
(
msi
->
u
.
s
.
ProductType
==
3
)
str
=
"Server 2008 R2"
;
else
if
(
msi
->
ProductType
==
3
)
str
=
"Server 2008 R2"
;
else
str
=
"6-????"
;
else
str
=
"6-????"
;
break
;
break
;
case
2
:
case
2
:
if
(
msi
->
u
.
s
.
ProductType
==
1
)
str
=
"Win8"
;
if
(
msi
->
ProductType
==
1
)
str
=
"Win8"
;
else
if
(
msi
->
u
.
s
.
ProductType
==
3
)
str
=
"Server 2012"
;
else
if
(
msi
->
ProductType
==
3
)
str
=
"Server 2012"
;
else
str
=
"6-????"
;
else
str
=
"6-????"
;
break
;
break
;
case
3
:
case
3
:
if
(
msi
->
u
.
s
.
ProductType
==
1
)
str
=
"Win8.1"
;
if
(
msi
->
ProductType
==
1
)
str
=
"Win8.1"
;
else
if
(
msi
->
u
.
s
.
ProductType
==
3
)
str
=
"Server 2012 R2"
;
else
if
(
msi
->
ProductType
==
3
)
str
=
"Server 2012 R2"
;
else
str
=
"6-????"
;
else
str
=
"6-????"
;
break
;
break
;
default:
str
=
"6-????"
;
break
;
default:
str
=
"6-????"
;
break
;
...
@@ -360,7 +358,7 @@ void mdmp_dump(void)
...
@@ -360,7 +358,7 @@ void mdmp_dump(void)
switch
(
msi
->
MinorVersion
)
switch
(
msi
->
MinorVersion
)
{
{
case
0
:
case
0
:
if
(
msi
->
u
.
s
.
ProductType
==
1
)
str
=
"Win10"
;
if
(
msi
->
ProductType
==
1
)
str
=
"Win10"
;
else
str
=
"10-????"
;
else
str
=
"10-????"
;
break
;
break
;
default:
str
=
"10-????"
;
break
;
default:
str
=
"10-????"
;
break
;
...
@@ -373,7 +371,7 @@ void mdmp_dump(void)
...
@@ -373,7 +371,7 @@ void mdmp_dump(void)
printf
(
" CSD: "
);
printf
(
" CSD: "
);
dump_mdmp_string
(
msi
->
CSDVersionRva
);
dump_mdmp_string
(
msi
->
CSDVersionRva
);
printf
(
"
\n
"
);
printf
(
"
\n
"
);
printf
(
" Reserved1: %u
\n
"
,
(
UINT
)
msi
->
u1
.
Reserved1
);
printf
(
" Reserved1: %u
\n
"
,
(
UINT
)
msi
->
Reserved1
);
if
(
msi
->
ProcessorArchitecture
==
PROCESSOR_ARCHITECTURE_INTEL
)
if
(
msi
->
ProcessorArchitecture
==
PROCESSOR_ARCHITECTURE_INTEL
)
{
{
printf
(
" x86.VendorId: %.12s
\n
"
,
printf
(
" x86.VendorId: %.12s
\n
"
,
...
...
tools/winedump/pdb.c
View file @
4b865129
...
@@ -26,8 +26,6 @@
...
@@ -26,8 +26,6 @@
#include <time.h>
#include <time.h>
#include <fcntl.h>
#include <fcntl.h>
#define NONAMELESSUNION
#include "windef.h"
#include "windef.h"
#include "winbase.h"
#include "winbase.h"
#include "winedump.h"
#include "winedump.h"
...
...
tools/winedump/pe.c
View file @
4b865129
This diff is collapsed.
Click to expand it.
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