* cp-valprint.c (cplus_print_value): Call check_stub_type on
authorJim Kingdon <jkingdon@engr.sgi.com>
Mon, 27 Dec 1993 17:01:03 +0000 (17:01 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Mon, 27 Dec 1993 17:01:03 +0000 (17:01 +0000)
TYPE_BASECLASS (type, i) before we look at its name.

gdb/ChangeLog
gdb/cp-valprint.c

index 78c7f47..47bcd76 100644 (file)
@@ -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.
index 68a0c94..2ff2a8c 100644 (file)
@@ -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))
        {