Make target_read_alloc & al return vectors
[deliverable/binutils-gdb.git] / gdb / solib-target.c
index 0968e49eb2d87e12ee1bf03d61605bb3d7a81495..7f96e80e1b283135429395d42ae531d9bd6e780f 100644 (file)
@@ -257,13 +257,13 @@ solib_target_current_sos (void)
   int ix;
 
   /* Fetch the list of shared libraries.  */
-  gdb::unique_xmalloc_ptr<char> library_document
+  gdb::optional<gdb::char_vector> library_document
     = target_read_stralloc (&current_target, TARGET_OBJECT_LIBRARIES, NULL);
-  if (library_document == 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.023094 seconds and 4 git commands to generate.