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.
This commit is contained in:
Pedro Alves 2012-03-23 20:27:08 +00:00
parent 485f1ee4f6
commit 0afae3cf2e
2 changed files with 13 additions and 1 deletions

View file

@ -1,3 +1,9 @@
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

View file

@ -5630,7 +5630,13 @@ linux_qxfer_libraries_svr4 (const char *annex, unsigned char *readbuf,
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);