From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687419602; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aXil7ixAqhDiujARWKHWKX2o8KmGv5WKclofsMJBu68=; b=KPp2+fobS/wByNLPkUeH1FssD/aGUd4KMGfWY5/RQxLBq1VRyJh2dgQ2AYZMKI7Dx8nbAr EmqM1EXIP0C1z9vVEwYglKFcG2o1qnB8VAbul7VaOeoZRNASFgmol5Wl59oI0/ZELWSVo3 qrEk8+UF0h4uEm+LCfcBDm/l5FAQNfs= 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> From: Bruno Larsen 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 List-Id: 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