Re: Kgdb related prob. (err - "Cannot find bounds of current funtion"!!)

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

 



>
> I'm trying to bring up a kgdb setup. I have 2 intel machines.
> Target - mac1, Host - mac2. I downloaded the latest kgdb patch
> for 2.6.8.1 on mac1 and applied it on the kernel src. I then
> complied it on the target machine itself. Then copied (scp) the
> kernel image + System.map to my host mac where i have the same
^^^^^^^^^^^^^

> >From the host's /usr/src/linux-2.6.8.1 dir i ran
> $> gdb vmlinuz-2.6.8.1-kgdb
                ^^^^^^^^^^^^^^^^^

Are the "kernel image" and vmlinuz-2.6.8.1-kgdb same?

Actually you should do other way around. Compile the kernel on mac2 and copy
bzImage to mac1. Because debugger needs vmlinux image as well as source
code. And if path to compiled sources on target and sources on host are
different , there may be problem (although I am not sure about this). If you
compile on host, you can simply escape from this problem.

Regards
Mohanlal


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