(core) bsmiles32 backport - Move op to api/debugger.c