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>
This commit is contained in:
parent
105f8386ad
commit
401086186f
|
@ -1025,7 +1025,7 @@ static int gdb_new_connection(struct connection *connection)
|
|||
return ERROR_TARGET_NOT_EXAMINED;
|
||||
}
|
||||
|
||||
if (target->state == TARGET_HALTED)
|
||||
if (target->state != TARGET_HALTED)
|
||||
LOG_WARNING("GDB connection %d on target %s not halted",
|
||||
gdb_actual_connections, target_name(target));
|
||||
|
||||
|
|
Loading…
Reference in New Issue