From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11892 invoked by alias); 17 Dec 2014 19:31:31 -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 11882 invoked by uid 89); 17 Dec 2014 19:31:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout20.012.net.il Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 17 Dec 2014 19:31:28 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NGQ00F00RJ7O600@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Wed, 17 Dec 2014 21:31:25 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NGQ00FIXRKDEZ80@a-mtaout20.012.net.il>; Wed, 17 Dec 2014 21:31:25 +0200 (IST) Date: Wed, 17 Dec 2014 19:31:00 -0000 From: Eli Zaretskii Subject: Re: [patch] compile: Fix MinGW build [Re: [mingw rfc] Add mkdtemp to gdb/gnulib/] In-reply-to: <20141217191755.GE21574@host2.jankratochvil.net> To: Jan Kratochvil Cc: brobecker@adacore.com, yao@codesourcery.com, gdb-patches@sourceware.org, ktietz@redhat.com Reply-to: Eli Zaretskii Message-id: <83r3vyul89.fsf@gnu.org> 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> <20141217191755.GE21574@host2.jankratochvil.net> X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00497.txt.bz2 > Date: Wed, 17 Dec 2014 20:17:55 +0100 > From: Jan Kratochvil > Cc: brobecker@adacore.com, yao@codesourcery.com, gdb-patches@sourceware.org, > ktietz@redhat.com > > > > 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. Why is dlopen "intrusive"? ISTM that using the Windows equivalent of dlopen is exactly the right thing here.