]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/target-connection.c
gdb: Pass std::strings to ui_out::field_string () where convenient
[thirdparty/binutils-gdb.git] / gdb / target-connection.c
index 2f8e01d77e58b9b011afef60e431070d94c512d0..a649423e07e771457c623d1a5a18d4322752a271 100644 (file)
@@ -133,7 +133,7 @@ print_connection (struct ui_out *uiout, const char *requested_connections)
 
       uiout->field_signed ("number", t->connection_number);
 
-      uiout->field_string ("what", make_target_connection_string (t).c_str ());
+      uiout->field_string ("what", make_target_connection_string (t));
 
       uiout->field_string ("description", t->longname ());