add CFLAGS=-g for using gdb
finish reading bitmap