This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MI usage inside a user-defined commands


On Wed, Jul 06, 2005 at 05:32:22PM +0400, Karganov Konstantin wrote:
> 
> > > It seems that user-defined commands are always parsed by console cmd-line 
> > > interpreter (no matter what interpreter was specified).
> > 
> > Yes, that's correct.  define is a feature of the CLI, not of core GDB.
> > I think this is as designed.
> 
> This looks a little bit strange - when I switch to MI I can use both MI 
> and CLI syntax but suddenly get a error with MI command ("hey! I've just 
> switched to MI mode! what's the..."). 

The ability to use CLI syntax in MI mode is documented in the manual as
an unsupported, transitional feature.  It's for your convenience when
poking at MI by hand - it's not to be used by frontends.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]