Digging more deeply, it seems that there is another problem in command_run_line
as well, which also makes it non-reentrant: it changes the context on the
interp before running the command, then deletes the context rather than
changing it back to its previous value after the command finishes.
Hi folks,
My OpenOCD config file tries to work with 0.10.0 and also current master. In
this attempt, it does this in a target event handler, because the “dap
memaccess” command syntax changed between the two versions:
catch {
dap memaccess 16
} err
catch {
[[target current] cget -dap]