From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id CDsWOEeNJ2EcKwAAWB0awg (envelope-from ) for ; Thu, 26 Aug 2021 08:47:03 -0400 Received: by simark.ca (Postfix, from userid 112) id E37601EE1B; Thu, 26 Aug 2021 08:47:03 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 997FC1EDEE for ; Thu, 26 Aug 2021 08:47:03 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 38A823857C71 for ; Thu, 26 Aug 2021 12:47:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 38A823857C71 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1629982023; bh=E0/ICAAYCHczglwkjmQ3OOjW/LMBhmYbLiUVc2KdKI0=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=pEEwx/RuFJpXA7gIHusKkkLgLOp71hE0Tf/xXdbZKxJtTai7c+8gxR2m35QCroqgR mM/tYuyEK30VlrjYpHQqWQ64kljKLOfaN6bYXK3OEN1IvGd++Wkw/U7i6/nZiYZVAi lsRhXnual8e3k6BwniF0mC9V/NzbwQzbxb/5nR0o= Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id E5FA03858402 for ; Thu, 26 Aug 2021 12:46:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E5FA03858402 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 46FD0222EE; Thu, 26 Aug 2021 12:46:09 +0000 (UTC) Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id 2E07D1364E; Thu, 26 Aug 2021 12:46:09 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id hsJCChGNJ2GuSQAAGKfGzw (envelope-from ); Thu, 26 Aug 2021 12:46:09 +0000 Subject: Re: [RFC][gdb/doc] Document non-stop attach behaviour To: Simon Marchi , gdb-patches@sourceware.org References: <20210607132127.GA10588@delia.home> <413e84be-8827-53fb-cd6f-e2ecc66a4af2@polymtl.ca> <5a80535d-f7ae-4707-4df5-5efff08e389d@suse.de> Message-ID: Date: Thu, 26 Aug 2021 14:46:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <5a80535d-f7ae-4707-4df5-5efff08e389d@suse.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Tom de Vries via Gdb-patches Reply-To: Tom de Vries Cc: Pedro Alves Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On 8/26/21 12:08 PM, Tom de Vries wrote: > On 8/26/21 4:55 AM, Simon Marchi wrote: >> >> I think the behavior could be a bit more user friendly, we could wait >> for all the attached program's threads to have reported their stop >> before showing the prompt. Same with the interrupt (with and without >> "-a") command, we know which threads we expect to become stopped, we >> could wait for them to be stopped before giving back the prompt. That >> would make it easier for scripts: when the attach / interrupt command >> returns, you know the attached / interrupted threads are stopped and can >> be inspected. > > Ack, I can file a PR for that. > Filed PR https://sourceware.org/bugzilla/show_bug.cgi?id=28270. Thanks, - Tom