From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C6E00385DC18; Wed, 27 Mar 2024 15:32:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C6E00385DC18 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1711553531; bh=acI4Q2pAWWl62Cg5ugaRf5e3kQveVYdP++UZnnB7j8o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=F+R7Ves+UbhCBnr4BCFt7eJbOPbDi+pUpXH5nuMog/oAUR/VFuTBl5BK+33t9cqSJ H9g/NmQTpPlJ/LBbb5u9a/I6O0wso1KcehSbBk8SGmF7FVHp81rGx28i71OCBbGm+1 qO2p1wJ9BE5XFVSVaW2m3urL/lNw/NWfjFvqJARU= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug testsuite/31566] [gdb/testsuite] is_aarch32_target return false on aarch32 Date: Wed, 27 Mar 2024 15:32:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: testsuite 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31566 --- Comment #1 from Tom de Vries --- Tentative patch: ... diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index d48ea37c0cc..51479cce9c2 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -3661,7 +3661,7 @@ gdb_caching_proc is_aarch32_target {} { lappend list "\tmov $reg, $reg" } - return [gdb_can_simple_compile aarch32 [join $list \n]] + return [gdb_can_simple_compile aarch32 [join $list \n] object asm] } # Return 1 if this target is an aarch64, either lp64 or ilp32. @@ -5086,6 +5086,10 @@ proc gdb_simple_compile {name code {type object} {compile_flags {}} {object obj} set ext "d" break } + if { "$flag" eq "asm" } { + set ext "s" + break + } } set src [standard_temp_file $name.$ext] set obj [standard_temp_file $name.$postfix] ... I'll try to run this in an armhf container on an aarch64-linux system. --=20 You are receiving this mail because: You are on the CC list for the bug.=