title: gdb Cannot find bounds of current function
body: <p>I am developing a OpenGL program using Mingw32 on Windows 10(64 bit)</p>
  
  <p>The program runs without problem</p>
  
  <p>But when I debug my program using gdb, it shows:</p>
  
  <blockquote>
    <p>(gdb) n</p>
    
    <p>0x6a7706f8 in ?? ()
       from C:\Windows\System32\DriverStore\FileRepository\c0310483.inf_amd64_ab6d2afa5c543409\atioglxx.dll</p>
    
    <p>(gdb) n</p>
    
    <p>Cannot find bounds of current function
    (gdb)</p>
  </blockquote>
  
  <p>Here is the code I want to debug</p>
  
  <pre><code>int main() {
  GLFWwindow * window = initGLContext();
  initImGui(window);
  
  int points[8] = { 0 };
  
  GLuint VAO, VBO;
  glGenVertexArrays(1, &amp;VAO); // I set breakpoint here
  glGenBuffers(1, &amp;VBO);
  
  GLShader curveShader("", "", "");
  
  while (!glfwWindowShouldClose(window)) {
      glfwPollEvents();
      useGUI(points);
      render();
      glfwSwapBuffers(window);
  }
  
  ImGui_ImplGlfwGL3_Shutdown();
  ImGui::DestroyContext();
  glfwTerminate();
  
  return 0;
  }
  </code></pre>
  
  <p>please let me know if more info is needed</p>
  
  <p>Thanks in advance</p>
  
  <p>Edited:</p>
  
  <p>It turns out that my program lack the debug information for glGenVertexArrays(),which is offered by atioglxx.dll, so I decide to use printf() instead</p>