* linux-low.c (linux_qxfer_libraries_svr4): Terminate the
"library-list-svr4" element's start tag when the the DSO list is
empty.
+2012-03-23 Pedro Alves <palves@redhat.com>
+
+ * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
+ "library-list-svr4" element's start tag when the the DSO list is
+ empty.
+
2012-03-23 Pedro Alves <palves@redhat.com>
* linux-low.c (read_one_ptr): Read the inferior's pointer through
lm_addr = l_next;
}
done:
- strcpy (p, "</library-list-svr4>");
+ if (!header_done)
+ {
+ /* Empty list; terminate `<library-list-svr4'. */
+ strcpy (p, "/>");
+ }
+ else
+ strcpy (p, "</library-list-svr4>");
}
document_len = strlen (document);