aboutsummaryrefslogtreecommitdiff
path: root/gdb/ui-file.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2019-07-03 18:05:20 +0100
committerPedro Alves <palves@redhat.com>2019-07-03 18:05:20 +0100
commita26c8de0ee938a48bc6f6232cdfac1a5eabaa778 (patch)
treed6fa0c141e57fe8c48783fd29930dfec3f08f3c0 /gdb/ui-file.c
parent5f4ba3e701d74f280d4bd8820d9c39a854e0d2cf (diff)
downloadbinutils-a26c8de0ee938a48bc6f6232cdfac1a5eabaa778.zip
binutils-a26c8de0ee938a48bc6f6232cdfac1a5eabaa778.tar.gz
binutils-a26c8de0ee938a48bc6f6232cdfac1a5eabaa778.tar.bz2
Fix early return in foreach_with_prefix
I noticed that an early return in a foreach_with_prefix block does not cause the outer scope to return, like: foreach_with_prefix var {"foo" "bar"} { return } # Control continues here, but it should not. The problem is that we're missing the usual "return -code" treatment. This commit fixes it. gdb/testsuite/ChangeLog: 2019-07-03 Pedro Alves <palves@redhat.com> * lib/gdb.exp (foreach_with_prefix): Use "catch" and "return -code".
Diffstat (limited to 'gdb/ui-file.c')
0 files changed, 0 insertions, 0 deletions