2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
authorPierre Muller <muller@sourceware.org>
Wed, 13 Nov 2002 09:13:39 +0000 (09:13 +0000)
committerPierre Muller <muller@sourceware.org>
Wed, 13 Nov 2002 09:13:39 +0000 (09:13 +0000)
       * 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 67a160dd36925606a26283f8f17613fc3a26a1ec..100a71b302e5488b9558455630694281c1be4319 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-13  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * p-exp.y (name_not_typename): Use copy_name to
+       set current_type variable for fields of THIS.
+
 2002-11-12  Daniel Jacobowitz  <drow@mvista.com>
 
        * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
index d52747b072eda4d5860b868658a35bc4af836bee..cf521afb364b93c62f2074741b4e5de904846481 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; 
                            }