File: frame.cmd

package info (click to toggle)
bashdb 4.0.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,820 kB
  • ctags: 942
  • sloc: sh: 10,581; lisp: 885; makefile: 449; ansic: 325
file content (41 lines) | stat: -rw-r--r-- 666 bytes parent folder | download | duplicates (2)
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?
# Let's start with a couple of stack entries
continue hanoi
where 2
# How about after a frame command? 
frame 0
bt 2
# How about after moving?
u
where 2
down
where 2
# Try moving past the end
down
where 2
up 3
bt 2
# 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
where 3
# Again, next-to-least recent stack entry
frame -2
where 3
# Most recent stack entry
frame +0
backtrace 3
up 2
quit