Fix Python3.9 related runtime problems
[deliverable/binutils-gdb.git] / gdb / solib-aix.c
index 5da1214a2564867be86ea58ce50f660aa4e71bc1..344c1f57600310675200a4023b9f84707c073dcd 100644 (file)
@@ -637,10 +637,10 @@ solib_aix_bfd_open (const char *pathname)
      along with appended parenthesized member name in order to allow commands
      listing all shared libraries to display.  Otherwise, we would only be
      displaying the name of the archive member object.  */
-  bfd_set_filename (object_bfd.get (),
-                   xstrprintf ("%s%s",
-                               bfd_get_filename (archive_bfd.get ()),
-                               sep));
+  std::string fname = string_printf ("%s%s",
+                                    bfd_get_filename (archive_bfd.get ()),
+                                    sep);
+  bfd_set_filename (object_bfd.get (), fname.c_str ());
 
   return object_bfd;
 }
This page took 0.024141 seconds and 4 git commands to generate.