Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Aleksandar Ristovski <aristovski@qnx.com>
To: gdb-patches@sources.redhat.com
Subject: [patch] gdbserver: qXfer multiprocess
Date: Tue, 16 Jun 2009 20:10:00 -0000	[thread overview]
Message-ID: <h18u77$end$1@ger.gmane.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 236 bytes --]

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.

[-- Attachment #2: gdbserver-server.c-multiprocess-20090615.diff --]
[-- Type: text/x-patch, Size: 605 bytes --]

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+");

             reply	other threads:[~2009-06-16 20:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-16 20:10 Aleksandar Ristovski [this message]
2009-06-16 21:09 ` Pedro Alves
2009-06-17  0:56   ` Aleksandar Ristovski
2009-06-17  1:04     ` Pedro Alves
2009-06-17  1:17       ` Aleksandar Ristovski
2009-06-17 17:19       ` Aleksandar Ristovski
2009-06-17 18:04         ` Pedro Alves
2009-06-17 19:06           ` Aleksandar Ristovski
2009-06-19 13:41             ` Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='h18u77$end$1@ger.gmane.org' \
    --to=aristovski@qnx.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox