This target starts qemu in Debug-Mode and GDB. There is a GDB-Script file script.gdb which is extensible to match your debugging needs.