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
ba123abf
Commit
ba123abf
authored
Sep 29, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Win64 printf format warning fixes.
parent
d2d33017
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
68 additions
and
69 deletions
+68
-69
Makefile.in
tools/winedump/Makefile.in
+0
-1
debug.c
tools/winedump/debug.c
+4
-4
le.c
tools/winedump/le.c
+43
-43
lnk.c
tools/winedump/lnk.c
+19
-19
minidump.c
tools/winedump/minidump.c
+0
-0
ne.c
tools/winedump/ne.c
+2
-2
pe.c
tools/winedump/pe.c
+0
-0
No files found.
tools/winedump/Makefile.in
View file @
ba123abf
...
...
@@ -3,7 +3,6 @@ TOPOBJDIR = ../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
EXEEXT
=
@EXEEXT@
DEFS
=
-DWINE_NO_LONG_AS_INT
PROGRAMS
=
winedump
$(EXEEXT)
MANPAGES
=
winedump.man
...
...
tools/winedump/debug.c
View file @
ba123abf
...
...
@@ -424,9 +424,9 @@ static void dump_codeview_headers(unsigned long base, unsigned long len)
const
struct
{
DWORD
TimeStamp
;
DWORD
Dunno
;
char
Name
[
1
];}
*
pdb_data
;
pdb_data
=
(
const
void
*
)(
signature
+
1
);
printf
(
" TimeStamp: %08
l
X (%s)
\n
"
,
printf
(
" TimeStamp: %08X (%s)
\n
"
,
pdb_data
->
TimeStamp
,
get_time_str
(
pdb_data
->
TimeStamp
));
printf
(
" Dunno: %08
l
X
\n
"
,
pdb_data
->
Dunno
);
printf
(
" Dunno: %08X
\n
"
,
pdb_data
->
Dunno
);
printf
(
" Filename: %s
\n
"
,
pdb_data
->
Name
);
return
;
}
...
...
@@ -544,7 +544,7 @@ void dump_coff(unsigned long coffbase, unsigned long len, const void* pmt)
*/
nampnt
=
get_coff_name
(
coff_sym
,
coff_strtab
);
printf
(
"%05d | %02d:%08lx [%08l
x] | %s
\n
"
,
i
,
coff_sym
->
SectionNumber
-
1
,
coff_sym
->
Value
-
base
,
coff_sym
->
Value
,
nampnt
);
printf
(
"%05d | %02d:%08x [%08
x] | %s
\n
"
,
i
,
coff_sym
->
SectionNumber
-
1
,
coff_sym
->
Value
-
base
,
coff_sym
->
Value
,
nampnt
);
i
+=
naux
;
continue
;
}
...
...
@@ -559,7 +559,7 @@ void dump_coff(unsigned long coffbase, unsigned long len, const void* pmt)
/* FIXME: add code to find out the file this symbol belongs to,
* see winedbg */
printf
(
"%05d | %02d:%08lx [%08l
x] | %s
\n
"
,
i
,
coff_sym
->
SectionNumber
-
1
,
coff_sym
->
Value
-
base
,
coff_sym
->
Value
,
nampnt
);
printf
(
"%05d | %02d:%08x [%08
x] | %s
\n
"
,
i
,
coff_sym
->
SectionNumber
-
1
,
coff_sym
->
Value
-
base
,
coff_sym
->
Value
,
nampnt
);
i
+=
naux
;
continue
;
}
...
...
tools/winedump/le.c
View file @
ba123abf
...
...
@@ -96,7 +96,7 @@ static void dump_le_header( const IMAGE_VXD_HEADER *le )
le
->
e32_border
==
0
?
"little-indian"
:
"big-endian"
);
printf
(
" Word order: %s
\n
"
,
le
->
e32_worder
==
0
?
"little-indian"
:
"big-endian"
);
printf
(
" Executable format level: %
l
d
\n
"
,
printf
(
" Executable format level: %d
\n
"
,
le
->
e32_level
);
printf
(
" CPU type: %s
\n
"
,
le
->
e32_cpu
==
0x01
?
"Intel 80286"
:
...
...
@@ -115,9 +115,9 @@ static void dump_le_header( const IMAGE_VXD_HEADER *le )
le
->
e32_os
==
0x03
?
"DOS 4.x"
:
le
->
e32_os
==
0x04
?
"Windows 386"
:
"Unknown"
);
printf
(
" Module version: %
l
d
\n
"
,
printf
(
" Module version: %d
\n
"
,
le
->
e32_ver
);
printf
(
" Module type flags: %08
l
x
\n
"
,
printf
(
" Module type flags: %08x
\n
"
,
le
->
e32_mflags
);
if
(
le
->
e32_mflags
&
0x8000
)
{
...
...
@@ -140,85 +140,85 @@ static void dump_le_header( const IMAGE_VXD_HEADER *le )
if
(
le
->
e32_mflags
&
0x8000
)
printf
(
" Module is DLL
\n
"
);
}
printf
(
" Number of memory pages: %
l
d
\n
"
,
printf
(
" Number of memory pages: %d
\n
"
,
le
->
e32_mpages
);
printf
(
" Initial object CS number: %08
l
x
\n
"
,
printf
(
" Initial object CS number: %08x
\n
"
,
le
->
e32_startobj
);
printf
(
" Initial EIP: %08
l
x
\n
"
,
printf
(
" Initial EIP: %08x
\n
"
,
le
->
e32_eip
);
printf
(
" Initial object SS number: %08
l
x
\n
"
,
printf
(
" Initial object SS number: %08x
\n
"
,
le
->
e32_stackobj
);
printf
(
" Initial ESP: %08
l
x
\n
"
,
printf
(
" Initial ESP: %08x
\n
"
,
le
->
e32_esp
);
printf
(
" Memory page size: %
l
d
\n
"
,
printf
(
" Memory page size: %d
\n
"
,
le
->
e32_pagesize
);
printf
(
" Bytes on last page: %
l
d
\n
"
,
printf
(
" Bytes on last page: %d
\n
"
,
le
->
e32_lastpagesize
);
printf
(
" Fix-up section size: %
l
d
\n
"
,
printf
(
" Fix-up section size: %d
\n
"
,
le
->
e32_fixupsize
);
printf
(
" Fix-up section checksum: %08
l
x
\n
"
,
printf
(
" Fix-up section checksum: %08x
\n
"
,
le
->
e32_fixupsum
);
printf
(
" Loader section size: %
l
d
\n
"
,
printf
(
" Loader section size: %d
\n
"
,
le
->
e32_ldrsize
);
printf
(
" Loader section checksum: %08
l
x
\n
"
,
printf
(
" Loader section checksum: %08x
\n
"
,
le
->
e32_ldrsum
);
printf
(
" Offset of object table: %08
l
x
\n
"
,
printf
(
" Offset of object table: %08x
\n
"
,
le
->
e32_objtab
);
printf
(
" Object table entries: %
l
d
\n
"
,
printf
(
" Object table entries: %d
\n
"
,
le
->
e32_objcnt
);
printf
(
" Object page map offset: %08
l
x
\n
"
,
printf
(
" Object page map offset: %08x
\n
"
,
le
->
e32_objmap
);
printf
(
" Object iterate data map offset: %08
l
x
\n
"
,
printf
(
" Object iterate data map offset: %08x
\n
"
,
le
->
e32_itermap
);
printf
(
" Resource table offset: %08
l
x
\n
"
,
printf
(
" Resource table offset: %08x
\n
"
,
le
->
e32_rsrctab
);
printf
(
" Resource table entries: %
l
d
\n
"
,
printf
(
" Resource table entries: %d
\n
"
,
le
->
e32_rsrccnt
);
printf
(
" Resident names table offset: %08
l
x
\n
"
,
printf
(
" Resident names table offset: %08x
\n
"
,
le
->
e32_restab
);
printf
(
" Entry table offset: %08
l
x
\n
"
,
printf
(
" Entry table offset: %08x
\n
"
,
le
->
e32_enttab
);
printf
(
" Module directives table offset: %08
l
x
\n
"
,
printf
(
" Module directives table offset: %08x
\n
"
,
le
->
e32_dirtab
);
printf
(
" Module directives entries: %
l
d
\n
"
,
printf
(
" Module directives entries: %d
\n
"
,
le
->
e32_dircnt
);
printf
(
" Fix-up page table offset: %08
l
x
\n
"
,
printf
(
" Fix-up page table offset: %08x
\n
"
,
le
->
e32_fpagetab
);
printf
(
" Fix-up record table offset: %08
l
x
\n
"
,
printf
(
" Fix-up record table offset: %08x
\n
"
,
le
->
e32_frectab
);
printf
(
" Imported modules name table offset: %08
l
x
\n
"
,
printf
(
" Imported modules name table offset: %08x
\n
"
,
le
->
e32_impmod
);
printf
(
" Imported modules count: %
l
d
\n
"
,
printf
(
" Imported modules count: %d
\n
"
,
le
->
e32_impmodcnt
);
printf
(
" Imported procedure name table offset: %08
l
x
\n
"
,
printf
(
" Imported procedure name table offset: %08x
\n
"
,
le
->
e32_impproc
);
printf
(
" Per-page checksum table offset: %08
l
x
\n
"
,
printf
(
" Per-page checksum table offset: %08x
\n
"
,
le
->
e32_pagesum
);
printf
(
" Data pages offset from top of table: %08
l
x
\n
"
,
printf
(
" Data pages offset from top of table: %08x
\n
"
,
le
->
e32_datapage
);
printf
(
" Preload page count: %08
l
x
\n
"
,
printf
(
" Preload page count: %08x
\n
"
,
le
->
e32_preload
);
printf
(
" Non-resident names table offset: %08
l
x
\n
"
,
printf
(
" Non-resident names table offset: %08x
\n
"
,
le
->
e32_nrestab
);
printf
(
" Non-resident names table length: %
l
d
\n
"
,
printf
(
" Non-resident names table length: %d
\n
"
,
le
->
e32_cbnrestab
);
printf
(
" Non-resident names table checksum: %08
l
x
\n
"
,
printf
(
" Non-resident names table checksum: %08x
\n
"
,
le
->
e32_nressum
);
printf
(
" Automatic data object: %08
l
x
\n
"
,
printf
(
" Automatic data object: %08x
\n
"
,
le
->
e32_autodata
);
printf
(
" Debug information offset: %08
l
x
\n
"
,
printf
(
" Debug information offset: %08x
\n
"
,
le
->
e32_debuginfo
);
printf
(
" Debug information length: %
l
d
\n
"
,
printf
(
" Debug information length: %d
\n
"
,
le
->
e32_debuglen
);
printf
(
" Preload instance pages number: %
l
d
\n
"
,
printf
(
" Preload instance pages number: %d
\n
"
,
le
->
e32_instpreload
);
printf
(
" Demand instance pages number: %
l
d
\n
"
,
printf
(
" Demand instance pages number: %d
\n
"
,
le
->
e32_instdemand
);
printf
(
" Extra heap allocation: %
l
d
\n
"
,
printf
(
" Extra heap allocation: %d
\n
"
,
le
->
e32_heapsize
);
printf
(
" VxD resource table offset: %08
l
x
\n
"
,
printf
(
" VxD resource table offset: %08x
\n
"
,
le
->
e32_winresoff
);
printf
(
" Size of VxD resource table: %
l
d
\n
"
,
printf
(
" Size of VxD resource table: %d
\n
"
,
le
->
e32_winreslen
);
printf
(
" VxD identifier: %x
\n
"
,
le
->
e32_devid
);
...
...
tools/winedump/lnk.c
View file @
ba123abf
...
...
@@ -266,17 +266,17 @@ static int dump_location(int fd)
printf
(
"Location
\n
"
);
printf
(
"--------
\n\n
"
);
printf
(
"Total size = %
l
d
\n
"
,
loc
->
dwTotalSize
);
printf
(
"Header size = %
l
d
\n
"
,
loc
->
dwHeaderSize
);
printf
(
"Flags = %08
l
x
\n
"
,
loc
->
dwFlags
);
printf
(
"Total size = %d
\n
"
,
loc
->
dwTotalSize
);
printf
(
"Header size = %d
\n
"
,
loc
->
dwHeaderSize
);
printf
(
"Flags = %08x
\n
"
,
loc
->
dwFlags
);
/* dump out information about the volume the link points to */
printf
(
"Volume ofs = %08
l
x "
,
loc
->
dwVolTableOfs
);
printf
(
"Volume ofs = %08x "
,
loc
->
dwVolTableOfs
);
if
(
loc
->
dwVolTableOfs
&&
(
loc
->
dwVolTableOfs
<
loc
->
dwTotalSize
))
{
LOCAL_VOLUME_INFO
*
vol
=
(
LOCAL_VOLUME_INFO
*
)
&
p
[
loc
->
dwVolTableOfs
];
printf
(
"size %
ld type %ld serial %08lx label %l
d "
,
printf
(
"size %
d type %d serial %08x label %
d "
,
vol
->
dwSize
,
vol
->
dwType
,
vol
->
dwVolSerial
,
vol
->
dwVolLabelOfs
);
if
(
vol
->
dwVolLabelOfs
)
printf
(
"(
\"
%s
\"
)"
,
&
p
[
loc
->
dwVolTableOfs
+
vol
->
dwVolLabelOfs
]);
...
...
@@ -284,13 +284,13 @@ static int dump_location(int fd)
printf
(
"
\n
"
);
/* dump out the path the link points to */
printf
(
"LocalPath ofs = %08
l
x "
,
loc
->
dwLocalPathOfs
);
printf
(
"LocalPath ofs = %08x "
,
loc
->
dwLocalPathOfs
);
if
(
loc
->
dwLocalPathOfs
&&
(
loc
->
dwLocalPathOfs
<
loc
->
dwTotalSize
)
)
printf
(
"(
\"
%s
\"
)"
,
&
p
[
loc
->
dwLocalPathOfs
]);
printf
(
"
\n
"
);
printf
(
"Net Path ofs = %08
l
x
\n
"
,
loc
->
dwNetworkVolTableOfs
);
printf
(
"Final Path = %08
l
x "
,
loc
->
dwFinalPathOfs
);
printf
(
"Net Path ofs = %08x
\n
"
,
loc
->
dwNetworkVolTableOfs
);
printf
(
"Final Path = %08x "
,
loc
->
dwFinalPathOfs
);
if
(
loc
->
dwFinalPathOfs
&&
(
loc
->
dwFinalPathOfs
<
loc
->
dwTotalSize
)
)
printf
(
"(
\"
%s
\"
)"
,
&
p
[
loc
->
dwFinalPathOfs
]);
printf
(
"
\n
"
);
...
...
@@ -348,7 +348,7 @@ static int dump_advertise_info(int fd, const char *type)
printf
(
"Advertise Info
\n
"
);
printf
(
"--------------
\n\n
"
);
printf
(
"magic = %
l
x
\n
"
,
avt
->
magic
);
printf
(
"magic = %x
\n
"
,
avt
->
magic
);
printf
(
"%s = %s
\n
"
,
type
,
avt
->
bufA
);
if
(
avt
->
magic
==
0xa0000006
)
{
...
...
@@ -402,19 +402,19 @@ static int dump_lnk_fd(int fd)
printf
(
"Header
\n
"
);
printf
(
"------
\n\n
"
);
printf
(
"Size: %04
l
x
\n
"
,
hdr
->
dwSize
);
printf
(
"Size: %04x
\n
"
,
hdr
->
dwSize
);
printf
(
"GUID: %s
\n
"
,
guid
);
printf
(
"FileAttr: %08
l
x
\n
"
,
hdr
->
dwFileAttr
);
printf
(
"FileLength: %08
l
x
\n
"
,
hdr
->
dwFileLength
);
printf
(
"nIcon: %
l
d
\n
"
,
hdr
->
nIcon
);
printf
(
"Startup: %
l
d
\n
"
,
hdr
->
fStartup
);
printf
(
"HotKey: %08
l
x
\n
"
,
hdr
->
wHotKey
);
printf
(
"Unknown5: %08
l
x
\n
"
,
hdr
->
Unknown5
);
printf
(
"Unknown6: %08
l
x
\n
"
,
hdr
->
Unknown6
);
printf
(
"FileAttr: %08x
\n
"
,
hdr
->
dwFileAttr
);
printf
(
"FileLength: %08x
\n
"
,
hdr
->
dwFileLength
);
printf
(
"nIcon: %d
\n
"
,
hdr
->
nIcon
);
printf
(
"Startup: %d
\n
"
,
hdr
->
fStartup
);
printf
(
"HotKey: %08x
\n
"
,
hdr
->
wHotKey
);
printf
(
"Unknown5: %08x
\n
"
,
hdr
->
Unknown5
);
printf
(
"Unknown6: %08x
\n
"
,
hdr
->
Unknown6
);
/* dump out all the flags */
printf
(
"Flags: %04
l
x ( "
,
hdr
->
dwFlags
);
printf
(
"Flags: %04x ( "
,
hdr
->
dwFlags
);
#define FLAG(x) if(hdr->dwFlags & SCF_##x) printf("%s ",#x);
FLAG
(
PIDL
)
FLAG
(
LOCATION
)
...
...
@@ -429,7 +429,7 @@ static int dump_lnk_fd(int fd)
#undef FLAG
printf
(
")
\n
"
);
printf
(
"Length: %04
l
x
\n
"
,
hdr
->
dwFileLength
);
printf
(
"Length: %04x
\n
"
,
hdr
->
dwFileLength
);
printf
(
"
\n
"
);
if
(
hdr
->
dwFlags
&
SCF_PIDL
)
...
...
tools/winedump/minidump.c
View file @
ba123abf
This diff is collapsed.
Click to expand it.
tools/winedump/ne.c
View file @
ba123abf
...
...
@@ -73,7 +73,7 @@ static void dump_ne_header( const IMAGE_OS2_HEADER *ne )
printf
(
"File header:
\n
"
);
printf
(
"Linker version: %d.%d
\n
"
,
ne
->
ne_ver
,
ne
->
ne_rev
);
printf
(
"Entry table: %x len %d
\n
"
,
ne
->
ne_enttab
,
ne
->
ne_cbenttab
);
printf
(
"Checksum: %08
l
x
\n
"
,
ne
->
ne_crc
);
printf
(
"Checksum: %08x
\n
"
,
ne
->
ne_crc
);
printf
(
"Flags: %04x
\n
"
,
ne
->
ne_flags
);
printf
(
"Auto data segment: %x
\n
"
,
ne
->
ne_autodata
);
printf
(
"Heap size: %d bytes
\n
"
,
ne
->
ne_heap
);
...
...
@@ -87,7 +87,7 @@ static void dump_ne_header( const IMAGE_OS2_HEADER *ne )
printf
(
"Resident name table: %x
\n
"
,
ne
->
ne_restab
);
printf
(
"Module table: %x
\n
"
,
ne
->
ne_modtab
);
printf
(
"Import table: %x
\n
"
,
ne
->
ne_imptab
);
printf
(
"Non-resident table: %
l
x
\n
"
,
ne
->
ne_nrestab
);
printf
(
"Non-resident table: %x
\n
"
,
ne
->
ne_nrestab
);
printf
(
"Exe type: %x
\n
"
,
ne
->
ne_exetyp
);
printf
(
"Other flags: %x
\n
"
,
ne
->
ne_flagsothers
);
printf
(
"Fast load area: %x-%x
\n
"
,
ne
->
ne_pretthunks
<<
ne
->
ne_align
,
...
...
tools/winedump/pe.c
View file @
ba123abf
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