This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Machine interface


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]