debugger fixes

make sure we always go back to current module, even during initizlization.


git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1062 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc
2004-05-13 20:54:58 +00:00
parent 94714907ec
commit 9d12384db1
18 changed files with 177 additions and 274 deletions

View File

@@ -377,7 +377,6 @@ save_regs(int mode)
putcellptr(S);
putcellptr((CELL *)P);
putout(CreepFlag);
putout(FlipFlop);
putout(EX);
#ifdef COROUTINING
putout(DelayedVars);
@@ -711,7 +710,6 @@ get_regs(int flag)
S = get_cellptr();
P = (yamop *)get_cellptr();
CreepFlag = get_cell();
FlipFlop = get_cell();
#ifdef COROUTINING
DelayedVars = get_cell();
#endif
@@ -1413,7 +1411,9 @@ Restore(char *s, char *lib_dir)
restore_regs(restore_mode);
in_limbo = FALSE;
/*#endif*/
fprintf(stderr,"1 CurrentModule is %p\n", CurrentModule);
RestoreHeap(old_ops);
fprintf(stderr,"1.5 CurrentModule is %p\n", CurrentModule);
switch(restore_mode) {
case DO_EVERYTHING:
if (OldHeapBase != Yap_HeapBase ||
@@ -1437,6 +1437,7 @@ Restore(char *s, char *lib_dir)
Yap_InitYaamRegs();
break;
}
Yap_ReOpenLoadForeign();
Yap_InitPlIO();
/* reset time */