From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9150 invoked by alias); 7 Sep 2003 10:23:45 -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 9135 invoked from network); 7 Sep 2003 10:23:43 -0000 Received: from unknown (HELO ngate.noida.hcltech.com) (202.54.110.230) by sources.redhat.com with SMTP; 7 Sep 2003 10:23:43 -0000 Received: from exch-01.noida.hcltech.com (exch-01 [204.160.254.29]) by ngate.noida.hcltech.com (8.12.8/8.12.8) with ESMTP id h87Ac3to006800; Sun, 7 Sep 2003 16:08:05 +0530 Received: by exch-01.noida.hcltech.com with Internet Mail Service (5.5.2656.59) id ; Sun, 7 Sep 2003 15:52:34 +0530 Message-ID: From: "Manoj Verma, Noida" To: gdb@sources.redhat.com Cc: Bob Rossi Subject: RE: Interface to GDB Date: Sun, 07 Sep 2003 10:23:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" X-SW-Source: 2003-09/txt/msg00095.txt.bz2 If that is the case, just for an idea ......... is it possible if I somehow bypass the CLI related code from the GDB source code and call the basic functions like set_breakpoint(), remove_breakpoint() etc..etc.. from my IDE code.. If any one has done similar things, pl. provide some guidance.. Thanks -----Original Message----- From: Bob Rossi [mailto:bob@brasko.net] Sent: Saturday, September 06, 2003 7:42 PM To: Manoj Verma, Noida Cc: gdb@sources.redhat.com Subject: Re: Interface to GDB 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