Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Nick Roberts <nick@nick.uklinux.net>
To: Andrew Cagney <ac131313@redhat.com>
Cc: gdb@sources.redhat.com
Subject: Re: GDB/MI
Date: Fri, 21 Feb 2003 20:30:00 -0000	[thread overview]
Message-ID: <15958.35685.52390.938619@nick.uklinux.net> (raw)
In-Reply-To: <3E5585BA.6050409@redhat.com>


> The prompt:
> 
> 	"(gdb)\n"
> 
> indicates that GDB is ready for input.  That prompt terminates every 
> transaction.  It is independant of the console GDB prompt:

It looks very like the console GDB prompt and could cause confusion so perhaps
it could be replaced with something like "(mi)\n".

If "(gdb)\n" is an invariant (the user can't change it) then that would be
fine except that, debugging a program with output I get:

...
(gdb) 
-exec-run
^running
(gdb) 
Enter no. of iterations:

and "(gdb)\n" is output but GDB *not* ready for input, the inferior is. This
is the extra "(gdb)\n" that I talked about earlier with Elena as in:

-exec-run
^running
(gdb) 
*stopped,reason="breakpoint-hit",bkptno="1",thread-id="0",frame={addr="0x0804856c",func="main",args=[{name="argc",value="1"},{name="argv",value="0xbffff7f4"}],file="mytest.c",line="36"}
(gdb) 

According to the current documentation for the GDB/MI Output Syntax
--------------------, the first
"(gdb)\n" should not be output.

> (gdb)
> -interpreter-exec console set prompt foo
> &"Argument required (expression to compute).\n"
> ^error,msg="Argument required (expression to compute)."
> (gdb)
> -interpreter-exec console "set prompt foo"
> ^done
> (gdb)
> -interpreter-exec console "show prompt"
> ~"Gdb's prompt is \"foo\".\n"
> ^done
> (gdb)
> 
> There is a `bug' here - GDB should generate a `=prompt-changed' event.

I can't find any reference to such an event but if MI has its own prompt
then maybe its not needed.

Nick


  reply	other threads:[~2003-02-21 20:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-21  1:20 GDB/MI Nick Roberts
2003-02-21  1:45 ` GDB/MI Andrew Cagney
2003-02-21 20:30   ` Nick Roberts [this message]
2003-02-22 20:02   ` GDB/MI Eli Zaretskii
2003-02-26 15:03     ` GDB/MI Andrew Cagney
     [not found] <1026391983.21348.ezmlm@sources.redhat.com>
2002-07-11 10:47 ` gdb/mi Jim Ingham
  -- strict thread matches above, loose matches on Subject: below --
2002-07-05 13:27 gdb/mi Greg Watson
2002-07-10 14:40 ` gdb/mi Andrew Cagney
2002-07-10 16:10   ` gdb/mi Greg Watson
2002-07-10 16:47     ` gdb/mi Keith Seitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15958.35685.52390.938619@nick.uklinux.net \
    --to=nick@nick.uklinux.net \
    --cc=ac131313@redhat.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox