From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id AdV0LF0C+Wn+VRMAWB0awg (envelope-from ) for ; Mon, 04 May 2026 16:32:29 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=NsPrbhr3; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 9CC021E067; Mon, 04 May 2026 16:32:29 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id AAEB41E067 for ; Mon, 04 May 2026 16:32:28 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 798124BA900F for ; Mon, 4 May 2026 20:32:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 798124BA900F Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=NsPrbhr3 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 07BC44BABF1C for ; Mon, 4 May 2026 20:31:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 07BC44BABF1C Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 07BC44BABF1C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777926712; cv=none; b=Gf7ssMXxUVlXMl9HV7p8/Px4VX6yvaY/+Lh37W/gQByyXxi4qKQrt65G1I3Cb7T+UuaLauSJ6/Q0gk9pIwzRCNxmH+vaJReLVA51obFBYVXNwljybMjqtdIDVkzkKe8pCeuFxlUeMwDyui7mTpaGA3VyIGaQShAQf6IOUmp2nMM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777926712; c=relaxed/simple; bh=G2otDHs07WPpK3Kq7xW+gjkrqP27EseMFNcx3r0kvYk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=PxCQ80McRInHYEH+l8agR1WUX2Rp2yL0p9SdiRVjA4YHB5z074cWPW3dXACs0JMJAqKh9mZGvVAc8okBEg1oiLpK5mZ7y5kkvXjwSAe5OdfzmhyTdU+uUdVxROGoVGb2apyHGTv8hkI8sWc9XZ6jshCf4gnm5MaMOfkstUrAwF8= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 07BC44BABF1C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1777926711; 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: in-reply-to:in-reply-to:references:references; bh=Jc/CbdqPK3ua9QnGB2xYBOWtUZ4gCakRgXzeHhP2BA4=; b=NsPrbhr361cDMFOVn8iX31MrGt+tL373ad0UABUYZy/qD32RA7QkW7Cnh3cRoWMmecN1GE xkwZm9kNug746PqH9s4WWYvhZmOV+f+nvUtM3kpcx7n8Stw5OFdmj/mJ5h0sq37NykHnoj 7/B3LA8G5CDCjYoFhn7Bsw44IoLjgCY= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-142-pCibaWyoOGi913zd5lPXqA-1; Mon, 04 May 2026 16:31:49 -0400 X-MC-Unique: pCibaWyoOGi913zd5lPXqA-1 X-Mimecast-MFC-AGG-ID: pCibaWyoOGi913zd5lPXqA_1777926708 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-488d56f87e8so36516495e9.0 for ; Mon, 04 May 2026 13:31:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777926708; x=1778531508; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Jc/CbdqPK3ua9QnGB2xYBOWtUZ4gCakRgXzeHhP2BA4=; b=XcSnjk+Fy44QDKdSLiqKNO3+5bllMXRhNcHhrzICHS/4u4MNVcjXd0ZfCm7+5iVQwc k74cRrSp5Lsqfkp1IDq6PPNF1PNDsbYwkxR0/DS0yGwUWppzrBTWQGg8bgxeonTe71ZH TX5yD31n6AT302uL/SZcbS6fWBd5//6Q1EwqNdYyHL5yF0v5fDCJ9k4kvtbjwkJTTiqb iajVNr0a2X86tqERp5eWRC99P+Kc+VaoBApVsc95nOkHVEHWHXceeDSWcJOpoJN1Ops0 qipI3oQShyK9GaBGScjIze1M3XF574augOO3wt3kUv/Uq2spLuKjZyELexkW4yYd/oGM XAtQ== X-Gm-Message-State: AOJu0Ywx7dFOomJbAE95jFEdjpZawjgqmya6iqdJZxTvhg4D+k7gx0N9 kdjMhh8ODL7q1QM+Ahk0p08LlrT1mAASBrR5h3UXOh6Z2eG5RjqSU62lp6dBTxjlK4c+CdJ6Kqm BpFuDRCNllzgsluycy7XiCwWhx3hBgbklmaT20+klJBpzNZBVpZca1pOXt1VZY1900W9JE0+zrD R6TQkfOfiH+OYWENO3dLezd2BcC28ALGrCs3tVT0OX9FerMj4= X-Gm-Gg: AeBDietzskCT/474jxgm6385cOjrgVEvfIdtJgg2ucCZbA4J4TtrnljNg+5/PaG0y0y Fw5RBctwzru4zfM8JNTCdez6nZyuLXCZR9iuFTjt8v5R1vGOYzfUqGT8mWsOhZycweqjuuiDk8I tVTV3J/nCnkwkvoatuEmY8JDyInf6RB+qhbuIM1NFiC/mVDSCY7SsUP3KKJb/DezHkqkRtKe6bd 4oDk+trSWdzFQsN/4fHHWPmxfkK8HVAip02jCm8nZaOQEtQhLVRC75dLTBsQSsTi0XaCaV4/9OS os1cZlwzaf/SPOAp/n020Uw5Ll0+LPB2mh2sHDphnEUK/8Cqh56IDDe0kGX29sxvVA/R7CXjtNr uxVEFpMLyrKgQwfIHyCHeY4GWnOs= X-Received: by 2002:a05:600c:45d5:b0:48a:56d5:16f2 with SMTP id 5b1f17b1804b1-48a9853c906mr177726265e9.7.1777926708237; Mon, 04 May 2026 13:31:48 -0700 (PDT) X-Received: by 2002:a05:600c:45d5:b0:48a:56d5:16f2 with SMTP id 5b1f17b1804b1-48a9853c906mr177725985e9.7.1777926707718; Mon, 04 May 2026 13:31:47 -0700 (PDT) Received: from localhost ([31.111.84.232]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48a81b99127sm342698565e9.0.2026.05.04.13.31.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2026 13:31:47 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Guinevere Larsen Subject: Re: [PATCHv3] gdb: notify of inferior switch when needed from 'thread' command In-Reply-To: <3c8d246a5262fbb39a0f352498e1a2592061f478.1776437170.git.aburgess@redhat.com> References: <106ee09a80eac0dcc72d134dbf02f567de7163ce.1769435821.git.aburgess@redhat.com> <3c8d246a5262fbb39a0f352498e1a2592061f478.1776437170.git.aburgess@redhat.com> Date: Mon, 04 May 2026 21:31:46 +0100 Message-ID: <87wlxiex1p.fsf@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: iuPcjEsX-7Je3SR5HKMz6yccavnvBzFIqa5HqoXz60E_1777926708 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Andrew Burgess writes: > I looked into the issues that Baris raised in this email: > > https://inbox.sourceware.org/gdb-patches/IA0PR11MB7307BB4B5B3CC3A354289261C4C7A@IA0PR11MB7307.namprd11.prod.outlook.com > > About how in a multi-inferior debug session, if hitting a breakpoint > triggers a thread AND inferior switch, then we announce the new > thread, but not the new inferior. This is very similar to the fix > being proposed in this patch. > > However, in this case we don't use > notify_user_selected_context_changed to announce the new > thread/inferior, instead this is done in normal_stop (infrunc.c). > > I think we could and should change this code to announce the inferior > switch where appropriate. But given this change would be quite > different to the changes in this patch, then my current plan is to do > that in a follow up change once this is merged. > > Speaking of which, my current plan is to push this next week. I don't > think Pedro, who had feedback on V1, is actively reviewing patches any > more, but if there's any feedback post-commit, I'm happy to discuss > things then. > > In v3: > > - Rebased and retested. > > In v2: > > - Rebased and retested. > > - Reworked commit message to try and address Pedro's concerns. I've checked this in now. Thanks, Andrew