A random question, but first...
A quick thank you and congratulations to the development team of this software. I haven't used a Windows IDE in a few years and I had code compiling very quickly. Ease of use is great and everything seems to be where it should.
I have a pretty general question about GDB (windows, 1rc2). I have a set of code from iLBCfreeware.org that I am trying to dissect and make sense out of. I'm watching variables in a certain function and they are behaving...strangely to say the least.
This is kind of a newbie question, so forgive my ignorance. When i push the step into button, it seems like the code is not executing sequentially. This may be due to compiler optimizations (although the only compiler option I have enabled is -g) or some translation going on between the processor and the code, but at this point I'm pretty much clueless. I'm watching variables and many times the correct value will end up in the variable for a line or two, but will then change to garbage after a few more lines have executed. The scary part for me is that the lines executing after the vars have changed depend on the value of the vars.
I guess my question is, does C::B set up a protected memory space for the program it's debugging, or is that set up with Windows, or are other processes altering the memory space? Furthermore, why wouldn't it sequentially? I realize this question may be code specific but I'm not sure I'm allowed to post the code without the permission of Global IP Sound (the developers).
With that in mind, if anyone has insight about how the compiler and debugger work, I could use that to my advantage. My apologies for my ignorance - I'm used to working on microcontrollers.
Thanks in advance
Andrew