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
464d0491
Commit
464d0491
authored
Jul 16, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Jul 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Fix and cleanup undecoration of templatized functions and methods.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
e0b6ceea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
cpp.c
dlls/msvcrt/tests/cpp.c
+1
-0
undname.c
dlls/msvcrt/undname.c
+9
-9
No files found.
dlls/msvcrt/tests/cpp.c
View file @
464d0491
...
...
@@ -1292,6 +1292,7 @@ static void test_demangle(void)
/* 130 */
{
"??_E?$TStrArray@$$BY0BAA@D$0BA@@@UAEPAXI@Z"
,
"public: virtual void * __thiscall TStrArray<char [256],16>::`vector deleting destructor'(unsigned int)"
},
/* 131 */
{
"??_R0?AVCC@DD@@@8"
,
"class DD::CC `RTTI Type Descriptor'"
},
/* 132 */
{
"??$meth@FD@DD@CC@@QAE_NK@Z"
,
"public: bool __thiscall CC::DD::meth<short,char>(unsigned long)"
},
};
int
i
,
num_test
=
ARRAY_SIZE
(
test
);
char
*
name
;
...
...
dlls/msvcrt/undname.c
View file @
464d0491
...
...
@@ -1368,13 +1368,13 @@ static BOOL symbol_demangle(struct parsed_symbol* sym)
sym
->
current
++
;
/* Then function name or operator code */
if
(
*
sym
->
current
==
'?'
&&
(
sym
->
current
[
1
]
!=
'$'
||
sym
->
current
[
2
]
==
'?'
)
)
if
(
*
sym
->
current
==
'?'
)
{
const
char
*
function_name
=
NULL
;
if
(
sym
->
current
[
1
]
==
'$'
)
if
(
sym
->
current
[
1
]
==
'$'
&&
sym
->
current
[
2
]
==
'?'
)
{
do_after
=
6
;
do_after
=
5
;
sym
->
current
+=
2
;
}
...
...
@@ -1506,6 +1506,11 @@ static BOOL symbol_demangle(struct parsed_symbol* sym)
return
FALSE
;
}
break
;
case
'$'
:
sym
->
current
++
;
if
(
!
(
function_name
=
get_template_name
(
sym
)))
goto
done
;
--
sym
->
current
;
break
;
default:
/* FIXME: Other operators */
ERR
(
"Unknown operator: %c
\n
"
,
*
sym
->
current
);
...
...
@@ -1522,7 +1527,7 @@ static BOOL symbol_demangle(struct parsed_symbol* sym)
sym
->
result
=
(
char
*
)
function_name
;
ret
=
TRUE
;
goto
done
;
case
6
:
case
5
:
{
char
*
args
;
struct
array
array_pmt
;
...
...
@@ -1547,8 +1552,6 @@ static BOOL symbol_demangle(struct parsed_symbol* sym)
ret
=
(
sym
->
result
=
get_template_name
(
sym
))
!=
NULL
;
goto
done
;
}
else
if
(
*
sym
->
current
==
'?'
&&
sym
->
current
[
1
]
==
'$'
)
do_after
=
5
;
/* Either a class name, or '@' if the symbol is not a class member */
switch
(
*
sym
->
current
)
...
...
@@ -1577,9 +1580,6 @@ static BOOL symbol_demangle(struct parsed_symbol* sym)
case
3
:
sym
->
flags
&=
~
UNDNAME_NO_FUNCTION_RETURNS
;
break
;
case
5
:
sym
->
names
.
start
++
;
break
;
}
/* Function/Data type and access level */
...
...
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