diff options
author | Marco Barisione <mbarisione@undo.io> | 2021-05-19 13:58:40 +0100 |
---|---|---|
committer | Marco Barisione <mbarisione@undo.io> | 2021-05-19 13:58:40 +0100 |
commit | 4915bfdcfb271cab6ca7534916c42e98cf22f953 (patch) | |
tree | b84c65da6b8f840d5f6c75711a9df36cc23d9496 /gdb/ui-out.h | |
parent | d9211df246b74aa4f1ba86f04933eca86862a352 (diff) | |
download | gdb-4915bfdcfb271cab6ca7534916c42e98cf22f953.zip gdb-4915bfdcfb271cab6ca7534916c42e98cf22f953.tar.gz gdb-4915bfdcfb271cab6ca7534916c42e98cf22f953.tar.bz2 |
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.
Diffstat (limited to 'gdb/ui-out.h')
-rw-r--r-- | gdb/ui-out.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/ui-out.h b/gdb/ui-out.h index f14be47..a06477d 100644 --- a/gdb/ui-out.h +++ b/gdb/ui-out.h @@ -203,6 +203,7 @@ class ui_out void spaces (int numspaces); void text (const char *string); + void text (const std::string &string); /* Output a printf-style formatted string. In addition to the usual printf format specs, this supports a few GDB-specific |