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
Please solve my problem
Plz help i got the same problem
Hi amim
I have the same problem but in kernel 2.6.13. Did you get solution for your problem. Plz guide me in solving this.
Thanks!
KernelGDB Help
Hi Ahmed
I have the same problem,as you discussed in the Forum.
have you got the Solution for Kgdb error that you faced,few months back...Plz Advice me on this Issue..
Thanks a lot!
KGDB NOt working
Hi
I also have same problem please help me.
Thanks & Regards
Venkatesh
Either of the following
Either of the following might work:
1) Try rebooting the target machine
2) In case there is more than 1 serial port in your machine, make sure that it is connected to the right one.
I am not sure which one was the reason, but doing both of the above, made it work for me.
Maybe it might help someone..