Mail Archives: djgpp/2002/09/13/09:59:48
Hi everybody,
I have a major problem here and need your help desperately.
In my application I need to use TCP/IP sockets, so I downloaded and
compiled the WATT-32 library (v.2.1 dev.rel.4)
My platform is DOS, DJGPP 2.03 (gcc 2.95.3), RHIDE 1.4.9.
To test the sockets I simply took the PING.C provided with the library,
compiled and ran it.
When I simply run it from DOS or even from inside RHIDE everything works
OK.
Now, if I set a breakpoint anywhere in the code or try to step through
it and then continue to run the whole PC hangs and cold reboot is
required. The only message that appears on the screen is "Waterloo
TCP/IP setup" meaning that the initialization process of the library has
began.
I've tried compiling it with and without optinization, compiled it with
-g, -ggdb, -gstabs etc.
I tried using RHGDB and GDB 5.1.1 to debug it, all in vain - it still
hangs. Under GDB it hangs as soon as I issue "run" command.
Strange thing happens when stepping in RHIDE environment: the F8 (step
over) does not work at all (at least it should start the program and go
to main() function, but the program hangs momentarily); F7 (trace into)
takes me directly iside the calls of Watt-32 initialization routines
although they are not the first things in the main() function; while
using F7 the program flow is crazy - sometimes it executes the same line
twice, sometimes it even goes back in code where no loops or gotos
present etc.
If anyone has an idea what's going on please give me a hint.
Regards,
Alex Oleynikov
- Raw text -