title: gdb debug with more than one argument
body: <p>I have a program that reads one image file, makes some changes on that image and then stores it.</p>
  
  <p>The program runs like this:</p>
  
  <pre><code>./main file1.pgm file2.pgm
  </code></pre>
  
  <p>I'm using the <code>-g</code> flag so I can use GDB.</p>
  
  <p>Now when I try to run GDB like this</p>
  
  <pre><code># gdb main file1.pgm file2.pgm
  </code></pre>
  
  <p>i'm getting this error:</p>
  
  <pre><code>Excess command line arguments ignored. (file2.pgm)
  </code></pre>
  
  <p>How can I solve this?</p>
  
  <p>My main needs those two arguments.</p>