Hi,
I am using Visual GDB on Windows for Android dev’t.
It is an OpenGL ES application. I have two C++ functions. The first is setup / initialization. Setting a breakpoint in that code is NOT hit. That’s my problem.
However the second function is the render function, that gets called every frame (30 times a second, lets say). THOSE breakpoints ARE hit.
It seems that it takes a while before GDB / GDBServer wake up and start working properly. I think the application is started and starts running, THEN gdbserver is started? Is that the reason/ problem?
One trick I can do, but it is painful and time consuming, is sleep/lock the android phone, then start the app, then turn unlock the device, which THEN allows the application to start, and THEN my first breakpoint is hit.
What is going on? Is there a better way? Should I put a call to sleep() or something? Or should gdbserver be started sooner?
Thanks.