[fpc-devel] bounty: FPC based debugger
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Tue Sep 13 16:52:14 CEST 2011
Michael Schnell schrieb:
> On 09/12/2011 11:16 PM, Hans-Peter Diettrich wrote:
>>> - watchpoints. break when data at memory address changed.
>> I've seen applications crawl when such a feature was used :-(
>
> This is bound to happen unless the CPU provides support for this.
It's not the CPU, it's more the MMU which can help in finding changed
(global) variables. When the static data segment supports interrupts on
write, a debugger only has to check whether the affected address in the
watch list. Doing such checks on *every* write to memory (stack!?)
requires many more lookups.
Hardware support for writes to arbitrary memory addresses is restricted
to very few addresses, not really useful.
That's why Delphi normally checks for changed values only when a
breakpoint is hit, not on every instruction.
DoDi
More information about the fpc-devel
mailing list