<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 29, 2021 at 7:20 AM <<a href="mailto:Jan.Sommer@dlr.de">Jan.Sommer@dlr.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello<br>
<br>
I just tried to debug a riscv test program running in qemu.<br>
However, gdb could not establish a connection to qemu and produced the following error:<br>
/tmp/rtems/riscv❯ riscv-rtems6-gdb ticker.exe<br>
GNU gdb (GDB) 10.1.90.20210125-git<br>
[..]<br>
<br>
For help, type "help".<br>
Type "apropos word" to search for commands related to "word"...<br>
Reading symbols from /tools/modulesystem/tools/rtems/rtems6/install/bsps/riscv-rtems6/grv32imafdc-smp/testsuites/samples/ticker.exe...<br>
(gdb) target remote :1234<br>
Remote debugging using :1234<br>
bfd requires flen 8, but target has flen 4<br></blockquote><div><br></div><div>griscv are Jiri's BSPs and should run on sis and be able to be debugged that way.<br></div><div><br></div><div>He should know if they worked on qemu and he was able to connect gdb.</div><div><br></div><div>Otherwise, this looks like a potential mismatch of 32 and 64 bit stuff like gdb </div><div>wasn't built with both 32 and 64 bit riscv support. Which seems odd to me </div><div>because it lives in the same repo as binutils and should have a comparable</div><div>build of binutils.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
The tools and rtems are built from master a couple of days ago.<br>
I used the following command line for qemu (v. 4.2.0):<br>
qemu-system-riscv32 -nographic -machine virt -m 2G -nographic -net none -serial mon:stdio -bios /tmp/riscv/ticker.exe -s -S<br>
<br>
Does anyone have a hint if the problem is with qemu, gdb or rtems?<br>
Without gdb the program runs normally in qemu.<br>
<br>
Best regards,<br>
<br>
    Jan<br>
<br>
Deutsches Zentrum für Luft- und Raumfahrt e. V. (DLR)<br>
German Aerospace Center<br>
Institute for Software Technology | Software for Space Systems and Interactive Visualization | Lilienthalplatz 7 | 38108 Braunschweig | Germany<br>
<br>
Jan Sommer<br>
<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a></blockquote></div></div>