From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7A7B73858C42; Thu, 25 Jan 2024 14:30:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7A7B73858C42 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1706193031; bh=kr71KlxFLnQMo1vjOU42zHGHiOuOpSfb8TeJTUS71NU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tAhnnKBZxtVdb7UtZ0UbbJXftg/AWoMRviOpiapvYRoBMOJPidHggc4CK9FTTHU6m kuhdEG4yqJfJl1dF5ktvCtsKKaUg2mtnP0GYIi99TU8+zfA/eRpzXOxnlaCgp2/j6O BKPXvkuGOoor9JpFiisOpyG5GfBNgKtTRjFJMT5Q= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug tdep/31278] GDB on arm-linux-gnueabihf fails gdb.reverse/func-map-to-same-line.exp Date: Thu, 25 Jan 2024 14:30:30 +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: UNCONFIRMED 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31278 --- Comment #3 from Tom de Vries --- (In reply to Thiago Jung Bauermann from comment #2) > (In reply to Tom de Vries from comment #1) > > Reproduces for me on pinebook (using gcc 10.2.1), with > > --target_board=3Dunix/-mthumb, not with --target_board=3Dunix/-marm. >=20 > Thanks for checking! I have the same results, actually. >=20 > I hadn't realised this earlier, but I don't specify an explicit option, t= he > system compiler is generating Thumb: >=20 Yep, same on my system. After analyzing a few failures: - PR31087 "[gdb/tdep, arm] FAIL: gdb.base/func-ptrs.exp: continue to decr" - PR31089 "[gdb/tdep, arm] FAIL: gdb.base/longjmp-until-in-main.exp: until $line, in main" I came to the realization that the thumb bit in function address thingy is pretty poorly supported by gdb, so I decided to start running with unix/-ma= rm by default to filter those out. > $ readelf -a > testsuite/outputs/gdb.reverse/func-map-to-same-line/func-map-to-same-line= | > grep -e func1 -e func2 > 83: 000004d9 14 FUNC GLOBAL DEFAULT 13 func1 > 97: 000004e7 14 FUNC GLOBAL DEFAULT 13 func2 >=20 > This is on Ubuntu 22.04. --=20 You are receiving this mail because: You are on the CC list for the bug.=