From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26603 invoked by alias); 2 Oct 2007 21:52:37 -0000 Received: (qmail 26595 invoked by uid 22791); 2 Oct 2007 21:52:37 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 02 Oct 2007 21:52:35 +0000 Received: (qmail 25364 invoked from network); 2 Oct 2007 21:52:34 -0000 Received: from unknown (HELO localhost) (jimb@127.0.0.2) by mail.codesourcery.com with ESMTPA; 2 Oct 2007 21:52:34 -0000 To: "xchen" Cc: Subject: Re: (Rising Spam Alert)gdbserver can't run over serial References: <20070929080553.740EF13B821@lax-gw04.mroute.net> From: Jim Blandy Date: Tue, 02 Oct 2007 21:52:00 -0000 In-Reply-To: <20070929080553.740EF13B821@lax-gw04.mroute.net> (xchen@sunrisetelecom.com.cn's message of "Sat, 29 Sep 2007 16:06:37 +0800") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-10/txt/msg00027.txt.bz2 "xchen" writes: > This is the initial msg for gdb. Maybe useful. > > (gdb) target remote /dev/ttyS0 > Remote debugging using /dev/ttyS0 > Sending packet: $qSupported#37...Ack > Packet received: > Packet qSupported (supported-packets) is NOT supported No, that's not a problem. The remote protocol specifies that, if a stub receives a packet it doesn't understand, it should send back the empty string as a reply. GDB tries using whatever packets it hopes will work; if the stub says it doesn't understand them, then GDB tries to find other ways to get the job done. So: > Packet qSupported (supported-packets) is NOT supported just means that GDB tried to send a 'qSupported' packet to the stub, but the stub didn't understand it, and GDB has decided not to try that again.