aboutsummaryrefslogtreecommitdiff
path: root/gdb/thread.c
diff options
context:
space:
mode:
authorMarco Barisione <mbarisione@undo.io>2021-05-19 13:58:40 +0100
committerMarco Barisione <mbarisione@undo.io>2021-05-19 13:58:40 +0100
commit4915bfdcfb271cab6ca7534916c42e98cf22f953 (patch)
treeb84c65da6b8f840d5f6c75711a9df36cc23d9496 /gdb/thread.c
parentd9211df246b74aa4f1ba86f04933eca86862a352 (diff)
downloadgdb-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/thread.c')
-rw-r--r--gdb/thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/thread.c b/gdb/thread.c
index 3cd588e..87b6cbf 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -1977,7 +1977,7 @@ print_selected_thread_frame (struct ui_out *uiout,
uiout->text ("[Switching to thread ");
uiout->field_string ("new-thread-id", print_thread_id (tp));
uiout->text (" (");
- uiout->text (target_pid_to_str (inferior_ptid).c_str ());
+ uiout->text (target_pid_to_str (inferior_ptid));
uiout->text (")]");
}
}