target::running_alg field
true if the target is currently running a downloaded "algorithm" instead of arbitrary user code. OpenOCD code invoking algorithms is trusted to maintain correctness of any cached state (e.g. for flash status), which arbitrary code will have no reason to know about.