Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Ferrillo
wine
Commits
4f574ee9
Commit
4f574ee9
authored
14 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
winedump: Try to load the PDB string table from file number 4 too.
parent
530e9c9b
No related branches found
Branches containing commit
Tags
wine-1.3.17
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/winedump/pdb.c
+18
-14
18 additions, 14 deletions
tools/winedump/pdb.c
with
18 additions
and
14 deletions
tools/winedump/pdb.c
+
18
−
14
View file @
4f574ee9
...
...
@@ -155,6 +155,21 @@ static void pdb_exit(struct pdb_reader* reader)
free
((
char
*
)
reader
->
u
.
ds
.
toc
);
}
static
void
*
read_string_table
(
struct
pdb_reader
*
reader
)
{
void
*
ret
;
/* FIXME: how to determine the correct file number? */
/* 4 and 12 have been observed, there may be others */
ret
=
reader
->
read_file
(
reader
,
4
);
if
(
ret
&&
*
(
const
DWORD
*
)
ret
==
0xeffeeffe
)
return
ret
;
free
(
ret
);
ret
=
reader
->
read_file
(
reader
,
12
);
if
(
ret
&&
*
(
const
DWORD
*
)
ret
==
0xeffeeffe
)
return
ret
;
free
(
ret
);
return
NULL
;
}
static
void
pdb_dump_symbols
(
struct
pdb_reader
*
reader
)
{
PDB_SYMBOLS
*
symbols
;
...
...
@@ -224,20 +239,8 @@ static void pdb_dump_symbols(struct pdb_reader* reader)
dump_data
(
src
,
symbols
->
offset_size
,
" "
);
}
filesimage
=
reader
->
read_file
(
reader
,
12
);
/* FIXME: really fixed ??? */
if
(
filesimage
)
{
if
(
*
(
const
DWORD
*
)
filesimage
==
0xeffeeffe
)
{
filessize
=
*
(
const
DWORD
*
)(
filesimage
+
8
);
}
else
{
printf
(
"wrong header %x expecting 0xeffeeffe
\n
"
,
*
(
const
DWORD
*
)
filesimage
);
free
(
filesimage
);
filesimage
=
NULL
;
}
}
if
(
!
(
filesimage
=
read_string_table
(
reader
)))
printf
(
"string table not found
\n
"
);
else
filessize
=
*
(
const
DWORD
*
)(
filesimage
+
8
);
if
(
symbols
->
srcmodule_size
)
{
...
...
@@ -721,6 +724,7 @@ static void pdb_ds_dump(void)
* 1: root structure
* 2: types
* 3: modules
* 4: string table (FIXME: in which case?)
* 5: FPO data
* 8: segments
* 10: extended FPO data
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment