From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A0C333858037; Thu, 11 Jan 2024 19:34:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A0C333858037 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1705001679; bh=p5ELB71l/PpC0bbolmjrSWSC8C+ya+XUidzcyf9fHKk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IBdu2kJB5OqkI2rNAZIZpQSsmBmoo6WeaFAl8+rzZLpgR3ttpDna77kgupEE00XKJ MgujXaOtYkPyf+Jmqu3dcA4gIwImuJc8c5EY1Z3aklsK+kU0FCgLMUAlba4tUvopwg 4dto6VK59ZR0pI21lN7EajRoJxaBswTnC40yw4gU= From: "ssbssa at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug symtab/29236] wrong mapping between address and source line Date: Thu, 11 Jan 2024 19:34:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: ssbssa 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: cc 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29236 Hannes Domani changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ssbssa at sourceware dot o= rg --- Comment #2 from Hannes Domani --- As far as I can tell this is part of gdb's magic to make debugging of inline functions easier to follow. I've different addresses, but I get a similar result: ``` (gdb) s 13 access (pa); (gdb) bt -frame-info location-and-address #0 0x000000013f96253e in main (argc=3D, argv=3D) at gdb-29236.c:13 (gdb) maint info line-table gdb-29236.c INDEX LINE REL-ADDRESS UNREL-ADDRESS IS-STMT PROLOGUE-END ... 12 4 0x000000013f96253e 0x000000014000253e ``` And then, I step again: ``` (gdb) s 0x000000013f96253e in access (ptr=3D) at gdb-29236.c:4 4 void access (volatile char *ptr) { *ptr =3D 'x'; } (gdb) bt -frame-info location-and-address #0 0x000000013f96253e in access (ptr=3D) at gdb-29236.c:4 #1 0x000000013f96253e in main (argc=3D, argv=3D) at gdb-29236.c:13 ``` The address stays the same, so gdb didn't really step, but just faked this = for the user. --=20 You are receiving this mail because: You are on the CC list for the bug.=