aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2001-03-24 03:23:20 +0000
committerJim Blandy <jimb@codesourcery.com>2001-03-24 03:23:20 +0000
commit2adab5d0b27b20bd56853e9b0c9c6a8763699ae2 (patch)
tree87cdc3e74baed364dd32523972ad2f1a74954f85
parent9e40428556e1508cbb07aa5ebdcd24e8bb4d3cd6 (diff)
downloadgdb-2adab5d0b27b20bd56853e9b0c9c6a8763699ae2.zip
gdb-2adab5d0b27b20bd56853e9b0c9c6a8763699ae2.tar.gz
gdb-2adab5d0b27b20bd56853e9b0c9c6a8763699ae2.tar.bz2
Revert previous change, committed to trunk accidentally.
-rw-r--r--gdb/c-typeprint.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c
index 2cd9e3e..bdc5a68 100644
--- a/gdb/c-typeprint.c
+++ b/gdb/c-typeprint.c
@@ -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))