This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug mi/8618] Extract the thread name


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]