Rename field 'lang' to 'lang_ops'.
authorYao Qi <yao@codesourcery.com>
Sat, 26 Oct 2013 07:27:13 +0000 (15:27 +0800)
committerYao Qi <yao@codesourcery.com>
Sun, 27 Oct 2013 12:01:29 +0000 (20:01 +0800)
commitca20d46296a700f493edaa05401b75b1759e78c8
tree1487153662f3db8b7e1ed5ef1bb534d11a63f8e9
parenta53b64eaa0816d9136f92b51f5e0d23e718b84f3
Rename field 'lang' to 'lang_ops'.

On 10/25/2013 11:34 AM, Joel Brobecker wrote:
> Also, as a followup, I think it would be beneficial if we renamed
> field "lang" in the varobj_root into "lang_ops". I think it's more
> descriptive, especially since "lang" is used elsewhere with different
> meanings (and types).

Here is the patch to rename 'lang' to 'lang_ops'.  Committed as obvious.

gdb:

2013-10-27  Yao Qi  <yao@codesourcery.com>

* varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
(varobj_create, varobj_get_path_expr): Update.
(varobj_value_has_mutated, varobj_update): Likewise.
(create_child_with_value, new_root_variable): Likewise.
(number_of_children, name_of_variable): Likewise.
(value_of_child, my_value_of_variable): Likewise.
(varobj_value_is_changeable_p): Likewise.
gdb/ChangeLog
gdb/varobj.c