Mail Archives: djgpp/1996/12/18/05:37:38
Dear GPP-expert,
A program compiled with the newest version of GNU C for MSDOS returned to
MSDOS before the exit of the program. I started to debug this prgram with
GDB. At this time I have found a trouble spot, but I do not know what is
wrong. The following appears:
1. Running the program under GDB without any breaks: computer hangs
2. Stepping with s to the trouble spot: computer hangs
3. Stepping to the trouble spot (a call to a user defined function) with
s, continuing the execution with stepi executes the program to the
normal exit.
4. Running the program under GDB to a break at the assembler instruction
following the assembler call to the function:
the program returns from the call, so the break will be reached.
Two situations:
a: stepping further with s: program executes to the normal exit.
b: resuming execution by cont: machine hangs.
I hope this sounds familiar to at least one of the experts. Hopefully
someone can give me advise how to find the reason of my original
problem. I can post the code but the code is including some other
functions rather lengthy.
Please respond to my personal email address. Regards, Dik
- Raw text -