Next: , Previous: Decide dragon, Up: Analyzing


5.5 GTP and GDB techniques

You can use the Go Text Protocol (see GTP) to determine the statuses of dragons and other information needed for debugging. The GTP command dragon_data P12 will list the dragon data of the dragon at P12 and worm_data will list the worm data; other GTP commands may be useful as well.

You can also conveniently get such information from GDB. A suggested .gdbinit file may be found in See Debugging. Assuming this file is loaded, you can list the dragon data with the command:

     (gdb) dragon P12

Similarly you can get the worm data with worm P12.