[gdb/testsuite] Use early-out style in gdb.base/break-probes.exp
authorTom de Vries <tdevries@suse.de>
Thu, 23 Sep 2021 20:42:10 +0000 (22:42 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 23 Sep 2021 20:42:10 +0000 (22:42 +0200)
commit04739cc7ce5a5c67d8d841541a4aaef706c53a79
tree55a4585962a9c25d4d9048ab0d698377471bccd7
parent9b8efa2cd14410cb23d8873fd8f0665155569523
[gdb/testsuite] Use early-out style in gdb.base/break-probes.exp

Reduce indentation and improve readability in test-case
gdb.base/break-probes.exp by replacing:
...
if { <cond> } {
  <lots-of-code>
}
...
with:
...
if { ! <cond> } {
  return -1
}
<lots-of-code>
...

Tested on x86_64-linux.
gdb/testsuite/gdb.base/break-probes.exp