MI usage inside a user-defined commands

Karganov Konstantin kostik@ispras.ru
Wed Jul 6 13:46:00 GMT 2005


> > 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..."). 

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...

Best regards,
Konstantin.




More information about the Gdb mailing list