info members

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

Show/hideSyntax

info members [expression]

Where:

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.

Show/hideExample

Example 53. info members

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

Show/hideSee also

Copyright © 2010-2012 ARM. All rights reserved.ARM DUI 0452J
Non-ConfidentialID051612