From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16246 invoked by alias); 23 Jan 2004 23:06:52 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 16237 invoked from network); 23 Jan 2004 23:06:51 -0000 Received: from unknown (HELO mms1.broadcom.com) (63.70.210.58) by sources.redhat.com with SMTP; 23 Jan 2004 23:06:51 -0000 Received: from 63.70.210.1 by mms1.broadcom.com with ESMTP (Broadcom SMTP Relay (MMS v5.6.0)); Fri, 23 Jan 2004 15:06:44 -0800 X-Server-Uuid: 97B92932-364A-4474-92D6-5CFE9C59AD14 Received: from mail-sj1-5.sj.broadcom.com (mail-sj1-5.sj.broadcom.com [10.16.128.236]) by mon-irva-11.broadcom.com (8.9.1/8.9.1) with ESMTP id PAA09834 for ; Fri, 23 Jan 2004 15:06:08 -0800 (PST) Received: from PCSJCASOCONNOR (dhcpe2-sj1-109 [10.16.75.109]) by mail-sj1-5.sj.broadcom.com (8.12.9/8.12.9/SSF) with SMTP id i0NN6gov016987 for ; Fri, 23 Jan 2004 15:06:42 -0800 (PST) From: "Vijay Kamarshi" To: gdb@sources.redhat.com Subject: RE: minimal stub? (GDB Remote Serial Protocol) Date: Fri, 23 Jan 2004 23:06:00 -0000 Message-ID: MIME-Version: 1.0 In-Reply-To: <401188EC.6030407@gnu.org> X-WSS-ID: 6C0F768E2AS1027902-01-01 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2004-01/txt/msg00280.txt.bz2 Hi all, I am planning on using GDB to debug a remote processor running a debug stub. It is quite concerning to me that the remote protocol document is out-of-date. Is it that easy to figure out what the protocol is by experimentation? For example if the GDB host sends a stream of commands to the remote processor and it mis-interprets the first one, is the host not going to just quit on that? That would make the experimentation process pretty long! I am puzzled: 1) are there no people out there who have this protocol figured out? I would appreciate at least a starting point! 2) are all the commands in the remote protocol document out of date or just some of them? Any help would be gratefully received. -Vijay Kamarshi PS: I heard that one way of figuring out this remote protocol is to peer deeply into gdbserver, but people have warned me that it is a pretty hairy piece of code. -----Original Message----- From: gdb-owner@sources.redhat.com [mailto:gdb-owner@sources.redhat.com]On Behalf Of Andrew Cagney Sent: Friday, January 23, 2004 12:50 PM To: N=E9meth M=E1rton Cc: gdb@sources.redhat.com Subject: Re: minimal stub? (GDB Remote Serial Protocol) See: single step `s' packet isn't a requirement http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=3Dview%20audit-trail&data= bas e=3Dgdb&pr=3D1068 for one error. > Where can I have up to date informations? (e.g. which file in the >> gdb source tree) Daniel writes: > Nowhere; you'll just have to experiment. If you would like to report a > minimal set I'll update the documentation. You'll need to start with > '?' definitely. Looks like it (although it is only used once during an entire target session) :-/ Andrew