Debugging with GDB (February 2008)

Table Of Contents
324 Debugging with GDB
The -var-show-format command
Synopsis
-var-show-format name
Returns the format used to display the value of the object name.
format
7→
format-spec
The -var-info-num-children command
Synopsis
-var-info-num-children name
Returns the number of children of a variable object name:
numchild=n
The -var-list-children command
Synopsis
-var-list-children name
Returns a list of the children of the specified variable object:
numchild=n,children={{name=name,
numchild=n,type=type },(repeats N times)}
The -var-info-type command
Synopsis
-var-info-type name
Returns the type of the specified variable name. The type is returned as a string in the
same format as it is output by the GDB CLI:
type=typename
The -var-info-expression command