From owner-freebsd-questions@freebsd.org Fri Feb 14 15:14:11 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A566E23832D for ; Fri, 14 Feb 2020 15:14:11 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.netfence.it (net-2-44-121-52.cust.vodafonedsl.it [2.44.121.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mailserver.netfence.it", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48Jxjt4q3Dz3FF3 for ; Fri, 14 Feb 2020 15:14:10 +0000 (UTC) (envelope-from ml@netfence.it) Received: from alamar.ventu (alamar.local.netfence.it [10.1.2.18]) (authenticated bits=0) by soth.netfence.it (8.15.2/8.15.2) with ESMTPSA id 01EFDvDa084734 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO) for ; Fri, 14 Feb 2020 16:14:00 +0100 (CET) (envelope-from ml@netfence.it) X-Authentication-Warning: soth.netfence.it: Host alamar.local.netfence.it [10.1.2.18] claimed to be alamar.ventu Subject: Re: Cannot get remote GDB to work To: freebsd-questions@freebsd.org References: <50a10abf-4873-2acc-4f8b-efb9bddb1194@netfence.it> From: Andrea Venturoli Message-ID: <6cabc27a-81c2-3735-fa24-6f573667211d@netfence.it> Date: Fri, 14 Feb 2020 16:13:57 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <50a10abf-4873-2acc-4f8b-efb9bddb1194@netfence.it> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 48Jxjt4q3Dz3FF3 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=netfence.it; spf=pass (mx1.freebsd.org: domain of ml@netfence.it designates 2.44.121.52 as permitted sender) smtp.mailfrom=ml@netfence.it X-Spamd-Result: default: False [-4.41 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:2.44.121.52]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_NONE(0.00)[]; DMARC_POLICY_ALLOW(-0.50)[netfence.it,none]; IP_SCORE(-1.61)[ip: (-7.94), ipnet: 2.44.0.0/16(-3.97), asn: 30722(3.86), country: IT(0.03)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:30722, ipnet:2.44.0.0/16, country:IT]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Feb 2020 15:14:11 -0000 On 2020-02-11 15:09, Andrea Venturoli wrote: > 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. Sorry, I hate to bump. If no one can help here, can you suggest somewhere else to take this question? bye & Thanks av.