Use std::string in do_set_command
authorTom Tromey <tom@tromey.com>
Mon, 19 Jun 2023 04:06:05 +0000 (22:06 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 20 Jun 2023 13:52:28 +0000 (07:52 -0600)
commitc65030964b684fd1df13346b678b42beee9af8e1
treeea1ed63cb2b551fa158df61089c602bac3ca0ee0
parent6b19f38ae331d2d889354fcd749e2478a868251c
Use std::string in do_set_command

do_set_command manually updates a string, only to copy it to a
std::string and free the working copy.  This patch changes this code
to use std::string for everything, simplifying the code and removing a
copy.

Reviewed-by: John Baldwin <jhb@FreeBSD.org>
gdb/cli/cli-setshow.c