mirror of
https://github.com/linux-msm/openocd.git
synced 2026-02-25 13:15:07 -08:00
If halt times out, stop GDB. Allows e.g. manual reset via monitor commands.
This commit is contained in:
@@ -2194,10 +2194,13 @@ int gdb_input_inner(connection_t *connection)
|
||||
retval = target_halt(target);
|
||||
if (retval != ERROR_OK)
|
||||
{
|
||||
/* stop this debug session */
|
||||
target_call_event_callbacks(target, TARGET_EVENT_GDB_HALT);
|
||||
}
|
||||
gdb_con->ctrl_c = 0;
|
||||
} else
|
||||
{
|
||||
LOG_INFO("The target is not running when halt was requested, stopping GDB.");
|
||||
target_call_event_callbacks(target, TARGET_EVENT_GDB_HALT);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user