Added option to prevent gdb autostart and fix previous tests