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
b203b060
Commit
b203b060
authored
May 08, 2003
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added dumping of the TLS directory.
parent
c808e67d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
pe.c
tools/winedump/pe.c
+24
-0
No files found.
tools/winedump/pe.c
View file @
b203b060
...
@@ -553,6 +553,28 @@ static void dump_dir_debug(void)
...
@@ -553,6 +553,28 @@ static void dump_dir_debug(void)
printf
(
"
\n
"
);
printf
(
"
\n
"
);
}
}
static
void
dump_dir_tls
(
void
)
{
const
IMAGE_TLS_DIRECTORY
*
dir
=
get_dir
(
IMAGE_FILE_THREAD_LOCAL_STORAGE
);
const
DWORD
*
callbacks
;
if
(
!
dir
)
return
;
printf
(
"Thread Local Storage
\n
"
);
printf
(
" Raw data %08lx-%08lx (data size %lx zero fill size %lx)
\n
"
,
dir
->
StartAddressOfRawData
,
dir
->
EndAddressOfRawData
,
dir
->
EndAddressOfRawData
-
dir
->
StartAddressOfRawData
,
dir
->
SizeOfZeroFill
);
printf
(
" Index address %08lx
\n
"
,
(
DWORD
)
dir
->
AddressOfIndex
);
printf
(
" Characteristics %08lx
\n
"
,
dir
->
Characteristics
);
printf
(
" Callbacks %08lx -> {"
,
(
DWORD
)
dir
->
AddressOfCallBacks
);
if
(
dir
->
AddressOfCallBacks
)
{
callbacks
=
RVA
((
DWORD
)
dir
->
AddressOfCallBacks
-
PE_nt_headers
->
OptionalHeader
.
ImageBase
,
0
);
while
(
*
callbacks
)
printf
(
" %08lx"
,
*
callbacks
++
);
}
printf
(
" }
\n\n
"
);
}
static
void
dump_separate_dbg
(
void
)
static
void
dump_separate_dbg
(
void
)
{
{
IMAGE_SEPARATE_DEBUG_HEADER
*
separateDebugHead
=
PRD
(
0
,
sizeof
(
separateDebugHead
));
IMAGE_SEPARATE_DEBUG_HEADER
*
separateDebugHead
=
PRD
(
0
,
sizeof
(
separateDebugHead
));
...
@@ -844,6 +866,8 @@ static void do_dump( enum FileSig sig )
...
@@ -844,6 +866,8 @@ static void do_dump( enum FileSig sig )
dump_dir_debug
();
dump_dir_debug
();
if
(
all
||
!
strcmp
(
globals
.
dumpsect
,
"resource"
))
if
(
all
||
!
strcmp
(
globals
.
dumpsect
,
"resource"
))
dump_dir_resource
();
dump_dir_resource
();
if
(
all
||
!
strcmp
(
globals
.
dumpsect
,
"tls"
))
dump_dir_tls
();
#if 0
#if 0
/* FIXME: not implemented yet */
/* FIXME: not implemented yet */
if (all || !strcmp(globals.dumpsect, "reloc"))
if (all || !strcmp(globals.dumpsect, "reloc"))
...
...
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