From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4275 invoked by alias); 1 Nov 2005 18:24:54 -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 4260 invoked by uid 22791); 1 Nov 2005 18:24:51 -0000 Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 01 Nov 2005 18:24:51 +0000 Received: from elgar.sibelius.xs4all.nl (root@elgar.sibelius.xs4all.nl [192.168.0.2]) by sibelius.xs4all.nl (8.13.4/8.13.4) with ESMTP id jA1IOGVj011039; Tue, 1 Nov 2005 19:24:16 +0100 (CET) Received: from elgar.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.13.4/8.13.3) with ESMTP id jA1IOFD5024691; Tue, 1 Nov 2005 19:24:15 +0100 (CET) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.4/8.13.4/Submit) id jA1IOFOZ001619; Tue, 1 Nov 2005 19:24:15 +0100 (CET) Date: Tue, 01 Nov 2005 18:24:00 -0000 Message-Id: <200511011824.jA1IOFOZ001619@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: drow@false.org CC: gdb@sourceware.org In-reply-to: <20051101162437.GA29799@nevyn.them.org> (message from Daniel Jacobowitz on Tue, 1 Nov 2005 11:24:37 -0500) Subject: Re: How does solib handline shared library unloads? 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> <20051101162025.GA16212@trixie.casa.cgf.cx> <20051101162437.GA29799@nevyn.them.org> X-SW-Source: 2005-11/txt/msg00018.txt.bz2 > Date: Tue, 1 Nov 2005 11:24:37 -0500 > From: Daniel Jacobowitz > > On Tue, Nov 01, 2005 at 11:20:25AM -0500, Christopher Faylor wrote: > > 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. > > Yes: those are (were) just used for catch, not for actual shared > library list management. This is bogus; that's the part that ought to > be fixed in core GDB. Indeed, there's quite a bit old cruft in the shared library code. HP-UX doesn't use TARGET_WAITKIND_LOADED anymore, but it seems it is still used for AIX. That said, it defenitely is preferable to have those events instead of overloading the breakpoint mechanism like Linux does. Using shared library breakpoints means that core GDB needs to figure out whether we stopped because of a shared library event or a normal breakpoint. Chris, if your OS can tell you why it stopped, you shouldn't throw away that information. Mark