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
5199d04b
Commit
5199d04b
authored
Jan 17, 2011
by
Eric Pouech
Committed by
Alexandre Julliard
Jan 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: Added stream header support.
parent
2cba8402
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
83 additions
and
8 deletions
+83
-8
mscvpdb.h
include/wine/mscvpdb.h
+28
-1
pdb.c
tools/winedump/pdb.c
+55
-7
No files found.
include/wine/mscvpdb.h
View file @
5199d04b
...
@@ -1914,12 +1914,39 @@ typedef struct _PDB_SYMBOLS
...
@@ -1914,12 +1914,39 @@ typedef struct _PDB_SYMBOLS
DWORD
hash_size
;
DWORD
hash_size
;
DWORD
srcmodule_size
;
DWORD
srcmodule_size
;
DWORD
pdbimport_size
;
DWORD
pdbimport_size
;
DWORD
resvd
[
3
];
DWORD
resvd0
;
DWORD
stream_index_size
;
DWORD
unknown2_size
;
WORD
resvd3
;
WORD
resvd3
;
WORD
machine
;
WORD
machine
;
DWORD
resvd4
;
DWORD
resvd4
;
}
PDB_SYMBOLS
,
*
PPDB_SYMBOLS
;
}
PDB_SYMBOLS
,
*
PPDB_SYMBOLS
;
typedef
struct
{
WORD
FPO
;
WORD
unk0
;
WORD
unk1
;
WORD
unk2
;
WORD
unk3
;
WORD
segments
;
}
PDB_STREAM_INDEXES_OLD
;
typedef
struct
{
WORD
FPO
;
WORD
unk0
;
WORD
unk1
;
WORD
unk2
;
WORD
unk3
;
WORD
segments
;
WORD
unk4
;
WORD
unk5
;
WORD
unk6
;
WORD
FPO_EXT
;
WORD
unk7
;
}
PDB_STREAM_INDEXES
;
typedef
struct
_PDB_FPO_DATA
typedef
struct
_PDB_FPO_DATA
{
{
DWORD
start
;
DWORD
start
;
...
...
tools/winedump/pdb.c
View file @
5199d04b
...
@@ -257,10 +257,10 @@ static void pdb_dump_symbols(struct pdb_reader* reader)
...
@@ -257,10 +257,10 @@ static void pdb_dump_symbols(struct pdb_reader* reader)
"
\t
hash_size: %08x
\n
"
"
\t
hash_size: %08x
\n
"
"
\t
src_module_size: %08x
\n
"
"
\t
src_module_size: %08x
\n
"
"
\t
pdbimport_size: %08x
\n
"
"
\t
pdbimport_size: %08x
\n
"
"
\t
resvd
[0]
%08x
\n
"
"
\t
resvd
0:
%08x
\n
"
"
\t
resvd[1]
%08x
\n
"
"
\t
stream_idx_size:
%08x
\n
"
"
\t
resvd[2]
%08x
\n
"
"
\t
unknown2_size:
%08x
\n
"
"
\t
resvd
[3]
%04x
\n
"
"
\t
resvd
3:
%04x
\n
"
"
\t
machine: %s
\n
"
"
\t
machine: %s
\n
"
"
\t
resvd[4] %08x
\n
"
,
"
\t
resvd[4] %08x
\n
"
,
symbols
->
signature
,
symbols
->
signature
,
...
@@ -275,9 +275,9 @@ static void pdb_dump_symbols(struct pdb_reader* reader)
...
@@ -275,9 +275,9 @@ static void pdb_dump_symbols(struct pdb_reader* reader)
symbols
->
hash_size
,
symbols
->
hash_size
,
symbols
->
srcmodule_size
,
symbols
->
srcmodule_size
,
symbols
->
pdbimport_size
,
symbols
->
pdbimport_size
,
symbols
->
resvd
[
0
]
,
symbols
->
resvd
0
,
symbols
->
resvd
[
1
]
,
symbols
->
stream_index_size
,
symbols
->
resvd
[
2
]
,
symbols
->
unknown2_size
,
symbols
->
resvd3
,
symbols
->
resvd3
,
get_machine_str
(
symbols
->
machine
),
get_machine_str
(
symbols
->
machine
),
symbols
->
resvd4
);
symbols
->
resvd4
);
...
@@ -375,6 +375,54 @@ static void pdb_dump_symbols(struct pdb_reader* reader)
...
@@ -375,6 +375,54 @@ static void pdb_dump_symbols(struct pdb_reader* reader)
imp
=
(
const
PDB_SYMBOL_IMPORT
*
)(
first
+
((
ptr
-
first
+
strlen
(
ptr
)
+
1
+
3
)
&
~
3
));
imp
=
(
const
PDB_SYMBOL_IMPORT
*
)(
first
+
((
ptr
-
first
+
strlen
(
ptr
)
+
1
+
3
)
&
~
3
));
}
}
}
}
if
(
symbols
->
stream_index_size
)
{
const
PDB_STREAM_INDEXES_OLD
*
sidx_old
;
const
PDB_STREAM_INDEXES
*
sidx
;
printf
(
"
\t
------------stream indexes--------------
\n
"
);
switch
(
symbols
->
stream_index_size
)
{
case
sizeof
(
PDB_STREAM_INDEXES_OLD
):
sidx_old
=
(
const
PDB_STREAM_INDEXES_OLD
*
)((
const
char
*
)
symbols
+
sizeof
(
PDB_SYMBOLS
)
+
symbols
->
module_size
+
symbols
->
offset_size
+
symbols
->
hash_size
+
symbols
->
srcmodule_size
+
symbols
->
pdbimport_size
+
symbols
->
unknown2_size
);
printf
(
"
\t
FPO: %04x
\n
"
"
\t
?: %04x
\n
"
"
\t
?: %04x
\n
"
"
\t
?: %04x
\n
"
"
\t
?: %04x
\n
"
"
\t
Segments: %04x
\n
"
,
sidx_old
->
FPO
,
sidx_old
->
unk0
,
sidx_old
->
unk1
,
sidx_old
->
unk2
,
sidx_old
->
unk3
,
sidx_old
->
segments
);
break
;
case
sizeof
(
PDB_STREAM_INDEXES
):
sidx
=
(
const
PDB_STREAM_INDEXES
*
)((
const
char
*
)
symbols
+
sizeof
(
PDB_SYMBOLS
)
+
symbols
->
module_size
+
symbols
->
offset_size
+
symbols
->
hash_size
+
symbols
->
srcmodule_size
+
symbols
->
pdbimport_size
+
symbols
->
unknown2_size
);
printf
(
"
\t
FPO: %04x
\n
"
"
\t
?: %04x
\n
"
"
\t
?: %04x
\n
"
"
\t
?: %04x
\n
"
"
\t
?: %04x
\n
"
"
\t
Segments: %04x
\n
"
"
\t
?: %04x
\n
"
"
\t
?: %04x
\n
"
"
\t
?: %04x
\n
"
"
\t
FPO-ext: %04x
\n
"
"
\t
?: %04x
\n
"
,
sidx
->
FPO
,
sidx
->
unk0
,
sidx
->
unk1
,
sidx
->
unk2
,
sidx
->
unk3
,
sidx
->
segments
,
sidx
->
unk4
,
sidx
->
unk5
,
sidx
->
unk6
,
sidx
->
FPO_EXT
,
sidx
->
unk7
);
break
;
default:
printf
(
"unexpected size for stream index %d
\n
"
,
symbols
->
stream_index_size
);
break
;
}
}
/* Read global symbol table */
/* Read global symbol table */
modimage
=
reader
->
read_file
(
reader
,
symbols
->
gsym_file
);
modimage
=
reader
->
read_file
(
reader
,
symbols
->
gsym_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