From: "Andrew Davidson" Newsgroups: comp.os.msdos.djgpp Subject: Re: Setting breakpoints on variable values in Rhide? Date: Tue, 11 May 1999 16:06:21 +0100 Organization: Customer of Planet Online Message-ID: <7h9njo$3kk$1@news6.svr.pol.co.uk> References: NNTP-Posting-Host: modem-18.greedy.dialup.pol.co.uk X-Trace: news6.svr.pol.co.uk 926441912 3732 62.136.149.146 (11 May 1999 16:58:32 GMT) NNTP-Posting-Date: 11 May 1999 16:58:32 GMT X-Complaints-To: abuse AT theplanet DOT net X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Lines: 46 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote in message news:Pine DOT SUN DOT 3 DOT 91 DOT 990509121000 DOT 3278T-100000 AT is... > > On Sat, 8 May 1999, Andrew Davidson wrote: > > > Now I need to keep an eye on temp.p.ph.w with the Rhide > > debugger and it simply isn't happening. I have added a breakpoint which is > > set for file/line. The file and line number are correct and it is > > highlighting the appropriate line with no problems. However, my condition > > for this breakpoint, temp.p.ph.w==0 is being ignored. > > Use the `watchpoint' feature. It lets you set a data breakpoint > instead of code breakpoint. Right. Erm... how? :) From within Rhide I would assume this is done by using selecting 'Breakpoints' from within the 'Debug' menu and then setting up the file/line fields and the condition field. This is what I am currently doing. However, it doesn't seem to be paying any attention at all to the value of my variable. It simply acts as a standard breakpoint and always halts execution at that line. I have set the condition to be: if temp->block.p.ph.w==0x2db Trying variations including bracketing the conditional section (As in C code), using decimal instead of hexadecimal and using a single '=' sign, but nothing seems to make any difference. If I watch the variable using 'Watch an Expression' it seems to be updated acurately so I'd assume I haven't quite got the conditional notation down yet... all I'm after is stopping the code on the above condition, nothing fancy. Incidentally, are there any definitive sources of documentation on GDB or Rhide's implementation of it? Prefereably something with a simple step-by-step guide to debugging code that uses graphical video modes and doing such things as setting watchpoints? Anyway, thanks for your time, Andrew