From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31943 invoked by alias); 6 Sep 2003 14:11:58 -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 31936 invoked from network); 6 Sep 2003 14:11:57 -0000 Received: from unknown (HELO lakemtao02.cox.net) (68.1.17.243) by sources.redhat.com with SMTP; 6 Sep 2003 14:11:57 -0000 Received: from white ([68.9.191.65]) by lakemtao02.cox.net (InterMail vM.5.01.06.04 201-253-122-130-104-20030726) with ESMTP id <20030906141157.DNDE11195.lakemtao02.cox.net@white>; Sat, 6 Sep 2003 10:11:57 -0400 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id: 11:56 -0400 Date: Sat, 06 Sep 2003 14:11:00 -0000 From: Bob Rossi To: "Manoj Verma, Noida" Cc: gdb@sources.redhat.com Subject: Re: Interface to GDB Message-ID: <20030906141156.GA10287@white> Mail-Followup-To: "Manoj Verma, Noida" , gdb@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i X-SW-Source: 2003-09/txt/msg00086.txt.bz2 On Sat, Sep 06, 2003 at 07:27:11PM +0530, Manoj Verma, Noida wrote: > Hi, > I have an IDE running on windows to which I want to attach the GDB debugger > support. > > I have configured the GDB server for the target "arm-linux". > The GDB host is configured on MinGW-Msys environment on windows. > The communication protocol used here is TCP/IP. > > The UI designing part is done, now I want to use GDB as the debugger in the > back end. > > My concern is how do I interface my IDE program with the GDB? > Does GDB makes any standard interfaces available to the external world? > > Thanks & Regards, > Manoj > Every popular front to GDB, that I know of, is a big hack. They literally parse the output of the regular gdb commands. Some of them go as far as to use annotations. http://www.gnu.org/manual/gdb/html_chapter/gdb_21.html#SEC203 This was originally designed to allow Emacs to act as a front end to GDB. Annotations is not the way to go. However, if your front end doesn't use annotations, it probably will not support old GDB versions. However, there is light. Some people working on GDB already designed a new interface to GDB. Its called the machine interface. http://www.gnu.org/manual/gdb/html_chapter/gdb_22.html#SEC216 This is a much better way to go. However, since its new, there may still be bugs, and it will only work with newer GDB's. Good Luck, You will need it. Bob Rossi