login
Header Space

 
 

KernelGDB Help

February 23, 2006 - 8:47am
Submitted by amim on February 23, 2006 - 8:47am.
Applications and Utilities

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

August 23, 2006 - 1:42am

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

January 8, 2007 - 2:39am

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

November 14, 2007 - 12:49am
venkatbandi (not verified)

Hi

I also have same problem please help me.

Thanks & Regards
Venkatesh

Either of the following

April 2, 2007 - 9:13pm
shvet (not verified)

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
speck-geostationary