gdb: Add an overloaded ui_out::text accepting a const std::string &
authorMarco Barisione <mbarisione@undo.io>
Wed, 19 May 2021 12:58:40 +0000 (13:58 +0100)
committerMarco Barisione <mbarisione@undo.io>
Wed, 19 May 2021 12:58:40 +0000 (13:58 +0100)
commit4915bfdcfb271cab6ca7534916c42e98cf22f953
treeb84c65da6b8f840d5f6c75711a9df36cc23d9496
parentd9211df246b74aa4f1ba86f04933eca86862a352
gdb: Add an overloaded ui_out::text accepting a const std::string &

gdb/ChangeLog:

* ui-out.h (class ui_out): Add ui_out::text accepting a constant
reference to a std::string.  Fix all callers using
std::string::c_str.
* ui-out.c (ui_out::text): Ditto.
gdb/ada-lang.c
gdb/cli/cli-setshow.c
gdb/source.c
gdb/thread.c
gdb/ui-out.c
gdb/ui-out.h