From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id nI9BF7iPIWrmYDQAWB0awg (envelope-from ) for ; Thu, 04 Jun 2026 10:46:16 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=AWE5BK89; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 4410D1E062; Thu, 04 Jun 2026 10:46:16 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.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 autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::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 7B2F01E062 for ; Thu, 04 Jun 2026 10:46:15 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9D6D14BAE7C8 for ; Thu, 4 Jun 2026 14:46:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9D6D14BAE7C8 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=AWE5BK89 Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 1E9B34BAE7D9 for ; Thu, 4 Jun 2026 14:45:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1E9B34BAE7D9 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1E9B34BAE7D9 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2001:470:142:3::10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1780584348; cv=none; b=Kjp/Q4Qw+nMZnpRFP3z9eImUz+8+HFu7MowtiKjUJiZdZK347ILN5t7UzdMbmWTKLzBVAinwXqoKZgeS8dSgMSYGsXKoiS/Gqg+GtplDCiTqGhvAAbXKXBPNv3f7UlwT1e5mvt12c1jcBN33G46L2dKYSfEANEHyleiKT1iTRn8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1780584348; c=relaxed/simple; bh=tTWXJAamuPoo1B0d/r8tOBfPPLxv+0OGxsIOxPWx2Rg=; h=DKIM-Signature:Date:Message-Id:From:To:Subject; b=xrnn8Lzw7K0MjZa76XxAtzgT1EYLaqf3o2DmuYWQ9AdQ0Co6IlKjLjYP8PyoQU8dA52ARmC8RDDBVhAEhGSixCfUPFfMroDmZ1A9+SYhqFFQycHVL0Y5YTls5DkGxXHozHrHdPAwRWmNn51TEq1Y4RmPLP2MZWAbxm2p87MXo80= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=AWE5BK89 DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1E9B34BAE7D9 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wV9KN-0007oA-7O; Thu, 04 Jun 2026 10:45:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=cQMA+8nRqz/SnOzPeKZKH2TOnk6pdHD0pSxzWsEaZy8=; b=AWE5BK89IjFJ 1dXmKpuN7ReUB729cj5JGRwRmCJQgAAzTuTrKPsohcIGOi+8XG3o7CK7YVmAE1IXFQzk655e5FLps tW98bdBFXbsAccqXKrWbcUX28gjURhWl/dSlORK3fRiJ15o+0flkQBuNiP7RfVIgkdCg5Z5sIw76/ 2fUNnz8qmYhVFNoMTyr2Gvw6rUlnFQOBCGoeSrjr9nguwm61IOEzJmVv0weQqRP4CWjiHFCxUBFYB kEG3eemL0Mkfb/p3/qKsoCHNPLKoFpJYm7M2rBJFCyk7VEFMcAhC+vLbDwoEMBElR5vDQNiJpyMSJ TS9P1U9pPGAfu3YlOLBDIQ==; Date: Thu, 04 Jun 2026 17:45:39 +0300 Message-Id: <86y0gus6ss.fsf@gnu.org> From: Eli Zaretskii To: Klaus Gerlicher Cc: gdb-patches@sourceware.org In-Reply-To: <20260604132938.416526-2-klaus.gerlicher@intel.com> (message from Klaus Gerlicher on Thu, 4 Jun 2026 13:29:38 +0000) Subject: Re: [PATCH v2 1/1] gdb/linespec: relax block filter to preserve distinct code paths References: <20260604132938.416526-1-klaus.gerlicher@intel.com> <20260604132938.416526-2-klaus.gerlicher@intel.com> 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 > From: Klaus Gerlicher > Date: Thu, 4 Jun 2026 13:29:38 +0000 > > gdb/NEWS | 11 + > gdb/amd64-tdep.c | 57 ++++ > gdb/arch-utils.c | 10 + > gdb/arch-utils.h | 1 + > gdb/gdbarch-gen.c | 22 ++ > gdb/gdbarch-gen.h | 10 + > gdb/gdbarch_components.py | 15 ++ > gdb/linespec.c | 98 ++++++- > .../gdb.linespec/block-filter-cases.c | 126 +++++++++ > .../gdb.linespec/block-filter-cases.exp | 248 ++++++++++++++++++ > 10 files changed, 595 insertions(+), 3 deletions(-) > create mode 100644 gdb/testsuite/gdb.linespec/block-filter-cases.c > create mode 100644 gdb/testsuite/gdb.linespec/block-filter-cases.exp Thanks. > diff --git a/gdb/NEWS b/gdb/NEWS > index 7c8cf9af4c2..f55b6518344 100644 > --- a/gdb/NEWS > +++ b/gdb/NEWS > @@ -64,6 +64,17 @@ > This fixes an issue where GDB could fail to find a type when relying > on the index. Any existing indexes should be regenerated. > > +* Breakpoint location resolution has been improved for vectorized loops. > + Previously, when setting a breakpoint on a source line with vectorized > + code (at -O2 with -ftree-vectorize), GDB's block filter heuristic would > + discard the scalar remainder location, causing breakpoints to be missed > + when only the scalar path executed. GDB now correctly preserves multiple ^^ Please leave two spaces between sentences, per our conventions. Reviewed-By: Eli Zaretskii