This is the mail archive of the archer@sourceware.org mailing list for the Archer 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]

Re: plan for python inferiors, threads, and events


On Tuesday 30 December 2008 23:14:15, Paul Pluzhnikov wrote:
> So I figured I'd just ask gdb.threads() for a list of threads, search
> our live threads list for a matching thread, and print its name.

[if/when considering reimplementing a special "info threads" in python is overkill]

Sounds like you wanted a hook similar to target_extra_thread_info, but
in the app/scripting domain.

(gdb) info threads
* 1 Thread 1  main (argc=1, argv=0x...) at foo.c:28
             ^
On some targets/conditions, this can print as:

(gdb) info threads
* 1 Thread 1 (RANDOM_TARGET_INFO_GOES_HERE_COULD_BE_A_THREAD_NAME) main (argc=1, argv=0x...) at foo.c:28

-- 
Pedro Alves


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