scripts/gdb: support !CONFIG_MODULES gracefully