All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Amit S. Kale" <akale@veritas.com>
To: Brent Baccala <baccala@freesoft.org>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: kernel gdb for intel
Date: Thu, 02 Aug 2001 17:04:04 +0530	[thread overview]
Message-ID: <3B693AAC.369E0D22@veritas.com> (raw)
In-Reply-To: <3B68FADE.DBABBE85@freesoft.org>

Hi Brent,

You can have a look at http://kgdb.sourceforge.net/
That's where I maintain kgdb for x86.
It's many more features and lot of documentation which is
not there in sparc and ppc kgdbs.

Brent Baccala wrote:
> 
> Hi -
> 
> I've been trying to track down a problem I've had with a USB CD-Burner
> locking up.  In the course of my investigations I ported the i386 remote
> gdb stuff to the Linux kernel, because I'm used to using gdb on the
> kernel (it works on SPARC and PPC) instead of trying to read oopses.
> 
> For those not familiar with the remote debug feature, you use two
> computers, connected together with a null modem serial line.  One
> computer has a complete Linux kernel tree on it, compiled with debugging
> information (-g); the other computer is the one running the kernel under
> test.  You can breakpoint and halt the kernel, which puts it in a tight
> little loop reading packets (gdb, not IP) from the serial port and
> responding to the debugger.  You get almost all the features you're used
> to with gdb - stack backtraces, single stepping, source-based variable
> names, intelligent structure decodes, etc.
> 
> Anyway, I'm attaching the patch (against 2.4.6).  After installing, a
> menu option appears under "Kernel hacking" for remote debugging.
> Recompile the whole kernel (make clean) so that it compiles with
> debugging info.  Then supply the "kgdb" switch to the kernel command
> line, make sure the debugging computer is attached on COM1 (or whatever
> you want to call it), and run "target remote /dev/whatever" on the
> debugging computer.  See arch/i386/kernel/stub-i386.c for more info.
> 


-- 
Amit Kale
Veritas Software ( http://www.veritas.com )

  reply	other threads:[~2001-08-02 11:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-02  7:01 kernel gdb for intel Brent Baccala
2001-08-02 11:34 ` Amit S. Kale [this message]
     [not found] <no.id>
2001-08-02 14:35 ` Alan Cox
2001-08-03 10:07   ` Amit S. Kale
2001-08-03 11:54 ` Alan Cox

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=3B693AAC.369E0D22@veritas.com \
    --to=akale@veritas.com \
    --cc=baccala@freesoft.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.