update gitignore and guard for gdb