server/gdb_server: fix incorrect condition check
commit401086186f2560b7c45ea53c200a0558f84437be
authorChristopher Head <chead@zaber.com>
Mon, 10 Aug 2020 18:09:02 +0000 (10 11:09 -0700)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 16 Aug 2020 10:49:20 +0000 (16 11:49 +0100)
tree95a9a7e90f2b2eaa5319ca396a40a95ea37bd272
parent105f8386ad92d27f0171d748f9b2a804a5317fd9
server/gdb_server: fix incorrect condition check

The warning message should be printed if the target is NOT halted, not
if it IS halted.

Change-Id: I0a38292a8a2e20e4a4a5ada92b475d551d4cbf38
Signed-off-by: Christopher Head <chead@zaber.com>
Reviewed-on: http://openocd.zylin.com/5794
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/server/gdb_server.c