1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
set pagination off symbol-file gdbstub.elf target remote 127.0.0.1:1234 b simple_loop c # Step twice and check value of `x` variable s 2 if x == 0xdeadbeef printf "PASS\n" quit 0 else printf "FAIL\n" quit 1 end