From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7943 invoked by alias); 10 Oct 2003 19:32:43 -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 7927 invoked from network); 10 Oct 2003 19:32:41 -0000 Received: from unknown (HELO zenia.home) (12.223.225.216) by sources.redhat.com with SMTP; 10 Oct 2003 19:32:41 -0000 Received: by zenia.home (Postfix, from userid 5433) id AE64220766; Fri, 10 Oct 2003 14:31:00 -0500 (EST) To: Andrew Batchelor Cc: GDB Newsgroup Subject: Re: GDB --> Parallel Port --> Target?? References: <1065520908.1048.276.camel@And.Linux> <1065620784.1045.330.camel@And.Linux> <1065804694.1168.9.camel@And.Linux> From: Jim Blandy Date: Fri, 10 Oct 2003 19:32:00 -0000 In-Reply-To: <1065804694.1168.9.camel@And.Linux> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-10/txt/msg00179.txt.bz2 Andrew Batchelor writes: > > 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? Well, they're not protocol converters. They're code that runs on the target, along with your other code. They patch into the trap vectors so that they get control when your program hits a breakpoint, gets a segfault, executes an illegal instruction, etc. When GDB says "continue", they just return from the trap, having frobbed registers and memory however GDB asked. I've never used an RV-ICE before, so I don't really know what sort of interfaces they usually have. Not very helpful, I'm afraid.