From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3794 invoked by alias); 1 Nov 2005 16:20:30 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 3428 invoked by uid 22791); 1 Nov 2005 16:20:27 -0000 Received: from c-24-61-23-223.hsd1.ma.comcast.net (HELO cgf.cx) (24.61.23.223) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 01 Nov 2005 16:20:27 +0000 Received: by cgf.cx (Postfix, from userid 201) id ADB8313C743; Tue, 1 Nov 2005 11:20:25 -0500 (EST) Date: Tue, 01 Nov 2005 16:20:00 -0000 From: Christopher Faylor To: gdb@sourceware.org Subject: Re: How does solib handline shared library unloads? Message-ID: <20051101162025.GA16212@trixie.casa.cgf.cx> Mail-Followup-To: gdb@sourceware.org References: <20051101053934.GA15899@trixie.casa.cgf.cx> <200511010658.jA16wZSo023764@elgar.sibelius.xs4all.nl> <20051101134547.GA3098@trixie.casa.cgf.cx> <20051101135142.GA25595@nevyn.them.org> <20051101144032.GC6427@trixie.casa.cgf.cx> <20051101151212.GA27574@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051101151212.GA27574@nevyn.them.org> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-11/txt/msg00013.txt.bz2 On Tue, Nov 01, 2005 at 10:12:12AM -0500, Daniel Jacobowitz wrote: >On Tue, Nov 01, 2005 at 09:40:32AM -0500, Christopher Faylor wrote: >> On Tue, Nov 01, 2005 at 08:51:42AM -0500, Daniel Jacobowitz wrote: >> >On Tue, Nov 01, 2005 at 08:45:47AM -0500, Christopher Faylor wrote: >> >>Is this handled as part of the so breakpoint stuff? I was trying to >> >>avoid implementing that but I will if I have to. >> > >> >Well, that's how we get to solib_add for svr4 targets; but it should >> >work to get there off an explicit DLL unload event, anyway. I think. >> >> Yeah, that's what I did but I think that the more I make the windows >> target work like linux, the less chance there will be that it will get >> out of sync with ongoing development. >> >> So, I might eventually just try to make this work more like linux. > >Well, there's other targets which provide explicit unload notification >(HP/UX; perhaps Symbian someday)... Cygwin sets TARGET_WAITKIND_LOADED when a DLL is loaded but I don't see any corresponding TARGET_WAITKIND_UNLOADED. It doesn't look like TARGET_WAITKIND_LOADED calls solib_add, though. cgf