[SIS] Connecting to riscv-rtems6-sis via gdb

Jan.Sommer at dlr.de Jan.Sommer at dlr.de
Mon Jun 14 15:27:52 UTC 2021


Hello,

I tried to follow the example for using SIS, but use RISCV as the target platform instead of SPARC (https://docs.rtems.org/branches/master/user/tools/tester.html#building-rtems-tests).
However, while I can run ticker.exe of the griscv BSP perfectly in SIS, the same application does not run when loaded through gdb.

I did 
$ riscv-rtems6-sis -gdb 
 SIS - SPARC/RISCV instruction simulator 2.26,  copyright Jiri Gaisler 2020
 Bug-reports to jiri at gaisler.se

 RISCV/GRLIB emulation enabled, 1 cpus online, delta 50 clocks

gdb: listening on port 1234  connected
X40000000,0:#72  
<< No further output after executing "continue" in gdb >>

$ riscv-rtems6-gdb riscv-rtems6/griscv/testsuites/samples/ticker.exe
(gdb) target remote :1234
Remote debugging using :1234
0x00000000 in ?? ()
(gdb) load
Loading section .start, size 0x44 lma 0x40000000
Loading section .text, size 0x10a2c lma 0x40000044
Loading section .rodata, size 0x1da5 lma 0x40010a70
Loading section .eh_frame, size 0x68 lma 0x40012818
Loading section .init_array, size 0x4 lma 0x40012880
Loading section .fini_array, size 0x4 lma 0x40012884
Loading section .rtemsroset, size 0x74 lma 0x40012888
Loading section .data, size 0x5c8 lma 0x40012900
Loading section .sdata, size 0xac lma 0x40012ec8
Start address 0x40000000, load size 77677
Transfer rate: 3992 KB/sec, 236 bytes/write.
(gdb) c
Continuing.

If I run "riscv-rtems6-sis -r riscv-rtems6/griscv/testsuites/samples/ticker.exe" everything works like expected.
Am I doing something wrong?

Best regards,

    Jan


Deutsches Zentrum für Luft- und Raumfahrt e. V. (DLR)
German Aerospace Center
Institute for Software Technology | Software for Space Systems and Interactive Visualization | Lilienthalplatz 7 | 38108 Braunschweig | Germany




More information about the users mailing list