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
23fe1ad9
Commit
23fe1ad9
authored
Nov 02, 2021
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Also dump library name for a module.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f64c6e61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
pdb.c
tools/winedump/pdb.c
+13
-7
No files found.
tools/winedump/pdb.c
View file @
23fe1ad9
...
...
@@ -468,18 +468,21 @@ static void pdb_dump_symbols(struct pdb_reader* reader, PDB_STREAM_INDEXES* sidx
{
int
file_nr
,
symbol_size
,
lineno_size
,
lineno2_size
;
const
char
*
file_name
;
const
char
*
lib_name
;
if
(
symbols
->
version
<
19970000
)
{
const
PDB_SYMBOL_FILE
*
sym_file
=
(
const
PDB_SYMBOL_FILE
*
)
file
;
file_nr
=
sym_file
->
file
;
file_name
=
sym_file
->
filename
;
lib_name
=
file_name
+
strlen
(
file_name
)
+
1
;
symbol_size
=
sym_file
->
symbol_size
;
lineno_size
=
sym_file
->
lineno_size
;
lineno2_size
=
sym_file
->
lineno2_size
;
printf
(
"
\t
--------symbol file----------- %s
\n
"
,
file_name
);
printf
(
"
\t
got symbol_file
\n
"
"
\t\t
unknown1: %08x
\n
"
printf
(
"
\t
--------symbol file-----------
\n
"
);
printf
(
"
\t
Name: %s
\n
"
,
file_name
);
if
(
strcmp
(
file_name
,
lib_name
))
printf
(
"
\t
Library: %s
\n
"
,
lib_name
);
printf
(
"
\t\t
unknown1: %08x
\n
"
"
\t\t
range
\n
"
"
\t\t\t
segment: %04x
\n
"
"
\t\t\t
pad1: %04x
\n
"
...
...
@@ -514,12 +517,16 @@ static void pdb_dump_symbols(struct pdb_reader* reader, PDB_STREAM_INDEXES* sidx
else
{
const
PDB_SYMBOL_FILE_EX
*
sym_file
=
(
const
PDB_SYMBOL_FILE_EX
*
)
file
;
file_nr
=
sym_file
->
file
;
file_name
=
sym_file
->
filename
;
lib_name
=
file_name
+
strlen
(
file_name
)
+
1
;
symbol_size
=
sym_file
->
symbol_size
;
lineno_size
=
sym_file
->
lineno_size
;
lineno2_size
=
sym_file
->
lineno2_size
;
printf
(
"
\t
--------symbol file----------- %s
\n
"
,
file_name
);
printf
(
"
\t
--------symbol file-----------
\n
"
);
printf
(
"
\t
Name: %s
\n
"
,
file_name
);
if
(
strcmp
(
file_name
,
lib_name
))
printf
(
"
\t
Library: %s
\n
"
,
lib_name
);
printf
(
"
\t\t
unknown1: %08x
\n
"
"
\t\t
range
\n
"
"
\t\t\t
segment: %04x
\n
"
...
...
@@ -581,8 +588,7 @@ static void pdb_dump_symbols(struct pdb_reader* reader, PDB_STREAM_INDEXES* sidx
free
(
modimage
);
}
file_name
+=
strlen
(
file_name
)
+
1
;
file
=
(
char
*
)((
DWORD_PTR
)(
file_name
+
strlen
(
file_name
)
+
1
+
3
)
&
~
3
);
file
=
(
char
*
)((
DWORD_PTR
)(
lib_name
+
strlen
(
lib_name
)
+
1
+
3
)
&
~
3
);
}
dump_global_symbol
(
reader
,
symbols
->
global_file
);
dump_public_symbol
(
reader
,
symbols
->
public_file
);
...
...
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