Wei Ren ([EMAIL PROTECTED]) 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?

Yes, although due to gdb's bugs with respect to symbol handling, the
support is not complete. You need to use add-symbol-file to load
other modules's symbol table into gdb. The .gdbinit file in
the debugger/ directory contains some useful macros to do that:

modaddsym module.o    --- load symbols for module.o
modaddsched           --- load symbols for the RTL scheduler

The latter is very useful when using gdb's "backtrace" command.

There is an annoying bug in add-symbol-file (gdb 4.18): data
symbols do not use correct addresses. Examining code does work.

A (not very convenient) way to solve the problem with data symbols
is to kill gdb, and start it on the module that generated the last
exception.

There are also other possible ways which I'm going to investigate.

Michael.

-- [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/

Reply via email to