aboutsummaryrefslogtreecommitdiff
path: root/libctf/testsuite/libctf-regression
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-01-18 00:46:13 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2021-01-18 00:46:13 -0500
commitb5c8f22d280c74ead1351e0f6e56a529f3b866b5 (patch)
treef51d2b26f13e14c0370000136c27e4cc2e3cadb3 /libctf/testsuite/libctf-regression
parente3b2741b162209a497db03ed4d19890326f16816 (diff)
downloadbinutils-b5c8f22d280c74ead1351e0f6e56a529f3b866b5.zip
binutils-b5c8f22d280c74ead1351e0f6e56a529f3b866b5.tar.gz
binutils-b5c8f22d280c74ead1351e0f6e56a529f3b866b5.tar.bz2
gdb: move remote_target::start_remote variable to narrower scope
The wait_status variable is only used when the target is in in all-stop mode. We can therefore move it in the !target_is_non_stop scope. That lets us remove the assert in the else, that checks that the wait status is not set. If the variable doesn't exist in that scope, it pretty much guarantees that it is not set. gdb/ChangeLog: * remote.c (remote_target::start_remote): Move wait_status to narrower scope. Change-Id: I30979135e3f4f36d04178baa67575c4e58d3b648
Diffstat (limited to 'libctf/testsuite/libctf-regression')
0 files changed, 0 insertions, 0 deletions