gdb: Move definitions of std::string overloads in ui_out to the header
authorMarco Barisione <mbarisione@undo.io>
Wed, 19 May 2021 15:48:05 +0000 (16:48 +0100)
committerMarco Barisione <mbarisione@undo.io>
Wed, 19 May 2021 15:48:05 +0000 (16:48 +0100)
commit0d7e3cd15fa770e172f442e1a984809fa8ac0fdc
tree51f3f1659368baf375e7c6660947c44c0b44b4cc
parent4156e38676b80a5816fde4d5def1bedea6e1c5ab
gdb: Move definitions of std::string overloads in ui_out to the header

These methods are just trivial wrappers around the versions accepting
a char pointer.  By moving them to the header the compiler can inline
them.

gdb/ChangeLog:

* ui-out.c (ui_out::field_string): Move to ui-out.h.
(ui_out::text): Ditto.
* ui-out.h (class ui_out): Add definitions of
ui_out::field_string and ui_out::text which were previously
defined in ui-out.c.
gdb/ui-out.c
gdb/ui-out.h