* [Xenomai-help] Debugging realtime tasks
[not found] <26287316.6271213172573467.JavaMail.root@domain.hid>
@ 2008-06-11 8:23 ` Andreas Erler
2008-06-11 12:35 ` Gilles Chanteperdrix
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Erler @ 2008-06-11 8:23 UTC (permalink / raw)
To: .
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] Debugging realtime tasks
2008-06-11 8:23 ` [Xenomai-help] Debugging realtime tasks Andreas Erler
@ 2008-06-11 12:35 ` Gilles Chanteperdrix
0 siblings, 0 replies; 3+ messages in thread
From: Gilles Chanteperdrix @ 2008-06-11 12:35 UTC (permalink / raw)
To: Andreas Erler; +Cc: .
On Wed, Jun 11, 2008 at 10:23 AM, Andreas Erler
<a.erler@domain.hid> wrote:
> 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?
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.
--
Gilles
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] Debugging realtime tasks
[not found] <3686298.6421213193405988.JavaMail.root@domain.hid>
@ 2008-06-11 14:38 ` Andreas Erler
0 siblings, 0 replies; 3+ messages in thread
From: Andreas Erler @ 2008-06-11 14:38 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: .
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" <gilles.chanteperdrix@xenomai.org>
An: "Andreas Erler" <a.erler@domain.hid>
CC: "." <xenomai@xenomai.org>
Gesendet: Mittwoch, 11. Juni 2008 14:35:39 GMT +01:00 Amsterdam/Berlin/Bern/Rom/Stockholm/Wien
Betreff: Re: [Xenomai-help] Debugging realtime tasks
On Wed, Jun 11, 2008 at 10:23 AM, Andreas Erler
<a.erler@domain.hid> wrote:
> 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?
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.
--
Gilles
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-06-11 14:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <26287316.6271213172573467.JavaMail.root@domain.hid>
2008-06-11 8:23 ` [Xenomai-help] Debugging realtime tasks Andreas Erler
2008-06-11 12:35 ` Gilles Chanteperdrix
[not found] <3686298.6421213193405988.JavaMail.root@domain.hid>
2008-06-11 14:38 ` Andreas Erler
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.