Skip to contentSkip to conversation

Debugging realtime tasks

Xenomai-help Andreas Erler 1 participant 1 message 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

Hello Gilles,

thank you, you were right!
I've used gdbserver 6.6 on my target and gdb 6.8 on my host. I now have on both machines the same versions and voilà it works :-)

Thank you very much,
Andy

----- Ursprüngliche Mail -----
Von: "Gilles Chanteperdrix" <[email protected]>
An: "Andreas Erler" <[email protected]>
CC: "." <[email protected]>
Gesendet: Mittwoch, 11. Juni 2008 14:35:39 GMT +01:00 Amsterdam/Berlin/Bern/Rom/Stockholm/Wien
Betreff: Re: [Xenomai-help] Debugging realtime tasks

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