File: debug

package info (click to toggle)
gcl 2.6.7%2Bdfsga-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 84,796 kB
  • sloc: ansic: 452,686; lisp: 156,133; asm: 111,405; sh: 29,299; cpp: 18,599; perl: 5,602; makefile: 5,201; tcl: 3,181; sed: 469; yacc: 378; lex: 174; fortran: 48; awk: 30; csh: 23
file content (28 lines) | stat: -rw-r--r-- 970 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
New Debugging Features:

Search-stack:
(:s "cal") or (:s 'cal) searches the stack for a frame whose function or 
special form has a name containing "cal", moves there to display the local
data.

Break-locals:
:bl displays the args and locals of the current function.
(:bl 4) does this for 4 functions.

(si:loc i)  accesses the local(i): slot.
the *print-level* and *print-depth* are bound to si::*debug-print-level*

Recall that kcl permits movement to previous frame (:p) and next frame (:n).
These also take numeric args eg. (:p 7) moves up 7 frames.

If functions are interpreted, the arg values are displayed together
with their names.  If the functions are using the C stack (ie proclaimed 
functions), very little information is available.


Note you must have space < 3  in your optimize proclamation, in order for
the local variable names to be saved by the compiler.

To Do: add setf method for si:loc.
add restart capability from various spots on the stack.