aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKung Hsu <kung@cygnus>1993-11-15 20:40:03 +0000
committerKung Hsu <kung@cygnus>1993-11-15 20:40:03 +0000
commitadbdb5276abd6a30382c48f5fc988e8e3145fe00 (patch)
tree09793039818f6df914c824e0c9d8ddbd06d95eae
parentdda398c369f499c0468c4cacdae9ff3d44555832 (diff)
downloadgdb-adbdb5276abd6a30382c48f5fc988e8e3145fe00.zip
gdb-adbdb5276abd6a30382c48f5fc988e8e3145fe00.tar.gz
gdb-adbdb5276abd6a30382c48f5fc988e8e3145fe00.tar.bz2
Modified Files:
ChangeLog symtab.c * symtab.c(gdb_mangle_name): fix the problem with constructor name mangling.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/symtab.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 53777e5..3cc0031 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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)
* gdbtypes.h: Add TYPE_FLAG_TARGET_STUB.
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 2dcc877..157d2da 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -278,7 +278,7 @@ gdb_mangle_name (type, i, j)
is_destructor = (strncmp(physname, "__dt", 4) == 0);
#ifndef GCC_MANGLE_BUG
- if (is_destructor)
+ if (is_destructor || is_constructor)
{
mangled_name = (char*) xmalloc(strlen(physname)+1);
strcpy(mangled_name, physname);