Debugger Support
Hi All,
I currently have an application that runs under RTAI however I am now having problems that I wish to debug. Debugger support for RTAI is limited at best (currently the only option we have is to use rt_printk() or printf() to the console). I've been looking back at Xenomai and I see a lot of references to LTTng support which would be ideal and would mean I would port my RTAI app to Xenomai. However these references seem to all die out around 2007. Is there still support for a "proper" debugger (stepping through code, variable values etc...) in the current release of Xenomai?
Thanks for your help,
Steve
_________________________________________________________________
Cut through the jargon: find a PC for your needs.
http://clk.atdmt.com/UKM/go/130777504/direct/01/
Quoted 11 lines · Stephen Davies
Hi All,
I currently have an application that runs under RTAI however I am now having problems that I wish to debug. Debugger support for RTAI is limited at best (currently the only option we have is to use
rt_printk()orprintf()to the console). I've been looking back at Xenomai and I see a lot of references to LTTng support which would be ideal and would mean I would port my RTAI app to Xenomai. However these references seem to all die out around 2007. Is there still support for a "proper" debugger (stepping through code, variable values etc...) in the current release of Xenomai?
LTTng is actively supported over Xenomai, we just still need additional fiddling with the patch series as LTTng is not yet mainline. We are using it here over 2.6.26 ATM, I think I just missed to post the (rather simple) update from the published 2.6.24 version. And I'm about to port them to the next kernel base (either 2.6.27 or .28).
Beside the LTTng tracer there is also source-level debugging, of course. gdb for the apps, kgdb for the kernel (x86) - or via KVM, ie. kernel source-level debugging inside a virtual x86 machine. kgdb just needs some extra patches which I didn't update to 2.6.27 yet because I'm using KVM now.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 26 Corporate Competence Center Embedded Linux
Hi Jan,
Thanks for your quick reply. Just to be clear I would be able to debug hard real time threads using GDB with no patches applied to it? That would be a massive step forward for me!
Thanks again,
Stevee> Date: Thu, 15 Jan 2009 12:48:17 +0100> From: [email protected]> To: [email protected]> CC: [email protected]> Subject: Re: Debugger Support> > Stephen Davies wrote:> > Hi All,> > > > I currently have an application that runs under RTAI however I am now> > having problems that I wish to debug. Debugger support for RTAI is> > limited at best (currently the only option we have is to use> > rt_printk() or printf() to the console). I've been looking back at> > Xenomai and I see a lot of references to LTTng support which would be> > ideal and would mean I would port my RTAI app to Xenomai. However> > these references seem to all die out around 2007. Is there still> > support for a "proper" debugger (stepping through code, variable> > values etc...) in the current release of Xenomai?> > LTTng is actively supported over Xenomai, we just still need additional> fiddling with the patch series as LTTng is not yet mainline. We are> using it here over 2.6.26 ATM, I think I just missed to post the (rather> simple) update from the published 2.6.24 version. And I'm about to port> them to the next kernel base (either 2.6.27 or .28).> > Beside the LTTng tracer there is also source-level debugging, of course.> gdb for the apps, kgdb for the kernel (x86) - or via KVM, ie. kernel> source-level debugging inside a virtual x86 machine. kgdb just needs> some extra patches which I didn't update to 2.6.27 yet because I'm using> KVM now.> > Jan> > -- > Siemens AG, Corporate Technology, CT SE 26> Corporate Competence Center Embedded Linux
_________________________________________________________________
Imagine a life without walls. See the possibilities
http://clk.atdmt.com/UKM/go/122465943/direct/01/
Quoted 3 lines · Stephen Davies
Hi Jan,
Thanks for your quick reply. Just to be clear I would be able to debug hard real time threads using GDB with no patches applied to it? That would be a massive step forward for me!
Yes. Debugging real-time apps in general is not always straightforward. So you may be forced to apply some smart methods to avoid gdb disturbing your real-time constraints already before you get to the interesting point. But this is (in most cases) nothing Xenomai specific.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 26 Corporate Competence Center Embedded Linux