I've been following along daily but had no time to actually look at it myself.
This can't seriously be how you intend to debug the whole application. It's just not viable.
This needs to be built with source level debugging one way or another.
It's not viable in the long run but it is the quickest method to get NetSurf up and partially usable. Even if Chris had a better compiler and debugger, his hardware may not be adequate and that takes time to sort out or upgrade.
My suggestion is still to get it building with VBCC so that you can use a source level debugger such as the one in SAS/C.
It couldn't take longer than debugging like this and the final result will be more reliable.
Vbcc has a clear advantage for debugging because BDebug (Barfly package) and CPR (SAS/C) are good debuggers which can be used. Vbcc is not a drop in replacement for GCC though. It is missing some C99 support like inttypes.h which NetSurf is using. I have created and tested an experimental inttypes.h and updated stdint.h which is currently being evaluated by Frank and Volker:
http://www.heywheel.com/matthey/Amiga/new_c_headers.lhaI may have already posted a link to some fixes for the C99 math libs:
http://eab.abime.net/showthread.php?t=74692Vbcc has pretty good C99 support (requires -c99 switch) but it doesn't have all the GCC posix and unix bloat by default. Rather than libnix or the nasty ixemul, Frank's posix.lib is usually used if this functionality is needed. The includes are a bit tricky sometimes but the posix.lib is Amiga friendly and has worked well for me the couple of times I have used it for small projects. It is actively maintained as is vbcc.
http://aminet.net/dev/c/vbcc_PosixLib.lha http://aminet.net/package/dev/c/vbcc_PosixLibIt has some bsdsocket.library functions of which the following is written in the readme,
"Since 2.0 it also includes the most important TCP/IP network functions, which are implemented through bsdsocket.library (only opened when really needed!). The main advantages in combining bsdsocket with PosixLib is the possibility to use a common set of file- and socket-descriptors as well as clean header files which don't conflict with vbcc's standard headers."
I wonder if it would work offline unlike clib? It is probably worth checking out if most of the functions needed in NetSurf are available.
There would be some work involved in compiling also, Vbcc is strict by default about C standards where GCC by default is too sloppy and forgiving. Vbcc will often warn about questionable code that usually should be fixed. Vbcc may not be a quick and easy way to get better Amiga debugging but the support is good

.
@Chris
Is a new version of NetSurf available to test without RectFill?