From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16796 invoked by alias); 27 Mar 2015 07:56:13 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 16779 invoked by uid 89); 27 Mar 2015 07:56:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 27 Mar 2015 07:56:11 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id AECCBB0404; Fri, 27 Mar 2015 07:56:10 +0000 (UTC) Received: from localhost.localdomain (ovpn-112-84.ams2.redhat.com [10.36.112.84]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t2R7u8LW001198; Fri, 27 Mar 2015 03:56:09 -0400 Message-ID: <55150D18.6020308@redhat.com> Date: Fri, 27 Mar 2015 07:56:00 -0000 From: Phil Muldoon MIME-Version: 1.0 To: Eli Zaretskii , Jan Kratochvil CC: gdb-patches@sourceware.org Subject: Re: [PATCH 4/4] compile: New 'compile print' References: <20150326205727.28223.54648.stgit@host1.jankratochvil.net> <20150326205752.28223.24230.stgit@host1.jankratochvil.net> <83iodmnc18.fsf@gnu.org> <20150327073333.GA28529@host1.jankratochvil.net> <83d23unazo.fsf@gnu.org> In-Reply-To: <83d23unazo.fsf@gnu.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg00883.txt.bz2 On 27/03/15 07:41, Eli Zaretskii wrote: >> Date: Fri, 27 Mar 2015 08:33:33 +0100 >> From: Jan Kratochvil >> Cc: gdb-patches@sourceware.org, pmuldoon@redhat.com >> >> On Fri, 27 Mar 2015 08:18:43 +0100, Eli Zaretskii wrote: >>> I suggest a different name for this command. Unfortunately, "eval" is >>> already taken, but perhaps "parse" or "parse-eval"? Or maybe a new >>> switch to "print"? "compile print" sounds awkward and unintuitive to >>> me. >> FYI there is already "compile code" and "compile file". > Yes, I know. But this command is different AFAIU: it doesn't compile > any code at all. So prefixing it with "compile" doesn't sound right > to me. It does. It repackages the expression typed by the user into compilable form (with a scope, various bits of stack mapping, address translation, etc), send it to the compiler plugin that compiles it. GDB then runs the code in the inferior and captures the evaluated output and type and prints it. Cheers Phil