If you're looking to debug your PS2 applications you're going to need a debugger. The Insight debugger comes with cygwin and can be seen by typing 'gdb' at the cygwin bash shell. The default version is configured to debug cygwin applications on a intel environment. You need to recompile Insight to target the mips architecture to debug PS2.
Note This procedure is only going to be of use if you are working on building PSX or PS2 stubs for the debugger. When the remote stubs are complete this will become a very powerful tool to help build PS2 applications.
You can download Insight sources from ftp://mirrors.rcm.net/sources.redhat.com/gdb/releases/insight-5.0.tar.gz
Note Source file is 18meg so if you're on a modem be prepared to wait.
- Save the archive to your cygwin home directory. (eg. /home/administrator ) and then extract the file.
>gzip -d insight-5.0.tar.gz
>tar -xf insight-5.0.tar
- This will create a directory called 'insight-5.0'. Enter that directory and configure and compile the sources.
>cd insight-5.0
>CC='gcc -mwin32' ./configure --target=mipsel-elfl --prefix=/home/administrator/insight
>make
>make install
Note The configure line must begin with CC='gcc -mwin32' on a cygwin installation only.
Note If you want to work on PSX, not PS2. Set the target as mipsel-ecoff (eg --target=mipsel-ecoff ).
As normal the configure step will take a short while. The make step will take a lot longer. The install step will be over before you know it! :)