aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi/testcmds
blob: 28fa524042f5169d5386364fe96618e198fa69cc (plain)
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
# This is a (bogus) sample user command built to test the printing
# of commands.
define test
set $a = 1
set $b = 2
if ($a > $b)
 set $a = 1
 set $b = 2
 while ($a > $b)
  set $a = 1
  set $b = 2
 end
else
 set $a = 1
 set $b = 2
end
while ($a < $b)
 set $a = $a + 1
 set $c = $a
 if ($a = $b)
  set $c = 5
 end
 set $a = 1
 set $b = 2
end