All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: "Herrera-Bendezu, Luis" <lherrera@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] RTDM task blocks when connecting gdb to realtime task
Date: Wed, 18 Aug 2010 18:20:33 +0200	[thread overview]
Message-ID: <4C6C0851.9000804@domain.hid> (raw)
In-Reply-To: <6FCCA913376DD7488F4139A4D11B8F4801465AC9@domain.hid>

Herrera-Bendezu, Luis wrote:
> I am using Xenomai 2.4.10 on PPC. An RTDM driver creates an RTDM task
> using rtdm_task_init() and goes to sleep periodically via function
> rtdm_task_sleep().
> 
> When driver is loaded, RTDM task executes as expected. Then a realtime
> application is started via gdbserver on target board and on a linux host
> a gdb client is connected to that board. As soon as gdb breakpoints the
> realtime application the RTDM task never returns from rtdm_task_sleep().
> The application does not open the RTMD driver so at this point there is
> no interaction with the driver.
> (...)
> 
> Any ideas on the cause of the problem and fix?

That is a feature actually, in order to help you debug your application,
 all timers in the system are stopped. So, the rtdm task will only
return from rtdm_task_sleep when you will type "continue" in gdb.

The timer which have the XNTIMER_NOBLCK bit are not stopped, but setting
this bit cleanly will need extensions of the RTDM driver API.

-- 
					    Gilles.


  reply	other threads:[~2010-08-18 16:20 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-18 16:03 [Xenomai-help] RTDM task blocks when connecting gdb to realtime task Herrera-Bendezu, Luis
2010-08-18 16:20 ` Gilles Chanteperdrix [this message]
2010-08-18 16:38 ` Philippe Gerum
2010-08-18 17:29   ` Herrera-Bendezu, Luis
2010-08-18 20:44     ` Philippe Gerum
2010-08-19 12:26       ` Herrera-Bendezu, Luis
2010-08-19 16:42         ` Philippe Gerum
2010-08-19 17:13           ` Herrera-Bendezu, Luis
2010-08-20  5:39             ` Philippe Gerum
2010-08-20  6:03               ` Philippe Gerum
2010-08-20 13:30               ` Herrera-Bendezu, Luis
2010-08-20 13:49                 ` Philippe Gerum
2010-08-20 13:58                   ` Jan Kiszka
2010-08-20 14:06                     ` Philippe Gerum
2010-08-20 14:08                       ` Jan Kiszka
2010-08-20 14:24                         ` Philippe Gerum
2010-08-20 14:25                         ` Herrera-Bendezu, Luis
2010-08-20 14:41                           ` Philippe Gerum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C6C0851.9000804@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=lherrera@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.