* 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 2cff81744a68f7edc0f309c382950fc03ee7ee35..e672488479d31ca3ffce168a01a8d4feaefc81b3 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 a383371ec3c63a1a23d27bb15687e7379b33f1e2..5b791eb641a60e27524547c5d52b2239df796738 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))