Modified Files:
ChangeLog symtab.c * symtab.c(gdb_mangle_name): fix the problem with constructor name mangling.
This commit is contained in:
parent
dda398c369
commit
adbdb5276a
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Nov 15 12:29:10 1993 Kung Hsu (kung@cirdan.cygnus.com)
|
||||||
|
|
||||||
|
* symtab.c(gdb_mangle_name): fix the problem with constructor
|
||||||
|
name mangling.
|
||||||
|
|
||||||
Mon Nov 15 11:38:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
|
Mon Nov 15 11:38:25 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
|
||||||
|
|
||||||
* gdbtypes.h: Add TYPE_FLAG_TARGET_STUB.
|
* gdbtypes.h: Add TYPE_FLAG_TARGET_STUB.
|
||||||
|
|
|
@ -278,7 +278,7 @@ gdb_mangle_name (type, i, j)
|
||||||
is_destructor = (strncmp(physname, "__dt", 4) == 0);
|
is_destructor = (strncmp(physname, "__dt", 4) == 0);
|
||||||
|
|
||||||
#ifndef GCC_MANGLE_BUG
|
#ifndef GCC_MANGLE_BUG
|
||||||
if (is_destructor)
|
if (is_destructor || is_constructor)
|
||||||
{
|
{
|
||||||
mangled_name = (char*) xmalloc(strlen(physname)+1);
|
mangled_name = (char*) xmalloc(strlen(physname)+1);
|
||||||
strcpy(mangled_name, physname);
|
strcpy(mangled_name, physname);
|
||||||
|
|
Loading…
Reference in a new issue