When stopped at a breakpoint, does gdb have a command that prints how many frames are there on the call stack for the current thread?
Presently, I do bt to print the entire backtrace for the thread, and then count the number of frames manually. I am guessing gdb has a command to do this, I just could not find it.