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
e0518a9d
Commit
e0518a9d
authored
Dec 07, 2006
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Add a possibility to dump raw section data.
parent
15427221
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
main.c
tools/winedump/main.c
+1
-0
pe.c
tools/winedump/pe.c
+7
-1
winedump.h
tools/winedump/winedump.h
+1
-0
No files found.
tools/winedump/main.c
View file @
e0518a9d
...
...
@@ -186,6 +186,7 @@ static void do_rawdebug (void)
static
void
do_dumpall
(
void
)
{
globals
.
do_dumpheader
=
1
;
globals
.
do_dump_rawdata
=
1
;
globals
.
dumpsect
=
"ALL"
;
}
...
...
tools/winedump/pe.c
View file @
e0518a9d
...
...
@@ -375,7 +375,7 @@ void dump_section(const IMAGE_SECTION_HEADER *sectHead)
printf
(
" %-8.8s VirtSize: %-8u VirtAddr: %-8u 0x%08x
\n
"
,
sectHead
->
Name
,
sectHead
->
Misc
.
VirtualSize
,
sectHead
->
VirtualAddress
,
sectHead
->
VirtualAddress
);
printf
(
" raw data offs:
%-8u
raw data size: %-8u
\n
"
,
printf
(
" raw data offs:
%-8u
raw data size: %-8u
\n
"
,
sectHead
->
PointerToRawData
,
sectHead
->
SizeOfRawData
);
printf
(
" relocation offs: %-8u relocations: %-8u
\n
"
,
sectHead
->
PointerToRelocations
,
sectHead
->
NumberOfRelocations
);
...
...
@@ -453,6 +453,12 @@ static void dump_sections(const void *base, const void* addr, unsigned num_sect)
for
(
i
=
0
;
i
<
num_sect
;
i
++
,
sectHead
++
)
{
dump_section
(
sectHead
);
if
(
globals
.
do_dump_rawdata
)
{
dump_data
((
const
unsigned
char
*
)
base
+
sectHead
->
PointerToRawData
,
sectHead
->
SizeOfRawData
,
" "
);
printf
(
"
\n
"
);
}
}
}
...
...
tools/winedump/winedump.h
View file @
e0518a9d
...
...
@@ -128,6 +128,7 @@ typedef struct __globals
/* Options: dump mode */
int
do_demangle
;
/* -d */
int
do_dumpheader
;
/* -f */
int
do_dump_rawdata
;
/* -x */
int
do_debug
;
/* -G == 1, -g == 2 */
/* Option arguments: spec mode */
...
...
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