What's wrong with my kernel debugging?

Wojciech Kromer krom at dgt-lab.com.pl
Tue Jun 26 21:12:21 EST 2001


I'm trying to debug kernel module on remote PPC machine.
Say me if I'm doing something wrong.

I had fonud 0xc303b04c address using loadmodule.sh script


==========================================================================

Copyright 2000 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 "ppc-redhat-linux".
(gdb) target remote /dev/ttyS0
Remote debugging using /dev/ttyS0
0xc000aff8 in ?? ()
(gdb) add-symbol-file /lib/modules/vtxcsmod 0xc303b04c
add symbol table from file "/lib/modules/vtxcsmod" at
        .text_addr = 0xc303b04c
(y or n) y
Reading symbols from /lib/modules/vtxcsmod...done.
(gdb) b init_module
Breakpoint 1 at 0xc30aba20: file vtxcs_mod.c, line 93.
(gdb) continue
Continuing.
warning: Cannot insert breakpoint 1:
Cannot access memory at address 0xc30aba20
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ why ???




--
* * * * * * * * * * * *
* per pedes ad astra! *
* * * * * * * * * * * *    mailto:krom at dgt-lab.com.pl


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list