Fix inverted logic bug
authorLuis Machado <luis.machado@linaro.org>
Mon, 29 Mar 2021 16:48:43 +0000 (13:48 -0300)
committerLuis Machado <luis.machado@linaro.org>
Tue, 30 Mar 2021 12:23:11 +0000 (09:23 -0300)
commit782c1ab836f73e9f18ad615a464b9dea92754f05
tree98cdf635a3952b0ce3ea1b6c9bf59473836150c7
parent5e0423804a6e421e0e8a22631eab42c984502f25
Fix inverted logic bug

During reviews, I changed the success/failure variables from int to bool, but
missed updating the code in a couple spots.  Given the logic inversion, the
gdbserver code fails instead of succeeding.

Fixed with the following patch. Seems fairly obvious, so I'll push it soon.

gdbserver/ChangeLog:

2021-03-30  Luis Machado  <luis.machado@linaro.org>

* server.cc (handle_general_set, handle_query): Update variable
to bool and fix verification logic.
gdbserver/ChangeLog
gdbserver/server.cc