Skip to content

Commit

Permalink
(toggle-trace): Fix from Antonio Menezes Leitao.
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Gorrie committed Mar 12, 2005
1 parent 12e14e1 commit b846225
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions swank-allegro.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -690,11 +690,13 @@
;; <name> can be a normal name or a (setf name)

(defimplementation toggle-trace (spec)
(ecase (car spec)
(ecase (car spec)
((setf)
(toggle-trace-aux spec))
(:defgeneric (toggle-trace-generic-function-methods (second spec)))
((setf :defmethod :labels :flet)
(toggle-trace-aux (process-fspec-for-allegro spec)))
(:call
(:call
(destructuring-bind (caller callee) (cdr spec)
(toggle-trace-aux callee
:inside (list (process-fspec-for-allegro caller)))))))
Expand All @@ -718,7 +720,7 @@
(dolist (method methods (format nil "~S is now untraced." name))
(excl:funtrace (mop:method-function method))))
(t
(eval `(trace ,name))
(eval `(trace (,name)))
(dolist (method methods (format nil "~S is now traced." name))
(excl:ftrace (mop:method-function method)))))))

Expand Down

0 comments on commit b846225

Please sign in to comment.