Hi everybody, I'm trying to use the rtl_debug facilities with: * a Red Hat 7.3 system * kernel 2.4.18 * rtlinux 3.1 for kernel 2.4.18 (the contributed patch downloaded from ftp.fsmlabs.com)
All the RTLinux examples seems to work but I encounted difficulties with the debugging example, see the session below: ------------------------8<-----------------------8<-------------------------- # rmmod hello ; # rmmod rtl_debug # insmod rtl_debug.o ; insmod hello.o Warning: loading rtl_debug.o will taint the kernel: no license Warning: loading hello.o will taint the kernel: no license # gdb hello.o GNU gdb Red Hat Linux (5.1.92-2) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux"... (gdb) dbg [New Thread -999882752] warning: (Internal error: pc 0xc89d20a8 in read in psymtab, but not in symtab.) [Switching to Thread -999882752] warning: (Internal error: pc 0xc89d20a8 in read in psymtab, but not in symtab.) warning: (Internal error: pc 0xc89d20a8 in read in psymtab, but not in symtab.) warning: (Internal error: pc 0xc89d20a8 in read in psymtab, but not in symtab.) start_routine () at hello.c:37 37 for (i = 0; i < 20; i ++) { warning: shared library handler failed to enable breakpoint warning: (Internal error: pc 0xc89d20a8 in read in psymtab, but not in symtab.) warning: (Internal error: pc 0xc89d20a8 in read in psymtab, but not in symtab.) (gdb) b 37 Breakpoint 1 at 0xc89d20a8: file hello.c, line 37. warning: (Internal error: pc 0xc89d20a8 in read in psymtab, but not in symtab.) (gdb) c Continuing. warning: (Internal error: pc 0xc89d20a8 in read in psymtab, but not in symtab.) [New Thread -998277120] [Switching to Thread -998277120] warning: (Internal error: pc 0xc89d20a8 in read in psymtab, but not in symtab.) Breakpoint 1, warning: (Internal error: pc 0xc89d20a8 in read in psymtab, but not in symtab.) warning: (Internal error: pc 0xc89d20a8 in read in psymtab, but not in symtab.) start_routine () at hello.c:37 37 for (i = 0; i < 20; i ++) { warning: (Internal error: pc 0xc89d20a8 in read in psymtab, but not in symtab.) (gdb) c Continuing. warning: (Internal error: pc 0xc89d20a8 in read in psymtab, but not in symtab.) .... ------------------------8<-----------------------8<-------------------------- and it hangs here... Questions: * is this a problem with this gdb version (and should I downgrade it to a previously "good" version) ? * is this a problem with the 2.4.18 rtlinux port (and should I downgrade to the official rtlinux for 2.4.4 linux) ? * other suggestions ? Thanks, Stelian. -- Stelian Pop <[EMAIL PROTECTED]> Alcove - http://www.alcove.com -- [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/