Revert previous change, committed to trunk accidentally.
authorJim Blandy <jimb@codesourcery.com>
Sat, 24 Mar 2001 03:23:20 +0000 (03:23 +0000)
committerJim Blandy <jimb@codesourcery.com>
Sat, 24 Mar 2001 03:23:20 +0000 (03:23 +0000)
gdb/c-typeprint.c

index 2cd9e3e3fc16530e324542094bba5f28f3fc8623..bdc5a689ee1dc8ffed41c421399d839102dad529 100644 (file)
@@ -35,7 +35,6 @@
 #include "demangle.h"
 #include "c-lang.h"
 #include "typeprint.h"
-#include "cp-abi.h"
 
 #include "gdb_string.h"
 #include <errno.h>
@@ -903,10 +902,11 @@ c_type_print_base (struct type *type, struct ui_file *stream, int show,
                {
                  char *physname = TYPE_FN_FIELD_PHYSNAME (f, j);
                  int is_full_physname_constructor =
-                  is_constructor_name (physname) 
-                  || is_destructor_name (physname)
-                  || method_name[0] == '~';
-
+                 ((physname[0] == '_' && physname[1] == '_'
+                   && strchr ("0123456789Qt", physname[2]))
+                  || STREQN (physname, "__ct__", 6)
+                  || DESTRUCTOR_PREFIX_P (physname)
+                  || STREQN (physname, "__dt__", 6));
 
                  QUIT;
                  if (TYPE_FN_FIELD_PROTECTED (f, j))