You can store process and thread sets in debugger variables using the set command. For example:
(idb) set $set1 = [:7, 10, 15:20, 30:] (idb) print $set1 [:7, 10, 15:20, 30:]
You can use the print command and show process set commands to inspect the process set stored in a debugger variable.
If you do not specify the set name, or if you specify all, the debugger displays all the process sets that are currently stored in debugger variables, as the continued example shows:
(idb) set $set2 = [8:9, 5:2, 22:27] ‘5:2’ is not a legal process range. Ignored. (idb) show process set $set2 $set2 = [8:9, 22:27] (idb) show process set * $set1 = [:7, 10, 15:20, 30:] $set2 = [8:9, 22:27]
The following example sets a variable, $myset2, to a thread set that includes threads 3, 10-20, 50 and the value of $myset1.
(idb) set $myset2 = t:[3, 10:20, 50:] + $myset1
Copyright © 2001-2011, Intel Corporation. All rights reserved.