From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11102 invoked by alias); 12 Mar 2005 00:05:11 -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 10926 invoked from network); 12 Mar 2005 00:04:39 -0000 Received: from unknown (HELO lakermmtao10.cox.net) (68.230.240.29) by sourceware.org with SMTP; 12 Mar 2005 00:04:39 -0000 Received: from white ([68.9.64.121]) by lakermmtao10.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050312000435.QYCR29924.lakermmtao10.cox.net@white>; Fri, 11 Mar 2005 19:04:35 -0500 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 1D9u7R-0004WB-00; Fri, 11 Mar 2005 19:04:37 -0500 Date: Sat, 12 Mar 2005 00:05:00 -0000 From: Bob Rossi To: Bhanu Nagendra Pisupati Cc: gdb@sources.redhat.com Subject: Re: MI starting guide Message-ID: <20050312000437.GA17327@white> Mail-Followup-To: Bhanu Nagendra Pisupati , 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: 2005-03/txt/msg00132.txt.bz2 On Fri, Mar 11, 2005 at 06:48:27PM -0500, Bhanu Nagendra Pisupati wrote: > Hello, > I have looked around for documentation to help me get started with using > the GDB/MI interface. I found material that described the interface in > general (command interface/ usage scenarios etc), but failed to address > some basic questions (that might have been considered trivial). For one, > how does a user process wanting to interact with GDB using the MI do so > (pipes?). Any 'hello world' document that walks me through a basic session > would be greatly useful. Please let me know if there is one I can refer > to. There is no user document that I know of that describes how to write an FE on top of GDB using the MI interface besides the manual. AFAIK, FE's use fork/exec with GDB and communicate with it over a pipe like you suggested. Beware, some of the MI commands that the manual says are there are unimplemented. If you want to see some interaction between GDB and another process look at the gdb.mi testsuite. Bob Rossi