Hi,
I am trying to install KGDB for Linux-2.6.15. and facing a problem while connecting to remote machine. Please give me the solution.
I followed the following steps:
1) I downloaded the patch from http://kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.15/2.6.15...
2)I rebuilt the kernel with the patch mentioned. I selected "Kernel Hacking" options inside Menuconfig necessary for the remote debugging while building the kernel.
3)Transferred the same kernel image (KGDB enabled) on the target machine.
4)In the /etc/grub.conf file of target machine , following line is written kernel /vmlinuz-2.6.15-kgdb ro root=/dev/hda rootfstype=ext3 kgdbwait kgdb8250=1,9600
5) Then I rebooted both the machines in Linux-2.6.15-kgdb O.S.
6) Ran "#gdb ./vmlinux" on host machine.
7) (.gdb)set remotebaud 9600
8) (.gdb)target remote /dev/ttyS1
Then I get the error message as follows:
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Couldn't establish connection to remote target Malformed response to offset query, timeout