diff options
author | Christian Biesinger <cbiesinger@google.com> | 2019-10-07 13:23:34 -0500 |
---|---|---|
committer | Christian Biesinger <cbiesinger@google.com> | 2019-10-07 17:30:22 -0500 |
commit | bad5c02618a27f8f1c5c0858c323dba060aed905 (patch) | |
tree | 205bfb022d809d23f7134d6221f5852a42ef05d4 /gdb/cp-valprint.c | |
parent | 51f1fdc3d2235ffe94172b51d33fec0e5c5edeca (diff) | |
download | gdb-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/cp-valprint.c')
-rw-r--r-- | gdb/cp-valprint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index e73b0e2..04be4dc 100644 --- a/gdb/cp-valprint.c +++ b/gdb/cp-valprint.c @@ -56,7 +56,7 @@ static void cp_print_value (struct type *, struct type *, /* GCC versions after 2.4.5 use this. */ -extern const char vtbl_ptr_name[] = "__vtbl_ptr_type"; +const char vtbl_ptr_name[] = "__vtbl_ptr_type"; /* Return truth value for assertion that TYPE is of the type "pointer to virtual function". */ |