This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Notification for attach/detach.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]