aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-lang.h
diff options
context:
space:
mode:
authorChristian Biesinger <cbiesinger@google.com>2019-10-07 13:23:34 -0500
committerChristian Biesinger <cbiesinger@google.com>2019-10-07 17:30:22 -0500
commitbad5c02618a27f8f1c5c0858c323dba060aed905 (patch)
tree205bfb022d809d23f7134d6221f5852a42ef05d4 /gdb/c-lang.h
parent51f1fdc3d2235ffe94172b51d33fec0e5c5edeca (diff)
downloadgdb-bad5c02618a27f8f1c5c0858c323dba060aed905.zip
gdb-bad5c02618a27f8f1c5c0858c323dba060aed905.tar.gz
gdb-bad5c02618a27f8f1c5c0858c323dba060aed905.tar.bz2
Move declaration of vtbl_ptr_name to the header.
There are conflicting comments about whether this was introduced in GCC 2.4.5 or GCC 2.6 and I don't know which one is correct... gdb/ChangeLog: 2019-10-07 Christian Biesinger <cbiesinger@google.com> * c-lang.h (vtbl_ptr_name): Declare. * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get it from the header. * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
Diffstat (limited to 'gdb/c-lang.h')
-rw-r--r--gdb/c-lang.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/c-lang.h b/gdb/c-lang.h
index d95df54..de291fa 100644
--- a/gdb/c-lang.h
+++ b/gdb/c-lang.h
@@ -144,6 +144,12 @@ extern void cp_print_value_fields_rtti (struct type *,
const struct value_print_options *,
struct type **, int);
+/* gcc-2.6 or later (when using -fvtable-thunks)
+ emits a unique named type for a vtable entry.
+ Some gdb code depends on that specific name. */
+
+extern const char vtbl_ptr_name[];
+
extern int cp_is_vtbl_ptr_type (struct type *);
extern int cp_is_vtbl_member (struct type *);