* Commit 90af06793e breaks RISC-V native target
@ 2019-01-08 10:26 Jan Vrany
2019-01-08 11:04 ` Andreas Schwab
0 siblings, 1 reply; 3+ messages in thread
From: Jan Vrany @ 2019-01-08 10:26 UTC (permalink / raw)
To: gdb; +Cc: Andrew Burgess, Palmer Dabbelt, Boris Shingarov
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 <stdio.h>
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Commit 90af06793e breaks RISC-V native target
2019-01-08 10:26 Commit 90af06793e breaks RISC-V native target Jan Vrany
@ 2019-01-08 11:04 ` Andreas Schwab
2019-01-08 21:03 ` Jan Vrany
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Schwab @ 2019-01-08 11:04 UTC (permalink / raw)
To: Jan Vrany; +Cc: gdb, Andrew Burgess, Palmer Dabbelt, Boris Shingarov
On Jan 08 2019, Jan Vrany <jan.vrany@fit.cvut.cz> wrote:
> 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).
This is a kernel bug. Make sure you have commit 732e8e4130.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Commit 90af06793e breaks RISC-V native target
2019-01-08 11:04 ` Andreas Schwab
@ 2019-01-08 21:03 ` Jan Vrany
0 siblings, 0 replies; 3+ messages in thread
From: Jan Vrany @ 2019-01-08 21:03 UTC (permalink / raw)
To: Andreas Schwab; +Cc: gdb, Boris Shingarov
Ah, I see.
Thanks a lot!
Jan
On Tue, 2019-01-08 at 12:04 +0100, Andreas Schwab wrote:
> On Jan 08 2019, Jan Vrany <jan.vrany@fit.cvut.cz> wrote:
>
> > 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).
>
> This is a kernel bug. Make sure you have commit 732e8e4130.
>
> Andreas.
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-01-08 21:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-08 10:26 Commit 90af06793e breaks RISC-V native target Jan Vrany
2019-01-08 11:04 ` Andreas Schwab
2019-01-08 21:03 ` Jan Vrany
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).