<div dir="ltr">Forgot to CC.<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Dhananjay Balan</b> <span dir="ltr"><<a href="mailto:mb.dhananjay@gmail.com">mb.dhananjay@gmail.com</a>></span><br>
Date: 8 April 2013 07:44<br>Subject: Re: Better GDB support for rtems.<br>To: Joel Sherrill <<a href="mailto:joel.sherrill@oarcorp.com">joel.sherrill@oarcorp.com</a>><br><br><br><div dir="ltr">I have already followed the GDB python tutorials and documentation. The tutorial and helpers wanted was to get the right consciousness around debugging an RTEMS application with GDB. <div>
<br></div><div>sim-scripts seems a good start. Thanks.</div>
</div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On 6 April 2013 21:26, Joel Sherrill <span dir="ltr"><<a href="mailto:joel.sherrill@oarcorp.com" target="_blank">joel.sherrill@oarcorp.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On 04/04/2013 03:13 PM, Dhananjay Balan wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I was fooling around rtems (Not much, was taking tests till yesterday) and the general debugging stuff (Structures and stuff..), but I couldn't find much documentation about it.<br>
</blockquote></div>
If your goal is the GSOC project to provide Python plugins to provide more insight<br>
into RTEMS data structures, then you are in a no-man's land between an internal<br>
capability of gdb which is new and likely not well documented and the internals<br>
of RTEMS which require some insight to print in a useful way.<br>
<br>
The key point to gdb support for displaying more about an RTEMS application<br>
is that it doesn't require any code to run on the target hardware.<div><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I was stuck at following points,<br>
<br>
* Is there any specific tutorials or anything about GDB and rtems?<br>
</blockquote></div>
Not particularly. Once you connect to the target, any gdb tutorial<br>
should be sufficient. gdb is always gdb -- the target changes and the<br>
connection method to the target changes -- but the gdb interface is<br>
the same.<br>
<br>
So you could experiment with Python pretty-printing on a native gdb<br>
and no RTEMS.<div><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
* I could find from the wiki that rtems provides a primitive shell to debug applications to a limit, I found the document on the shell - but I am confused how to run it in a simulator. Any help?<br>
</blockquote></div>
See the fileio.exe sample. The "monitor" class of commands and the "rtems" class<br>
of commands give some<br>
<br>
Another option to look at is the gdb macros in rtems-testing/sim-scripts. This is how<br>
you pretty printed things before the Python support in gdb. I wrote most of those<br>
and getting Python pretty printing on par with those capabilities would be a big<br>
improvement plus it is fairly easy to see where to go from there. It is far from<br>
complete.<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
* Afiu the simulator is a sparc sis (arch-run command) I am using, is there any advantage if I run a qemu-sparc instance instead?<br>
<br>
</blockquote></div>
Not for adding python pretty printing support for rtems structures to gdb.<br>
It will just make connecting to the sparc target more complicated.<div><div><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-- <br>
Regards,<br>
Dhananjay M Balan,<br>
<br>
</blockquote>
<br>
<br></div></div><span><font color="#888888">
-- <br>
Joel Sherrill, Ph.D.             Director of Research& Development<br>
joel.sherrill@OARcorp.com        On-Line Applications Research<br>
Ask me about RTEMS: a free RTOS  Huntsville AL 35806<br>
Support Available               <a href="tel:%28256%29%20722-9985" value="+912567229985" target="_blank">(256) 722-9985</a><br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<br>Dhananjay M Balan,<br></div></div><div class="im"><div>Department Of Computer Science, </div><div>College Of Engineering, Trivandrum.</div>
<div><a href="http://cet.ac.in" target="_blank">http://cet.ac.in</a></div>

</div></div>
</div><br><br clear="all"><div><br></div>-- <br>Regards,<br>Dhananjay M Balan,<br><div>Department Of Computer Science, </div><div>College Of Engineering, Trivandrum.</div><div><a href="http://cet.ac.in" target="_blank">http://cet.ac.in</a></div>

</div>