title: gdb not debugging mingw32-g++ compiled code well, but works with g++
body: <p>I have a simple c++ program I'd like to debug with gdb. When I compile it with 
  <code>g++ -g main.cpp -o main.exe</code>
  I can use gdb just fine with the resulting executable. But when I use
  <code>mingw32-g++ -g main.cpp -o main.exe</code>
  gdb says things such as </p>
  
  <blockquote>
    <p>in ?? ()</p>
  </blockquote>
  
  <p>and functionality is limited; I seem to be able to set break points and run the program, but stepping and such yields the message </p>
  
  <blockquote>
    <p>Cannot find bounds of current function</p>
  </blockquote>
  
  <p>As I said, this only happens when compiling with the <code>mingw32-g++</code> executable, and not with the plain <code>g++</code> one.</p>
  
  <p>Why is this, and how can I debug executables created with <code>migw32-g++</code>? Both executables run without issue.</p>
  
  <p><strong>Extra info:</strong></p>
  
  <ul>
  <li>Am on Windows 7.  </li>
  <li>g++ version: 4.8.2 </li>
  <li>mingw32-g++ version: 4.8.1</li>
  <li>gdb version: 7.6.50.[lots of numbers]-cvs</li>
  </ul>
  
  <p>If there's any other info I can provide to help find the issue, just let me know.</p>