Changeset 6632


Ignore:
Timestamp:
May 29, 2007, 10:20:52 PM (18 years ago)
Author:
Gary Byers
Message:

%stack-frames-in-context.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ide-1.0/ccl/lib/backtrace.lisp

    r6628 r6632  
    111111
    112112
     113;;; Return a list of "interesting" frame addresses in context, most
     114;;; recent first.
     115(defun %stack-frames-in-context (context &optional (include-internal *backtrace-show-internal-frames*))
     116  (collect ((frames))
     117    (do* ((p (bt.youngest context) (parent-frame p context))
     118          (q (bt.oldest context)))
     119         ((= p q) (frames))
     120      (when (or (not (catch-csp-p p context)) include-internal)
     121        (when (or (cfp-lfun p) include-internal)
     122          (frames p))))))
     123   
    113124(defun %print-call-history-internal (context origin detailed-p
    114125                                             &optional (count most-positive-fixnum) (skip-initial 0))
Note: See TracChangeset for help on using the changeset viewer.