the image vmlinuz is in compressed form .. it can't be directly used for debugging with gdb... instead go for vmlinux .. it'll be in ur usr/src/linux-*/ as we have enabled debugging in the config... we'll get a huge vmlinux... start gdb as >> gdb /linux-*/vmlinux /proc/kcore regards lk ----- Original Message ----- From: "Vasu S" <vasu.ss@xxxxxxxxx> To: <kernelnewbies@xxxxxxxxxxxx> Sent: Thursday, May 05, 2005 7:23 AM Subject: gdb for kernel debugging > 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/ > > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/