mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-12 20:03:45 +08:00
fb40c20903
Add --enable-gdbmi option to configury. Add mi rules to Makefile.in Add mi conditional output to event-top.c infrun.c main.c top.c. Add -i=mi option.
26 lines
340 B
Plaintext
26 lines
340 B
Plaintext
# 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
|