From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61543 invoked by alias); 27 Mar 2015 10:11:24 -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 60916 invoked by uid 89); 27 Mar 2015 10:11:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.9 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 10:11:23 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id D2CE98E757; Fri, 27 Mar 2015 10:11:21 +0000 (UTC) Received: from host1.jankratochvil.net (ovpn-116-21.ams2.redhat.com [10.36.116.21]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t2RABIGB026305 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 27 Mar 2015 06:11:20 -0400 Date: Fri, 27 Mar 2015 10:11:00 -0000 From: Jan Kratochvil To: Eli Zaretskii Cc: pmuldoon@redhat.com, gdb-patches@sourceware.org Subject: Re: [PATCH 4/4] compile: New 'compile print' Message-ID: <20150327101117.GA3138@host1.jankratochvil.net> 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> <834mp6bw71.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <834mp6bw71.fsf@gnu.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg00892.txt.bz2 On Fri, 27 Mar 2015 10:56:18 +0100, Eli Zaretskii wrote: > Are you sure the last part (calling functions in the inferior) will > work Yes, as 'compile print' is almost the same as 'compile code' and for 'compile code' it is already a part of the gdb.compile/ GDB testsuite. > on all platforms? Won't it need some kind of import library on Windows? I really have no idea(+interest+duties). Have you tried it? > How does the GCC plugin know to resolve the address of the inferior's > functions correctly? compile_object_load() contains relocator for mst_text references. Additionally convert_one_symbol()/convert_symbol_bmsym()/etc. provide symbol addresses during compilation of the module. Some symbol types are resolved that way, other symbols types the other way, it is partially interchangeable. Jan