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
a014f19b
Commit
a014f19b
authored
Sep 27, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Sep 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Dump PDB public symbols' stream.
Add relevant structures to include/mscvpdb.h. Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
805ffc8a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
7 deletions
+31
-7
mscvpdb.h
include/wine/mscvpdb.h
+15
-0
pdb.c
tools/winedump/pdb.c
+16
-7
No files found.
include/wine/mscvpdb.h
View file @
a014f19b
...
...
@@ -2649,6 +2649,21 @@ typedef struct
#define DBI_MAX_HASH 4096
#define DBI_BITMAP_HASH_SIZE ((DBI_MAX_HASH / (8 * sizeof(unsigned)) + 1) * sizeof(unsigned))
/* Header for public stream (from DBI / SYMBOLS stream)
* Followed by a hash table (cf DBI_HASH_HEADER and the following bits)
*/
typedef
struct
{
unsigned
hash_size
;
unsigned
address_map_size
;
unsigned
num_thunks
;
unsigned
size_thunk
;
unsigned
short
section_thunk_table
;
unsigned
short
_pad0
;
unsigned
offset_thunk_table
;
unsigned
num_sects
;
}
DBI_PUBLIC_HEADER
;
#include "poppack.h"
/* ===================================================
...
...
tools/winedump/pdb.c
View file @
a014f19b
...
...
@@ -306,17 +306,26 @@ static void dump_global_symbol(struct pdb_reader* reader, unsigned file)
static
void
dump_public_symbol
(
struct
pdb_reader
*
reader
,
unsigned
file
)
{
void
*
public
=
NULL
;
D
WORD
size
;
unsigned
size
;
D
BI_PUBLIC_HEADER
*
hdr
;
public
=
reader
->
read_file
(
reader
,
file
);
if
(
!
public
)
return
;
hdr
=
reader
->
read_file
(
reader
,
file
);
if
(
!
hdr
)
return
;
size
=
pdb_get_file_size
(
reader
,
file
);
printf
(
"Public symbols table:
\n
"
);
dump_data
(
public
,
size
,
"
\t
"
);
free
(
public
);
printf
(
"Public symbols table: (%u)
\n
"
,
size
);
printf
(
"
\t
Hash size: %u
\n
"
,
hdr
->
hash_size
);
printf
(
"
\t
Address map size: %u
\n
"
,
hdr
->
address_map_size
);
printf
(
"
\t
Number of thunks: %u
\n
"
,
hdr
->
num_thunks
);
printf
(
"
\t
Size of thunk: %u
\n
"
,
hdr
->
size_thunk
);
printf
(
"
\t
Section of thunk table: %u
\n
"
,
hdr
->
section_thunk_table
);
printf
(
"
\t
Offset of thunk table: %u
\n
"
,
hdr
->
offset_thunk_table
);
printf
(
"
\t
Number of sections: %u
\n
"
,
hdr
->
num_sects
);
dump_dbi_hash_table
((
const
BYTE
*
)(
hdr
+
1
),
hdr
->
hash_size
,
"Public"
,
"
\t
"
);
free
(
hdr
);
}
static
void
pdb_dump_symbols
(
struct
pdb_reader
*
reader
,
PDB_STREAM_INDEXES
*
sidx
)
...
...
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