From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 318B73857B96; Tue, 26 Jul 2022 08:56:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 318B73857B96 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 08:56:31 +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 08:56:31 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29409 --- Comment #2 from Tom de Vries --- After applying this patch: ... diff --git a/gdb/testsuite/gdb.opt/inline-small-func.h b/gdb/testsuite/gdb.opt/inline-small -func.h index 66323952cf4..79c40ef824a 100644 --- a/gdb/testsuite/gdb.opt/inline-small-func.h +++ b/gdb/testsuite/gdb.opt/inline-small-func.h @@ -15,7 +15,7 @@ int counter =3D 42; -inline void +static inline void __attribute__((always_inline)) callee () { counter =3D 0; /* callee: body. */ } ... I can run the test-case with clang on x86_64 and run into: ... FAIL: gdb.opt/inline-small-func.exp: info breakpoints ... We have insn: ... 00000000004004a7
: 4004a7: c7 05 77 0b 20 00 00 movl $0x0,0x200b77(%rip) # 601028 4004ae: 00 00 00 4004b1: b8 00 00 00 00 mov $0x0,%eax 4004b6: c3 ret ... and lines: ... CU: inline-small-func.c: File name Line number Starting address View S= tmt inline-small-func.c 20 0x4004a7 = x inline-small-func.h: inline-small-func.h 20 0x4004a7 1 = x inline-small-func.c: inline-small-func.c 23 0x4004b1 = x inline-small-func.c - 0x4004b7 ... This looks similar to the gcc info. So, why are we supposed to trust llvm? --=20 You are receiving this mail because: You are on the CC list for the bug.=