kernel debugging -- Error while reading shared library symbols:

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear all,

I am trying to remotely debug the kernel using kgdb patch and the
gdbmod available at
http://kgdb.linsyssoft.com/getting.htm.

Below are the steps...
1. I compiled the kernel source tree after applying the kgdb patch in
TEST machine,
2. Transferred the whole kernelsourcetree from /usr/src/ of TEST
machine along with object files to my Development machine
3. Transferred the modules from /lib/modules/2.6.8, modules from TEST
machine to my Development machine's  /lib/modules directory.

On rebooting, the TEST machine in the newly compilled kernel, i get
Waiting for gdb connection..
as i have modified the grub to pass the required kernel parameters.
Now when i do this...............frm development machine...
/*************************************************************************/
[root@vishalsoni linux-2.6.8]# gdbmod-2.2 vmlinux
GNU gdb 6.0
Copyright 2003 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 "i686-pc-linux-gnu"...
(gdb) target remote /dev/ttyS0
Remote debugging using /dev/ttyS0
breakpoint () at kernel/kgdb.c:1212
1212            atomic_set(&kgdb_setting_breakpoint, 0);
/*************************************************************************/
I am able to control the execution of the TEST machine's kernel.

But while kernel is booting i am getting

scsi_mod.ko: Success.
Error while reading shared library symbols:
scsi_mod.ko: No such file or directory.
SCSI subsystem initialized
[New Thread 191]
Error while mapping shared library sections:
sd_mod.ko: Success.
Error while reading shared library symbols:

and so on...............................
Its not able to locate the modules............. and the Symbol Tables
and i need to put break points in these modules.. i need to back trace
the functions........to know their names..........

Wud u plz suggest me , how i can achieve this....... and ne gud
pointers, which tells how to remotely debug the kernel........... I am
googling for the days and days..

Thanx in advance.
Vishal Soni.
http://kerneltrap.org/blog/8787

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux