From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 67CC03858D35; Tue, 18 Apr 2023 08:32:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 67CC03858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1681806775; bh=zIlqCXU7IOihMljplaxmziPSu8evN6R0bIAbAB7cCnk=; h=From:To:Subject:Date:From; b=Kdbmh4z6h+pEE9jJbW2SIKq3U0s/kUSRhPeME6wNRoCTV3DvDBC6Q55xQvHqKZARx +XNk8May+7sPJHVNCPgrNgxfYZw7YOF68MklvaH2hi7SkQ4VmeUYMMefdzDeju7ayG XEr7cwHDKD3lLd/zSkBJ3Tya+9TcI+E5gah6WXIU= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/30369] New: [gdb/symtab] False match issue in skip_prologue_using_linetable Date: Tue, 18 Apr 2023 08:32:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30369 Bug ID: 30369 Summary: [gdb/symtab] False match issue in skip_prologue_using_linetable Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: symtab Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- [ Reported here ( https://sourceware.org/pipermail/gdb-patches/2023-April/198927.html ), with= out reproducer. ] Consider mockup functions foo and bar: ... 00000000004004b2 : 4004b2: c7 45 f8 02 00 00 00 movl $0x2,-0x8(%rbp) 00000000004004b9 : 4004b9: c7 45 f4 03 00 00 00 movl $0x3,-0xc(%rbp) 00000000004004c0 : ... with line info: ... INDEX LINE REL-ADDRESS UNREL-ADDRESS IS-STMT PROLOGUE-END=20 0 22 0x00000000004004b2 0x00000000004004b2 Y=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 1 26 0x00000000004004b9 0x00000000004004b9 Y Y=20=20=20=20= =20=20=20=20=20=20=20=20 2 END 0x00000000004004c0 0x00000000004004c0 Y=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 ... When setting a breakpoint on foo, we get: ... (gdb) break foo Breakpoint 1 at 0x4004b9: file $src, line 26. ... In other words, the breakpoint was set in bar instead. With the fix from aforementioned patch, we have instead: ... Breakpoint 1 at 0x4004b2: file $src, line 22. ... --=20 You are receiving this mail because: You are on the CC list for the bug.=