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
8eb1a29a
Commit
8eb1a29a
authored
May 24, 2005
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
May 24, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print data offset additionally to prefix while dumping data.
parent
d5e1804c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
dump.c
tools/winedump/dump.c
+2
-2
minidump.c
tools/winedump/minidump.c
+6
-6
pe.c
tools/winedump/pe.c
+2
-2
No files found.
tools/winedump/dump.c
View file @
8eb1a29a
...
@@ -57,7 +57,7 @@ void dump_data( const unsigned char *ptr, unsigned int size, const char *prefix
...
@@ -57,7 +57,7 @@ void dump_data( const unsigned char *ptr, unsigned int size, const char *prefix
{
{
unsigned
int
i
,
j
;
unsigned
int
i
,
j
;
printf
(
"%s
"
,
prefix
);
printf
(
"%s
%08x: "
,
prefix
,
0
);
if
(
!
ptr
)
if
(
!
ptr
)
{
{
printf
(
"NULL
\n
"
);
printf
(
"NULL
\n
"
);
...
@@ -71,7 +71,7 @@ void dump_data( const unsigned char *ptr, unsigned int size, const char *prefix
...
@@ -71,7 +71,7 @@ void dump_data( const unsigned char *ptr, unsigned int size, const char *prefix
printf
(
" "
);
printf
(
" "
);
for
(
j
=
0
;
j
<
16
;
j
++
)
for
(
j
=
0
;
j
<
16
;
j
++
)
printf
(
"%c"
,
isprint
(
ptr
[
i
-
15
+
j
])
?
ptr
[
i
-
15
+
j
]
:
'.'
);
printf
(
"%c"
,
isprint
(
ptr
[
i
-
15
+
j
])
?
ptr
[
i
-
15
+
j
]
:
'.'
);
if
(
i
<
size
-
1
)
printf
(
"
\n
%s
"
,
prefix
);
if
(
i
<
size
-
1
)
printf
(
"
\n
%s
%08x: "
,
prefix
,
i
+
1
);
}
}
}
}
if
(
i
%
16
)
if
(
i
%
16
)
...
...
tools/winedump/minidump.c
View file @
8eb1a29a
...
@@ -106,9 +106,9 @@ void mdmp_dump(void)
...
@@ -106,9 +106,9 @@ void mdmp_dump(void)
printf
(
" Stack: 0x%llx-0x%llx
\n
"
,
printf
(
" Stack: 0x%llx-0x%llx
\n
"
,
mt
->
Stack
.
StartOfMemoryRange
,
mt
->
Stack
.
StartOfMemoryRange
,
mt
->
Stack
.
StartOfMemoryRange
+
mt
->
Stack
.
Memory
.
DataSize
);
mt
->
Stack
.
StartOfMemoryRange
+
mt
->
Stack
.
Memory
.
DataSize
);
dump_mdmp_data
(
&
mt
->
Stack
.
Memory
,
"
"
);
dump_mdmp_data
(
&
mt
->
Stack
.
Memory
,
" "
);
printf
(
" ThreadContext:
\n
"
);
printf
(
" ThreadContext:
\n
"
);
dump_mdmp_data
(
&
mt
->
ThreadContext
,
"
"
);
dump_mdmp_data
(
&
mt
->
ThreadContext
,
" "
);
}
}
}
}
break
;
break
;
...
@@ -197,9 +197,9 @@ void mdmp_dump(void)
...
@@ -197,9 +197,9 @@ void mdmp_dump(void)
printf
(
" dwFileDate: %lx%08lx
\n
"
,
printf
(
" dwFileDate: %lx%08lx
\n
"
,
mm
->
VersionInfo
.
dwFileDateMS
,
mm
->
VersionInfo
.
dwFileDateLS
);
mm
->
VersionInfo
.
dwFileDateMS
,
mm
->
VersionInfo
.
dwFileDateLS
);
printf
(
" CvRecord: <%lu>
\n
"
,
mm
->
CvRecord
.
DataSize
);
printf
(
" CvRecord: <%lu>
\n
"
,
mm
->
CvRecord
.
DataSize
);
dump_mdmp_data
(
&
mm
->
CvRecord
,
"
"
);
dump_mdmp_data
(
&
mm
->
CvRecord
,
" "
);
printf
(
" MiscRecord: <%lu>
\n
"
,
mm
->
MiscRecord
.
DataSize
);
printf
(
" MiscRecord: <%lu>
\n
"
,
mm
->
MiscRecord
.
DataSize
);
dump_mdmp_data
(
&
mm
->
MiscRecord
,
"
"
);
dump_mdmp_data
(
&
mm
->
MiscRecord
,
" "
);
printf
(
" Reserved0: %llu
\n
"
,
mm
->
Reserved0
);
printf
(
" Reserved0: %llu
\n
"
,
mm
->
Reserved0
);
printf
(
" Reserved1: %llu
\n
"
,
mm
->
Reserved1
);
printf
(
" Reserved1: %llu
\n
"
,
mm
->
Reserved1
);
}
}
...
@@ -218,7 +218,7 @@ void mdmp_dump(void)
...
@@ -218,7 +218,7 @@ void mdmp_dump(void)
printf
(
" Range: 0x%llx-0x%llx
\n
"
,
printf
(
" Range: 0x%llx-0x%llx
\n
"
,
mmd
->
StartOfMemoryRange
,
mmd
->
StartOfMemoryRange
,
mmd
->
StartOfMemoryRange
+
mmd
->
Memory
.
DataSize
);
mmd
->
StartOfMemoryRange
+
mmd
->
Memory
.
DataSize
);
dump_mdmp_data
(
&
mmd
->
Memory
,
"
"
);
dump_mdmp_data
(
&
mmd
->
Memory
,
" "
);
}
}
}
}
break
;
break
;
...
@@ -365,7 +365,7 @@ void mdmp_dump(void)
...
@@ -365,7 +365,7 @@ void mdmp_dump(void)
printf
(
"NIY %ld
\n
"
,
dir
->
StreamType
);
printf
(
"NIY %ld
\n
"
,
dir
->
StreamType
);
printf
(
" RVA: %lu
\n
"
,
dir
->
Location
.
Rva
);
printf
(
" RVA: %lu
\n
"
,
dir
->
Location
.
Rva
);
printf
(
" Size: %lu
\n
"
,
dir
->
Location
.
DataSize
);
printf
(
" Size: %lu
\n
"
,
dir
->
Location
.
DataSize
);
dump_mdmp_data
(
&
dir
->
Location
,
" "
);
dump_mdmp_data
(
&
dir
->
Location
,
"
"
);
break
;
break
;
}
}
}
}
...
...
tools/winedump/pe.c
View file @
8eb1a29a
...
@@ -829,7 +829,7 @@ static void dump_dir_resource(void)
...
@@ -829,7 +829,7 @@ static void dump_dir_resource(void)
data
=
(
const
IMAGE_RESOURCE_DATA_ENTRY
*
)((
const
char
*
)
root
+
e3
->
u2
.
OffsetToData
);
data
=
(
const
IMAGE_RESOURCE_DATA_ENTRY
*
)((
const
char
*
)
root
+
e3
->
u2
.
OffsetToData
);
if
(
e1
->
u1
.
s1
.
NameIsString
)
if
(
e1
->
u1
.
s1
.
NameIsString
)
{
{
dump_data
(
RVA
(
data
->
OffsetToData
,
data
->
Size
),
data
->
Size
,
"
"
);
dump_data
(
RVA
(
data
->
OffsetToData
,
data
->
Size
),
data
->
Size
,
" "
);
}
}
else
switch
(
e1
->
u1
.
s2
.
Id
)
else
switch
(
e1
->
u1
.
s2
.
Id
)
{
{
...
@@ -842,7 +842,7 @@ static void dump_dir_resource(void)
...
@@ -842,7 +842,7 @@ static void dump_dir_resource(void)
e2
->
u1
.
s2
.
Id
,
" "
);
e2
->
u1
.
s2
.
Id
,
" "
);
break
;
break
;
default:
default:
dump_data
(
RVA
(
data
->
OffsetToData
,
data
->
Size
),
data
->
Size
,
"
"
);
dump_data
(
RVA
(
data
->
OffsetToData
,
data
->
Size
),
data
->
Size
,
" "
);
break
;
break
;
}
}
}
}
...
...
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