]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
authorPierre Muller <muller@sourceware.org>
Wed, 13 Nov 2002 15:44:16 +0000 (15:44 +0000)
committerPierre Muller <muller@sourceware.org>
Wed, 13 Nov 2002 15:44:16 +0000 (15:44 +0000)
Import from mainline:

* p-exp.y (name_not_typename): Use copy_name to
set current_type variable for fields of THIS.

gdb/ChangeLog
gdb/p-exp.y

index 51ba5725e3db1322c8ce9cf032ad17d1cbf02d31..ab05a0740fbb418d6534b2deda1c17b54e30917d 100644 (file)
@@ -1,3 +1,10 @@
+2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       Import from mainline:
+
+       * p-exp.y (name_not_typename): Use copy_name to
+       set current_type variable for fields of THIS.
+
 2002-11-12  Andrew Cagney  <ac131313@redhat.com>
 
        * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
index 74e16afd4c8c92353d4d995fc18ab5d0704ebc56..b246e1c986aef07f2bca5fb92a8d13992dad02f0 100644 (file)
@@ -649,7 +649,7 @@ variable:   name_not_typename
                              if (this_type)
                                current_type = lookup_struct_elt_type (
                                  this_type,
-                                 $1.stoken.ptr, false);
+                                 copy_name ($1.stoken), false);
                              else
                                current_type = NULL; 
                            }