info locals
i
This command displays all local variables that are accessible in the function corresponding to the current stack frame.
Example 52. info locals
info locals # Display all local variables for the current stack frame