You copied the Doc URL to your clipboard.

info members

Displays the name and data types for all class member variables that are accessible in the function corresponding to the selected stack frame.


info members [expression]



Specifies the name of a class member or a C expression that evaluates to a struct, union, or class variable. If no expression is specified. then all members of the current function identified by this pointer are displayed.

Note Using high compiler optimization levels such as -O2 with --debug can produce a less than satisfactory debug view because the mapping of object code to source code is not always clear. If the compiler optimizes away the this pointer, then using the info members command without an expression produces an error.

Example 1-65 Examples

info members                     # Display members for the current function
info members my_Struct[0-9]+     # Display members for matching struct variables