From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 126355 invoked by alias); 27 Mar 2015 09:10:48 -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 126334 invoked by uid 89); 27 Mar 2015 09:10:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout28.012.net.il Received: from mtaout28.012.net.il (HELO mtaout28.012.net.il) (80.179.55.184) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 27 Mar 2015 09:10:45 +0000 Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NLV00I00589MA00@mtaout28.012.net.il> for gdb-patches@sourceware.org; Fri, 27 Mar 2015 12:09:22 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NLV00DI45FMK550@mtaout28.012.net.il>; Fri, 27 Mar 2015 12:09:22 +0300 (IDT) Date: Fri, 27 Mar 2015 09:10:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH 4/4] compile: New 'compile print' In-reply-to: <55150D18.6020308@redhat.com> To: Phil Muldoon Cc: jan.kratochvil@redhat.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <838uein6un.fsf@gnu.org> 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> <55150D18.6020308@redhat.com> X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg00885.txt.bz2 > Date: Fri, 27 Mar 2015 07:56:08 +0000 > From: Phil Muldoon > CC: gdb-patches@sourceware.org > > 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. Btw, what does this fact mean for what can and cannot be in the expression? Can it include calls to standard functions? Can it call functions from libraries other than libc? What about functions defined by the inferior?