This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: MI output command error
- From: Nick Roberts <nickrob at snap dot net dot nz>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: Dave Korn <dave dot korn at artimi dot com>,Karganov Konstantin <kostik at ispras dot ru>, GDB <gdb at sources dot redhat dot com>
- Date: Sat, 12 Mar 2005 10:03:55 +1300
- Subject: Re: MI output command error
> I'm as mystified as Dave as to how you could read the manual and
> believe GDB/MI was designed to operate synchronously. A number of MI
> commands have documentation that begins with "Asynchronous command." In
> particular, look at -exec-interrupt, which makes no sense as a
> synchronous command.
I think the problem that people like Bob and myself have with this, is that
when GDB is compiled out of the box, it doesn't operate asynchronously. So
if we run GDB using MI, -exec-interrupt *doesn't* interrupt the inferior:
...
^done
(gdb)
111-exec-continue
111^running
(gdb)
222-exec-interrupt
Dave Korn's explanation is very helpful. Considering the MI output to be
asynchronous, makes it much easier to understand. The fact remains, however,
that for native targets at least (the most common configuration?), operation
is synchronous. It leads me to wonder how this discrepancy arises.
Nick