I am trying to get kgdb and kdb to work on DB410c, but I am having
problems with the serial driver. I have compiled with these options:
I am using the kernel from
So, I enable kdb/kgdb on the serial console like so:
echo ttyMSM0 > /sys/module/kgdboc/parameters/kgdboc
echo g > /proc/sysrq-trigger
Then it enters kdb mode, and things start to go wrong. For example,
keystrokes are sometimes ignored, and then repeated 20 or 30 times after
a few other keystrokes. When trying to connect to kgdb over a serial
line (after quitting from the terminal emulator on the console, of
course) I don't get any connection.
I have a feeling that it is a problem with the implementation of
poll_get_char and poll_put_char in the serial driver. Has anyone seen
this type of behaviour? Any ideas on how to fix?