target: fix display halt message logic
If a target is run from gdb and then stopped from OpenOCD telnet interface, halt does not show message with status and PC registers. While on it rename 'display' to 'verbose_halt_msg' and use bool type instead of int. Change-Id: Ibe6589015b302e0be97258b06938c297745436a5 Signed-off-by: Tomas Vanek <vanekt@fbl.cz> Reviewed-on: http://openocd.zylin.com/4475 Tested-by: jenkins Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
This commit is contained in:
committed by
Matthias Welwarsky
parent
f035b0851b
commit
37deb37593
@@ -2959,6 +2959,9 @@ COMMAND_HANDLER(handle_halt_command)
|
||||
LOG_DEBUG("-");
|
||||
|
||||
struct target *target = get_current_target(CMD_CTX);
|
||||
|
||||
target->verbose_halt_msg = true;
|
||||
|
||||
int retval = target_halt(target);
|
||||
if (ERROR_OK != retval)
|
||||
return retval;
|
||||
@@ -5579,7 +5582,7 @@ static int target_create(Jim_GetOptInfo *goi)
|
||||
target->next = NULL;
|
||||
target->arch_info = NULL;
|
||||
|
||||
target->display = 1;
|
||||
target->verbose_halt_msg = true;
|
||||
|
||||
target->halt_issued = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user