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] Report the main thread.


On Sat, Apr 26, 2008 at 06:17:09PM +0200, Mark Kettenis wrote:
> > Presently, on Linux, we do add the main thread to the thread list, but we
> > fail to report this new thread to outside world.  I think we should not
> > do any such special-casing -- if we want the =thread-created notification
> > to be usable as replacement for getting the thread, we better emit that
> > for all new thread.
> 
> I disagree.  The "main" thread is not a new thread, but has been there
> all along.  Users would be terribly confused you'd report some sort of
> thread creation event here.

Me too.  We used to report this thread - since we did not detect it
until later, when libthread_db initialized - and I deliberately left
it silent when I fixed that.

-- 
Daniel Jacobowitz
CodeSourcery


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