[lkml]   [2010]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: kgdb errors with serial console
Hi Jason,

On Oct 8, 2010, at 2:37 AM, Jason Wessel wrote:

> It would probably also be good to test if the debugger is working at all
> on your serial port.
> Configure the debugger with:
> # echo ttyS2 > /sys/module/kgdboc/parameters/kgdboc
> kgdb: Registered I/O driver kgdboc.
> # echo g > /proc/sysrq-trigger
> SysRq : DEBUG
> And now to exit debugger you must blindly and perfectly type
> $D#44+
> Nothing will be echoed because at this stage the kernel serial polling
> driver would just be collecting characters.
> After typing that the kernel should return back to the running state and
> print something like:
> +$OK#9a#

Cool, I tried all the commands that you suggested and it worked perfectly. I got the same outputs.

So, if I understand correctly, I boot into the kernel without the kgbdwait option, and then manually launch the kgdb and then connect from Eclipse using gdb.

The system waits at the root login prompt.

Just so that I can see some quick results, can you suggest which file I could set a break point into, and monitor the registers and variable states at this stage, i.e. immediately after the root login?

Best regards,


 \ /
  Last update: 2010-10-08 01:11    [W:0.061 / U:9.760 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site