[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re: gdb for kernel debugging
> gdb /linux-*/vmlinux /proc/kcore
> GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
----snip-----
> This GDB was configured as
> "i386-redhat-linux-gnu".../linux-*/vmlinux: No such file or
> directory.
There is no vmlinux file image in the directory.. i guess.. may b u
have formed a compressed image. Do this.
1. make mrpoper
(DON'T DO THIS IS U DON'T want to delete the .config file, which
saves the configuration of the below second step)
2. make menuconfig
3. make
4. make modules
5. make modules_install
6. make install.
U will get the image vmlinux in /usr/src/linux-x.x.x/ directory.
then try
gdb vmlimux /proc/kcore frm the above directory.
Cherrio!!
Vishal Soni.
>
> Core was generated by `ro root=LABEL=/'.
> #0 <function called from gdb>
> (gdb) q
>
> what could be the possible problem?
> thanks in advance
>
> Regards
> vaishali
>
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/