Hi RTers,
The debuggers available (zentropix/fsmlabs) are both based on gdbstubs
(maintained by David Grothe, ftp.gcom.com). To work with modules,
gdbstubs was enhanced by zentropix over a year ago to reply to the
qOffsets with the correct sections for the modules (text, data and
bss), the fsmlabs version works the same way, but can be used locally
via fifos rather than a serial connection. The problem with this
approach is that the offset is applied globally, and so only one module
can be correctly debugged at a time. At the time I originally made the
changes, I looked into the add-symbol-file command to allow multiple
modules to be debugged, but this wasn't working. Since then, a lot of
progress has been made by the gdb and gdbstubs team, and this feature
seems to mostly work. We are currently working on using this method to
allow multiple modules to be concurrently debugged. There are some
problems to be resolved (it doesn't seem to work on some versions of
gdb), but it looks promising.
Until this approach is used, I think that you will be limited to
debugging a single module at a time.
Regards, Stuart
Pavel Andris wrote:
>
> On Wed, Aug 02, 2000 at 09:29:57AM +0800, Wei Ren wrote:
> > hi,
> > I get some problem like that. I want to trace into some other modules use "s",
>but I failed.
> > I write some module A, and module B . The task created by module B called some
>function in module A.
> > I compile both modules with -g flag.
> > Does the debug module support multi-module debug?
> >
>
> Hi Wei,
>
> I'm afraid we are to wait for a reply by Michael Barabanov, the highest
> authority. Which version of RTL, gdb do you use? I made my experience
> with RTL 2.3 and 3.0, gdb version 5.0. It was mentioned in this list
> an older version of gdb may help. I'm going to try.
>
> Regards,
> pa
>
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/