From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id sXr/IBb4/WkJ/yMAWB0awg (envelope-from ) for ; Fri, 08 May 2026 10:49:58 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=VuVei3jI; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 82DC11E067; Fri, 08 May 2026 10:49:58 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=no 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 D0B8A1E067 for ; Fri, 08 May 2026 10:49:57 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5E8D64BA2E16 for ; Fri, 8 May 2026 14:49:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5E8D64BA2E16 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=VuVei3jI Received: from omta036.useast.a.cloudfilter.net (omta036.useast.a.cloudfilter.net [44.202.169.35]) by sourceware.org (Postfix) with ESMTPS id C41804BA2E07 for ; Fri, 8 May 2026 14:49:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C41804BA2E07 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C41804BA2E07 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=44.202.169.35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1778251770; cv=none; b=HoGdW5VSGMsY6UBnG9HTKg9O0dZ0XrCCjc5GkFfDFSfYajx3sSg4yawiZYnlg/0Z45v11zl7d5Deke4Xmd70TGgtfb1YLSDIsIfP0w3sGME7bGIGr/waq4X6G9tSDTIVMr98ZyQU4oZ0lSMabY0/Uf/3c4/N3pCLwdelRuzJF+4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1778251770; c=relaxed/simple; bh=wy0CLRcPGMbIp2IlKC0hEHdwZCjvwD65ebo/N8KGbGs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=HiZBa8T9SD8HaapvFOca0FEdcmK+kbHRljTKRdOQRNl5yKhUs27dXv9lPDYrXAhPHLK4CUq1GEL+E7nIIe0T31NKRKwaIqHq+mch1deOSdn3367WdN3hyACtZ7WCA8QYdkI5rKJkZBzjX9sCqYtlj7n23isLdCvCz3bxjoryOTU= ARC-Authentication-Results: i=1; sourceware.org; dkim=policy (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=VuVei3jI reason="signing key too small" DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C41804BA2E07 Received: from eig-obgw-6006b.ext.cloudfilter.net ([10.0.30.211]) by cmsmtp with ESMTPS id LLsOw8XNEnv6VLMWAwDgHc; Fri, 08 May 2026 14:49:30 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id LMW7wVUGSSUGqLMW7w6v0t; Fri, 08 May 2026 14:49:27 +0000 X-Authority-Analysis: v=2.4 cv=CoK/cm4D c=1 sm=1 tr=0 ts=69fdf7f9 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=NGcC8JguVDcA:10 a=ItBw4LHWJt0A:10 a=T_Alst9gAAAA:8 a=1_haJKk_Y3m3F8qEh5AA:9 a=O8hF6Hzn-FEA:10 a=DvZ5ixILWSEuw56YIEpp:22 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=gcYfiHydXfGy9oLthDOTAOJYOLp+b0bMp7o+0zrccPs=; b=VuVei3jISFJ/VjLqovhBgf7kKs MQW66FKXIfB5OY7SQv4dfMVFX6Yw1TnPhCGrVtMHnNYn/z47hq4rsQoOyX5qFfhkGbtVS67pua37h 8oOfCykttPop0rWucvPrgWdst; Received: from 75-166-225-82.hlrn.qwest.net ([75.166.225.82]:42176 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.99.2) (envelope-from ) id 1wLMW7-00000002PKh-041n; Fri, 08 May 2026 08:49:27 -0600 From: Tom Tromey To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] Don't pretend infcalls don't set the inferior running (PR gdb/34082) In-Reply-To: <20260423184946.1128623-1-pedro@palves.net> (Pedro Alves's message of "Thu, 23 Apr 2026 19:49:46 +0100") References: <20260423184946.1128623-1-pedro@palves.net> X-Attribution: Tom Date: Fri, 08 May 2026 08:49:26 -0600 Message-ID: <87bjeqneh5.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.225.82 X-Source-L: No X-Exim-ID: 1wLMW7-00000002PKh-041n X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-225-82.hlrn.qwest.net (bapiya) [75.166.225.82]:42176 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfB1SF/Ig1jPjXqt9EkICyePIOVFd+eDpa5v/QPZgZ3U2AcgonrEUylLH2/yuqlPb59cvfbXH7KoVt/cG4FsYXT/8zzAwUdmL2vquwKV6HEukVTk96+Xi hOftXsDcWUkcb3UAIxLcBlHzupQ/mjPdrb7SsOQdyw39tsocW16QW9aoKrnCR1S1bgcQ9PZ6tFUfa+1ymbdYbalGUe20B3evrS0= 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 >>>>> "Pedro" == Pedro Alves writes: Pedro> I think the right fix is to stop pretending that infcalls don't set Pedro> the target running. I can't think of a reason we do that. It really Pedro> does run. Some thoughts: This makes total sense to me, and I think it's a good direction. However, unfortunately this patch caused some regressions in compile.exp. Looking at gdb.log it seems like maybe something isn't being updated on an error path: compile code *(volatile int *) 0 = 0; The program being debugged received signal SIGSEGV, Segmentation fault while in a function called from GDB. GDB has restored the context to what it was before the call. To change this behavior use "set unwind-on-signal off". Evaluation of the expression containing the function (_gdb_expr) will be abandoned. (gdb) PASS: gdb.compile/compile.exp: compile code segfault second break 132 Breakpoint 2 at 0x400521: file /home/tromey/gdb/build/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.compile/compile.c, line 132. (gdb) continue Cannot execute this command while the selected thread is running. After this point there are several such errors. I'm happy to file a bug if you'd prefer. Tom