Debugging over serial console
I am trying to debug the target linux machine over the serial port. These were the steps that I followed.
- connected the machines with serial cable
- Built the kernel with frame pointers
- copied the vmlinux file to the source machine
- Added the boot parameters "kgdbwait kgdboc=ttyS0, 115200"
After booting the remote machine it waits for remote connection. But the source machine is not able to reach the target machine.
>gdb vmlinux
(gdb) shell echo -e "\003" > /dev/ttyS0
(gdb) set remotebaud 115200
(gdb) target remote /dev/ttyS0
Remote debugging using /dev/ttyS0
Ignoring packet error, continuing...
warning: unrecognized item "timeout" in "qSupported" response
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Malformed response to offset query, timeout
What is the problem here ? Am i missing any configuration ? Any help here would be really helpful.
|