Use gdb::function_view in addrmap_foreach
[deliverable/binutils-gdb.git] / gdb / target-connection.c
index bd54d005bef6b07b80640b9200b0dc0f113efe5d..a649423e07e771457c623d1a5a18d4322752a271 100644 (file)
@@ -1,6 +1,6 @@
 /* List of target connections for GDB.
 
-   Copyright (C) 2017-2020 Free Software Foundation, Inc.
+   Copyright (C) 2017-2021 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -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 ());
 
This page took 0.024667 seconds and 4 git commands to generate.