From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29254 invoked by alias); 14 Nov 2008 17:18:18 -0000 Received: (qmail 29096 invoked by uid 22791); 14 Nov 2008 17:18:17 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 14 Nov 2008 17:17:42 +0000 Received: (qmail 11037 invoked from network); 14 Nov 2008 17:17:40 -0000 Received: from unknown (HELO wind.localnet) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 14 Nov 2008 17:17:40 -0000 From: Vladimir Prus To: Joel Brobecker , Eli Zaretskii Subject: Re: [RFC] Notification for attach/detach. Date: Fri, 14 Nov 2008 19:19:00 -0000 User-Agent: KMail/1.10.90 (Linux/2.6.24-21-generic; KDE/4.1.73; i686; svn-883826; 2008-11-13) Cc: gdb-patches@sources.redhat.com References: <200811122335.01950.vladimir@codesourcery.com> <20081113232313.GQ5112@adacore.com> In-Reply-To: <20081113232313.GQ5112@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811142017.33517.vladimir@codesourcery.com> 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: 2008-11/txt/msg00356.txt.bz2 On Friday 14 November 2008 02:23:13 Joel Brobecker wrote: > > index f76bf9f..cc0eb06 100644 > > --- a/gdb/doc/observer.texi > > +++ b/gdb/doc/observer.texi > > @@ -187,3 +187,13 @@ a pointer to the new architecture. > > The thread's ptid has changed. The @var{old_ptid} parameter specifies > > the old value, and @var{new_ptid} specifies the new value. > > @end deftypefun > > + > > +@deftypefun void new_inferior (int @var{pid}) > > +@value{GDBN} has attached to a new inferior identified by @var{pid}. > > +@end deftypefun > > + > > +@deftypefun void inferior_exit (int @var{pid}) > > +The inferior identified by @var{pid} has either exited, or was detached > > +from. > > +@end deftypefun > > + > > This part should be reviewed by Eli. The documentation for the first > observer looks fine to me, but I find the second one a little awkward. > Perhaps Eli will have another one of his good suggestions. In the > meantime, perhaps the following would do: > > The inferior identified by @var{pid} has exited, or @value{GDBN} > detached from it. Eli, can you comment? Thanks, Volodya