Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Re: MI output command error
@ 2005-03-11 21:05 Nick Roberts
  2005-03-11 21:31 ` Daniel Jacobowitz
  0 siblings, 1 reply; 35+ messages in thread
From: Nick Roberts @ 2005-03-11 21:05 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: Dave Korn, Karganov Konstantin, GDB


> 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


^ permalink raw reply	[flat|nested] 35+ messages in thread
* MI output command error
@ 2005-03-09  2:40 Bob Rossi
  2005-03-09 23:22 ` Bob Rossi
  0 siblings, 1 reply; 35+ messages in thread
From: Bob Rossi @ 2005-03-09  2:40 UTC (permalink / raw)
  To: GDB

Hi,

The doco for -break-watch has,
   (gdb)
   -break-watch x
   ^done,wpt={number="2",exp="x"}
   (gdb)
   -exec-continue
   ^running
   ^done,reason="watchpoint-trigger",wpt={number="2",exp="x"},
   value={old="-268439212",new="55"},
   frame={func="main",args=[],file="recursive2.c",line="5"}
   (gdb)

However, when I run it with GDB from CVS, I get,

   (gdb) 
   -break-watch argc
   ^done,wpt={number="2",exp="argc"}
   (gdb) 
   -exec-continue
   ^running
   (gdb) 
   *stopped,reason="watchpoint-scope",wpnum="2",thread-id="0",frame={addr="0x40039dc9",func="__libc_start_main",args=[],from="/lib/libc.so.6"}
   (gdb) 

The problem is, the -exec-continue command in CVS has an extra '(gdb)'
in it after '^running'. I don't know if the doco or GDB is correct.
I do know that I think GDB is conforming to the MI output command
syntax, even though I think the documentation output looks more correct.

Was the extra "(gdb)" added to make the output command match the syntax?
Is this a bug in the doco or in GDB?

Thanks,
Bob Rossi


^ permalink raw reply	[flat|nested] 35+ messages in thread

end of thread, other threads:[~2005-03-14 19:11 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1110656346.18541.ezmlm@sources.redhat.com>
2005-03-14 19:11 ` MI output command error Jim Ingham
2005-03-11 21:05 Nick Roberts
2005-03-11 21:31 ` Daniel Jacobowitz
2005-03-11 21:36   ` Bob Rossi
2005-03-11 21:39     ` Daniel Jacobowitz
2005-03-11 21:52   ` Nick Roberts
2005-03-12 10:23     ` Eli Zaretskii
2005-03-13  9:36       ` Nick Roberts
2005-03-13 15:40         ` Daniel Jacobowitz
2005-03-13 20:22           ` Nick Roberts
2005-03-13 20:25             ` Daniel Jacobowitz
2005-03-13 23:33               ` Nick Roberts
2005-03-13 23:38                 ` Daniel Jacobowitz
2005-03-13 19:41         ` Eli Zaretskii
2005-03-14  7:16           ` Peter D HUERTER
  -- strict thread matches above, loose matches on Subject: below --
2005-03-09  2:40 Bob Rossi
2005-03-09 23:22 ` Bob Rossi
2005-03-10  9:33   ` Re[2]: " Konstantin Karganov
2005-03-10 13:06     ` Bob Rossi
2005-03-10 13:43       ` Karganov Konstantin
2005-03-10 14:01         ` Bob Rossi
2005-03-10 14:15           ` Karganov Konstantin
2005-03-10 14:40             ` Bob Rossi
2005-03-10 15:13               ` Karganov Konstantin
2005-03-10 15:52               ` Dave Korn
2005-03-10 16:09                 ` 'Bob Rossi'
2005-03-10 16:13                   ` Daniel Jacobowitz
2005-03-10 17:44                     ` Bob Rossi
2005-03-10 17:52                       ` Daniel Jacobowitz
2005-03-10 20:48                         ` Bob Rossi
2005-03-10 21:10                           ` Daniel Jacobowitz
2005-03-10 21:25                             ` Bob Rossi
2005-03-10 16:23                   ` Dave Korn
2005-03-10 16:34                     ` Daniel Jacobowitz
2005-03-10 16:48                       ` Dave Korn
2005-03-10 17:03                         ` 'Bob Rossi'

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox