Compaq AA-RH99A-TE Remote Starter User Manual


 
to the start_address is usually of the form
&arrayname[0].
flags
If the you specify the head flag, the next argument
appears as the table header.
If the you specify the size flag, the next argument
is used as the array element size; otherwise, the size
is calculated from the element type.
If the you specify the cond flag, the next argument
is used as a filter. It is evaluated by dbx for
each array element, and if it evaluates to TRUE,
the action is taken on the element. The same
substitutions that are applied to the command are
applied to the condition.
command
The kdbx or dbx command to perform on each
element of the specified array.
______________________ Note _______________________
The kdbx debugger includes several aliases, such as
file_action, that may be easier to use than using the
array_action extension directly.
Substitutions similar to printf can be performed on the command for each
array element. The possible substitutions are as follows:
Conversion Character
Description
%a
Address of element
%c
Cast of address to pointer to
array element
%i
Index of element within the array
%s
Size of element
%t
Type of pointer to element
For example:
(kdbx) array_action "struct kernargs *" 11 &kernargs[0] p %c.name
0xfffffc00004737f8 = "askme"
0xfffffc0000473800 = "bufpages"
0xfffffc0000473810 = "nbuf"
0xfffffc0000473818 = "memlimit"
0xfffffc0000473828 = "pmap_debug"
Kernel Debugging Utilities 2–17