Compiling with -Ox (x > 0) changes the layout of the symbols in the memory. If you want to access a structure field, refer to it explicitly in the probe argument.