Hi Pelles- Community,
hope someone can help me, i've wasted this day on that:
The Problem
This morning i changed some lines of a module (and the depending modules, too). Since that the debugger highlights one line above in the module than it should. Means, at the entry point of a function (entered with F11) the comment line above the header is highlighted. Furthermore nothing works as usual: No variable highlighting, toggling of breakpoints fails. Vice versa i can't set breakpoints in the source or some of them are remarked (and deactivated) as set on unexecutable code at start of debugging.
Strange somehow, this fails only in one module, if i include 3 modules in main Zk.c, D2.c and Global.c, i get a behavior like this: printf("from Zk: %d\n", ZkDummy(6,9)); // works
printf("from d2: %d\n", D2Dummy(3,9)); // works
printf("from global: %d\n",GlobalDummy(5 ,8)); // fails
printf("from Zk: %d\n", ZkDummy(6,9)); // works
printf("from global: %d\n",GlobalDummy(5 ,8)); // fails
printf("from d2: %d\n", D2Dummy(3,9)); // works
But i can't find sth. wrong or critical in that "evil" module. The only obvious difference is that "Global.c" includes a static library (compiled with speed optimization), but this was no problem some source changes before.
The Settings:
- Compiler+Assembler: Full debug code, no optimizations
- Linker with codeview+COFF
What i've tried:
- This problem basically came up with Pelles 5.0.1, i've upgraded to the actual Pelle 6.xx -> No FX
- Rebuilt the project from source -> No FX
- Changed OS (W2K->XP) -> No FX
- Changed PC -> No Fx
- Replayed the source -> the problem disappears -> No Solution
But one change in the globals.c forces 5 .. 50 lines changed in other modules, it's very difficult to get it step by step and i HAVE to change some things in the source.
So, i don't know what's up, is it a bug or my ignorance - i can't debug that module properly, which was emergently needed.
Any hints? Thanks for every little help!
Best regards