Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Feb 2020 15:09:13 +0100
From:      Andrea Venturoli <ml@netfence.it>
To:        freebsd-questions@freebsd.org
Subject:   Cannot get remote GDB to work
Message-ID:  <50a10abf-4873-2acc-4f8b-efb9bddb1194@netfence.it>

next in thread | raw e-mail | index | archive | help
Hello.

I'm trying to debug through a serial cable, as described in:
> https://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug-online-gdb.html

I followed the instruction (I believe correctly), but when I issue 
"target remote /dev/cuau0", I get:

> Remote debugging using /dev/cuau0
> Ignoring packet error, continuing...
> warning: unrecognized item "timeout" in "qSupported" response
> Ignoring packet error, continuing...
> Remote replied unexpectedly to 'vMustReplyEmpty': timeout



I tried launching "cu -l /dev/cuau0" on both sides: I can correctly see 
what I type in the debugging terminal appear on the host's screen, but 
not vice versa.
This starts working again, when I remove flags 0x80 from 
hint.uart.0.flags and change it back to 0x10 (default).


Any hint?

  bye & Thanks
	av.

P.S. Both machines are physical (no virtualization here), both are 
12.1/amd64 and both serial ports are dumb old style serial ports.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50a10abf-4873-2acc-4f8b-efb9bddb1194>