Skip to contentSkip to conversation

CATCH EXCEPTION

Xenomai-core axel axel 2 participants 2 messages Mar 27, 2008 – Apr 9, 2008

lore
Share & tools
lore

axel axel

author
#0 lore raw

Hi,

i want to catch an exception in realtime tasks ( for example a null pointer ).

i saw that in xenomai there is a function rthal_trap_catch. But i don't know how works.

Thanks a lot

Roberto Bielli

#1 lore raw
Quoted 7 lines · axel axel

Hi,

i want to catch an exception in realtime tasks ( for example a null pointer ).

i saw that in xenomai there is a function rthal_trap_catch. But i don't know how works.

Well, Xenomai handles exceptions itself, and it is not currently user-configurable. In a kernel module launched after xenomai nucleus module, you will have to call rthal_trap_catch, passing a pointer to a function of yours, which falls back to xenomai exception handler when the exception is not of interest to your application.

Signature · 1 line
					    Gilles.