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
9c6a15ce
Commit
9c6a15ce
authored
Oct 20, 2005
by
Vijay Kiran Kamuju
Committed by
Alexandre Julliard
Oct 20, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix msvcrt symbol demangling for non MS symbols.
parent
3eb08c44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
cpp.c
dlls/msvcrt/tests/cpp.c
+16
-0
undname.c
dlls/msvcrt/undname.c
+0
-3
No files found.
dlls/msvcrt/tests/cpp.c
View file @
9c6a15ce
...
...
@@ -117,6 +117,10 @@ static type_info* (*p__RTtypeid)(void*);
static
void
*
(
*
p__RTCastToVoid
)(
void
*
);
static
void
*
(
*
p__RTDynamicCast
)(
void
*
,
int
,
void
*
,
void
*
,
int
);
/*Demangle*/
static
char
*
(
*
p__unDName
)(
char
*
,
const
char
*
,
int
,
void
*
,
void
*
,
unsigned
short
int
);
/* _very_ early native versions have serious RTTI bugs, so we check */
static
void
*
bAncientVersion
;
...
...
@@ -247,6 +251,8 @@ static void InitFunctionPtrs()
SET
(
p__RTCastToVoid
,
"__RTCastToVoid"
);
SET
(
p__RTDynamicCast
,
"__RTDynamicCast"
);
SET
(
p__unDName
,
"__unDName"
);
/* Extremely early versions export logic_error, and crash in RTTI */
SETNOFAIL
(
bAncientVersion
,
"??0logic_error@@QAE@ABQBD@Z"
);
}
...
...
@@ -812,6 +818,15 @@ static void test_rtti(void)
ok
(
casted
==
NULL
,
"Cast succeeded
\n
"
);
}
static
void
test_demangle
(
void
)
{
char
*
name
=
NULL
;
static
const
char
*
mangled
=
".ABVVec4@ref2@dice@@"
;
static
const
char
*
result
=
"class dice::ref2::Vec4 const &"
;
name
=
p__unDName
(
0
,
mangled
+
1
,
0
,
pmalloc
,
pfree
,
0x2800
);
ok
(
name
!=
NULL
&&
!
strcmp
(
name
,
result
),
"Got name %s
\n
"
,
name
);
}
START_TEST
(
cpp
)
{
InitFunctionPtrs
();
...
...
@@ -822,6 +837,7 @@ START_TEST(cpp)
test___non_rtti_object
();
test_type_info
();
test_rtti
();
test_demangle
();
if
(
hMsvcrt
)
FreeLibrary
(
hMsvcrt
);
...
...
dlls/msvcrt/undname.c
View file @
9c6a15ce
...
...
@@ -966,9 +966,6 @@ static BOOL symbol_demangle(struct parsed_symbol* sym)
BOOL
ret
=
FALSE
;
unsigned
do_after
=
0
;
/* MS mangled names always begin with '?' */
if
(
*
sym
->
current
!=
'?'
)
return
FALSE
;
/* FIXME seems wrong as name, as it demangles a simple data type */
if
(
sym
->
flags
&
UNDNAME_NO_ARGUMENTS
)
{
...
...
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