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
f0b85183
Commit
f0b85183
authored
Nov 02, 2021
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscvpdb.h: Update symbol header for linetab2's block size.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
03fb6c14
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
16 deletions
+17
-16
msc.c
dlls/dbghelp/msc.c
+4
-3
mscvpdb.h
include/wine/mscvpdb.h
+2
-2
pdb.c
tools/winedump/pdb.c
+11
-11
No files found.
dlls/dbghelp/msc.c
View file @
f0b85183
...
...
@@ -2424,6 +2424,7 @@ static void pdb_convert_symbol_file(const PDB_SYMBOLS* symbols,
sfile
->
range
.
index
=
sym_file
->
range
.
index
;
sfile
->
symbol_size
=
sym_file
->
symbol_size
;
sfile
->
lineno_size
=
sym_file
->
lineno_size
;
sfile
->
lineno2_size
=
sym_file
->
lineno2_size
;
*
size
=
sizeof
(
PDB_SYMBOL_FILE
)
-
1
;
}
else
...
...
@@ -2818,14 +2819,14 @@ static BOOL pdb_process_internal(const struct process* pcs,
codeview_snarf
(
msc_dbg
,
modimage
,
sizeof
(
DWORD
),
sfile
.
symbol_size
,
TRUE
);
if
(
sfile
.
lineno_size
&&
sfile
.
lineno2_size
)
FIXME
(
"Both line info present... only supporting first
\n
"
);
if
(
sfile
.
lineno_size
)
codeview_snarf_linetab
(
msc_dbg
,
modimage
+
sfile
.
symbol_size
,
sfile
.
lineno_size
,
pdb_file
->
kind
==
PDB_JG
);
if
(
files_image
)
codeview_snarf_linetab2
(
msc_dbg
,
modimage
+
sfile
.
symbol_size
+
sfile
.
lineno_size
,
pdb_get_file_size
(
pdb_file
,
sfile
.
file
)
-
sfile
.
symbol_size
-
sfile
.
lineno_size
,
else
if
(
sfile
.
lineno2_size
&&
files_image
)
codeview_snarf_linetab2
(
msc_dbg
,
modimage
+
sfile
.
symbol_size
,
sfile
.
lineno2_size
,
files_image
+
12
,
files_size
);
pdb_free
(
modimage
);
...
...
include/wine/mscvpdb.h
View file @
f0b85183
...
...
@@ -2343,7 +2343,7 @@ typedef struct _PDB_SYMBOL_FILE
WORD
file
;
DWORD
symbol_size
;
DWORD
lineno_size
;
DWORD
unknown2
;
DWORD
lineno2_size
;
DWORD
nSrcFiles
;
DWORD
attribute
;
CHAR
filename
[
1
];
...
...
@@ -2357,7 +2357,7 @@ typedef struct _PDB_SYMBOL_FILE_EX
WORD
file
;
DWORD
symbol_size
;
DWORD
lineno_size
;
DWORD
unknown2
;
DWORD
lineno2_size
;
DWORD
nSrcFiles
;
DWORD
attribute
;
DWORD
reserved
[
2
];
...
...
tools/winedump/pdb.c
View file @
f0b85183
...
...
@@ -466,7 +466,7 @@ static void pdb_dump_symbols(struct pdb_reader* reader, PDB_STREAM_INDEXES* sidx
file
=
(
const
char
*
)
symbols
+
sizeof
(
PDB_SYMBOLS
);
while
(
file
-
(
const
char
*
)
symbols
<
sizeof
(
PDB_SYMBOLS
)
+
symbols
->
module_size
)
{
int
file_nr
,
symbol_size
,
lineno_size
;
int
file_nr
,
symbol_size
,
lineno_size
,
lineno2_size
;
const
char
*
file_name
;
if
(
symbols
->
version
<
19970000
)
...
...
@@ -476,6 +476,7 @@ static void pdb_dump_symbols(struct pdb_reader* reader, PDB_STREAM_INDEXES* sidx
file_name
=
sym_file
->
filename
;
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
"
...
...
@@ -491,7 +492,7 @@ static void pdb_dump_symbols(struct pdb_reader* reader, PDB_STREAM_INDEXES* sidx
"
\t\t
file: %04x
\n
"
"
\t\t
symb size: %08x
\n
"
"
\t\t
line size: %08x
\n
"
"
\t\t
unknown2:
%08x
\n
"
"
\t\t
line2 size:
%08x
\n
"
"
\t\t
nSrcFiles: %08x
\n
"
"
\t\t
attribute: %08x
\n
"
,
sym_file
->
unknown1
,
...
...
@@ -506,7 +507,7 @@ static void pdb_dump_symbols(struct pdb_reader* reader, PDB_STREAM_INDEXES* sidx
sym_file
->
file
,
sym_file
->
symbol_size
,
sym_file
->
lineno_size
,
sym_file
->
unknown2
,
sym_file
->
lineno2_size
,
sym_file
->
nSrcFiles
,
sym_file
->
attribute
);
}
...
...
@@ -517,6 +518,7 @@ static void pdb_dump_symbols(struct pdb_reader* reader, PDB_STREAM_INDEXES* sidx
file_name
=
sym_file
->
filename
;
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\t
unknown1: %08x
\n
"
"
\t\t
range
\n
"
...
...
@@ -533,7 +535,7 @@ static void pdb_dump_symbols(struct pdb_reader* reader, PDB_STREAM_INDEXES* sidx
"
\t\t
file: %04x
\n
"
"
\t\t
symb size: %08x
\n
"
"
\t\t
line size: %08x
\n
"
"
\t\t
unknown2:
%08x
\n
"
"
\t\t
line2 size:
%08x
\n
"
"
\t\t
nSrcFiles: %08x
\n
"
"
\t\t
attribute: %08x
\n
"
"
\t\t
reserved/0: %08x
\n
"
...
...
@@ -552,7 +554,7 @@ static void pdb_dump_symbols(struct pdb_reader* reader, PDB_STREAM_INDEXES* sidx
sym_file
->
file
,
sym_file
->
symbol_size
,
sym_file
->
lineno_size
,
sym_file
->
unknown2
,
sym_file
->
lineno2_size
,
sym_file
->
nSrcFiles
,
sym_file
->
attribute
,
sym_file
->
reserved
[
0
],
...
...
@@ -569,15 +571,13 @@ static void pdb_dump_symbols(struct pdb_reader* reader, PDB_STREAM_INDEXES* sidx
/* line number info */
if
(
lineno_size
)
codeview_dump_linetab
((
const
char
*
)
modimage
+
symbol_size
,
TRUE
,
" "
);
/* anyway, lineno_size doesn't see to really be the size of the line number information, and
* it's not clear yet when to call for linetab2...
*/
codeview_dump_linetab2
((
const
char
*
)
modimage
+
symbol_size
+
lineno_size
,
total_size
-
(
symbol_size
+
lineno_size
),
else
if
(
lineno2_size
)
/* actually, only one of the 2 lineno should be present */
codeview_dump_linetab2
((
const
char
*
)
modimage
+
symbol_size
,
lineno2_size
,
filesimage
?
filesimage
+
12
:
NULL
,
filessize
,
" "
);
/* what's that part ??? */
if
(
0
)
dump_data
(
modimage
+
symbol_size
+
lineno_size
,
total_size
-
(
symbol_size
+
lineno_size
),
" "
);
dump_data
(
modimage
+
symbol_size
+
lineno_size
+
lineno2_size
,
total_size
-
(
symbol_size
+
lineno_size
+
lineno2_size
),
" "
);
free
(
modimage
);
}
...
...
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