File: debug

package info (click to toggle)
gcl 2.6.14-19
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 60,804 kB
  • sloc: ansic: 177,407; lisp: 151,508; asm: 128,169; sh: 22,510; cpp: 11,923; tcl: 3,181; perl: 2,930; makefile: 2,360; sed: 334; yacc: 226; lex: 95; awk: 30; fortran: 24; 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.