From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 121681 invoked by alias); 27 Mar 2015 09:56:25 -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 121667 invoked by uid 89); 27 Mar 2015 09:56:25 -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: mtaout25.012.net.il Received: from mtaout25.012.net.il (HELO mtaout25.012.net.il) (80.179.55.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 27 Mar 2015 09:56:23 +0000 Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NLV0040071VMG00@mtaout25.012.net.il> for gdb-patches@sourceware.org; Fri, 27 Mar 2015 12:51:28 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NLV00JZG7DS69A0@mtaout25.012.net.il>; Fri, 27 Mar 2015 12:51:28 +0300 (IDT) Date: Fri, 27 Mar 2015 09:56:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH 4/4] compile: New 'compile print' In-reply-to: <20150327091617.GA1488@host1.jankratochvil.net> To: Jan Kratochvil Cc: pmuldoon@redhat.com, gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <834mp6bw71.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> <838uein6un.fsf@gnu.org> <20150327091617.GA1488@host1.jankratochvil.net> X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg00890.txt.bz2 > Date: Fri, 27 Mar 2015 10:16:17 +0100 > From: Jan Kratochvil > Cc: Phil Muldoon , gdb-patches@sourceware.org > > > Can it include calls to standard functions? Can it call functions from > > libraries other than libc? What about functions defined by the inferior? > > yes, yes (as long as the library is already DT_NEEDEDed or dlopen()ed by the > inferior), yes. Are you sure the last part (calling functions in the inferior) will work on all platforms? How does the GCC plugin know to resolve the address of the inferior's functions correctly? Won't it need some kind of import library on Windows?