diff options
author | Jim Blandy <jimb@codesourcery.com> | 2001-03-24 03:27:11 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2001-03-24 03:27:11 +0000 |
commit | 8032e9fd9244136ba7b768696637b9c8c873bc5a (patch) | |
tree | 71fa09490f0c64e57264b0e1c5ede4362e0b0c2b | |
parent | 8211bbfd20d20d09e03d3160b5eca30818ac032d (diff) | |
download | gdb-8032e9fd9244136ba7b768696637b9c8c873bc5a.zip gdb-8032e9fd9244136ba7b768696637b9c8c873bc5a.tar.gz gdb-8032e9fd9244136ba7b768696637b9c8c873bc5a.tar.bz2 |
A single-file branch to help me keep things straight while adaptingjimb_gnu_v3_branch
GDB to the GNU V3 C++ ABI.
* c-typeprint.c: Commit Dan Berlin's changes.
-rw-r--r-- | gdb/c-typeprint.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c index bdc5a68..2cd9e3e 100644 --- a/gdb/c-typeprint.c +++ b/gdb/c-typeprint.c @@ -35,6 +35,7 @@ #include "demangle.h" #include "c-lang.h" #include "typeprint.h" +#include "cp-abi.h" #include "gdb_string.h" #include <errno.h> @@ -902,11 +903,10 @@ 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 = - ((physname[0] == '_' && physname[1] == '_' - && strchr ("0123456789Qt", physname[2])) - || STREQN (physname, "__ct__", 6) - || DESTRUCTOR_PREFIX_P (physname) - || STREQN (physname, "__dt__", 6)); + is_constructor_name (physname) + || is_destructor_name (physname) + || method_name[0] == '~'; + QUIT; if (TYPE_FN_FIELD_PROTECTED (f, j)) |