Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Thread Names in debugger

Depends on your debugger. I don't think gdb shows thread names itself.
You can try "info threads" command from gdb console to see what info
is shown there

On Thu, Aug 13, 2009 at 5:31 AM, Christoph Mathys<eraserix@xxxxxxxxx> wrote:
> Hello
>
> I wondered if there is some way of naming threads and see those names
> in the debugger. I found some old discussions about this, but they
> have not been of much help.
>
> I'm using cdt 6 on Ubuntu 8.04.
>
> To name the threads, I use prctl(PR_SET_NAME, "asdf"). This works on a
> thread base as I can see using top -p PID and then the command 'H'.
> Sadly, I've no idea how I can this name using gdb or the eclipse
> debugger. Any hints?
>
> Christoph
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>


Back to the top