<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 18, 2019, 11:12 AM Niteesh <<a href="mailto:gsnb.gn@gmail.com">gsnb.gn@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr">On Mon, Nov 18, 2019 at 3:17 AM Joel Sherrill <<a href="mailto:joel@rtems.org" target="_blank" rel="noreferrer">joel@rtems.org</a>> wrote:<br></div><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto">The instructions are out of date by a couple of months. The SPARC Instruction Simulator (sis) has seen significant enhancements and it's now a standalone program. It is not enabled as a built-in with gdb because that's some very old version of sis. The new version has symmetric multiprocessing and support for the RISC-V. </div><div dir="auto"><br></div><div dir="auto">Those instructions worked for a LONG time but need to be updated to reflect the recent changes with SIS.</div><div dir="auto"><br></div><div dir="auto">If you used rtems-tester, it should work. And looking at the .ini file for this bsp will sure you have to just run programs with the simulator. My recollection is that by adding -gdb argument, you can attached to it as a remote debugger.</div></div></blockquote></div></div></div></blockquote></div></div><div dir="auto">Yes. And I also faced this problem (in my case it was riscv)and i guess this question was asked by others also on devel.</div><div dir="auto">I simply used these steps:</div><div dir="auto"><br></div><div dir="auto"><p style="margin-top:0px;margin-bottom:16px;background-color:rgb(255,255,255)"><font color="#24292e" face="-apple-system, blinkmacsystemfont, segoe ui, helvetica, arial, sans-serif, apple color emoji, segoe ui emoji"><span style="font-size:16px">Open Terminal 1:</span></font></p><p style="margin-top:0px;margin-bottom:16px;background-color:rgb(255,255,255)"><font color="#24292e" face="-apple-system, blinkmacsystemfont, segoe ui, helvetica, arial, sans-serif, apple color emoji, segoe ui emoji"><span style="font-size:16px">$ sparc-rtems5-sis -gdb</span></font></p><p style="margin-top:0px;margin-bottom:16px;background-color:rgb(255,255,255)"><font color="#24292e" face="-apple-system, blinkmacsystemfont, segoe ui, helvetica, arial, sans-serif, apple color emoji, segoe ui emoji"><span style="font-size:16px">        # It will print 'gdb: listening on port 1234'.</span></font></p><p style="margin-top:0px;margin-bottom:16px;background-color:rgb(255,255,255)"><font color="#24292e" face="-apple-system, blinkmacsystemfont, segoe ui, helvetica, arial, sans-serif, apple color emoji, segoe ui emoji"><span style="font-size:16px">        # Note you can define port number with '-port' option.</span></font></p><p style="margin-top:0px;margin-bottom:16px;background-color:rgb(255,255,255)"><font color="#24292e" face="-apple-system, blinkmacsystemfont, segoe ui, helvetica, arial, sans-serif, apple color emoji, segoe ui emoji"><span style="font-size:16px">Open Terminal 2:</span></font></p><p style="margin-top:0px;margin-bottom:16px;background-color:rgb(255,255,255)"><font color="#24292e" face="-apple-system, blinkmacsystemfont, segoe ui, helvetica, arial, sans-serif, apple color emoji, segoe ui emoji"><span style="font-size:16px">$ sparc-rtems5-gdb hello.exe</span></font></p><p style="margin-top:0px;margin-bottom:16px;background-color:rgb(255,255,255)"><font color="#24292e" face="-apple-system, blinkmacsystemfont, segoe ui, helvetica, arial, sans-serif, apple color emoji, segoe ui emoji"><span style="font-size:16px">        # gdb asks for several inputs</span></font></p><p style="margin-top:0px;margin-bottom:16px;background-color:rgb(255,255,255)"><font color="#24292e" face="-apple-system, blinkmacsystemfont, segoe ui, helvetica, arial, sans-serif, apple color emoji, segoe ui emoji"><span style="font-size:16px">                $ target extended-remote localhost:1234</span></font></p><p style="margin-top:0px;margin-bottom:16px;background-color:rgb(255,255,255)"><font color="#24292e" face="-apple-system, blinkmacsystemfont, segoe ui, helvetica, arial, sans-serif, apple color emoji, segoe ui emoji"><span style="font-size:16px">                $ load</span></font></p><p style="margin-top:0px;margin-bottom:16px;background-color:rgb(255,255,255)"><font color="#24292e" face="-apple-system, blinkmacsystemfont, segoe ui, helvetica, arial, sans-serif, apple color emoji, segoe ui emoji"><span style="font-size:16px">                $ r</span></font></p><p style="margin-top:0px;margin-bottom:16px;background-color:rgb(255,255,255)"><font color="#24292e" face="-apple-system, blinkmacsystemfont, segoe ui, helvetica, arial, sans-serif, apple color emoji, segoe ui emoji"><span style="font-size:16px">You will see output in Terminal 1.</span></font></p></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div>I would like to update the docs for this, Can I proceed? I am planning to change the cmd to use erc-sis instead of erc. And also the build your application section is incomplete, can I add the instruction to modify a test program and build it in this section?</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>BTW I know it's a way too early for GSOC but I have anyway attached the patch for hello world.</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">What type projects are you interested in?</div></div></blockquote><div>I am interested in driver development and BSP support. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" rel="noreferrer noreferrer" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div></div></div>
</blockquote></div></div>
</div>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank" rel="noreferrer">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div></div></div>