gdb: move remote_target::start_remote variable to narrower scope
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 18 Jan 2021 05:46:13 +0000 (00:46 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 18 Jan 2021 05:46:13 +0000 (00:46 -0500)
commitb5c8f22d280c74ead1351e0f6e56a529f3b866b5
treef51d2b26f13e14c0370000136c27e4cc2e3cadb3
parente3b2741b162209a497db03ed4d19890326f16816
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
gdb/ChangeLog
gdb/remote.c
This page took 0.02714 seconds and 4 git commands to generate.