Date: Wed, 18 Dec 1996 11:29:54 +0100 (MET) From: dik kettenis Subject: A problem for gurus, I guess To: djgpp AT delorie DOT com Message-id: MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT 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