From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32044 invoked by alias); 9 Dec 2013 17:08: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 32035 invoked by uid 89); 9 Dec 2013 17:08:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from Unknown (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 09 Dec 2013 17:08:45 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rB9H8bCM003415 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 9 Dec 2013 12:08:37 -0500 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id rB9H8ZEI013262; Mon, 9 Dec 2013 12:08:36 -0500 Message-ID: <52A5F913.1020506@redhat.com> Date: Mon, 09 Dec 2013 17:08:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Joel Brobecker CC: gdb-patches@sourceware.org Subject: Re: [RFA] nameless LOAD_DLL_DEBUG_EVENT causes ntdll.dll to be missing References: <1386070185-8020-1-git-send-email-brobecker@adacore.com> <529E361B.7070807@redhat.com> <20131205105437.GE3175@adacore.com> <52A073CC.3050009@redhat.com> <20131209113333.GC4011@adacore.com> In-Reply-To: <20131209113333.GC4011@adacore.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-12/txt/msg00347.txt.bz2 On 12/09/2013 11:33 AM, Joel Brobecker wrote: > The reason why I think it would be difficult is because, when a new > shared object is loaded, we get a TARGET_WAITKIND_LOADED, which > I think eventually leads us to: > > -> handle_solib_event () > -> solib_add (NULL, 0, ¤t_target, auto_solib_add); > -> update_solib_list (from_tty, target); > > And looking at update_solib_list, it calls current_sos, and then > adds new SOs at the end (via the VEC_push). I see now. You're right. > On top of that, an > easier issue that we'll have to handle in windows-nat the adding > of the new SO at the start of the SO list, rather than then end. Yeah, I naively thought that that would be all we'd have to do. :-) > > Since this is mostly cosmetic and only affects Windows 2012, > I would leave it alone until we have more leeway towards simplifying > the DLL handling. Agreed. -- Pedro Alves