openocd: revert workarounds for 'expr' syntax change
With OpenOCD v0.12.0 released, drop the workarounds for 'expr' syntax change by reverting: - commit320043c054("openocd: fix for polling during "expr" computation"); - commitc7eaaf6204("openocd: prepare for jimtcl 0.81 'expr' syntax change"). Replace the call to target_call_timer_callbacks_now() with call to target_call_timer_callbacks(). Change-Id: Iae5afc50e3f688e11176a52648efc9a6577a9a11 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7405 Tested-by: jenkins
This commit is contained in:
@@ -936,19 +936,7 @@ static int jim_command_dispatch(Jim_Interp *interp, int argc, Jim_Obj * const *a
|
||||
if (!command_can_run(cmd_ctx, c, Jim_GetString(argv[0], NULL)))
|
||||
return JIM_ERR;
|
||||
|
||||
/*
|
||||
* TODO: to be removed after v0.12.0
|
||||
* workaround for https://sourceforge.net/p/openocd/tickets/362/
|
||||
* After syntax change of "expr" in jimtcl 0.81
|
||||
* the replacement of jimtcl "expr" with openocd version in
|
||||
* https://review.openocd.org/6510/
|
||||
* introduces too many target polling during math expressions with
|
||||
* "expr" commands.
|
||||
* After v0.12.0 replace the following two lines with
|
||||
* target_call_timer_callbacks();
|
||||
*/
|
||||
if (strcmp(c->name, "expr"))
|
||||
target_call_timer_callbacks_now();
|
||||
target_call_timer_callbacks();
|
||||
|
||||
/*
|
||||
* Black magic of overridden current target:
|
||||
|
||||
Reference in New Issue
Block a user