cli-script.c: Simplify using std::string, eliminate cleanups
authorPedro Alves <palves@redhat.com>
Tue, 8 Nov 2016 15:26:43 +0000 (15:26 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 8 Nov 2016 15:26:43 +0000 (15:26 +0000)
commitb064640146bb6908a0ccca27ca8ee2b06b668137
treeeffab05d39fb3832c07ca4b4ab63752f4535ce98
parent896b6bda6904765f36692d76a37b99c0412ca9ae
cli-script.c: Simplify using std::string, eliminate cleanups

gdb/ChangeLog:
2016-11-08  Pedro Alves  <palves@redhat.com>

* cli/cli-script.c (execute_control_command): Use std::string
instead of cleanups.
(locate_arg): Constify return type.
(insert_args): Constify paremeter.  Simplify using std::string.
Return a std::string.
gdb/ChangeLog
gdb/cli/cli-script.c