dptsets

Shows status of processes and threads in an array of P/T expressions

Format:

dptsets [ ptset_array ] ...

Arguments:

ptset_array

An optional array that indicates the P/T sets that will be shown. An element of the array can be a number or it can be a more complicated P/T expression. For more information, see P/T Set Expressions.

Description:

The dptsets command shows the status of each process and thread in a Tcl array of P/T expressions. These array elements are P/T expressions (see Chapter 4) and the elements' array indices are strings that label each element's section in the output. Using this array syntax is explored in the Examples section.

If you do not use the optional ptset_array argument, the CLI supplies a default array containing all P/T set designators. These designators are error, existent, held, running, stopped, unheld, and watchpoint.

Examples:

The following command displays information about processes and threads in the current focus:

d.1<> dptsets
unheld:
1:    808694    Stopped    [fork_loopSGI]
  1.1:    808694.1    Stopped    PC=0x0d9cae64
  1.2:    808694.2    Stopped    PC=0x0d9cae64
  1.3:    808694.3    Stopped    PC=0x0d9cae64
  1.4:    808694.4    Stopped    PC=0x0d9cae64
  
existent:
1:    808694    Stopped    [fork_loopSGI]
  1.1:    808694.1    Stopped    PC=0x0d9cae64
  1.2:    808694.2    Stopped    PC=0x0d9cae64
  1.3:    808694.3    Stopped    PC=0x0d9cae64
  1.4:    808694.4    Stopped    PC=0x0d9cae64
  
watchpoint:
  
running:
  
held:
  
error:
  
stopped:
1:    808694    Stopped    [fork_loopSGI]
  1.1:    808694.1    Stopped    PC=0x0d9cae64
  1.2:    808694.2    Stopped    PC=0x0d9cae64
  1.3:    808694.3    Stopped    PC=0x0d9cae64
  1.4:    808694.4    Stopped    PC=0x0d9cae64
...

The following example creates a two-element P/T set array, then displays the results. Notice the labels in this example.

d1.<> set set_info(0) breakpoint(1)
breakpoint(1)
d1.<> set set_info(1) stopped(1)
stopped(1)
d1.<> dptsets set_info
0:
1:    892484    Breakpoint  [arraysSGI]
  1.1:    892484.1    Breakpoint  PC=0x10001544, 
[arrays.F#81]
  
1:
1:    892484    Breakpoint  [arraysSGI]
  1.1:    892484.1    Breakpoint  PC=0x10001544, 
[arrays.F#81]

The array index to set_info becomes a label identifying the kind of information being displayed. In contrast, the information within parentheses in the breakpoint and stopped functions identify the arena for which the function will return information.

Using numbers as array indices almost ensures that you will not remember what is being printed. The following almost identical example shows a better way to use these array indices.

d1.<> set set_info(my_breakpoints) breakpoint(1)
breakpoint(1)
d1.<> set set_info(my_stopped) stopped(1)
stopped(1)
d1.<> dptsets set_info
my_stopped:
1:    882547    Breakpoint  [arraysSGI]
  1.1:    882547.1    Breakpoint  PC=0x10001544, 
[arrays.F#81]

my_breakpoints:
1:    882547    Breakpoint  [arraysSGI]
  1.1:    882547.1    Breakpoint  PC=0x10001544, 
[arrays.F#81]

The following commands also create a two-element array. It differs in that the second element is the difference between three P/T sets.

d.1<> set mystat(system) a-gW
d.1<> set mystat(reallystopped) \
        stopped(a)-breakpoint(a)-watchpoint(a)
d.1<> dptsets t mystat 
system: 
Threads in process 1 [regress/fork_loop]: 
1.-1:     21587.[-1]    Running PC=0x3ff805c6998 
1.-2:    21587.[-2]    Running PC=0x3ff805c669c 
... 
Threads in process 2 [regress/fork_loop.1]: 
2.-1:    15224.[-1]    Stopped PC=0x3ff805c6998 
2.-2:     15224.[-2]    Stopped PC=0x3ff805c669c 
... 
    
reallystopped: 
2.2:    15224.2    Stopped PC=0x3ff800d5758 
2.-1:    15224.[-1]    Stopped PC=0x3ff805c6998 
2.-2:    15224.[-2]    Stopped PC=0x3ff805c669c 
... 
 
 
 
 
support@etnus.com
Copyright © 2001, Etnus, LLC. All rights reserved.
Version 5.0