Skip to contentSkip to conversation

Debugging realtime tasks

Xenomai-help Andreas Erler 2 participants 2 messages Jun 11, 2008 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi,

I want to debug a userspace task created with: rt_task_create(&demo_task, "trivial", 0, 99, 0); When I set a breakpoint somewhere in the demo_task function I get the following message and gdbserver exits:

Child terminated with signal = 5

Child terminated with signal = 0x5 (SIGTRAP)
GDBserver exiting

Is it generally possible to debug realtime tasks or not? If yes, what I'm doing wrong here?

Thanks in advance,
Andy

#2 lore raw
Quoted 5 lines · Andreas Erler

Hi,

I want to debug a userspace task created with: rt_task_create(&demo_task, "trivial", 0, 99, 0); When I set a breakpoint somewhere in the demo_task function I get the following message and gdbserver exits:

Quoted 7 lines

Child terminated with signal = 5

Child terminated with signal = 0x5 (SIGTRAP)
GDBserver exiting

Is it generally possible to debug realtime tasks or not? If yes, what I'm doing wrong here?

Yes, it is supposed to work. A common problem with using gdbserver with gdb is not using the same version, you should use absolutely the same version of gdb and gdbserver.

If you use the same version of gdb and gdbserver and still have the problem, could you post an example, and tell us where to put the breakpoint ?

You should also tell us which version of Xenomai you use, and on which platform.

Signature · 1 line
 Gilles