[fpc-pascal]Debuging in Freepascal

Florian Klaempfl florian at klaempfl.de
Tue Sep 26 21:22:22 CEST 2000


Dirk Verwiebe schrieb:
> 
> Thomas Schatzl schrieb:
> 
> > You could try to store the cs register into ds and es since with go32v2 cs =
> > ds = es. So little code like
> >
> > movw %cs, %ax
> > movw %ax, %ds
> > movw %ax, %es
> >
> > should be fine instead of the
> >
> > movw %cs:our_ds, %ax
> > movw %ax, %ds
> > movw %ax, %es
> >
> > etc. stuff.
> >
> 
> At this time i am using the dpmi unit from Thomas Schatzl. There is a function
> DSEGALIAS which should make the stuff with  the v2prt0_ds_alias, i hope.
> 
> our_ds:=dsegalias;
> 
> and lockdata(our_ds).  (Not in the ISR)
> 
> If this fails i try the code from above.
> 
> Is it possible to  test my changes in a faster way ? The page fault occurs after
> 4-5 hours.  So i only can test two times in a day my changes.

You could try to allocate a huge amount of memory (more than your real
RAM) in your program and do random accesses to it. So the DPMI server
has to swap and the chance for a page fault becomes higher.





More information about the fpc-pascal mailing list