From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18899 invoked by alias); 7 Mar 2009 14:53:38 -0000 Received: (qmail 18890 invoked by uid 22791); 7 Mar 2009 14:53:37 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 07 Mar 2009 14:53:29 +0000 Received: (qmail 32212 invoked from network); 7 Mar 2009 14:53:27 -0000 Received: from unknown (HELO orlando) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 7 Mar 2009 14:53:27 -0000 From: Pedro Alves To: gdb-patches@sourceware.org, Eli Zaretskii Subject: Re: [remote/rfc] Let GDB know if a remote server originally attached to a process. Date: Sat, 07 Mar 2009 14:53:00 -0000 User-Agent: KMail/1.9.10 Cc: brobecker@adacore.com, drow@false.org References: <200903040117.32166.pedro@codesourcery.com> <200903071227.36757.pedro@codesourcery.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903071453.38031.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-03/txt/msg00096.txt.bz2 On Saturday 07 March 2009 14:20:00, Eli Zaretskii wrote: > In that case, I suggest this text: > > Return an indication of whether the remote stub attached to an > existing process or created a new process. Sounds very good, thank you. Here's how it looks now: @item qAttached:@var{pid} @cindex query attached, remote request @cindex @samp{qAttached} packet Return an indication of whether the remote server attached to an existing process or created a new process. When the multiprocess protocol extensions are supported (@pxref{multiprocess extensions}), @var{pid} is an integer in hexadecimal format identifying the target process. Otherwise, @value{GDBN} will omit the @var{pid} field and the query packet will be simplified as @samp{qAttached}. This query is used, for example, to know whether the remote process should be detached or killed when a @value{GDBN} session is ended with the @code{quit} command. Reply: @table @samp @item 1 The remote server attached to an existing process. @item 0 The remote server created a new process. @item E @var{NN} A badly formed request or an error was encountered. @end table -- Pedro Alves