From 80b4c677095c9f361c41638888dc0f7386014fe7 Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Wed, 13 Nov 2002 09:13:39 +0000 Subject: [PATCH] 2002-11-13 Pierre Muller * p-exp.y (name_not_typename): Use copy_name to set current_type variable for fields of THIS. --- gdb/ChangeLog | 5 +++++ gdb/p-exp.y | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 67a160dd369..100a71b302e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-11-13 Pierre Muller + + * p-exp.y (name_not_typename): Use copy_name to + set current_type variable for fields of THIS. + 2002-11-12 Daniel Jacobowitz * gnu-nat.c (init_gnu_ops): Remove NULL initializations. diff --git a/gdb/p-exp.y b/gdb/p-exp.y index d52747b072e..cf521afb364 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; } -- 2.30.2