Add debug output about skipping files and functions
[deliverable/binutils-gdb.git] / gdb / xml-syscall.c
index 0ba6d444f3fe9a6174cf251d20d44e0a6b107a05..bf176429119e8f3798f31b91e3bdf0c8d05de5de 100644 (file)
@@ -305,12 +305,12 @@ syscall_parse_xml (const char *document, xml_fetch_another fetcher,
 static struct syscalls_info *
 xml_init_syscalls_info (const char *filename)
 {
-  gdb::unique_xmalloc_ptr<char> full_file
+  gdb::optional<gdb::char_vector> full_file
     = xml_fetch_content_from_file (filename, gdb_datadir);
-  if (full_file == NULL)
+  if (!full_file)
     return NULL;
 
-  return syscall_parse_xml (full_file.get (),
+  return syscall_parse_xml (full_file->data (),
                            xml_fetch_content_from_file,
                            (void *) ldirname (filename).c_str ());
 }
This page took 0.024876 seconds and 4 git commands to generate.