Remove ptid_get_pid
[deliverable/binutils-gdb.git] / gdb / solib-target.c
index 0968e49eb2d87e12ee1bf03d61605bb3d7a81495..3c9872c116aba85cbbee3342bea873c81b714a7e 100644 (file)
@@ -257,13 +257,14 @@ solib_target_current_sos (void)
   int ix;
 
   /* Fetch the list of shared libraries.  */
-  gdb::unique_xmalloc_ptr<char> library_document
-    = target_read_stralloc (&current_target, TARGET_OBJECT_LIBRARIES, NULL);
-  if (library_document == NULL)
+  gdb::optional<gdb::char_vector> library_document
+    = target_read_stralloc (current_top_target (), TARGET_OBJECT_LIBRARIES,
+                           NULL);
+  if (!library_document)
     return NULL;
 
   /* Parse the list.  */
-  library_list = solib_target_parse_libraries (library_document.get ());
+  library_list = solib_target_parse_libraries (library_document->data ());
 
   if (library_list == NULL)
     return NULL;
This page took 0.044939 seconds and 4 git commands to generate.