首页> 外国专利> Debugging native code by transitioning from execution in native mode to execution in interpreted mode

Debugging native code by transitioning from execution in native mode to execution in interpreted mode

机译:通过从本机模式下的执行过渡到解释模式下的执行来调试本机代码

摘要

A dual-mode debugger can debug native code or interpreted code. Transitioning between modes can be triggered by defined bailout conditions. A program can be debugged by attaching a debugger and compiling the program into native code under the debugger. At defined points in the program, debugging can transition from native mode to interpreted mode. Debugging the native code can stop, current state can be captured, and an interpreter can be instantiated. An interpreter stack can be created and can be populated with the captured current state. Debugging operations which involve execution control: pausing execution, continuing execution, stepping into, out of or over a section of code and so on, can occur in interpreted mode, which is typically easier to implement. Debugging operations which involve inspection and modification of variables can occur in native mode.
机译:双模式调试器可以调试本机代码或解释的代码。模式之间的转换可以通过定义的救援条件来触发。可以通过附加调试器并将程序编译为调试器下的本机代码来调试程序。在程序的定义点,调试可以从纯模式转换为解释模式。调试本机代码可以停止,可以捕获当前状态,并可以实例化解释器。可以创建解释器堆栈,并可以使用捕获的当前状态填充该堆栈。涉及执行控制的调试操作:暂停执行,继续执行,单步执行,跳出代码段或在代码段上执行代码等等,可以在解释模式下进行,通常更易于实现。涉及检查和修改变量的调试操作可以在纯模式下进行。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号