Serial consoles and remote GDB

Rob Deker deker at slackdot.org
Sun Aug 29 20:19:43 PDT 2004


On Sun, 2004-08-29 at 18:55, Stephan Uphoff wrote:
> Hi,
> 
> Try the patch from kern/65278
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/65278
> 
Thanks,

 Looks like that did some good (I have my console back now), but when i
either "boot -g" or break into ddb and give it a "gdb" command, then try
and connect gdb to it on the other serial port, gdb seems to not be able
to connect to it (and I consequently have to power cycle the machine to
un-hang it). What I get from gdb is the following:

bash-2.05b$ sudo gdb -k kernel.debug
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or 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.
This GDB was configured as "i386-unknown-freebsd"...
(kgdb) target remote /dev/cuaa4
Remote debugging using /dev/cuaa4
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Couldn't establish connection to remote target
Malformed response to offset query, timeout

thanks for the help,

-d
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20040829/9cdd1d42/attachment.bin


More information about the freebsd-hackers mailing list