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
5d12e970
Commit
5d12e970
authored
May 14, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Add support for template operators in symbol demangling.
parent
5e1b9c14
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
cpp.c
dlls/msvcrt/tests/cpp.c
+3
-0
undname.c
dlls/msvcrt/undname.c
+18
-1
No files found.
dlls/msvcrt/tests/cpp.c
View file @
5d12e970
...
@@ -1053,6 +1053,9 @@ static void test_demangle(void)
...
@@ -1053,6 +1053,9 @@ static void test_demangle(void)
/* 118 */
{
"?swprintf@@YAHPA_WIPB_WZZ"
,
"int __cdecl swprintf(wchar_t *,unsigned int,wchar_t const *,...)"
},
/* 118 */
{
"?swprintf@@YAHPA_WIPB_WZZ"
,
"int __cdecl swprintf(wchar_t *,unsigned int,wchar_t const *,...)"
},
/* 119 */
{
"??Xstd@@YAAEAV?$complex@M@0@AEAV10@AEBV10@@Z"
,
"class std::complex<float> & __ptr64 __cdecl std::operator*=(class std::complex<float> & __ptr64,class std::complex<float> const & __ptr64)"
},
/* 119 */
{
"??Xstd@@YAAEAV?$complex@M@0@AEAV10@AEBV10@@Z"
,
"class std::complex<float> & __ptr64 __cdecl std::operator*=(class std::complex<float> & __ptr64,class std::complex<float> const & __ptr64)"
},
/* 120 */
{
"?_Doraise@bad_cast@std@@MEBAXXZ"
,
"protected: virtual void __cdecl std::bad_cast::_Doraise(void)const __ptr64"
},
/* 120 */
{
"?_Doraise@bad_cast@std@@MEBAXXZ"
,
"protected: virtual void __cdecl std::bad_cast::_Doraise(void)const __ptr64"
},
/* 121 */
{
"??$?DM@std@@YA?AV?$complex@M@0@ABMABV10@@Z"
,
"class std::complex<float> __cdecl std::operator*<float>(float const &,class std::complex<float> const &)"
,
"??$?DM@std@@YA?AV?$complex@M@0@ABMABV10@@Z"
},
};
};
int
i
,
num_test
=
(
sizeof
(
test
)
/
sizeof
(
test
[
0
]));
int
i
,
num_test
=
(
sizeof
(
test
)
/
sizeof
(
test
[
0
]));
...
...
dlls/msvcrt/undname.c
View file @
5d12e970
...
@@ -1238,10 +1238,16 @@ static BOOL symbol_demangle(struct parsed_symbol* sym)
...
@@ -1238,10 +1238,16 @@ static BOOL symbol_demangle(struct parsed_symbol* sym)
sym
->
current
++
;
sym
->
current
++
;
/* Then function name or operator code */
/* Then function name or operator code */
if
(
*
sym
->
current
==
'?'
&&
sym
->
current
[
1
]
!=
'$'
)
if
(
*
sym
->
current
==
'?'
&&
(
sym
->
current
[
1
]
!=
'$'
||
sym
->
current
[
2
]
==
'?'
)
)
{
{
const
char
*
function_name
=
NULL
;
const
char
*
function_name
=
NULL
;
if
(
sym
->
current
[
1
]
==
'$'
)
{
do_after
=
6
;
sym
->
current
+=
2
;
}
/* C++ operator code (one character, or two if the first is '_') */
/* C++ operator code (one character, or two if the first is '_') */
switch
(
*++
sym
->
current
)
switch
(
*++
sym
->
current
)
{
{
...
@@ -1374,6 +1380,17 @@ static BOOL symbol_demangle(struct parsed_symbol* sym)
...
@@ -1374,6 +1380,17 @@ static BOOL symbol_demangle(struct parsed_symbol* sym)
sym
->
result
=
(
char
*
)
function_name
;
sym
->
result
=
(
char
*
)
function_name
;
ret
=
TRUE
;
ret
=
TRUE
;
goto
done
;
goto
done
;
case
6
:
{
char
*
args
;
struct
array
array_pmt
;
str_array_init
(
&
array_pmt
);
args
=
get_args
(
sym
,
&
array_pmt
,
FALSE
,
'<'
,
'>'
);
if
(
args
!=
NULL
)
function_name
=
str_printf
(
sym
,
"%s%s"
,
function_name
,
args
);
sym
->
names
.
num
=
0
;
}
/* fall through */
default:
default:
if
(
!
str_array_push
(
sym
,
function_name
,
-
1
,
&
sym
->
stack
))
if
(
!
str_array_push
(
sym
,
function_name
,
-
1
,
&
sym
->
stack
))
return
FALSE
;
return
FALSE
;
...
...
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