From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A68E63858407; Tue, 26 Jul 2022 10:58:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A68E63858407 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug tdep/29409] [gdb, tdep/aarch64] FAIL: gdb.opt/inline-small-func.exp: info breakpoints Date: Tue, 26 Jul 2022 10:58:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: tdep 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: 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, 26 Jul 2022 10:58:20 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29409 --- Comment #5 from Tom de Vries --- (In reply to Luis Machado from comment #4) > Thanks. FTR, on Ubuntu 22.04 and 20.04 I don't see this. Might also be > sensitive to compiler version. Yes, that's quite possible. With gcc 7.5.0, we have: ... $ gcc ./src/gdb/testsuite/gdb.opt/inline-small-func.c -O1 -g -c $ objdump -d inline-small-func.o=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 inline-small-func.o: file format elf64-x86-64 Disassembly of section .text: 0000000000000000
: 0: c7 05 00 00 00 00 00 movl $0x0,0x0(%rip) # a 7: 00 00 00=20 a: b8 00 00 00 00 mov $0x0,%eax f: c3 ret=20=20=20=20 $ readelf -wL inline-small-func.o=20 Contents of the .debug_line section: CU: inline-small-func.c: File name Line number Starting address View St= mt inline-small-func.c 20 0 = x inline-small-func.h: inline-small-func.h 20 0 1 = x inline-small-func.c: inline-small-func.c 23 0xa = x inline-small-func.c - 0x10 ... With gcc 8.2.1: ... $ objdump -d inline-small-func.o=20=20 inline-small-func.o: file format elf64-x86-64 Disassembly of section .text: 0000000000000000
: 0: c7 05 00 00 00 00 00 movl $0x0,0x0(%rip) # a 7: 00 00 00=20 a: b8 00 00 00 00 mov $0x0,%eax f: c3 ret=20=20=20=20 $ readelf -wL inline-small-func.o=20 Contents of the .debug_line section: CU: inline-small-func.c: File name Line number Starting address View St= mt inline-small-func.c 20 0 = x inline-small-func.c 21 0 1 = x inline-small-func.h: inline-small-func.h 19 0 2 = x inline-small-func.h 20 0 3 = x inline-small-func.h 20 0 4 inline-small-func.c: inline-small-func.c 22 0xa = x inline-small-func.c 23 0xa 1 inline-small-func.c - 0x10 ... Same thing for aarch64, I've verified that using a cross compiler. I think it's due to gcc commit 58006663903 ("[IEPM] Introduce inline entry point markers"). --=20 You are receiving this mail because: You are on the CC list for the bug.=