与调试/嵌入式相关的"step-point"的定义



我正在阅读关于使用CoreSight Trace Techniques的IAR描述,并遇到了一个生成"代码覆盖率统计信息"的示例。

他们多次引用"步进点"。在IAR站点中搜索"步骤点"只会生成上述链接。

我们可以很容易地定义指令代码行,那么到底是什么步进点[/strong>,或者更好的是,如上面链接中引用的>步点级别//strong>?

步骤点似乎是IAR描述可执行语句的方式。例如,查看此处并搜索步骤点可以显示如何一次遍历一条语句的代码。

阶跃点级别可能是已执行或未执行的分支。

快速代码示例:

  //next two step points are at the same step point level.  There's no branch,
  //they will both always execute
  unsigned char qwerty=5;
  if(timer == 0x15)
  {
    Foo(5);  // another step point, a different step point level than above
  }
  else
  {
    // the next two step points are at the same step point level, as depending on 
    // the branch will either hit both or neither.
    unsigned char temp=5;
    Foo(temp);
  }

相关内容

最新更新