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
711f7163
Commit
711f7163
authored
Jan 17, 2011
by
Eric Pouech
Committed by
Alexandre Julliard
Jan 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Get stream indexes out of PDB files (instead of hardwired values).
parent
8595f6c6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
msc.c
dlls/dbghelp/msc.c
+22
-2
No files found.
dlls/dbghelp/msc.c
View file @
711f7163
...
...
@@ -75,6 +75,7 @@ struct pdb_file_info
HANDLE
hMap
;
const
char
*
image
;
struct
pdb_stream_name
*
stream_dict
;
unsigned
fpoext_stream
;
union
{
struct
...
...
@@ -2207,6 +2208,7 @@ static BOOL pdb_load_stream_name_table(struct pdb_file_info* pdb_file, const cha
}
/* add sentinel */
pdb_file
->
stream_dict
[
numok
].
name
=
NULL
;
pdb_file
->
fpoext_stream
=
-
1
;
return
j
==
numok
&&
i
==
count
;
}
...
...
@@ -2646,6 +2648,7 @@ static BOOL pdb_process_internal(const struct process* pcs,
BYTE
*
modimage
;
BYTE
*
file
;
int
header_size
=
0
;
PDB_STREAM_INDEXES
*
psi
;
pdb_convert_symbols_header
(
&
symbols
,
&
header_size
,
symbols_image
);
switch
(
symbols
.
version
)
...
...
@@ -2660,6 +2663,23 @@ static BOOL pdb_process_internal(const struct process* pcs,
symbols
.
version
,
symbols
.
version
);
}
switch
(
symbols
.
stream_index_size
)
{
case
0
:
case
sizeof
(
PDB_STREAM_INDEXES_OLD
):
/* no fpo ext stream in this case */
break
;
case
sizeof
(
PDB_STREAM_INDEXES
):
psi
=
(
PDB_STREAM_INDEXES
*
)((
const
char
*
)
symbols_image
+
sizeof
(
PDB_SYMBOLS
)
+
symbols
.
module_size
+
symbols
.
offset_size
+
symbols
.
hash_size
+
symbols
.
srcmodule_size
+
symbols
.
pdbimport_size
+
symbols
.
unknown2_size
);
pdb_file
->
fpoext_stream
=
psi
->
FPO_EXT
;
break
;
default:
FIXME
(
"Unknown PDB_STREAM_INDEXES size (%d)
\n
"
,
symbols
.
stream_index_size
);
break
;
}
files_image
=
pdb_read_strings
(
pdb_file
);
if
(
files_image
)
files_size
=
*
(
const
DWORD
*
)(
files_image
+
8
);
...
...
@@ -3070,8 +3090,8 @@ BOOL pdb_virtual_unwind(struct cpu_stack_walk* csw, DWORD_PTR ip,
strbase
=
pdb_read_strings
(
&
pdb_info
->
pdb_files
[
0
]);
if
(
!
strbase
)
return
FALSE
;
strsize
=
*
(
const
DWORD
*
)(
strbase
+
8
);
fpoext
=
pdb_read_file
(
&
pdb_info
->
pdb_files
[
0
],
10
);
size
=
pdb_get_file_size
(
&
pdb_info
->
pdb_files
[
0
],
10
);
fpoext
=
pdb_read_file
(
&
pdb_info
->
pdb_files
[
0
],
pdb_info
->
pdb_files
[
0
].
fpoext_stream
);
size
=
pdb_get_file_size
(
&
pdb_info
->
pdb_files
[
0
],
pdb_info
->
pdb_files
[
0
].
fpoext_stream
);
if
(
fpoext
&&
(
size
%
sizeof
(
*
fpoext
))
==
0
)
{
size
/=
sizeof
(
*
fpoext
);
...
...
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