From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25188 invoked by alias); 1 Nov 2005 05:39:38 -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 25100 invoked by uid 22791); 1 Nov 2005 05:39:36 -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 05:39:36 +0000 Received: by cgf.cx (Postfix, from userid 201) id E7B6313C743; Tue, 1 Nov 2005 00:39:34 -0500 (EST) Date: Tue, 01 Nov 2005 05:39:00 -0000 From: Christopher Faylor To: gdb@sourceware.org Subject: How does solib handline shared library unloads? Message-ID: <20051101053934.GA15899@trixie.casa.cgf.cx> Mail-Followup-To: gdb@sourceware.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.8i X-SW-Source: 2005-11/txt/msg00002.txt.bz2 Can anyone enlighten me as to how information about a library is relinquished when a library loaded via dlopen is unloaded via dlclose? Theoretically, the information about the library should be removed and the library should not be listed by "info sharedlibrary". I don't see any way for this to be handled in solib.c and inf*.c but I'm sure I'm just missing something obvious. I haven't written a test case yet to see how it is being handled but I was hoping someone could clarify this for me. cgf