<div dir="ltr">Not easily. That's good to know though. Thanks.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 21, 2019 at 7:23 PM Ian Caddy <<a href="mailto:ianc@goanna.iinet.net.au">ianc@goanna.iinet.net.au</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">
<div bgcolor="#FFFFFF">
<p>Hi Matthew,</p>
<p>Do you have access to the shell on a serial or telnet console?</p>
<p>The RTEMS shell has a "task" command that shows the state of all
the tasks running in your system:</p>
<p>MNTB [/] # task<br>
ID NAME SHED PRI STATE MODES EVENTS
WAITINFO<br>
------------------------------------------------------------------------------<br>
0a010001 USBd UPD 200 TIME P:T:nA NONE<br>
0a010003 ERRM UPD 55 MSG P:T:nA NONE
22010003<br>
0a010004 ADLT UPD 92 MSG P:T:nA NONE
22010006<br>
</p>
<p>Based on the wait info, you can work out what it is waiting on
using the other shell commands, such as:</p>
<p>queue or sema</p>
<p>MNTB [/] # queue<br>
ID NAME ATTRIBUTES PEND MAXPEND MAXSIZE<br>
------------------------------------------------------------------------------<br>
22010001 USBr DEFAULT 0 3000 1<br>
22010002 USBt DEFAULT 40 10000 1<br>
22010003 EMIQ PR 0 15 32</p>
<p>In the example above, the task ERRM is waiting for a message on
the queue EMIQ.</p>
<p>If you do not have access to the shell, you can try to follow
through what the shell actually does in the code, and hopefully it
will provide the information that you are looking for.</p>
<p>regards,</p>
<p>Ian Caddy</p>
<p><br>
</p>
<p><br>
</p>
<div class="gmail-m_-3156008714103082208moz-cite-prefix">On 22/03/2019 3:41 am, Mathew Benson
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">What's the best way to determine the status of a
task? Is there an API to determine if its pending or a runnable
state? Is there an API to determine what its pending on? I'm
trying to determine what some tasks stopped executing and I
can't use a debugger. Preferably, can somebody point me to a
symbol that I can peek?<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="gmail-m_-3156008714103082208gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div>
<div><b>Mathew Benson</b><br>
</div>
CEO | Chief Engineer<br>
</div>
Windhover Labs, LLC<br>
832-640-4018<br>
<br>
<img src="https://drive.google.com/a/windhoverlabs.com/uc?id=1cLDczWESrU667xKgEJlFhHa2yjq5UVhJ&export=download"><br>
</div>
<a href="http://www.windhoverlabs.com" target="_blank">www.windhoverlabs.com</a><br>
<br>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="gmail-m_-3156008714103082208mimeAttachmentHeader"></fieldset>
<pre class="gmail-m_-3156008714103082208moz-quote-pre">_______________________________________________
users mailing list
<a class="gmail-m_-3156008714103082208moz-txt-link-abbreviated" href="mailto:users@rtems.org" target="_blank">users@rtems.org</a>
<a class="gmail-m_-3156008714103082208moz-txt-link-freetext" href="http://lists.rtems.org/mailman/listinfo/users" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a></pre>
</blockquote>
</div>
_______________________________________________<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><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div><div><b>Mathew Benson</b><br></div>CEO | Chief Engineer<br></div>Windhover Labs, LLC<br>832-640-4018<br><br><img src="https://drive.google.com/a/windhoverlabs.com/uc?id=1cLDczWESrU667xKgEJlFhHa2yjq5UVhJ&export=download"><br></div><a href="http://www.windhoverlabs.com" target="_blank">www.windhoverlabs.com</a><br><br></div></div></div></div>