When I use GDB to debug OpenGL programs, there is a misleading behavior of GDB.
I get a address from glMapBufferARB, the address in GDB shows
$35 = (GLubyte *) 0xb74bb000 <Address 0xb74bb000 out of bounds>
And I can't print its content.
However, I can access its content in my program.
Is the address returned from glMapBufferARB different from ordinary memory address? Why GDB can't access it?