Remove cleanups from mi-cmd-var.c
authorTom Tromey <tom@tromey.com>
Wed, 3 May 2017 23:26:47 +0000 (17:26 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 30 Sep 2017 03:12:12 +0000 (21:12 -0600)
commit2d6960b4568869baaa3cb40f75caed4021938e1c
tree79b3e0b7d8941661ab76757be74adf5d8b68953b
parent784c453a4f1aeee237203dd6257a6ed24bee28c3
Remove cleanups from mi-cmd-var.c

This removes some cleanups from mi-cmd-var.c.  varobj_gen_name now
returns a string, simplifying mi_cmd_var_create.  In
mi_cmd_var_delete, a string copy is apparently unnecessary, so it's
simply removed.

gdb/ChangeLog
2017-09-29  Tom Tromey  <tom@tromey.com>

* varobj.h (varobj_gen_name): Return std::string.
* varobj.c (varobj_gen_name): Return std::string.
* mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string.
(mi_cmd_var_delete): Don't copy "name".
gdb/ChangeLog
gdb/mi/mi-cmd-var.c
gdb/varobj.c
gdb/varobj.h