From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27876 invoked by alias); 27 Aug 2002 22:16:54 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 27867 invoked from network); 27 Aug 2002 22:16:53 -0000 Received: from unknown (HELO valrhona.uglyboxes.com) (64.1.192.220) by sources.redhat.com with SMTP; 27 Aug 2002 22:16:53 -0000 Received: from localhost.localdomain (IDENT:leY1cW4aMYq204z2nB9+lUkNR/dAzQfW@localhost.localdomain [127.0.0.1]) by valrhona.uglyboxes.com (8.11.6/8.11.6) with ESMTP id g7RMJXv23772; Tue, 27 Aug 2002 15:19:34 -0700 Date: Tue, 27 Aug 2002 15:19:00 -0000 From: Keith Seitz X-X-Sender: keiths@valrhona.uglyboxes.com To: Michael Snyder cc: gdb-patches@sources.redhat.com Subject: Re: [RFC] Interpreters (~final) (fwd) In-Reply-To: <3D6BF434.B9D4C62D@redhat.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-08/txt/msg00918.txt.bz2 On Tue, 27 Aug 2002, Michael Snyder wrote: > I'm not sure whose domain this is. /me lacks context. > What is it we're trying to do here? Provide replacements > to the CLI interpreter? Lash an extension language into gdb? > Excuse my ignorance, I haven't followed the conversation > too closely. No problem, let me explain what this all does and where it all comes from. Much of this code comes originally from Jim Ingham at Apple. Like us, they wanted to address the lack of a command-line pass-through in MI, i.e., they want a console window like Insight's, one which can execute CLI commands in the MI interpreter. Jim's original patch included the ability to do switch interpreters at runtime. I have (temporarily) removed that, so that it stays static. But the useful bit is that one can execute a command in another interpreter. For example, on my interps branch, one can use the "interpreter-exec" MI command to run a CLI command: (gdb) -interpreter-exec console "break main" ~"Breakpoint 3 at 0x8074fc6: file ../../src/gdb/main.c, line 743.\n" =breakpoint-create,number="3" ^done (gdb) Note that the CLI output is properly encapsulated for MI. This all mainly exists for MI, but it could be used, for example, by Insight, too, although no one has attempted that. If there is anything specific you want to know, by all means, ask away. (Thanks for the look!) Keith