From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16498 invoked by alias); 18 Mar 2005 16:11:48 -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 16308 invoked from network); 18 Mar 2005 16:11:39 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 18 Mar 2005 16:11:39 -0000 Received: from drow by nevyn.them.org with local (Exim 4.44 #1 (Debian)) id 1DCK4M-00074X-Ez; Fri, 18 Mar 2005 11:11:26 -0500 Date: Fri, 18 Mar 2005 16:11:00 -0000 From: Daniel Jacobowitz To: Greg Law , gdb@sources.redhat.com Subject: Re: Machine interface Message-ID: <20050318161126.GA27141@nevyn.them.org> Mail-Followup-To: Greg Law , gdb@sources.redhat.com References: <423AFB39.6050705@level5networks.com> <20050318160536.GA31080@white> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050318160536.GA31080@white> User-Agent: Mutt/1.5.6+20040907i X-SW-Source: 2005-03/txt/msg00187.txt.bz2 On Fri, Mar 18, 2005 at 11:05:36AM -0500, Bob Rossi wrote: > On Fri, Mar 18, 2005 at 04:00:57PM +0000, Greg Law wrote: > > Hi, > > > > I'm trying to find some info on GDB/MI. I've read the info pages. They > > seem to be half finished, and specifically don't talk about one actually > > interfaces with gdb/mi. ie. it doesn't seem to be via stdin of the gdb > > processes (typing -break-point at it causes "unknown command" errors. > > Do I need to open a socket to it or some such? Or do I just have the MI > > syntax wrong? > > If you start GDB on the command line, you can use GDB the same way you > use the CLI, of course with different syntax. > > The documentation for setting breakpoints in MI mode is here, > http://sources.redhat.com/gdb/current/onlinedocs/gdb_25.html#SEC250 > > in particular, try, '-break-insert main' More specifically, Greg, I think you're missing the "-i=mi" option. -- Daniel Jacobowitz CodeSourcery, LLC