From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id YMjDGOj6k2S/nAoAWB0awg (envelope-from ) for ; Thu, 22 Jun 2023 03:40:24 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=DTa+x0FX; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 61ABE1E0BB; Thu, 22 Jun 2023 03:40:24 -0400 (EDT) Received: from sourceware.org (ip-8-43-85-97.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 4FEFF1E00F for ; Thu, 22 Jun 2023 03:40:22 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B2A00385841A for ; Thu, 22 Jun 2023 07:40:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B2A00385841A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1687419621; bh=aXil7ixAqhDiujARWKHWKX2o8KmGv5WKclofsMJBu68=; h=Date:Subject:To:Cc:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=DTa+x0FX5zYfBXDWzykYPwb9CPDwPSPq8uwhyNvOEnEMdoqea/ocbYYaJj52xmsfl bzOs5G1SvgaWRfEeN40XervHTAlSsq3oFQWs3B1DWTh11LD5F5VvLlAZZ5xiqifGcy 5S8JfEcLdkrvt5o1wJHYjYEGWkuH44GJdsTBWVoE= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 227D73858418 for ; Thu, 22 Jun 2023 07:40:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 227D73858418 Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-630-ROsJLOfjPESo__KSZwnLNw-1; Thu, 22 Jun 2023 03:39:59 -0400 X-MC-Unique: ROsJLOfjPESo__KSZwnLNw-1 Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-62e85844711so81020486d6.2 for ; Thu, 22 Jun 2023 00:39:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687419599; x=1690011599; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aXil7ixAqhDiujARWKHWKX2o8KmGv5WKclofsMJBu68=; b=DMkAVWrmtpll3aRaYQgUhrq/X3+lbj37vHOc3YnNc6rLtzFtU6hdTYZEkE8UYl5Zfs JZeeFYtTFt6MSk7cVatbeQEl56G5PUjjxYL/l3DNC93YZsQWWyDVjFzmYkMhxirDbuRW uFSpxD2jg6xyqLfOFeb2uAcpXi9xY0h7O5FH0rE4Fx11uR0g5czUE+NwJjwlP6EDt2Pc F52axU8kcA3TOkycGfhT+nqykkcKRNuNpNWcQjc5y2SEyNrT+ikcjBXdDgN/Ejrl0Bbz IkLduyO6wJpcdjtgKIIeY3ZuDqGvc+0+pcUQz4hfTmncf6Duf6U4ejZ+aTCf1SPQN1e8 bIZA== X-Gm-Message-State: AC+VfDxuaBefi6EhRt8TAWoErNcBKNXrismEAVN+UDK38+ZeYyJRfupt 4nmTXnNBg46tzWUoyziL9yMzKqe5Vvs81II9g9lcTAy6J82FKdKZ2/WwoN9t32Jxnk04AAqYfRQ w9Hk8hAz+bSqIcbdA2eWIzg== X-Received: by 2002:a05:6214:491:b0:630:2e1:d555 with SMTP id pt17-20020a056214049100b0063002e1d555mr20655168qvb.44.1687419599478; Thu, 22 Jun 2023 00:39:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Vqlv3JKVwQ0mSUdVDxVJmDaYO7mjbrxgXE+x8xDX+DRwSe2Yq4tDcCcZP/jf+2gmdmncTBQ== X-Received: by 2002:a05:6214:491:b0:630:2e1:d555 with SMTP id pt17-20020a056214049100b0063002e1d555mr20655158qvb.44.1687419599231; Thu, 22 Jun 2023 00:39:59 -0700 (PDT) Received: from [192.168.0.129] (ip-94-112-225-44.bb.vodafone.cz. [94.112.225.44]) by smtp.gmail.com with ESMTPSA id q10-20020a0c8b0a000000b0062ffbf23c22sm3482591qva.131.2023.06.22.00.39.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Jun 2023 00:39:58 -0700 (PDT) Message-ID: <1995161e-aade-a5f5-a254-3b9a82ec0dea@redhat.com> Date: Thu, 22 Jun 2023 09:39:56 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v2] gdb/infrun: do not restart a stepped thread if not running (was: gdb/infrun: reset thread control's step info in end_stepping_range) To: "Aktemur, Tankut Baris" , "gdb-patches@sourceware.org" Cc: "simark@simark.ca" References: <20230620152455.471716-1-tankut.baris.aktemur@intel.com> <6b2d835c-1395-52be-dc9b-2ae79b43f6f7@redhat.com> In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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: Bruno Larsen via Gdb-patches Reply-To: Bruno Larsen Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On 22/06/2023 09:02, Aktemur, Tankut Baris wrote: > On Wednesday, June 21, 2023 2:35 PM, Bruno Larsen wrote: >>> Regression-tested on X86_64 Linux using the default, native-gdbserver, >>> and native-extended-gdbserver board files. >> Hi Tankut! >> >> Thanks for working on this. I don't see any regressions, but the test >> you added doesn't seem to fail before your change. Does it not work with >> the default options for the testsuite? > Hi Bruno, > > Thanks for checking. The bug condition is triggered when the target is all-stop. > Could you please try with --target_board=native-extended-gdbserver ? > Then you should see > > FAIL: gdb.multi/detach-stepi.exp: detach inferior 1 > > === gdb Summary === > > # of expected passes 8 > # of unexpected failures 1 > Ah got it! I have tested and it fixes the problem :) Tested-By: Bruno Larsen -- Cheers, Bruno