delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/23/00:30:17

From: g DOT smith AT chem DOT canterbury DOT ac DOT nz (Greg Smith)
Newsgroups: comp.os.msdos.djgpp
Subject: (Newbie Alert) RHIDE lies in debugging?
Date: Wed, 23 Aug 2000 04:08:03 GMT
Organization: University of Canterbury
Lines: 19
Message-ID: <39a34d59.4345588@news.canterbury.ac.nz>
NNTP-Posting-Host: 132.181.173.156
X-Newsreader: Forte Free Agent 1.21/32.243
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I'm trying to use RHIDE to debug some code for DJGPP which looks a bit
like this:

do{
A
	if(B){
	C
	}
D
}while(E)

What should happen is that when B is true, C is evaluated and makes B
false. So each loop A and D are evaluted once and C is evaluated
sometimes. Now the problem is that sometimes when C should be
evaluated, it isn't and this causes the program to go into an infinite
loop.
Using the debugger to watch B, the problem seems to be that B is true
but C isn't being evaluated. So is RHIDE lying? If it's not what could
be the problem, I'm stumped...

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019