[fpc-pascal]Debuging in Freepascal

Dirk Verwiebe dirk at verwiebe.de
Tue Sep 26 20:25:25 CEST 2000


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.
And how can i be shure that the async unit is the problem ? Address from error
message ?
Can i catch the page fault so that the program doesn´t stop?


greetings

Dirk Verwiebe











More information about the fpc-pascal mailing list