RE: How do I detect when a new thread is created?
"Howell, David P" <[email protected]>
| Newsgroups | gmane.comp.lib.phil |
|---|---|
| Message-ID | <[email protected]> |
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 [email protected] -----Original Message----- From: Roland McGrath [mailto:[email protected]] Sent: Friday, May 30, 2003 6:07 PM To: Carlo Wood Cc: [email protected] 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 the Solaris documentation (go to docs.sun.com and search for thread_db). You want the "event reporting" interface. You can look at the gdb code to see how it does this, but reading that code is probably more confusing that starting with Sun's documentation and then experimenting. It's certainly the case that not everything actually works as that documentation says, but it will tell you where to look at the source and see how much is really there. -- Phil-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/phil-list