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: [RFA] Implement thread death notification.


> We now have the 'thread-created' MI notification. This patch adds a
> 'thread-exited' notification to match. Are non-MI bits of this
> patch OK?

When I suggested this previously, we said:

> > I'm not sure what you mean.  If I run Gdb normally with a multi-threaded
> > application, I get:
> > 
> > [New Thread -1210639472 (LWP 7235)]
> > 
> > when a thread is created and:
> > 
> > [Thread -1210639472 (LWP 7235) exited]
> > 
> > when it is terminated.
>
> At which point, and where in code is that message printed? It is
> printed by linux-thread-db.c:detach_thread, so it's not good for
> generic code. And generic code will hold on to thread until 
> "info thread". It's not very good if you need to issue "info thread"
> to get notifications about exited thread.
> 
> So, thread.c and its interaction with linux-thread-db.c have to
> be fixed.

Does it mean that this has now been fixed?

-- 
Nick                                           http://www.inet.net.nz/~nickrob


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