aboutsummaryrefslogtreecommitdiff
path: root/gdb/cp-valprint.c
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/cp-valprint.c
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/cp-valprint.c')
-rw-r--r--gdb/cp-valprint.c5
1 files changed, 4 insertions, 1 deletions
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))
{