From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12793 invoked by alias); 6 Jul 2005 13:46:45 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 12746 invoked by uid 22791); 6 Jul 2005 13:46:37 -0000 Received: from pluton.ispras.ru (HELO pluton.ispras.ru) (83.149.199.253) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Wed, 06 Jul 2005 13:46:37 +0000 Received: (qmail 85659 invoked from network); 6 Jul 2005 13:41:18 -0000 Received: from unknown (HELO truba.ispras.ru) (83.149.198.41) by pluton.ispras.ru with SMTP; 6 Jul 2005 13:41:18 -0000 Received: from truba.ispras.ru (root@localhost) by truba.ispras.ru (8.13.1/8.13.1) with SMTP id j66DR46M001109 for ; Wed, 6 Jul 2005 17:27:04 +0400 Received: from ispserv.ispras.ru (ispserv [83.149.198.72]) by truba.ispras.ru (8.13.1/8.13.1) with ESMTP id j66DR4PO001099; Wed, 6 Jul 2005 17:27:04 +0400 Received: from ispserv.ispras.ru (localhost [127.0.0.1]) by ispserv.ispras.ru (8.12.8/8.12.8) with ESMTP id j66DWNDA022254; Wed, 6 Jul 2005 17:32:23 +0400 Received: from localhost (kostik@localhost) by ispserv.ispras.ru (8.12.8/8.12.8/Submit) with ESMTP id j66DWMxx022250; Wed, 6 Jul 2005 17:32:22 +0400 Date: Wed, 06 Jul 2005 13:46:00 -0000 From: Karganov Konstantin To: Daniel Jacobowitz cc: gdb@sources.redhat.com Subject: Re: MI usage inside a user-defined commands In-Reply-To: <20050706131413.GA24446@nevyn.them.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SpamTest-Version: SMTP-Filter Version 2.0.0 [0125], KAS/Release SMTP-Filter Version 2.0.0 [0125], KAS/Release X-Spamtest-Info: Pass through X-SW-Source: 2005-07/txt/msg00038.txt.bz2 > > 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.