1set trace-commands on
2# Debugger test of 'command' command
3#
4# Try to set command when there is none.
5commands 1
6#
7# Now a command for a real breakpoint
8break 23
9commands 1
10x x
11end
12#
13##############################
14# Should see value of x below
15# from the command statment
16break 25
17continue
18#
19#############################
20# Test of a changing
21# command statement. First
22# The setup.
23##############################
24commands 2
25print x is now $x
26end
27continue
28####################################
29# Now we'll change the it
30####################################
31commands 2
32print "testing overwriting commands"
33end
34continue
35####################################
36# Should have seen the testing message
37# above, not x.
38## FIXME: theres a weird bug
39## in evaluating expressions like $i
40# Now let's remove the command
41# altogether
42####################################
43commands 2
44end
45continue
46quit
47
48