From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6F0D9385840C; Tue, 11 Jan 2022 18:20:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F0D9385840C From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug breakpoints/13415] Invalid breakpoints when linking with --gc-sections Date: Tue, 11 Jan 2022 18:20:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: breakpoints X-Bugzilla-Version: 7.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2022 18:20:23 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D13415 --- Comment #11 from Tom Tromey --- Created attachment 13902 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D13902&action=3Ded= it patch This patch improves the behavior somewhat: (gdb) break pack.adb:10 Breakpoint 1 at 0x402354: file [...]/pack.adb, line 16. This is consistent with the other gc-sections cases, but it seems not quite ideal to me, because line 16 is really in some other function. It would be better to get an error here, but that's a larger change involving keeping the 0x0 entries around and then rejecting them when setting the breakpoint. --=20 You are receiving this mail because: You are on the CC list for the bug.=