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.
This commit is contained in:
parent
51f1fdc3d2
commit
bad5c02618
4 changed files with 15 additions and 6 deletions
|
@ -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 *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue