]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/cli/cli-cmds.c
Use std::string rather than dyn-string
authorTom Tromey <tom@tromey.com>
Thu, 22 Sep 2016 14:41:33 +0000 (08:41 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 23 Sep 2016 17:37:09 +0000 (11:37 -0600)
commita97e29d248d51bb688cff677def657eb0cf82cca
tree189443c31017c7a519bc97116efac2d8733418b4
parentcfe826d45ea2e15f0df4c039dfa4b9ea605831da
Use std::string rather than dyn-string

This patch changes some code in cli-cmds.c to use std::string rather
than dyn-string, removing some cleanups.  Since this was the last use
of dyn-string in gdb, this patch also removes
make_cleanup_dyn_string_delete.

2016-09-23  Tom Tromey  <tom@tromey.com>

* utils.h (make_cleanup_dyn_string_delete): Remove declaration.
* utils.c: Don't include dyn-string.h.
(do_dyn_string_delete, make_cleanup_dyn_string_delete): Remove.
* cli/cli-cmds.c: Include <string>.  Don't include dyn-string.h.
(argv_to_string): Rename.  Change return type to std::string.
(alias_command): Use std::string.
gdb/ChangeLog
gdb/cli/cli-cmds.c
gdb/utils.c
gdb/utils.h