This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch] gdbserver: qXfer multiprocess
- From: Aleksandar Ristovski <aristovski at qnx dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 16 Jun 2009 16:10:14 -0400
- Subject: [patch] gdbserver: qXfer multiprocess
Hello,
This adds check for multiprocess before appending
'multiprocess' to reply.
Thanks,
--
Aleksandar Ristovski
QNX Software Systems
ChangeLog:
* server.c (handle_query): Use multi_process and output
multiprocess accordingly.
Index: server.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/server.c,v
retrieving revision 1.97
diff -u -p -r1.97 server.c
--- server.c 24 May 2009 21:06:53 -0000 1.97
+++ server.c 15 Jun 2009 18:36:36 -0000
@@ -1106,7 +1106,8 @@ handle_query (char *own_buf, int packet_
if (the_target->qxfer_osdata != NULL)
strcat (own_buf, ";qXfer:osdata:read+");
- strcat (own_buf, ";multiprocess+");
+ if (multi_process)
+ strcat (own_buf, ";multiprocess+");
if (target_supports_non_stop ())
strcat (own_buf, ";QNonStop+");