title: Why does the GDB 'step' command skip struct declarations?
body: <pre><code>int main(void)
  {
      char A[] ='hi';
      struct dayInfo day;
      int x = 1;
  }
  </code></pre>
  
  <p>So in gdb I did</p>
  
  <pre><code>gdb&gt; breakpoint main
  gdb&gt; run
  </code></pre>
  
  <p><strong>output:</strong></p>
  
  <pre><code>Breakpoint 1 , main()  line 1
  
  char A[]= 'hi';
  
  gdb&gt;  step
  </code></pre>
  
  <p><strong>output:</strong></p>
  
  <pre><code>int x = 1;   line 3
  </code></pre>
  
  <p>Q: Just started learning <code>GDB</code> and I don't understand why 'step' command skips to </p>
  
  <pre><code>int x = 1;   line 3.
  </code></pre>
  
  <p>Why is it not <code>struct dayInfo day;</code>?</p>