[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: How do I detect when a new thread is created?

Roland's approach worked for me in a project where I had to change/use
Libthread_db. I used the Solaris 8 online pages, look up td_ta_event_*
And td_thr_event_* for the enable/getmsg, td_[ta|thr]_set_event(),
td_[ta|thr]_clear_event(), and td_[ta|thr]_event_getmsg() APIs.

Dave Howell

These are my opinions and not official opinions of Intel Corp.

David Howell
Intel Corporation
Telco Server Development
Server Products Division
Voice: (803) 461-6112  Fax: (803) 461-6292

Intel Corporation
Columbia Design Center, CBA-2
250 Berryhill Road, Suite 100
Columbia, SC 29210

david p howell intel com

-----Original Message-----
From: Roland McGrath [mailto:roland redhat com] 
Sent: Friday, May 30, 2003 6:07 PM
To: Carlo Wood
Cc: phil-list redhat com
Subject: Re: How do I detect when a new thread is created?

The thread_db interface is modelled closely on the Solaris interface,
though it doesn't match exactly.  The best documentation available is
Solaris documentation (go to docs.sun.com and search for thread_db).
want the "event reporting" interface.  You can look at the gdb code to
how it does this, but reading that code is probably more confusing that
starting with Sun's documentation and then experimenting.  It's
the case that not everything actually works as that documentation says,
it will tell you where to look at the source and see how much is really

Phil-list mailing list
Phil-list redhat com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]