~ubuntu-branches/ubuntu/quantal/gclcvs/quantal

« back to all changes in this revision

Viewing changes to doc/debug

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2004-06-24 15:13:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040624151346-xh0xaaktyyp7aorc
Tags: 2.7.0-26
C_GC_OFFSET is 2 on m68k-linux

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
New Debugging Features:
 
2
 
 
3
Search-stack:
 
4
(:s "cal") or (:s 'cal) searches the stack for a frame whose function or 
 
5
special form has a name containing "cal", moves there to display the local
 
6
data.
 
7
 
 
8
Break-locals:
 
9
:bl displays the args and locals of the current function.
 
10
(:bl 4) does this for 4 functions.
 
11
 
 
12
(si:loc i)  accesses the local(i): slot.
 
13
the *print-level* and *print-depth* are bound to si::*debug-print-level*
 
14
 
 
15
Recall that kcl permits movement to previous frame (:p) and next frame (:n).
 
16
These also take numeric args eg. (:p 7) moves up 7 frames.
 
17
 
 
18
If functions are interpreted, the arg values are displayed together
 
19
with their names.  If the functions are using the C stack (ie proclaimed 
 
20
functions), very little information is available.
 
21
 
 
22
 
 
23
Note you must have space < 3  in your optimize proclamation, in order for
 
24
the local variable names to be saved by the compiler.
 
25
 
 
26
To Do: add setf method for si:loc.
 
27
add restart capability from various spots on the stack.
 
28