From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 60088 invoked by alias); 8 Jan 2019 10:26:32 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 60011 invoked by uid 89); 8 Jan 2019 10:26:32 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:may, H*r:forged, H*r:user, reading X-HELO: relay.fit.cvut.cz Received: from relay.fit.cvut.cz (HELO relay.fit.cvut.cz) (147.32.232.237) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 08 Jan 2019 10:26:29 +0000 Received: from imap.fit.cvut.cz (imap.fit.cvut.cz [147.32.232.238]) by relay.fit.cvut.cz (8.15.2/8.15.2) with ESMTPS id x08AQH4A000752 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 8 Jan 2019 11:26:19 +0100 (CET) (envelope-from jan.vrany@fit.cvut.cz) Received: from sao (027906ee.bb.sky.com [2.121.6.238] (may be forged)) (authenticated bits=0 as user vranyj1) by imap.fit.cvut.cz (8.15.2/8.15.2) with ESMTPSA id x08AQEqD008425 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 8 Jan 2019 11:26:17 +0100 (CET) (envelope-from jan.vrany@fit.cvut.cz) Message-ID: <2cda8aec3f030f6cbf5f2176621b01d8194d1521.camel@fit.cvut.cz> Subject: Commit 90af06793e breaks RISC-V native target From: Jan Vrany To: "gdb@sourceware.org" Cc: Andrew Burgess , Palmer Dabbelt , Boris Shingarov Date: Tue, 08 Jan 2019 10:26:00 -0000 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.3-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-01/txt/msg00008.txt.bz2 Hi, I realized that commit 0af06793e gdb/riscv: Improve logic for when h/w float abi should be used broke GDB on RISC-V using native target (at least for me): #include int main() { printf("Test\n"); return 0; } ./gdb ~/tmp/test Reading symbols from /home/jv/tmp/test... (gdb) b main Breakpoint 1 at 0x5fe: file test.c, line 4. (gdb) r Starting program: /home/jv/tmp/test [1]+ Stopped ./gdb/gdb ~/tmp/test bfd requires flen 8, but target has flen 0 (gdb) This is in Debian RISC-V using 4.15 kernel (commit c9dc587367 from [1] which is essentially SiFive's 4.15 kernel used on Unleashed plus few patches apparently needed to make GDB native target working). I've got the same error when running under QEMU and on SiFive's Unleashed board. Previous commit - 13f2ed32e1 - works fine for me. I assume things are working for RISC-V guys, so likely I'm missing some bits. Do I need to apply more kernel patches (if so, which ones?) Anything else to patch or update in order to make native RISC-V target working again with recent GDB? Best, Jan [1] https://github.com/janvrany/riscv-linux/tree/users/jv/riscv-linux-4.15