All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Debugger and secondary mode question
@ 2015-03-04 17:33 Mathew Benson
  2015-03-04 17:42 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 5+ messages in thread
From: Mathew Benson @ 2015-03-04 17:33 UTC (permalink / raw)
  To: xenomai@xenomai.org

I fixed all my toolchain problems and am finally back to debugging my
code.  Thanks for the help earlier.

It looks like gdbserver causes suspended threads to drop back down to
secondary mode, causing my rt_... calls to return ENOSYS.  Is there
anything I can do to prevent this?  I expect its unavoidable.

If I can't stop it, does anybody have any recommendations of how to make
code resilient to this?  I'm mostly just using mutexes and semaphores in my
main loop.  Can I mix real time and non-realtime functions with the same
handle?  In other words, what happens to a rt semaphore when the thread
transitions back to secondary mode?  Does the handle refer to a non rt
version now, or is it just inaccessible?

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-03-04 21:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-04 17:33 [Xenomai] Debugger and secondary mode question Mathew Benson
2015-03-04 17:42 ` Gilles Chanteperdrix
2015-03-04 21:45   ` Mathew Benson
2015-03-04 21:48     ` Gilles Chanteperdrix
2015-03-04 21:56     ` Gilles Chanteperdrix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.