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

jiri at gaisler.se jiri at gaisler.se
Tue Jun 15 16:29:37 UTC 2021


You also need to connect gdb with 'target extended-remote localhost:1234' . It should work then ...------ Ursprungligt meddelande------Från: Jan.Sommer at dlr.deDatum: tis 15 juni 2021 08:38Till: jiri at gaisler.se;users at rtems.org;Kopia: Ämne:RE: [SIS] Connecting to riscv-rtems6-sis via gdb

Unfortunately, this didn’t help:

 
Transfer rate: 4462 KB/sec, 236 bytes/write.
(gdb) run
The "remote" target does not support "run".  Try "help target" or "continue".
 
I also tried target extended-remote and the -r option in SIS, but so far without success.
 
Best regards,
 
    Jan
 



From: jiri > 
Sent: Tuesday, June 15, 2021 12:53 PM
To: Sommer, Jan >; users at rtems.org
Subject: Re: [SIS] Connecting to riscv-rtems6-sis via gdb


 

Try to start ececution in gdb with 'run' rather than "c'. This might be needed to initialize the simulator.


 


Jiri.


 


 


 



Sent from Samsung tablet.



 



-------- Original message --------


From: 
Jan.Sommer at dlr.de 


Date: 14/06/2021 11:27
 (GMT-04:00)



To: 
users at rtems.org 


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



 


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


_______________________________________________
users mailing
 list
users at rtems.org
http://lists.rtems.org/mailman/listinfo/users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20210615/fc3fd1dd/attachment-0001.html>


More information about the users mailing list