From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17277 invoked by alias); 17 Jun 2009 01:17:50 -0000 Received: (qmail 17268 invoked by uid 22791); 17 Jun 2009 01:17:50 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=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; Wed, 17 Jun 2009 01:17:42 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MGjmP-0007Zd-7s for gdb-patches@sources.redhat.com; Wed, 17 Jun 2009 01:17:33 +0000 Received: from cpe0019e26b2db7-cm001692f4e452.cpe.net.cable.rogers.com ([99.224.129.49]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Jun 2009 01:17:33 +0000 Received: from aristovski by cpe0019e26b2db7-cm001692f4e452.cpe.net.cable.rogers.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Jun 2009 01:17:33 +0000 To: gdb-patches@sources.redhat.com From: Aleksandar Ristovski Subject: Re: [patch] gdbserver: qXfer multiprocess Date: Wed, 17 Jun 2009 01:17:00 -0000 Message-ID: References: <200906162209.37405.pedro@codesourcery.com> <200906170204.45325.pedro@codesourcery.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <200906170204.45325.pedro@codesourcery.com> 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/msg00425.txt.bz2 Pedro Alves wrote: > On Wednesday 17 June 2009 01:56:06, Aleksandar Ristovski wrote: >> Pedro Alves wrote: >>> On Tuesday 16 June 2009 21:10:14, Aleksandar Ristovski wrote: >>> >>>> This adds check for multiprocess before appending >>>> 'multiprocess' to reply. >>> I can see that from the patch. But, why? >>> >> If gdbserver doesn't have support for multiple processes, >> how will it report lack of that feature to GDB? > > By querying the target, how else? Something like: > > + if (target_supports_multi_process ()) > strcat (own_buf, ";multiprocess+"); > > if (target_supports_non_stop ()) > strcat (own_buf, ";QNonStop+"); > > (that function doesn't exist today, but it should). > >> I have created gdbserver for nto to be able to use gdb for >> nto/linux. One of things this server will not have (at least >> for now) is multi process support. It will only handle one >> process a time. > > That is different from (like your patch was doing) reporting > multi_process support if GDB reports support as well, which is > still broken in your example. (and now that you mention it, > in all gdbserver targets but linux). > Yes, I realized when I saw your question and revisited the code. -- Aleksandar Ristovski QNX Software Systems