Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Bob Rossi <bob@brasko.net>
To: Nick Roberts <nickrob@snap.net.nz>
Cc: Karganov Konstantin <kostik@ispras.ru>,
	Daniel Jacobowitz <drow@false.org>,
	gdb@sources.redhat.com
Subject: Re: MI usage inside a user-defined commands
Date: Wed, 06 Jul 2005 21:41:00 -0000	[thread overview]
Message-ID: <20050706214139.GB18392@white> (raw)
In-Reply-To: <17100.19602.527071.624058@farnswood.snap.net.nz>

On Thu, Jul 07, 2005 at 09:26:42AM +1200, Nick Roberts wrote:
> 
>  > I mean the "define" feature itself works fine under MI (that is expected), 
>  > but allows only CLI commands inside (that is not expected). From the first 
>  > view it looks like broken CLI-compatibility...
> 
> The manual says:
> 
>   A "user-defined command" is a sequence of GDB commands...
> 
> GDB command implicitly means CLI command.  I guess an equivalent MI command
> could be implemented to execute a sequence of MI commands, but I'm not sure
> that it would be needed.
> 
> I don't know why you expect "define", a CLI command to accept a list of
> MI commands.  Likewise, "source filename" and breakpoint command lists will
> only work with CLI commands.
> 
> What does seem wrong is that MI no longer works properly with queries:
> 
> (gdb) 
> -interpreter-exec console "b asdf"
> &"Function \"asdf\" not defined.\n"
> ~"Breakpoint 2 (asdf) pending.\n"
> ^done
> (gdb) 

I've noticed this. I was going to fix it if I had some time.
It won't work when with overloaded function breakpoints either.

Bob Rossi


  parent reply	other threads:[~2005-07-06 21:41 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-06 12:31 Karganov Konstantin
2005-07-06 13:14 ` Daniel Jacobowitz
2005-07-06 13:46   ` Karganov Konstantin
2005-07-06 13:50     ` Daniel Jacobowitz
2005-07-06 13:57       ` Karganov Konstantin
2005-07-07 12:21       ` Karganov Konstantin
2005-07-07 13:03         ` Daniel Jacobowitz
2005-07-07 14:16           ` Karganov Konstantin
2005-07-07 21:47             ` Nick Roberts
2005-07-06 21:26     ` Nick Roberts
2005-07-06 21:28       ` Daniel Jacobowitz
2005-07-06 22:50         ` Queries in MI [was Re: MI usage inside a user-defined commands] Nick Roberts
2005-07-06 23:06           ` Daniel Jacobowitz
2005-07-06 23:46           ` Bob Rossi
2005-07-07  0:33             ` Queries in MI Nick Roberts
2005-07-07  1:34               ` Bob Rossi
2005-07-07  3:32                 ` Nick Roberts
2005-07-06 21:41       ` Bob Rossi [this message]
2005-07-06 14:02 MI usage inside a user-defined commands Alain Magloire

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=20050706214139.GB18392@white \
    --to=bob@brasko.net \
    --cc=drow@false.org \
    --cc=gdb@sources.redhat.com \
    --cc=kostik@ispras.ru \
    --cc=nickrob@snap.net.nz \
    /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