All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: zenati <omar.zenati@domain.hid>
Cc: Xenomai core <Xenomai-core@domain.hid>
Subject: Re: [Xenomai-core] Debugging Xenomai kernel
Date: Wed, 27 Jul 2011 11:23:47 +0200	[thread overview]
Message-ID: <4E2FD923.2040003@domain.hid> (raw)
In-Reply-To: <4E2EAB0F.6050109@domain.hid>

On 2011-07-26 13:54, zenati wrote:
> Dear,
> 
> I'm trying to debug Xenomai kernel with GDB and Qemu.

QEMU in emulation or KVM mode?

> So, I launch
> Xenomai in Qemu and make it waiting for GDB. Then I start GDB and
> connect them to Qemu, make breakpoint at the desired function to debug
> and start Xenomai. If the function belongs to the linux kernel, the
> execution stop at the breakpoint. But, if the function belongs to the
> Xenomai nucleus, GDB recognize the breakpoint at the execution but don't
> stop.

Is Xenomai built as module or part of the main kernel image? The latter
is simpler to handle as you don't have to deal with modules as symbol
sources, find out their addresses, and load them at the right location.

> 
> Is it possible to debug Xenomai with GDB and Qemu?

Definitely.

> Is it the good way to debug?
> 
> Thank you for your attention and your help.
> Sincerely,
> 
> Omar ZENATI

Jan

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux


  reply	other threads:[~2011-07-27  9:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-26 11:54 [Xenomai-core] Debugging Xenomai kernel zenati
2011-07-27  9:23 ` Jan Kiszka [this message]
2011-07-27 12:01   ` zenati
2011-07-27 12:12     ` Jan Kiszka
2011-07-27 16:13       ` zenati
2011-07-27 16:16         ` Jan Kiszka
2011-07-27 16:53           ` zenati

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=4E2FD923.2040003@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=Xenomai-core@domain.hid \
    --cc=omar.zenati@domain.hid \
    /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.