to find the offset of "map" in the structure "DIB", type to gdb: p &((struct DIB*)0)->map