From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31300 invoked by alias); 16 Jun 2009 20:10:49 -0000 Received: (qmail 31290 invoked by uid 22791); 16 Jun 2009 20:10:48 -0000 X-SWARE-Spam-Status: No, hits=-3.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 16 Jun 2009 20:10:33 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MGezG-0002pu-KN for gdb-patches@sources.redhat.com; Tue, 16 Jun 2009 20:10:30 +0000 Received: from enigma.qnx.com ([209.226.137.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Jun 2009 20:10:30 +0000 Received: from aristovski by enigma.qnx.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Jun 2009 20:10:30 +0000 To: gdb-patches@sources.redhat.com From: Aleksandar Ristovski Subject: [patch] gdbserver: qXfer multiprocess Date: Tue, 16 Jun 2009 20:10:00 -0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040508050607030001020800" User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-06/txt/msg00410.txt.bz2 This is a multi-part message in MIME format. --------------040508050607030001020800 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 236 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. --------------040508050607030001020800 Content-Type: text/x-patch; name="gdbserver-server.c-multiprocess-20090615.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="gdbserver-server.c-multiprocess-20090615.diff" Content-length: 605 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+"); --------------040508050607030001020800--