kgdb/Sandpoint -- patch & help needed
From: Alex Shnitman <hidden>
Date: 2000-09-18 14:16:27
Attachments
- kgdb-patch.gz [application/octet-stream] 11070 bytes
- config-kgdb [text/plain] 7862 bytes · preview
From: Alex Shnitman <hidden>
Date: 2000-09-18 14:16:27
Hi, Could somebody help me get kgdb working on this platform? I'm totally stuck with this problem of stuff crashing on my Sandpoint, and there's no way I could do anything about it without a debugger. Here are my humble attempts. Basically there's already support for kgdb on the ppc, but not for Sandpoint specifically. getDebugChar and putDebugChar are defined for the 8xx UART, but the Sandpoint uses the standard 16650 UART. So I took the i386 kgdb patch and took out the parts that I need from it -- gdbserial.c, some Makefile diffs, and some changes in serial.c and main.c (left as is from the i386 patch, I just changed #ifdef CONFIG_X86_REMOTE_DEBUG to CONFIG_KGDB). For the rest of the stuff (traps, stub) I rely on the existing kgdb support that's in the ppc tree already. However, with this patch the kernel hangs right after saying "Now booting the kernel". I don't even see how these changes could affect the boot process so early. I'm attaching the patch. It's against Mark's latest 2.4.0-test2 snapshot (that's in Area51 on ftp.mvista.com). Could someone please look at it and see what I did wrong and why it doesn't work? Thanks a lot in advance! (I'm also attaching the .config that I'm using, for what it's worth.) -- Alex Shnitman | http://www.debian.org alexsh@hectic.net, alexsh@linux.org.il +----------------------- http://alexsh.hectic.net UIN 188956 PGP key on web page E1 F2 7B 6C A0 31 80 28 63 B8 02 BA 65 C7 8B BA A bit of irony for you: Bill Gates claims to be trying to make a stable operating system, while Linus Torvalds claims to be trying to take over the world. -- Ernie Miller