aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2000-06-05 20:49:53 +0000
committerDaniel Berlin <dberlin@dberlin.org>2000-06-05 20:49:53 +0000
commit357e46e7c9f18a0603aa9a6de440bedb147e57f8 (patch)
tree7a636a8075ad6888e5c2401e87c859f74c526183 /gdb/symtab.h
parente6d71bf34e01d840417e4fac1bcedae5fff5b9dc (diff)
downloadgdb-357e46e7c9f18a0603aa9a6de440bedb147e57f8.zip
gdb-357e46e7c9f18a0603aa9a6de440bedb147e57f8.tar.gz
gdb-357e46e7c9f18a0603aa9a6de440bedb147e57f8.tar.bz2
C++ improvements
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index 5fe5bc3..7fb78db 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -1059,10 +1059,11 @@ struct partial_symtab
style, using thunks (where '$' is really CPLUS_MARKER). */
#define VTBL_PREFIX_P(NAME) \
- ((NAME)[0] == '_' \
+ (((NAME)[0] == '_' \
&& (((NAME)[1] == 'V' && (NAME)[2] == 'T') \
|| ((NAME)[1] == 'v' && (NAME)[2] == 't')) \
- && is_cplus_marker ((NAME)[3]))
+ && is_cplus_marker ((NAME)[3])) || ((NAME)[0]=='_' && (NAME)[1]=='_' \
+ && (NAME)[2]=='v' && (NAME)[3]=='t' && (NAME)[4]=='_'))
/* Macro that yields non-zero value iff NAME is the prefix for C++ destructor
names. Note that this macro is g++ specific (FIXME). */