From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14185 invoked by alias); 10 Oct 2003 16:49:37 -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 14139 invoked from network); 10 Oct 2003 16:49:35 -0000 Received: from unknown (HELO ben.lut.ac.uk) (158.125.1.103) by sources.redhat.com with SMTP; 10 Oct 2003 16:49:35 -0000 Received: from [213.107.116.221] (helo=And.Linux) by ben.lut.ac.uk with esmtp (Exim 4.14) id 1A80SN-0008HI-01; Fri, 10 Oct 2003 17:49:35 +0100 Subject: Re: GDB --> Parallel Port --> Target?? From: Andrew Batchelor To: Jim Blandy Cc: GDB Newsgroup In-Reply-To: References: <1065520908.1048.276.camel@And.Linux> <1065620784.1045.330.camel@And.Linux> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Fri, 10 Oct 2003 16:49:00 -0000 Message-Id: <1065804694.1168.9.camel@And.Linux> Mime-Version: 1.0 X-Spam-Score: -4.5 (----) X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) *1A80SN-0008HI-01*7jlewclinLQ* X-Lboro-Filtered: ben.lut.ac.uk, Fri, 10 Oct 2003 17:49:35 +0100 X-SW-Source: 2003-10/txt/msg00177.txt.bz2 On Wed, 2003-10-08 at 18:53, Jim Blandy wrote: > > I may need to do some protocol conversion from the Remote Serial > > Protocol to something else. > > What kind of agent do you have running on the system being debugged > that will be speaking the protocol with GDB? Er, I'm not wholly sure yet but I think the target is going to be an ARM evaluator board with an RV-ICE. This has its own protocol (RV-MSG) so I'll need to write some sort of protocol converter for GDB. > GDB's protocol looks really hairy, but there are actually only five or > six operations you must implement --- the rest are optional. Those > are: [.....] > You can add more and get better behavior, more features, etc. But the > above are all you need for almost everything --- breakpoints, > backtraces, expression evaluation, and so on. Great - thanks for that. > It's been implemented many times over, and some implementations are > quite small and simple. See the files called *-stub.c in the GDB > source tree. Some of them are out-of-date, and none of them are > really tested or supported, but they'll give you the right idea. Have I understood this correctly? These stub files are mini-protocol converters? For the target or can they be adapted for my RV-ICE? Thanks for your help. Andy