* fix PR2232 according to patch submitted
authorPierre Muller <muller@sourceware.org>
Wed, 21 Mar 2007 23:57:14 +0000 (23:57 +0000)
committerPierre Muller <muller@sourceware.org>
Wed, 21 Mar 2007 23:57:14 +0000 (23:57 +0000)
gdb/ChangeLog
gdb/p-valprint.c

index 2cff817..e672488 100644 (file)
@@ -1,3 +1,10 @@
+2007-03-21  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       Fix PR pascal/2232.
+       * p-valprint.c (pascal_object_print_value): Use type_name_no_tag 
+       instead of TYPE_NAME for object base class name.
+
+
 2007-03-19  Kevin Buettner  <kevinb@redhat.com>
 
        * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
index a383371..5b791eb 100644 (file)
@@ -827,7 +827,7 @@ pascal_object_print_value (struct type *type, const gdb_byte *valaddr,
     {
       int boffset;
       struct type *baseclass = check_typedef (TYPE_BASECLASS (type, i));
-      char *basename = TYPE_NAME (baseclass);
+      char *basename = type_name_no_tag (baseclass);
       const gdb_byte *base_valaddr;
 
       if (BASETYPE_VIA_VIRTUAL (type, i))