On Wednesday 23 August 2006 21:20, Rafael Garabato wrote: > Hello, > > I could compile the kernel 2.6.15.5 for the mac mini, after making a manual > patch. > > What I did was to remove these lines: > > -#ifdef CONFIG_KGDB > - zs_kgdb_hook(0); > -#endif > > that are located in the arch/ppc/platforms/pmac_setup.c file.
Rafael, This looks correct. > > Now I have two problems which someone may have had before: > > The first one is that the network is not up once the message of kgdb > waiting appears. So I remove the kernel parameter kgdbwait and then I > raised the interface manually. When does the kgdb waiting message appear? Before most of the kernel initialization begins (even before the RFS is mounted)? > > > The second problem is that once I connect with gdb to the remote machine > the debugging starts but not as expected. Below is what happens: I believe you used a correct gdb: cross gdb if you ran it on an x86 machine. Seems like it hasn't recognized the word size of ppc here. You'll need to supply vmlinux file to gdb for it to be able to recognize whether it's a 32-bit or a 64-bit ppc. If supplying vmlinux file to gdb doesn't solve this problem, could you send gdb packet dump (run "set debug remote 1" before any other commands are run in gdb; it'll produce huge dumps, though) ? -Amit > > (gdb) target remote udp:172.16.1.241:6443 > warning: The remote protocol may be unreliable over UDP. > warning: Some events may be lost, rendering further debugging impossible. > Remote debugging using udp:172.16.1.241:6443 > Remote packet too long: > 00000001c034de20c02d1aa0000000000000005c0000005e00000001c03ba4a000000006c03 >9000000000001c0037a684450c02400000000000000000000000000000000000000000000000 >00000000000000000c03a0000c0260000c03a000000000009c039b4a0c026000000000001c03 >a0000c039000000000001c039000000000000000000000000000000000000000000000000000 >0000000000000000000000000000000000000000000000000000000000000000000000000000 >0000000000000000000000000000000000000000000000000000000000000000000000000000 >0000000000000000000000000000000000000000000000000000000000000000000000000000 >0000000000000000000000000000000000000000000000000000000000000000000000000000 >0000000000000000000000000000000000000000000000000000000000000000000000000000 >0000000000000000000000000000000000000000000000000000000000000000000000000000 >000000000c0037a3c0002903 Remote packet too long: > 00000001c034de20c02d1aa0000000000000005c0000005e00000001c03ba4a000000006c03 >9000000000001c0037a684450c02400000000000000000000000000000000000000000000000 >00000000000000000c03a0000c0260000c03a000000000009c039b4a0c026000000000001c03 >a0000c039000000000001c039000000000000000000000000000000000000000000000000000 >0000000000000000000000000000000000000000000000000000000000000000000000000000 >0000000000000000000000000000000000000000000000000000000000000000000000000000 >0000000000000000000000000000000000000000000000000000000000000000000000000000 >0000000000000000000000000000000000000000000000000000000000000000000000000000 >0000000000000000000000000000000000000000000000000000000000000000000000000000 >0000000000000000000000000000000000000000000000000000000000000000000000000000 >000000000c0037a3c0002903 Remote packet too long: > 00000001c034de20c02d1aa0000000000000005c0000005e00000001c03ba4a000000006c03 >9000000000001c0037a684450c02400000000000000000000000000000000000000000000000 >00000000000000000c03a0000c0260000c03a000000000009c039b4a0c026000000000001c03 >a0000c039000000000001c039000000000000000000000000000000000000000000000000000 >0000000000000000000000000000000000000000000000000000000000000000000000000000 >0000000000000000000000000000000000000000000000000000000000000000000000000000 >0000000000000000000000000000000000000000000000000000000000000000000000000000 >0000000000000000000000000000000000000000000000000000000000000000000000000000 >0000000000000000000000000000000000000000000000000000000000000000000000000000 >0000000000000000000000000000000000000000000000000000000000000000000000000000 >000000000c0037a3c0002903 Ignoring packet error, continuing... > Remote packet too long: > 00000001c034de20c02d1aa0000000000000005c0000005e00000001c03ba4a000000006c03 >9000000000001c0037a684450c02400000000000000000000000000000000000000000000000 >00000000000000000c03a0000c0260000c03a000000000009c039b4a0c026000000000001c03 >a0000c039000000000001c039000000000000000000000000000000000000000000000000000 >0000000000000000000000000000000000000000000000000000000000000000000000000000 >0000000000000000000000000000000000000000000000000000000000000000000000000000 >0000000000000000000000000000000000000000000000000000000000000000000000000000 >000000000000000000000000000000000000000000000000000000000000000000000---Type > <return> to continue, or q <return> to quit---c > 000000000000000000000000000000000000000000000000000000000000000000000000000 >0000000000000000000000000000000000000000000000000000000000000000000000000000 >00000000000000000c0037a3c0002903 0x00000006 in ?? () > > > Has anyone have these problems before? > > Best regards, > Rafael. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Kgdb-bugreport mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport
