From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28647 invoked by alias); 8 Sep 2003 20:07:19 -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 28638 invoked from network); 8 Sep 2003 20:07:17 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 8 Sep 2003 20:07:17 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 9C2C92B7F; Mon, 8 Sep 2003 16:07:12 -0400 (EDT) Message-ID: <3F5CE170.10001@redhat.com> Date: Mon, 08 Sep 2003 20:07:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jim Blandy Cc: "Manoj Verma, Noida" , gdb@sources.redhat.com, Bob Rossi Subject: Re: Interface to GDB References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-09/txt/msg00106.txt.bz2 > "Manoj Verma, Noida" writes: > >> 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.. > > > I think MI is pretty useable. But for what it's worth, Insight, the > Tcl/Tk-based GUI for GDB, works the way you describe. > > http://sources.redhat.com/insight/ Trying to mimic insight would be asking for trouble. Insight's overreliance on GDB internals means it breaks when ever GDB improves its own design c.f., diassembler cleanups. Remember, part of the long term MI road map is to get it implemented as a thin vineer each command having a 1:1 correspondance to a published interface. Andrew