public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jason Wessel <jason.wessel@windriver.com>
To: amruth_pv@yahoo.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: KGDB 2..26 fails to wait while booting
Date: Mon, 18 Aug 2008 10:51:04 -0500	[thread overview]
Message-ID: <48A99A68.6010102@windriver.com> (raw)
In-Reply-To: <966386.75458.qm@web45216.mail.sp1.yahoo.com>


amruth wrote:
> Thanks Jason. I got it working, but is it possible to enable kdb with kgdb. 
> How can I debug the kernel early. In kdb we have option called as kdb=early, can we do the same in kgdb. I tried to set breakpoint in kgdb at start_kernel, it looks like kgdb executed past the start_kernel code.Hence break point does not work.
> Please let me know how to enable debug early kernel option in KGDB. 
>
>   

This is a limitation of the kgdb which in the mainline sources.  The
kgdb core itself can support early debugging.

The kgdboc I/O module does not support early debugging however because
it waits for the tty driver to get setup.  There is an 8250_kgdb kernel
module which supports debugging from an ealier point than the kgdboc
driver but this is not in the main line sources.  You can get it from
the kgdb branch.

IE:

http://git.kernel.org/?p=linux/kernel/git/jwessel/linux-2.6-kgdb.git;a=commitdiff_plain;h=2e92260276c0948e260bb8a8399e20dfb5713f70

and

http://git.kernel.org/?p=linux/kernel/git/jwessel/linux-2.6-kgdb.git;a=commitdiff_plain;h=03e9da089af8813ac1947e5a078906652bd2fbb7

Jason.


      reply	other threads:[~2008-08-18 15:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-15  2:46 KGDB 2..26 fails to wait while booting amruth
2008-08-18 14:05 ` Jason Wessel
2008-08-18 15:36   ` amruth
2008-08-18 15:51     ` Jason Wessel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48A99A68.6010102@windriver.com \
    --to=jason.wessel@windriver.com \
    --cc=amruth_pv@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox