forked from auracaster/openocd
gdb_server: Improve info message.
Add target name and state to "Not running when halt was requested" message. Imported from https://github.com/riscv-collab/riscv-openocd/pull/763 Change-Id: Ic84e9a884b57caa270cfee0ca6fa6a0dd8e5d2bd Signed-off-by: Tim Newsome <tim@sifive.com> Reviewed-on: https://review.openocd.org/c/openocd/+/8916 Tested-by: jenkins Reviewed-by: Evgeniy Naydanov <evgeniy.naydanov@syntacore.com> Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
committed by
Antonio Borneo
parent
e8dca11245
commit
ff274122dc
@@ -3761,7 +3761,8 @@ static int gdb_input_inner(struct connection *connection)
|
||||
target_call_event_callbacks(target, TARGET_EVENT_GDB_HALT);
|
||||
gdb_con->ctrl_c = false;
|
||||
} else {
|
||||
LOG_INFO("The target is not running when halt was requested, stopping GDB.");
|
||||
LOG_TARGET_INFO(target, "Not running when halt was requested, stopping GDB. (state=%d)",
|
||||
target->state);
|
||||
target_call_event_callbacks(target, TARGET_EVENT_GDB_HALT);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user