Re: unable to run gdb as mentioned in device driver book



On Jan 31, 12:04 pm, "Milind Dumbare" <milind.dumb...@xxxxxxxxx>
wrote:
On Jan 31, 10:15 am, "Mnsh" <mnshsn...@xxxxxxxxx> wrote:

Hi,
I was just running through the Device Driver book by Rubini. And
in the debugging techniques chapter it said I could run gdb as
following -

gdb /usr/src/linux/vmlinux /proc/kcore

GNU gdb 6.4.90-debian
Copyright (C) 2006 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 "i486-linux-gnu"..."/boot/vmlinuz-2.6.17-10-
generic": not in executable format: File format not recognized

/proc/kcore: Operation not permitted.

You have to be root, I guess.



$ file /boot/vmlinuz-2.6.17-10-generic
/boot/vmlinuz-2.6.17-10-generic: Linux kernel x86 boot executable RO-
rootFS, root_dev 0x803, swap_dev 0x1, Normal VGA
Any idea what could be the issue ?

Oh, forgot to mention this. I am working as root only.

.



Relevant Pages