From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id qNGDIy3dvWgUlzAAWB0awg (envelope-from ) for ; Sun, 07 Sep 2025 15:29:49 -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=sr21p1UB; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 7EFB01E047; Sun, 07 Sep 2025 15:29:49 -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.5 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, 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 server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 2714D1E047 for ; Sun, 07 Sep 2025 15:29:48 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8CF283858412 for ; Sun, 7 Sep 2025 19:29:47 +0000 (GMT) Received: from omta34.uswest2.a.cloudfilter.net (omta34.uswest2.a.cloudfilter.net [35.89.44.33]) by sourceware.org (Postfix) with ESMTPS id 6434B3858D35 for ; Sun, 7 Sep 2025 19:29:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6434B3858D35 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 6434B3858D35 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.33 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1757273357; cv=none; b=GEHl4KS+oq70sEIaZDkT6S7hF28KjbvWTeyK2mOV1yfRtuiM02AHsVxTlYjEWdn5DrmaoQzkYPEaCwHdRY9y/82E5AKew33nWFLZ2qpfNxnoWKUYesaddXGorKW1iacA1LVDyez/W48YqvU9fLT09pK82vYCagWlEo6mqFEomn8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1757273357; c=relaxed/simple; bh=bkAOcdOWszuAAO3eJmEPM2eOxQUDpsBn3j/GEkX0alM=; h=DKIM-Signature:From:Subject:Date:Message-Id:MIME-Version:To; b=hcH4GYfB9H4EQQLdZF9XyJ+J3JUWoyie+8yBHeyqxRZpO+EVZtyOqSVizDyGIU6fx47Vi3t+/Wad4RcBIckDgTp3EyTRTksWGWHeniZXfl+BykNlVmoqOrnSYw75+tk1SC79gQQ+UAOqJeaYf/8P98jCYKkbHIg7/QvFscBirEQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6434B3858D35 Authentication-Results: sourceware.org; dkim=policy reason="signing key too small" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=sr21p1UB Received: from eig-obgw-6004b.ext.cloudfilter.net ([10.0.30.210]) by cmsmtp with ESMTPS id vF7yuylCtLIlMvL4duB3og; Sun, 07 Sep 2025 19:29:15 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id vL4duP0mcrez1vL4dujNaV; Sun, 07 Sep 2025 19:29:15 +0000 X-Authority-Analysis: v=2.4 cv=F65XdrhN c=1 sm=1 tr=0 ts=68bddd0b a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=yJojWOMRYYMA:10 a=ItBw4LHWJt0A:10 a=zstS-IiYAAAA:8 a=oWyquuPmEhPN7w3pJmcA:9 a=QEXdDO2ut3YA:10 a=4G6NA9xxw8l3yy4pmD5M:22 a=VS4QxaUSPT0UtbFnIvSC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Cc:To:Content-Transfer-Encoding:Content-Type:MIME-Version: Message-Id:Date:Subject:From:Sender:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=BlZ93uMD1Xge+YIufEO++rQ4Ug+dhF/t80iLUY2hfF8=; b=sr21p1UBjRhCDRmQ/GrDwXVczB q7jEcv6uAbHU0OzqjfrYeVA7DD4Wl32ersYnhdBYx08N96W5rYHVKFHAZixirmf61CLh9a2JPq35C imiMkNNvpBI6LJy/8G7pIzGpr; Received: from 97-122-110-68.hlrn.qwest.net ([97.122.110.68]:43620 helo=[192.168.0.17]) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.1) (envelope-from ) id 1uvL4c-00000003nLh-3eHl; Sun, 07 Sep 2025 13:29:14 -0600 From: Tom Tromey Subject: [PATCH 0/7] Shrink dwarf2/read.c and clean up lnp_state_machine Date: Sun, 07 Sep 2025 13:29:12 -0600 Message-Id: <20250907-breakpoint-cu-expand-v1-0-dd2beef9d475@tromey.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAjdvWgC/x3MwQqDMAyA4VeRnBfWdYhurzI8xBo1jKUldUMQ3 33V43f4/w0ym3CGZ7WB8U+yRC24XSoIM+nEKEMxeOdr93AN9sb0TlF0wfBFXhPpgG3tx4bbuyc iKGkyHmU9t6+uuKfMpSQN8zGLJpPo9UN5YYN9/wPiyUj5hgAAAA== X-Change-ID: 20250907-breakpoint-cu-expand-852f7e832aaa To: gdb-patches@sourceware.org Cc: Tom Tromey X-Mailer: b4 0.14.2 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: 97.122.110.68 X-Source-L: No X-Exim-ID: 1uvL4c-00000003nLh-3eHl X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-110-68.hlrn.qwest.net ([192.168.0.17]) [97.122.110.68]:43620 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfNhbTXzDUoz94R2VOOayh+albeGHwnD8mSs/7/ZQqmVT5ay/R27hJy6PLtdV3Bdxd9f91OrLhPUtjUznKVeGGAVeLF5czIx/9V+MZwXLCvc/z7kI+LoI 4p7OGs9f8k9Hf5oc8iQeb53gZ1P220YLxDH+KcLPam9BjoiDBTJddBnn2lMlcAvqLZR5GpyGUmeoAVb7HB5uP7JEDMYrYD6hzy0= 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 This started with a patch to shrink dwarf2/read.c a bit, by moving lnp_state_machine to its own file. Then I proceeded to clean up that code a tiny bit. Regression tested on x86-64 Fedora 40. Signed-off-by: Tom Tromey --- Tom Tromey (7): Move lnp_state_machine to new file Move compute_include_file_name earlier Boolify line-program.c Change dwarf_record_line_p to be a method Add m_builder member to lnp_state_machine Change dwarf_finish_line to be a method Change dwarf_record_line_1 to be a method gdb/Makefile.in | 1 + gdb/dwarf2/line-program.c | 722 +++++++++++++++++++++++++++++++++++++ gdb/dwarf2/line-program.h | 47 +++ gdb/dwarf2/read.c | 901 ++++------------------------------------------ gdb/dwarf2/read.h | 31 ++ 5 files changed, 874 insertions(+), 828 deletions(-) --- base-commit: 46ada32fc979550ad4f46792b74c182bb7232aeb change-id: 20250907-breakpoint-cu-expand-852f7e832aaa Best regards, -- Tom Tromey