public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
* [Bug mi/8618] Extract the thread name [not found] <bug-8618-4717@http.sourceware.org/bugzilla/> @ 2011-01-11 18:28 ` tromey at redhat dot com 2011-01-19 17:22 ` cvs-commit at gcc dot gnu.org 2011-01-19 17:26 ` tromey at redhat dot com 2 siblings, 0 replies; 10+ messages in thread From: tromey at redhat dot com @ 2011-01-11 18:28 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=8618 Tom Tromey <tromey at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at redhat dot com AssignedTo|unassigned at sourceware |tromey at redhat dot com |dot org | --- Comment #4 from Tom Tromey <tromey at redhat dot com> 2011-01-11 18:28:10 UTC --- (In reply to comment #0) [ -thread-list-ids ] > > If this command could be enhance to provide, current selected thread and thread names, > > that would be perfect. -thread-list-ids is deprecated, you should use -thread-info instead. I am working on a patch to enable thread names. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug mi/8618] Extract the thread name [not found] <bug-8618-4717@http.sourceware.org/bugzilla/> 2011-01-11 18:28 ` [Bug mi/8618] Extract the thread name tromey at redhat dot com @ 2011-01-19 17:22 ` cvs-commit at gcc dot gnu.org 2011-01-19 17:26 ` tromey at redhat dot com 2 siblings, 0 replies; 10+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2011-01-19 17:22 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=8618 --- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2011-01-19 17:21:43 UTC --- CVSROOT: /cvs/src Module name: src Changes by: tromey@sourceware.org 2011-01-19 17:21:39 Modified files: gdb : ChangeLog NEWS gdbthread.h linux-nat.c target.c target.h thread.c gdb/doc : ChangeLog gdb.texinfo gdb/python : py-infthread.c gdb/testsuite : ChangeLog gdb/testsuite/gdb.python: py-infthread.exp gdb/testsuite/gdb.threads: manythreads.exp Log message: gdb PR mi/8618: * thread.c (free_thread): Free 'name'. (print_thread_info): Emit thread name. Change CLI output. (thread_name_command): New function. (do_captured_thread_select): Emit newline. (_initialize_thread): Register 'thread name' command. * target.h (struct target_ops) <to_thread_name>: New field. (target_thread_name): New macro. * target.c (update_current_target): Handle to_thread_name. * python/py-infthread.c (thpy_get_name): New function. (thpy_set_name): Likewise. (thread_object_getset): Add "name". * linux-nat.c (linux_nat_thread_name): New function. (linux_nat_add_target): Set to_thread_name. * gdbthread.h (struct thread_info) <name>: New field. gdb/doc * gdb.texinfo (Threads): Document thread name output and `thread name' command. (Threads In Python): Document Thread.name attribute. (GDB/MI Thread Commands): Document thread attributes. gdb/testsuite * gdb.python/py-infthread.exp: Add thread tests. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.12489&r2=1.12490 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/NEWS.diff?cvsroot=src&r1=1.420&r2=1.421 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/gdbthread.h.diff?cvsroot=src&r1=1.61&r2=1.62 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/linux-nat.c.diff?cvsroot=src&r1=1.192&r2=1.193 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/target.c.diff?cvsroot=src&r1=1.270&r2=1.271 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/target.h.diff?cvsroot=src&r1=1.198&r2=1.199 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/thread.c.diff?cvsroot=src&r1=1.130&r2=1.131 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/ChangeLog.diff?cvsroot=src&r1=1.1142&r2=1.1143 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/gdb.texinfo.diff?cvsroot=src&r1=1.792&r2=1.793 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/python/py-infthread.c.diff?cvsroot=src&r1=1.2&r2=1.3 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.2554&r2=1.2555 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.python/py-infthread.exp.diff?cvsroot=src&r1=1.3&r2=1.4 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.threads/manythreads.exp.diff?cvsroot=src&r1=1.21&r2=1.22 -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug mi/8618] Extract the thread name [not found] <bug-8618-4717@http.sourceware.org/bugzilla/> 2011-01-11 18:28 ` [Bug mi/8618] Extract the thread name tromey at redhat dot com 2011-01-19 17:22 ` cvs-commit at gcc dot gnu.org @ 2011-01-19 17:26 ` tromey at redhat dot com 2 siblings, 0 replies; 10+ messages in thread From: tromey at redhat dot com @ 2011-01-19 17:26 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=8618 Tom Tromey <tromey at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|--- |7.3 --- Comment #6 from Tom Tromey <tromey at redhat dot com> 2011-01-19 17:26:27 UTC --- Fixed. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <20040114185800.8618.alain@qnx.com>]
* [Bug mi/8618] Extract the thread name [not found] <20040114185800.8618.alain@qnx.com> @ 2010-05-11 9:23 ` mjw at redhat dot com 2010-05-11 9:31 ` mjw at redhat dot com ` (5 subsequent siblings) 6 siblings, 0 replies; 10+ messages in thread From: mjw at redhat dot com @ 2010-05-11 9:23 UTC (permalink / raw) To: gdb-prs ------- Additional Comments From mjw at redhat dot com 2010-05-11 09:23 ------- This idea was also mentioned here: http://0pointer.de/blog/projects/name-your-threads.html "So, now go, if you have a project which involves a lot of threads, name them all individually, and make it easier to debug them. What's missing now, of course, is that gdb learns this and shows the comm name when doing info threads." -- What |Removed |Added ---------------------------------------------------------------------------- CC| |mjw at redhat dot com http://sourceware.org/bugzilla/show_bug.cgi?id=8618 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug mi/8618] Extract the thread name [not found] <20040114185800.8618.alain@qnx.com> 2010-05-11 9:23 ` mjw at redhat dot com @ 2010-05-11 9:31 ` mjw at redhat dot com 2010-05-11 10:40 ` scottt dot tw at gmail dot com ` (4 subsequent siblings) 6 siblings, 0 replies; 10+ messages in thread From: mjw at redhat dot com @ 2010-05-11 9:31 UTC (permalink / raw) To: gdb-prs ------- Additional Comments From mjw at redhat dot com 2010-05-11 09:31 ------- Also note that glibc recently got support for getting/setting thread names for Linux threads: http://sourceware.org/git/?p=glibc.git;a=commit;h=86a4c67fb91b82c7b47c115b88ab01b1a696f10f pthread_getname_np () and pthread_setname_np () -- http://sourceware.org/bugzilla/show_bug.cgi?id=8618 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug mi/8618] Extract the thread name [not found] <20040114185800.8618.alain@qnx.com> 2010-05-11 9:23 ` mjw at redhat dot com 2010-05-11 9:31 ` mjw at redhat dot com @ 2010-05-11 10:40 ` scottt dot tw at gmail dot com 2010-05-17 23:00 ` kinetik at flim dot org ` (3 subsequent siblings) 6 siblings, 0 replies; 10+ messages in thread From: scottt dot tw at gmail dot com @ 2010-05-11 10:40 UTC (permalink / raw) To: gdb-prs -- What |Removed |Added ---------------------------------------------------------------------------- CC| |scottt dot tw at gmail dot | |com http://sourceware.org/bugzilla/show_bug.cgi?id=8618 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug mi/8618] Extract the thread name [not found] <20040114185800.8618.alain@qnx.com> ` (2 preceding siblings ...) 2010-05-11 10:40 ` scottt dot tw at gmail dot com @ 2010-05-17 23:00 ` kinetik at flim dot org 2010-05-24 4:52 ` ppluzhnikov at google dot com ` (2 subsequent siblings) 6 siblings, 0 replies; 10+ messages in thread From: kinetik at flim dot org @ 2010-05-17 23:00 UTC (permalink / raw) To: gdb-prs -- What |Removed |Added ---------------------------------------------------------------------------- CC| |kinetik at flim dot org http://sourceware.org/bugzilla/show_bug.cgi?id=8618 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug mi/8618] Extract the thread name [not found] <20040114185800.8618.alain@qnx.com> ` (3 preceding siblings ...) 2010-05-17 23:00 ` kinetik at flim dot org @ 2010-05-24 4:52 ` ppluzhnikov at google dot com 2010-07-12 19:18 ` jan dot kratochvil at redhat dot com 2010-07-31 16:03 ` jan dot kratochvil at redhat dot com 6 siblings, 0 replies; 10+ messages in thread From: ppluzhnikov at google dot com @ 2010-05-24 4:52 UTC (permalink / raw) To: gdb-prs -- What |Removed |Added ---------------------------------------------------------------------------- CC| |ppluzhnikov at google dot | |com http://sourceware.org/bugzilla/show_bug.cgi?id=8618 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug mi/8618] Extract the thread name [not found] <20040114185800.8618.alain@qnx.com> ` (4 preceding siblings ...) 2010-05-24 4:52 ` ppluzhnikov at google dot com @ 2010-07-12 19:18 ` jan dot kratochvil at redhat dot com 2010-07-31 16:03 ` jan dot kratochvil at redhat dot com 6 siblings, 0 replies; 10+ messages in thread From: jan dot kratochvil at redhat dot com @ 2010-07-12 19:18 UTC (permalink / raw) To: gdb-prs -- What |Removed |Added ---------------------------------------------------------------------------- CC| |jan dot kratochvil at redhat | |dot com http://sourceware.org/bugzilla/show_bug.cgi?id=8618 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug mi/8618] Extract the thread name [not found] <20040114185800.8618.alain@qnx.com> ` (5 preceding siblings ...) 2010-07-12 19:18 ` jan dot kratochvil at redhat dot com @ 2010-07-31 16:03 ` jan dot kratochvil at redhat dot com 6 siblings, 0 replies; 10+ messages in thread From: jan dot kratochvil at redhat dot com @ 2010-07-31 16:03 UTC (permalink / raw) To: gdb-prs ------- Additional Comments From jan dot kratochvil at redhat dot com 2010-07-31 16:03 ------- Related patch by Karen Osmond + former mail thread: http://sourceware.org/ml/gdb-patches/2009-06/msg00073.html http://sourceware.org/ml/archer/2008-q4/msg00534.html -- http://sourceware.org/bugzilla/show_bug.cgi?id=8618 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2011-01-19 17:26 UTC | newest] Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-8618-4717@http.sourceware.org/bugzilla/> 2011-01-11 18:28 ` [Bug mi/8618] Extract the thread name tromey at redhat dot com 2011-01-19 17:22 ` cvs-commit at gcc dot gnu.org 2011-01-19 17:26 ` tromey at redhat dot com [not found] <20040114185800.8618.alain@qnx.com> 2010-05-11 9:23 ` mjw at redhat dot com 2010-05-11 9:31 ` mjw at redhat dot com 2010-05-11 10:40 ` scottt dot tw at gmail dot com 2010-05-17 23:00 ` kinetik at flim dot org 2010-05-24 4:52 ` ppluzhnikov at google dot com 2010-07-12 19:18 ` jan dot kratochvil at redhat dot com 2010-07-31 16:03 ` jan dot kratochvil at redhat dot com
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).