[RFC/WIP PATCH 13/14] Make "thread apply all" only loop over threads in the current set

Eli Zaretskii eliz@gnu.org
Mon Nov 28 18:40:00 GMT 2011


> From: Pedro Alves <pedro@codesourcery.com>
> Date: Mon, 28 Nov 2011 15:40:09 +0000
> 
> This makes "thread apply all" only loop over threads in the current
> set instead of always all threads.  That is,
> 
>   [all]> thread apply all printf "current thread is %d\n", $_thread
> 
>   Thread 3 (Thread 0x7ffff7028700 (LWP 30304)):
>   current thread is 3
> 
>   Thread 2 (Thread 0x7ffff7829700 (LWP 30303)):
>   current thread is 2
> 
>   Thread 1 (Thread 0x7ffff7fcb720 (LWP 30300)):
>   current thread is 1
> 
> vs
> 
>   [all]> [1.1] thread apply all printf "current thread is %d\n", $_thread
> 
>   Thread 1 (Thread 0x7ffff7fcb720 (LWP 30300)):
>   current thread is 1
> 
> 
> I think it might make sense to make "info threads" only list threads
> of the current focus too.  WDYT?

Shouldn't this be under user control?  Or are you sure no one will
ever want to have the former?



More information about the Gdb-patches mailing list