Skip to content

A different KGDB stub

Tom Rini lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6A different KGDB stubMakefile drivers/char/sysrq.c include/linux/debugger.h +8 more+1709 -37 replies
2/6A different KGDB stubdrivers/serial/8250.c drivers/serial/Makefile drivers/serial/kgdb_8250.c +1 more+545 -00 replies
3/6A different KGDB stubdrivers/net/Makefile drivers/net/kgdb_eth.c+164 -00 replies
4/6A different KGDB stubarch/i386/Kconfig arch/i386/kernel/Makefile arch/i386/kernel/entry.S +8 more+588 -130 replies
5/6A different KGDB stubarch/ppc/8260_io/uart.c arch/ppc/Kconfig arch/ppc/kernel/entry.S +13 more+373 -9300 replies
6/6A different KGDB stubarch/x86_64/Kconfig arch/x86_64/kernel/Makefile arch/x86_64/kernel/entry.S +8 more+722 -92 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH][0/6] A different KGDB stub

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...

Signature · 2 lines
Tom Rini
http://gate.crashing.org/~trini/