public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH][0/6] A different KGDB stub
@ 2004-02-17 22:02 Tom Rini
  2004-02-17 22:36 ` Andrew Morton
  0 siblings, 1 reply; 15+ messages in thread
From: Tom Rini @ 2004-02-17 22:02 UTC (permalink / raw)
  To: Andrew Morton, Kernel Mailing List

Hi Andrew.  The following is my next attempt at a different KGDB stub
for your tree (and then hopefully into kernel.org).  This is against
2.6.3-rc4 + bk-netdev-rc3 (from your tree), and nothing else.  This has
been tested on PPC32 (KGDB=y/n) and i386 (KGDB=y and allmodconfig) and
not at all on x86_64 (no time to build a toolchain yet).  Since the last
time, I've done the following:
- SysRq-G is always part of SYSRQ && KGDB.
- choice for I/O (8250 serial, kgdboe and PPC 'simple' serial, for now).
- On x86_64 / PPC32, we don't bother with CHK_DEBUGGER, but instead
  always use the arch provided debugger hooks.

Thre are 6 different patches:
core.patch: All of the non-arch specific bits, that aren't drivers.
8250.patch: The i/o driver for KGDB, via a standard PC uart.
kgdboe.patch: The i/o driver for KGDB, via netpoll.
i386.patch: The i386-specific code, tested.
ppc32.patch: The ppc32-specific code, tested.
x86_64.patch: The x86_64-specific bits, untested.

One last note.  For some reason, kgdboe isn't working for me right now.
But it doesn't look like it's something specific to the kgdboe driver
(Dropping in the -mm one and changing names to match still shows it, and
the serial driver is solid) so I'm not sure if it's anything other than
my bad luck today.  So if nothing else, if someone else could give this
a shot and let me know if it works for them...

-- 
Tom Rini
http://gate.crashing.org/~trini/

^ permalink raw reply	[flat|nested] 15+ messages in thread
* [PATCH][0/6] A different KGDB stub
@ 2004-02-12  0:02 Tom Rini
  2004-02-12  0:27 ` Andrew Morton
  0 siblings, 1 reply; 15+ messages in thread
From: Tom Rini @ 2004-02-12  0:02 UTC (permalink / raw)
  To: Andrew Morton, Kernel Mailing List

Hi Andrew.  As a reply to this message, I'm going to send you patches to
replace George's KGDB with a version that is Amit Kale's work, with a
number of additional cleanups (that I'll put in his CVS ASAP).  There
are 6 different patches:
core.patch: All of the non-arch specific bits, that aren't drivers.
8250.patch: The i/o driver for KGDB, via a standard PC uart.
kgdboe.patch: The i/o driver for KGDB, via netpoll.
i386.patch: The i386-specific code, tested.
ppc32.patch: The ppc32-specific code, tested.
x86_64.patch: The x86_64-specific bits, untested.

With this, there's a few design questions I have.  First, as I've done
things right now, a breakpoint at the first line of C code is untested.
It should work, but I have a question of how we want to handle setting
up the pointer to our i/o functions (if we have a pointer).  There's a
couple of ways that this could be solved, with pros and cons.  For
example, if we want to allow for both serial and enet to be used in the
same kernel, we could default to setting this pointer to the 8250
version, and allow for kgdb_arch_init to override (as PPC sometimes
does).  This is what I've done for now, but I don't know if I like how
it looks or not. If we don't care about allowing for > 1 i/o driver, we
can simply drop kgdb_serial as a function pointer and just call
kgdb_getDebugChar/kgdb_putDebugChar/etc.  Or someone else can suggest an
better way.

Next, what features of George's version are a must-have?  And what that
we have now, can we drop?  For example, up until I started working on
kgdboe+netpoll, I found KGBB_CONSOLE quite handy.  Now, I'm very happy
with netconsole, so I don't have a strong attachment to KGDB_CONSOLE
anymore.  But it's not much code anyhow.  And of course, what could be
done better?

-- 
Tom Rini
http://gate.crashing.org/~trini/

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2004-02-19  4:46 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-17 22:02 [PATCH][0/6] A different KGDB stub Tom Rini
2004-02-17 22:36 ` Andrew Morton
2004-02-17 22:52   ` Pavel Machek
2004-02-18  4:56     ` Amit S. Kale
2004-02-18  5:05       ` Andrew Morton
2004-02-18 12:56       ` Pavel Machek
2004-02-18 13:15         ` Amit S. Kale
2004-02-18 18:48           ` Pavel Machek
2004-02-18 18:21       ` Tom Rini
2004-02-19  4:46         ` Amit S. Kale
  -- strict thread matches above, loose matches on Subject: below --
2004-02-12  0:02 Tom Rini
2004-02-12  0:27 ` Andrew Morton
2004-02-12 16:52   ` Tom Rini
2004-02-13 18:58     ` Chris Wright
2004-02-13 19:04       ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox