From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17996 invoked by alias); 7 Oct 2005 16:53:03 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 17974 invoked by uid 22791); 7 Oct 2005 16:52:55 -0000 Received: from qnxmail.qnx.com (HELO nimbus.ott.qnx.com) (209.226.137.76) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 07 Oct 2005 16:52:55 +0000 Received: by nimbus.ott.qnx.com with Internet Mail Service (5.5.2653.19) id ; Fri, 7 Oct 2005 12:52:53 -0400 Message-ID: <3518719F06577C4F85DA618E3C37AB9101CFC7EE@nimbus.ott.qnx.com> From: Kris Warkentin To: 'Daniel Jacobowitz' , Stan Shebs Cc: Kris Warkentin , GDB Subject: RE: [RFC] named thread support Date: Fri, 07 Oct 2005 16:53:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-SW-Source: 2005-10/txt/msg00044.txt.bz2 > -----Original Message----- > From: Daniel Jacobowitz [mailto:drow@false.org] > On Thu, Oct 06, 2005 at 11:30:22AM -0700, Stan Shebs wrote: > > Kris Warkentin wrote: > > > > >Would it be of interest to have a generic 'set threadname > > >' that called a target_set_threadname()? I ask > because we're > > >implementing named threads in our kernel but I don't know if many > > >other systems support this. I can always add it to our > backend but if > > >someone else might use it in the future, I can make it general. > > > > This actually was on the wishlist ages ago, ca 1998 or so I think, > > probably connected with eCos plans. Even a target that didn't > > support named threads could still make use of the generic > capability, > > for instance via setup scripts - break at a place known unique to a > > particular thread, get tid, name it, then user and other scripts can > > reliably use the name. > > I find this much more interesting than the way I interpreted Kris's > original question - I don't think many targets will be interested in > propogating the thread name to the target, but more will be interested > in retrieving the thread name from the target, and all will be > interested in user-defined names in the interface. Let's do it! :-) Cool. We're putting another person on our gdb team (Jeff Baker who you might know from the binutils mailing list) so he and I will work on this. Sounds like a fun project. cheers, Kris