From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21331 invoked by alias); 23 Sep 2009 22:43:27 -0000 Received: (qmail 21318 invoked by uid 22791); 23 Sep 2009 22:43:26 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_84 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 23 Sep 2009 22:43:20 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 0CB872BABF0 for ; Wed, 23 Sep 2009 18:43:18 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2p2mnBA+BKCM for ; Wed, 23 Sep 2009 18:43:17 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id C3BE32BABEC for ; Wed, 23 Sep 2009 18:43:17 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id A3767F594B; Wed, 23 Sep 2009 15:43:15 -0700 (PDT) Date: Wed, 23 Sep 2009 22:43:00 -0000 From: Joel Brobecker To: gdb-patches@sourceware.org Subject: [RFA/doco] expand solib_unloaded documentation... Message-ID: <20090923224315.GB5134@adacore.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="SUOF0GtieIMvvwua" Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) 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 X-SW-Source: 2009-09/txt/msg00732.txt.bz2 --SUOF0GtieIMvvwua Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 568 Hello, It turns out from a discussion on when to reset watchpoint expressions that it's important to know when solib_unloaded notifications are sent (either before or after the solib's symbols are unloaded). Right now, the notications are sent before, so this patch documents this fact. 2009-09-23 Joel Brobecker * observer.texi (solib_unloaded): Document explicitly the fact that this observer is called before the associated symbols are unloaded. Tested by rebuilding gdb on x86_64-linux. OK to apply? Thanks, -- Joel --SUOF0GtieIMvvwua Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="solib_unloaded.diff" Content-length: 819 commit 3bfb23d8921e95be5745080b913c0a81be6907fe Author: Joel Brobecker Date: Wed Sep 23 15:39:24 2009 -0700 * observer.texi (solib_unloaded): Document explicitly the fact that this observer is called before the associated symbols are unloaded. diff --git a/gdb/doc/observer.texi b/gdb/doc/observer.texi index 4984f31..77d6b47 100644 --- a/gdb/doc/observer.texi +++ b/gdb/doc/observer.texi @@ -122,6 +122,8 @@ haven't been loaded yet. @deftypefun void solib_unloaded (struct so_list *@var{solib}) The shared library specified by @var{solib} has been unloaded. +Note that when @value{GDBN} calls this observer, the library's +symbols have not been unloaded yet, and thus are still available. @end deftypefun @deftypefun void new_objfile (struct objfile *@var{objfile}) --SUOF0GtieIMvvwua--