Date: Tue, 24 Aug 1999 16:20:31 +0100 (BST) From: Matthew Vernon <matthew@debian.org> To: freebsd-questions@freebsd.org Subject: Kernel debugging using remote GDB Message-ID: <Pine.LNX.3.95.990824161542.18255C-100000@aardvark.software.plasmon>
next in thread | raw e-mail | index | archive | help
Hi, I'm trying to get this working over a serial line. I can test the serial line by cat'ing data to and from /dev/cuaa1 on the two machines - transfer is slow, but all the data goes back and forth. Both machines are running the same (stripped) kernel. The debugging machine runs gdb -k kernel in the build directory of the kernel (which was built with config -g) The target machine is booted with the -d flag, and enters the debugger On the debugging box: bash-2.01# gdb -k kernel GDB is free software and you are welcome to distribute copies of it under certain conditions; type "show copying" to see the conditions. There is absolutely no warranty for GDB; type "show warranty" for details. GDB 4.16 (i386-unknown-freebsd), Copyright 1996 Free Software Foundation, Inc... (kgdb) target remote /dev/cuaa1 Remote debugging using /dev/cuaa1 Then, according to the handbook, on the target machine: db> gdb Next trap will enter GDB remote protocol mode db> s At which point, the following occurs on the debugging box: Ignoring packet error, continuing... Ignoring packet error, continuing... Couldn't establish connection to remote target Malformed response to offset query, timeout (kgdb) The target machine hangs at this point, requiring a hard reboot. Any ideas as to why it isn't working??? Thanks, Matthew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.95.990824161542.18255C-100000>