diff options
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; } |