Displays the subcommands that you can use. The CLI responds by displaying these four
action subcommands. Do not use other arguments with this option.
Gets the values of one or more type properties. The
other-args argument can include one or more property names. The CLI returns these values in a list, and places them in the same order as the names you enter.
If you use the –all option instead of
object-id, the CLI returns a list containing one (sublist) element for each object.
Sets the values of one or more type properties. The other-args argument contains paired property names and values.
An identifier for an object; for example, 1 represents process 1, and
1.1 represents thread 1 in process 1. If you use the
–all option, the operation is carried out on all objects of this class in the current focus.
The TV::type command lets you examine and set the following type properties and states:
For an enumerated type, a list of {name value} pairs giving the definition of the enumeration. If you apply this to a non-enumerated type, the CLI returns an empty list.
(class/
struct/
union types only). A list of lists that contains descriptions of all the type’s fields. Each sublist contains the following fields:
name is the name of the field.
addressing contains additional addressing information that points to the base of the field.
properties contains an additional list of properties in the following format:
If you use get struct_fields for a type that is not a
class,
struct, or
union, the CLI returns an empty list.
For an array or pointer type, returns the ID of the array member or target of the pointer. If you do not apply a command that uses this argument to one of these types, the CLI returns an empty list.
The following example uses the TV::type properties command to obtain the list of properties. It begins by defining a procedure: