From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6198 invoked by alias); 17 Dec 2014 19:18:06 -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 6186 invoked by uid 89); 17 Dec 2014 19:18:06 -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; Wed, 17 Dec 2014 19:18:05 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sBHJI0SK020486 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 17 Dec 2014 14:18:00 -0500 Received: from host2.jankratochvil.net (ovpn-116-142.ams2.redhat.com [10.36.116.142]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sBHJHuA3020154 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 17 Dec 2014 14:17:59 -0500 Date: Wed, 17 Dec 2014 19:18:00 -0000 From: Jan Kratochvil To: Eli Zaretskii Cc: brobecker@adacore.com, yao@codesourcery.com, gdb-patches@sourceware.org, ktietz@redhat.com Subject: Re: [patch] compile: Fix MinGW build [Re: [mingw rfc] Add mkdtemp to gdb/gnulib/] Message-ID: <20141217191755.GE21574@host2.jankratochvil.net> References: <87a92pvc0w.fsf@codesourcery.com> <20141215124358.GU5457@adacore.com> <20141215171225.GA19674@host2.jankratochvil.net> <20141215181449.GA5457@adacore.com> <20141215182057.GA22226@host2.jankratochvil.net> <20141215183554.GB5457@adacore.com> <20141215184014.GA22610@host2.jankratochvil.net> <83y4q8wxk7.fsf@gnu.org> <20141215222801.GA28138@host2.jankratochvil.net> <83vblcw9hw.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83vblcw9hw.fsf@gnu.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00496.txt.bz2 On Tue, 16 Dec 2014 04:37:15 +0100, Eli Zaretskii wrote: > > default_infcall_mmap: > > error (_("This target does not support inferior memory allocation by mmap.")); > > > > As currently there is only: > > > > linux-tdep.c: > > set_gdbarch_infcall_mmap (gdbarch, linux_infcall_mmap); > > Why is mmap needed here? The project obviously needs something like: (gdb) call dlopen("just compile piece of code.so"); But as dlopen() is intrusive to the inferior Tom decided it is better to do much less intrusive (gdb) print mmap(...) instead and reimplement what inferior dlopen() does in gdb/compile/compile-object-load.c - which is being done. Without mmap() there is nowhere to load the compiled code at. Jan