(gdb) p i $7 = 0 (gdb) p box[i].p1.x $8 = 0 (gdb) p box[i].p2.x $9 = -128 (gdb) p x1 $10 = 0 (gdb) p x2 $11 = 16777215 Not sure what these values are or whether they should be this way.