Use ui_file_as_string in execute_command_to_string
authorPedro Alves <palves@redhat.com>
Tue, 8 Nov 2016 15:26:45 +0000 (15:26 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 8 Nov 2016 15:26:45 +0000 (15:26 +0000)
commitdb1ec11fff1a46f7046bcbd971a42632d2ea795c
tree99dbce3d4e42a2b9ce26f5cba1fd8e1f9992973c
parent3ab692db7f4d96022a132379614031a852de6f35
Use ui_file_as_string in execute_command_to_string

... and then return std::string and adjust all callers.

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

* gdbcmd.h (execute_command_to_string): Now returns std::string.
(lookup_struct_elt_type): Adjust to use std::string.
* top.c (execute_command_to_string): Use ui_file_as_string and
return std::string.
* guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
std::string.
* python/python.c (execute_gdb_command): Adjust to use
std::string.
gdb/ChangeLog
gdb/gdbcmd.h
gdb/guile/guile.c
gdb/python/python.c
gdb/top.c