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
4f574ee9
Commit
4f574ee9
authored
Jan 12, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Try to load the PDB string table from file number 4 too.
parent
530e9c9b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
14 deletions
+18
-14
pdb.c
tools/winedump/pdb.c
+18
-14
No files found.
tools/winedump/pdb.c
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
...
...
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