🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #18

Re: partially resolved: Re: help sought, possible asm/cpu/other problem???

#18
From: dhoke
Date: Fri, 18 Jul 2008 12:36
46 lines
3668 bytes
I now suspect/speculate (no verification attempted) its because I actually 
had two address breakpoints set - It set up for one, and stored/saved actual 
data - it set up for the second one, and stored/saved the replaced byte from 
the previous one, an int 3 - So I can also speculate that it sets up for 
breakpoints traversing the list in one direction, and "undoes" the 
breakpoints in the same direction - whereas it might have "undone" them in 
the reverse order of setting them, and actually gotten the original data 
back in place.  (In which case I'd still have no clue what was going on.)

This still does not explain how the display shows what should be there, 
rather than what is apparently actually there.  Maybe the display is 
retrieving data via one thread, while the breakpoint management is done via 
another thread, and the display just happens to fetch data after 'first' 
breakpoint (with correct data) is restored, but before 'second' breakpoint 
with incorrect data is 'restored' (overwriting actual data.)

(CGMWTTN - CodeGearMayWantToTakeNotice)
This may beg the additional question of what happens if I wanted to set two 
breakpoints with two different conditions at the same address.  The debugger 
allows me to set the two breakpoints, but what will the reliability of its 
interpretation of the expressions be, if the referenced data is not correct?


"Alan Bellingham" <alan@lspace.org> wrote in message 
news:veu0849paoflcoovi6nkrjk8gtcf2ap2he@4ax.com...
> "dhoke" <dhoke.nojunk@east-shore.com> wrote:
>
>>Perhaps it treats the traps of coded int 3's differently from the
>>breakpoints it sets, in this regard (or not - but right now I don't feel
>>like trying to figure that out.)
>
> I know little about the internal operation of debuggers, but if it sets
> a breakpoint, it may be replacing the instruction that was at the
> breakpoint position with the 'int 3'. It knows that it's done so, and
> when it stops, it can replace the instruction with the original before
> single-step executing it, and returning the 'int 3' afterwards.
>
> On the other hand, an 'int 3' in your compiled code *was* the original
> instruction. So no replacement was made, and the debugger *has* to treat
> it differently. (For one, executing the *next* instruction next, rather
> than the current (replaced) one.
>
> Alan Bellingham
> -- 
> Team Browns
> ACCU Conference 2009: to be announced 
Technical Details
Message-ID: <48808e72$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!news.albasani.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <487e5d3c$1@newsgroups.borland.com> <488047c1$1@newsgroups.borland.com> <48805fcf$1@newsgroups.borland.com> <4880675b$1@newsgroups.borland.com> <veu0849paoflcoovi6nkrjk8gtcf2ap2he@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ced19374283c232f
X-Google-Attributes: gid10cc67,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "dhoke" <dhoke.nojunk@east-shore.com>
From: "dhoke" <dhoke.nojunk@east-shore.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <487e5d3c$1@newsgroups.borland.com> <488047c1$1@newsgroups.borland.com> <48805fcf$1@newsgroups.borland.com> <4880675b$1@newsgroups.borland.com> <veu0849paoflcoovi6nkrjk8gtcf2ap2he@4ax.com>
Subject: Re: partially resolved: Re: help sought, possible asm/cpu/other problem???
Date: Fri, 18 Jul 2008 08:36:34 -0400
Lines: 48
Organization: East Shore Technologies, Inc.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 71.245.145.51
Message-ID: <48808e72$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1216384626 71.245.145.51 (18 Jul 2008 05:37:06 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!news.albasani.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail