fix debugger when tracing over system builtins.

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@241 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc
2001-12-27 22:38:41 +00:00
parent e34262878d
commit eade3e8e44
3 changed files with 18 additions and 7 deletions

View File

@@ -251,11 +251,7 @@ debugging :-
'$spy'([Mod|G]).
'$spy'([Module|G]) :-
% '$format'(user_error,"$spym(~w,~w)~n",[Module,G]),
( '$hidden'(G)
;
'$parent_pred'(0,_,_),
'$system_predicate'(G)
),
'$hidden'(G),
!,
/* called from prolog module */
'$execute0'(G,Module),
@@ -372,7 +368,9 @@ debugging :-
'$undefp'([M|G])
).
'$spycalls'(G,M,_) :-
'$flags'(G,M,F,_), F /\ 8'50000 =\= 0, % Standard and C pred
'$system_predicate'(G),
'$flags'(G,M,F,_),
F /\ 0xc00000 =:= 0, % but not meta-predicate or cut transparent
!,
'$catch_spycall_stdpred'(G,M),
(true;