Mail Archives: djgpp/1998/07/22/09:37:37
I've been using djgpp v2.01 with WinNT 4.0 for a while
and found some mysterious problems. None of them is really
critical, but they are annoying and maybe someone knows
how to deal with them.
Here is a little summary:
1) * djgpp compiled program running
* hit Ctrl-C
The probability for normal djgpp behavior is about 10%.
In 90% of the Ctrl-C hits WinNT catches a protection error,
kills the DOS-Window and produces a Dr.Watson message.
I haven't yet found out what causes the 10% of normal behavior.
(Same behavior with your SIGQUIT test code, Eli.)
2) * runtime error in djgpp compiled programs (e.g. NULL pointer
dereference)
The program stops, prints the message "Abort!" in the next line
and returns to the DOS prompt. No stack traceback etc., just "Abort!".
(probably a "feature" of the WinNT DPMI service?)
3) * running gdb
* debugged program has the above runtime error
* run program
Again "Abort!" is printed, and the gdb message is
"Program exited normally" (!!!)
4) * running NC (norton commander, dos version) in a DOS-Window and gdb
(from inside NC).
* run program as above
behavior as in 3.
* enter 'quit'
gdb exits to DOS prompt (NOT to NC) and the working directory changes
to the one before invoking NC.
BTW: gdb reads source files from the directories given with the 'dir'
command (defaults to compile-dir and cwd). Do djgpp executables
contain the compile-dir info? gdb never finds the sources for
programs without explicit 'dir' command. (I haven't tested this with plain DOS.)
I've tried strings on the *.exe file but did't find any directory info.
If you have any hints, questions etc. feel free to contact me by mail.
As I will be on holidays from friday july 24th 12.00 on, messages received
later will not be read until september. I will unsubscribe the mailing list
during holidays to avoid overflowing my mailbox, so
PLEASE MAIL A COPY TO MY PRIVATE MAIL ADDRESS.
Regards, and have a nice summer,
Tony
**************************************************************
Dipl.-Ing. Anton HELM *T* mailto:tony AT nt DOT tuwien DOT ac DOT at
Institut fuer *U* http://www.nt.tuwien.ac.at/~tony/
Nachrichtentechnik und *W* http://www.nt.tuwien.ac.at/
Hochfrequenztechnik *I* talkto:tony AT eagle DOT nt DOT tuwien DOT ac DOT at
Guszhausstr. 25/389 *E* phoneto:+43-1-58801-3520
A-1040 Wien, AUSTRIA *N* faxto:+43-1-5870583
**************************************************************
finger -l tony AT penguin DOT nt DOT tuwien DOT ac DOT at for PGP public key
**************************************************************
- Raw text -