The frame under which the expression should be evaluated can be specified by frame-addr. A '*' indicates that the current frame should be used.

expression is any expression valid on the current language set (must not begin with a '*'), or one of the following:

'*addr', where addr is the address of a memory cell

'*addr-addr' ― a memory address range (TBD)

'$regname' ― a CPU register name

Result

This operation returns the name, number of children and the type of the object created. Type is returned as a string as the ones generated by the GDB CLI:

name="name",numchild="N",type="type"

The -var-delete command

Synopsis

-var-delete name

Deletes a previously created variable object and all of its children.

Returns an error if the object name is not found.

The -var-set-format command

Synopsis

-var-set-format name format-spec

Sets the output format for the value of the object name to be format-spec.

The syntax for the format-specis as follows:

format-spec

{binary decimal hexadecimal octal natural}

The -var-show-format command

Synopsis

-var-show-format name

Returns the format used to display the value of the object name.

format format-spec

The -var-info-num-children command

Synopsis

-var-info-num-children name

21.14 GDB/MI variable objects 357