Changeset 659


Ignore:
Timestamp:
Mar 17, 2004, 7:28:19 AM (21 years ago)
Author:
Gary Byers
Message:

tsp/vsp ranges, for bogus-object detection.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/lib/describe.lisp

    r645 r659  
    15491549   (break-condition :accessor break-condition
    15501550                    :initform ccl::*break-condition*)))
     1551 
    15511552
    15521553; This is set up to access the result of
     
    16841685        (flet ((maybe-ignore ()
    16851686                 (loop while (ignore-function-in-backtrace?
    1686                             f
    1687                             (ccl::cfp-lfun (ccl::parent-frame child tcr)))
     1687                              f
     1688                              (ccl::cfp-lfun (ccl::parent-frame child tcr)))
    16881689                     do (multiple-value-setq (child last-catch srv)
    16891690                          (ccl::parent-frame-saved-vars tcr child last-catch srv srv)))))
     
    17201721(defclass stack-inspector (inspector)
    17211722  ((show-frame-addresses :initform *show-backtrace-frame-addresses*
    1722                          :accessor show-frame-addresses)))
    1723 
     1723                         :accessor show-frame-addresses)
     1724   (vsp-range :accessor vsp-range :initarg :vsp-range)
     1725   (tsp-range :accessor tsp-range :initarg :tsp-range)))
     1726
     1727(defun make-tsp-stack-range (tcr bt-info)
     1728  (list (cons (ccl::%catch-tsp (ccl::bt.top-catch bt-info))
     1729              (ccl::%fixnum-ref (ccl::%fixnum-ref tcr target::tcr.ts-area)
     1730                                target::area.high))))
     1731
     1732(defun make-vsp-stack-range (tcr bt-info)
     1733  (list (cons (ccl::%fixnum-ref
     1734               (ccl::%svref (ccl::bt.top-catch bt-info) target::catch-frame.csp-cell)
     1735               target::lisp-frame.savevsp)
     1736              (ccl::%fixnum-ref (ccl::%fixnum-ref tcr target::tcr.vs-area)
     1737                                target::area.high))))
     1738
     1739                           
    17241740(defmethod initialize-instance ((i stack-inspector) &rest initargs &key info)
    17251741  (declare (dynamic-extent initargs))
     
    17331749             :stack-end end
    17341750             :tcr tcr)
     1751           :tsp-range (make-tsp-stack-range tcr info)
     1752           :vsp-range (make-vsp-stack-range tcr info)
    17351753           initargs)))
    17361754
Note: See TracChangeset for help on using the changeset viewer.