snipped-for-privacy@kapsi.spam.st>> Sim>>> Several pointer variables were defined within main(). Each
As another poster said, be careful whether you are talking about a volatile pointer, or a pointer to volatile (that's what you want here).
With debugging, it often helps to add a few extra volatiles so that you can track them better in the debugger. Another trick is to make a local or file-scope static into a global variable. Also consider adding "noinline" attributes to functions you are particularly interested in.
And when you generate debugging information, gcc can provide different levels of debug symbolic information. With the simpler levels, gdb can't keep track of variables that move around from register to register
- you'll get the wrong information. With the higher levels, it can track variables through multiple registers, or multiple variables in the same register.