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
1d03a4fe
Commit
1d03a4fe
authored
Aug 24, 2021
by
Eric Pouech
Committed by
Alexandre Julliard
Aug 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Add support for dumping stream of fixed index 4.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
36961eef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
pdb.c
tools/winedump/pdb.c
+10
-5
No files found.
tools/winedump/pdb.c
View file @
1d03a4fe
...
...
@@ -562,11 +562,13 @@ static void pdb_dump_symbols(struct pdb_reader* reader, PDB_STREAM_INDEXES* sidx
free
(
filesimage
);
}
static
void
pdb_dump_types
(
struct
pdb_reader
*
reader
)
/* there are two 'type' related streams, but with different indexes... */
static
void
pdb_dump_types
(
struct
pdb_reader
*
reader
,
unsigned
strmidx
,
const
char
*
strmname
)
{
PDB_TYPES
*
types
=
NULL
;
types
=
reader
->
read_file
(
reader
,
2
);
types
=
reader
->
read_file
(
reader
,
strmidx
);
if
(
!
types
)
return
;
switch
(
types
->
version
)
{
...
...
@@ -581,7 +583,7 @@ static void pdb_dump_types(struct pdb_reader* reader)
}
/* Read type table */
printf
(
"Types:
\n
"
printf
(
"Types
(%s)
:
\n
"
"
\t
version: %u
\n
"
"
\t
type_offset: %08x
\n
"
"
\t
first_index: %x
\n
"
...
...
@@ -597,6 +599,7 @@ static void pdb_dump_types(struct pdb_reader* reader)
"
\t
search_len: %x
\n
"
"
\t
unknown_offset: %x
\n
"
"
\t
unknown_len: %x
\n
"
,
strmname
,
types
->
version
,
types
->
type_offset
,
types
->
first_index
,
...
...
@@ -782,7 +785,8 @@ static void pdb_jg_dump(void)
default:
printf
(
"-Unknown root block version %d
\n
"
,
reader
.
u
.
jg
.
root
->
Version
);
}
pdb_dump_types
(
&
reader
);
pdb_dump_types
(
&
reader
,
2
,
"TPI"
);
pdb_dump_types
(
&
reader
,
4
,
"IPI"
);
pdb_dump_symbols
(
&
reader
,
&
sidx
);
pdb_dump_fpo
(
&
reader
,
sidx
.
FPO
);
pdb_dump_segments
(
&
reader
,
sidx
.
segments
);
...
...
@@ -926,7 +930,8 @@ static void pdb_ds_dump(void)
}
if
(
numok
)
printf
(
">>> unmatched present field with found
\n
"
);
pdb_dump_types
(
&
reader
);
pdb_dump_types
(
&
reader
,
2
,
"TPI"
);
pdb_dump_types
(
&
reader
,
4
,
"IPI"
);
pdb_dump_symbols
(
&
reader
,
&
sidx
);
pdb_dump_fpo
(
&
reader
,
sidx
.
FPO
);
pdb_dump_fpo_ext
(
&
reader
,
sidx
.
FPO_EXT
);
...
...
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