I know you can print an array in gdb , e.g.
(gdb) p *array@10
Is there a gdb command that can tell you its length, e.g. a handy shortcut to typing something like:
(gdb) p sizeof(array)/sizeof(int)
In the case where the array has been defined at compile time and you want to check it