[Openmcl-devel] debugger internals
Marco Baringer
mb at bese.it
Fri Feb 13 03:06:10 PST 2004
i'm trying to get the slime commands return-from-frame and
restart-frame to work and i'm not understanding certain things about
openmcl's debugger.
1) does anybody set *backtrace-dialogs*? (to my eyes it seems that
unless someone somewhere sets this apply-in-nth-frame will never do
anything)
2) is the return value of ccl::%current-frame-ptr a valid value for
FRAME in the various apply-in-frame, return-from-frame, etc. functions?
3) if so, what needs to be done to make a frame restartable?
4) how should i prepare the arguments for apply-in-frame? in other
words, what functions do i need to call in order to be able to get a
valid frame, fn, arglist values for that call? i'm assuming frame
should be a value returned by %get-frame-ptr (or maybe
%current-frame-ptr), fn can just be a regular function object, and
arglist should be a list, however under these assumptions i get an
error about ppc::opcode being on unknown type specifier (backtrace
follows).
Unknown type specifier: PPC::OPCODE
[Condition of type SIMPLE-ERROR]
Restarts:
0: [ABORT] Return to sldb level 1.
1: [ABORT] Return to SLIME toplevel.
2: [ABORT-BREAK] #<RESTART ABORT-BREAK #x561E0E>
Backtrace:
0: (CCL::%%TYPEP)
1: (TYPEP #<OPCODE TWNEI> NIL)
2: (CCL::CATEGORIZE-INSTRUCTION)
3: (CCL::COLLECT-BRANCH-TREE #<DLL-HEADER #x545460E> #<HASH-TABLE
:TEST EQL size 1/60 #x546B636>)
4: (CCL::DLL-TO-BRANCH-TREE #<DLL-HEADER #x545460E>)
5: (CCL::GET-BRANCH-TREE)
6: (CCL::ACTIVE-TSP-COUNT 44)
7: (CCL::%APPLY-IN-FRAME -65534228 #<Compiled-function VALUES
#x500337E> (4) #(#<CATCH-FRAME #x561AB6> 1262481 1262475 1262474
1262473 1262466 1262465 NIL NIL))
8: (SWANK::MAP-BACKTRACE #<COMPILED-LEXICAL-CLOSURE #x5454646> 0
536870911)
--
Marco
Ring the bells that still can ring.
Forget the perfect offering.
There is a crack in everything.
That's how the light gets in.
-Leonard Cohen
More information about the Openmcl-devel
mailing list