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