diff options
author | Pedro Alves <palves@redhat.com> | 2012-03-23 20:27:08 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2012-03-23 20:27:08 +0000 |
commit | 0afae3cf2e83e8bc2dca4fe865afc85f0362d312 (patch) | |
tree | 9b714ff93d1271dcafb7eecdd6ce43d8c0604b17 /gdb/gdbserver | |
parent | 485f1ee4f6b7f8ae37640b65966ad82eeced8f9a (diff) | |
download | gdb-0afae3cf2e83e8bc2dca4fe865afc85f0362d312.zip gdb-0afae3cf2e83e8bc2dca4fe865afc85f0362d312.tar.gz gdb-0afae3cf2e83e8bc2dca4fe865afc85f0362d312.tar.bz2 |
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.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/gdbserver/linux-low.c | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index d141bac..d585afb 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,11 @@ 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 a variable whose type size is the same as the inferior's pointer size. diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 2dc903d..71cde01 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -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); |