From: Pierre Muller Date: Wed, 13 Nov 2002 15:44:16 +0000 (+0000) Subject: 2002-11-13 Pierre Muller X-Git-Tag: gdb_5_3-2002-12-12-release~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd47b86b44fd2b3949e125e5840e1c908f646bd5;p=thirdparty%2Fbinutils-gdb.git 2002-11-13 Pierre Muller Import from mainline: * p-exp.y (name_not_typename): Use copy_name to set current_type variable for fields of THIS. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 51ba5725e3d..ab05a0740fb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2002-11-13 Pierre Muller + + 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 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with diff --git a/gdb/p-exp.y b/gdb/p-exp.y index 74e16afd4c8..b246e1c986a 100644 --- a/gdb/p-exp.y +++ b/gdb/p-exp.y @@ -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; }