aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-12-27 17:01:03 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-12-27 17:01:03 +0000
commit2d2fc7e464ff5c665893c9be6b5531abbcea465c (patch)
tree935c549eeac5ccbd401f24ab4b65efcfc0f84683 /gdb
parent404f69a80b818c6d4a29fbb56f535b65d9d59b50 (diff)
downloadgdb-2d2fc7e464ff5c665893c9be6b5531abbcea465c.zip
gdb-2d2fc7e464ff5c665893c9be6b5531abbcea465c.tar.gz
gdb-2d2fc7e464ff5c665893c9be6b5531abbcea465c.tar.bz2
* cp-valprint.c (cplus_print_value): Call check_stub_type on
TYPE_BASECLASS (type, i) before we look at its name.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/cp-valprint.c5
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 78c7f47..47bcd76 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,8 @@
Mon Dec 27 11:07:05 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
+ * cp-valprint.c (cplus_print_value): Call check_stub_type on
+ TYPE_BASECLASS (type, i) before we look at its name.
+
* dbxread.c: Move default definition of GCC_COMPILED_FLAG_SYMBOL
from here . . .
* symtab.h: . . . to here.
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c
index 68a0c94..2ff2a8c 100644
--- a/gdb/cp-valprint.c
+++ b/gdb/cp-valprint.c
@@ -355,7 +355,10 @@ cplus_print_value (type, valaddr, stream, format, recurse, pretty, dont_print)
{
char *baddr;
int err;
- char *basename = TYPE_NAME (TYPE_BASECLASS (type, i));
+ char *basename;
+
+ check_stub_type (TYPE_BASECLASS (type, i));
+ basename = TYPE_NAME (TYPE_BASECLASS (type, i));
if (BASETYPE_VIA_VIRTUAL (type, i))
{