This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [RFC] named thread support
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: drow at false dot org
- Cc: kewarken at qnx dot com, gdb at sources dot redhat dot com
- Date: Sun, 9 Oct 2005 22:34:41 +0200 (CEST)
- Subject: Re: [RFC] named thread support
- References: <4342B076.3000709@qnx.com> <20051006012139.GA21277@nevyn.them.org>
> Date: Wed, 5 Oct 2005 21:21:39 -0400
> From: Daniel Jacobowitz <drow@false.org>
>
> On Tue, Oct 04, 2005 at 12:40:22PM -0400, Kris Warkentin wrote:
> > Would it be of interest to have a generic 'set threadname <tid> <name>'
> > 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.
>
> So by named thread support, you mean that the application can register
> the name of the thread with the kernel? And you want GDB to be able to
> set thread names?
>
> I recommend doing this in your backend, since I don't know any other
> gdb-supported system with a similar feature.
I think HP-UX allows you to do the same thing, and many user-space
threads implementations allow you to do something very similar.
Mark