File: frame.cmd

package info (click to toggle)
zshdb 0.05%2Bgit20101031-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,104 kB
  • sloc: sh: 5,563; makefile: 337
file content (41 lines) | stat: -rw-r--r-- 671 bytes parent folder | download | duplicates (3)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
set trace-commands on
# Test of frame commands
# We also try all of the various where/backtrace variants
# Do we give a valid stack listing initially?
where 1
# How about after a frame command? 
frame 0
bt 1
where 1
# Let's start with a couple of stack entries
step 7
where 2
# How about after moving?
u
where 1
# Try moving past the end
down 2
where 5-3
up 3
# Try some negative numbers
# should be the same as up
down -1
T 2
# Should go to next-to-least-recent frame
frame -2
where 2
# Let's add another stack entry
## continue hanoi
step 12
where 3
# Again, next-to-least recent stack entry
frame -2
where 3
# Most recent stack entry
frame +0
backtrace 3
up 2
quit