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
9adf73be
Commit
9adf73be
authored
Aug 21, 2021
by
Eric Pouech
Committed by
Alexandre Julliard
Aug 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp:: Add proper support for S_OBJNAME records.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fe9f0c7f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
18 deletions
+18
-18
msc.c
dlls/dbghelp/msc.c
+6
-14
mscvpdb.h
include/wine/mscvpdb.h
+9
-1
msc.c
tools/winedump/msc.c
+3
-3
No files found.
dlls/dbghelp/msc.c
View file @
9adf73be
...
...
@@ -1844,23 +1844,15 @@ static BOOL codeview_snarf(const struct msc_debug_info* msc_dbg, const BYTE* roo
}
}
break
;
case
S_OBJNAME
:
TRACE
(
"S-Compiland-V3 %s
\n
"
,
sym
->
compiland_v3
.
name
);
if
(
TRACE_ON
(
dbghelp_msc
))
{
const
char
*
ptr1
=
sym
->
compiland_v3
.
name
+
strlen
(
sym
->
compiland_v3
.
name
);
const
char
*
ptr2
;
while
(
*
ptr1
)
{
ptr2
=
ptr1
+
strlen
(
ptr1
)
+
1
;
TRACE
(
"
\t
%s => %s
\n
"
,
ptr1
,
debugstr_a
(
ptr2
));
ptr1
=
ptr2
+
strlen
(
ptr2
)
+
1
;
}
}
break
;
TRACE
(
"S-ObjName-V3 %s
\n
"
,
sym
->
objname_v3
.
name
);
compiland
=
symt_new_compiland
(
msc_dbg
->
module
,
0
/* FIXME */
,
source_new
(
msc_dbg
->
module
,
NULL
,
sym
->
objname_v3
.
name
));
case
S_OBJNAME_ST
:
TRACE
(
"S-ObjName %s
\n
"
,
terminate_string
(
&
sym
->
objname_v1
.
p_name
));
TRACE
(
"S-ObjName
-V1
%s
\n
"
,
terminate_string
(
&
sym
->
objname_v1
.
p_name
));
compiland
=
symt_new_compiland
(
msc_dbg
->
module
,
0
/* FIXME */
,
source_new
(
msc_dbg
->
module
,
NULL
,
terminate_string
(
&
sym
->
objname_v1
.
p_name
)));
...
...
include/wine/mscvpdb.h
View file @
9adf73be
...
...
@@ -1557,7 +1557,7 @@ union codeview_symbol
{
short
int
len
;
short
int
id
;
char
signature
[
4
]
;
unsigned
signature
;
struct
p_string
p_name
;
}
objname_v1
;
...
...
@@ -1565,6 +1565,14 @@ union codeview_symbol
{
short
int
len
;
short
int
id
;
unsigned
signature
;
char
name
[
1
];
}
objname_v3
;
struct
{
short
int
len
;
short
int
id
;
unsigned
int
unknown
;
struct
p_string
p_name
;
}
compiland_v1
;
...
...
tools/winedump/msc.c
View file @
9adf73be
...
...
@@ -1352,12 +1352,12 @@ BOOL codeview_dump_symbols(const void* root, unsigned long size)
break
;
case
S_OBJNAME
:
printf
(
"
\t
S-
Compiland V3 '%s' unknown:%x
\n
"
,
sym
->
compiland_v3
.
name
,
sym
->
compiland_v3
.
unknown
);
printf
(
"
\t
S-
ObjName V3 sig:%x '%s'
\n
"
,
sym
->
objname_v3
.
signature
,
sym
->
objname_v3
.
name
);
break
;
case
S_OBJNAME_ST
:
printf
(
"
\t
S-ObjName V1 sig:%
.4s
'%s'
\n
"
,
printf
(
"
\t
S-ObjName V1 sig:%
x
'%s'
\n
"
,
sym
->
objname_v1
.
signature
,
p_string
(
&
sym
->
objname_v1
.
p_name
));
break
;
...
...
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