gdb for kernel debugging

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

 



Hi all,

I am trying to use gdb for debugging kernel. My intention is just to
go thru different kernel data structures.
I am getting the following error.

#gdb /boot/vmlinuz-2.6.5-1-debug.358 /proc/kcore
GNU gdb Red Hat Linux (6.0post-0.20040223.19rh)
Copyright 2004 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-gnu"..."/boot/vmlinuz-2.6.5-1-debug.358": not in
executable format: File format not recognized
 /proc/kcore: Operation not permitted.
(gdb) q

----------
I have compiled the kernel with  CONFIG_DEBUG_INFO set to y.  Even
googling the error didnt help.
Please tell me what could be the problem.  Am I missing something? 

Thanks for paying attention.
Vasu

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