From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 95E823857816; Mon, 4 Jan 2021 08:25:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 95E823857816 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug breakpoints/27126] Step will skip prior statements for statements with omp atomic directive at -O1 (bug or feature?) Date: Mon, 04 Jan 2021 08:25:45 +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: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status 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: Mon, 04 Jan 2021 08:25:45 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27126 Tom de Vries changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|UNCONFIRMED |RESOLVED --- Comment #1 from Tom de Vries --- OK, let's start with the line number program (using readline -wL): ... CU: small.c: Line number Starting address View Stmt 4 0x400496 x 6 0x400496 1 x 8 0x400496 2 x 10 0x400496 3 x 6 0x400496 4 8 0x4004a5=20=20=20=20=20=20=20=20 10 0x4004a8=20=20=20=20=20=20=20=20 10 0x4004b1=20=20=20=20=20=20=20=20 11 0x4004bc x 12 0x4004bc 1 - 0x4004c2 ... When read in by gdb, it looks like pretty much the same (using "maint info line-table"): ... INDEX LINE ADDRESS IS-STMT=20 0 4 0x0000000000400496 Y=20 1 6 0x0000000000400496 Y=20 2 8 0x0000000000400496 Y=20 3 10 0x0000000000400496 Y=20 4 6 0x0000000000400496=20=20=20 5 8 0x00000000004004a5=20=20=20 6 10 0x00000000004004a8=20=20=20 7 10 0x00000000004004b1=20=20=20 8 11 0x00000000004004bc Y=20 9 12 0x00000000004004bc=20=20=20 10 END 0x00000000004004c2 Y=20 ... Now, when not instruction stepping, gdb ignores entries with IS-STMT is N. Doing that, we have left: ... 0 4 0x0000000000400496 Y=20 1 6 0x0000000000400496 Y=20 2 8 0x0000000000400496 Y=20 3 10 0x0000000000400496 Y=20 8 11 0x00000000004004bc Y=20 10 END 0x00000000004004c2 Y=20 ... Then also, gdb doesn't support locations views yet, so after collapsing ent= ries with the same address, we have left: ... 3 10 0x0000000000400496 Y=20 8 11 0x00000000004004bc Y=20 10 END 0x00000000004004c2 Y=20 ... And, that's the behaviour you see. This is all known behaviour. I'm marking this a duplicate of PR25507 - "Add support for location views". *** This bug has been marked as a duplicate of bug 25507 *** --=20 You are receiving this mail because: You are on the CC list for the bug.=