title: How do I analyze a program's core dump file with GDB when it has command-line parameters?
body: <p>My program operates like this:</p>
  
  <pre><code>exe -p param1 -i param2 -o param3
  </code></pre>
  
  <p>It crashed and generated a core dump file, <code>core.pid</code>.</p>
  
  <p>I want to analyze the core dump file by</p>
  
  <pre><code>gdb ./exe -p param1 -i param2 -o param3 core.pid
  </code></pre>
  
  <p>But GDB recognizes the parameters of the EXE file as GDB's input.</p>
  
  <p>How do I analyze a core dump file in this situation?</p>