This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Machine interface
- From: Bob Rossi <bob at brasko dot net>
- To: Greg Law <glaw at level5networks dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 18 Mar 2005 11:05:36 -0500
- Subject: Re: Machine interface
- References: <423AFB39.6050705@level5networks.com>
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'
Bob Rossi