All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Wolfgang Grandegger <wg@domain.hid>
Cc: xenomai-help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Debugging RT threads with GDB on ARM/PowerPC
Date: Tue, 09 Dec 2008 10:57:39 +0100	[thread overview]
Message-ID: <493E4113.3090708@domain.hid> (raw)
In-Reply-To: <493E3ED4.7090405@domain.hid>

Wolfgang Grandegger wrote:
> Hello,
> 
> I understood that GDB can be used to debug Xenomai real-time
> applications but it seems not to work with my application on PowerPC or
> ARM. The applications looses determinism quickly, mainly because RT
> threads switch to secondary mode somehow. Have I missed something? Are
> there any known issues with GDB on ARM or PowerPC?
>

Using GDB means that you lose determinism, by essence. Debugging time can't be
for free anyway. Additionally, GDB is based on ptrace(), ptrace() makes heavy
use of Linux signals to control the debuggee, so as a matter of fact, the
application under debug has to switch to secondary mode each time GDB takes
control over it, which means, most of the time as soon as you are actually
debugging it. The same goes for breakpointing, since this triggers faults, hence
needs a switch to Linux mode as well, because ptrace() would not be happy to
process the breakpoint in the middle of a primary context.

This is not a ppc or arm issue. This is common to all archs.

> Wolfgang.
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
> 


-- 
Philippe.


  reply	other threads:[~2008-12-09  9:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-09  9:48 [Xenomai-help] Debugging RT threads with GDB on ARM/PowerPC Wolfgang Grandegger
2008-12-09  9:57 ` Philippe Gerum [this message]
2008-12-09 10:13   ` Wolfgang Grandegger

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=493E4113.3090708@domain.hid \
    --to=rpm@xenomai.org \
    --cc=wg@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.