frame <args> will select a frame on the call stack for inspection
info frame <args> will give you information about a specific frame from the stack. When called without arguments it will display the currently selected frame
info locals can give you information about any local variables on the stack.
just try bt full, and you will get all frames and locals
input frame x, to enter the x frame
by the way, you should know about process address space and what it is composed:
linux virtual address space, this will help you understand how the frame is used.