diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2008-03-27 13:11:52 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2008-03-27 13:11:52 +0000 |
commit | 221c031facf9741c374709f756fce1d7b9950056 (patch) | |
tree | 8d7436a798186ca1a707935da2777fad54aa8fca /gdb/gdbserver | |
parent | 40c58d9579954543583a31c183755c77c015c840 (diff) | |
download | gdb-221c031facf9741c374709f756fce1d7b9950056.zip gdb-221c031facf9741c374709f756fce1d7b9950056.tar.gz gdb-221c031facf9741c374709f756fce1d7b9950056.tar.bz2 |
ChangeLog:
* features/Makefile (%.dat): Set xmltarget to the base filename
of the XML source, without subdirectory.
* regformats/rs6000/powerpc-32.dat: Regenerate.
* regformats/rs6000/powerpc-64.dat: Regenerate.
* regformats/rs6000/powerpc-e500.dat: Regenerate.
gdbserver/ChangeLog:
* server.c (get_features_xml): Fix inverted condition.
(handle_query): Always support qXfer:feature:read.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/server.c | 9 |
2 files changed, 11 insertions, 3 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index e25f236..af733d9 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2008-03-27 Ulrich Weigand <uweigand@de.ibm.com> + + * server.c (get_features_xml): Fix inverted condition. + (handle_query): Always support qXfer:feature:read. + 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com> * server.c (wrapper_argv): New. diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 634bf80..8f74711 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -276,7 +276,7 @@ get_features_xml (const char *annex) init_registers_... routine for the current target. */ if (gdbserver_xmltarget - && strcmp (annex, "target.xml") != 0) + && strcmp (annex, "target.xml") == 0) { if (*gdbserver_xmltarget == '@') return gdbserver_xmltarget + 1; @@ -618,8 +618,11 @@ handle_query (char *own_buf, int packet_len, int *new_packet_len_p) if (the_target->qxfer_spu != NULL) strcat (own_buf, ";qXfer:spu:read+;qXfer:spu:write+"); - if (get_features_xml ("target.xml") != NULL) - strcat (own_buf, ";qXfer:features:read+"); + /* We always report qXfer:features:read, as targets may + install XML files on a subsequent call to arch_setup. + If we reported to GDB on startup that we don't support + qXfer:feature:read at all, we will never be re-queried. */ + strcat (own_buf, ";qXfer:features:read+"); return; } |