我不知道什么条件导致调用失败,所以无法设置条件断点。
I do not know what conditions cause the call to fail, so I cannot set a conditional breakpoint.
毫无疑问,最常见的调试步骤是设置断点,这样可以检查条件语句或循环内的变量和值。
Undoubtedly, the most common debugging procedure is to set breakpoints that will allow the inspection of variables and the values inside conditional statements or loops.
条件中指定的变量必须在设置了断点的行中,否则表达式就没有什么意义!
The variables specified in the condition must be in scope at whatever line you set the breakpoint on, otherwise the expression wouldn't make sense!
我们必须继续执行两次程序才会发生这种情况,但是只要在断点上设置一个条件就可以使gdb只在 "value" 与 "div"真正相等时暂停。
We had to continue program execution twice to get to this point, however by setting a condition on the breakpoint we can make gdb halt only when "value" actually equals "div".
如果已经在第21行中设置了断点,如1号断点,则可以使用'condition '命令来代替在断点上设置条件。
If a breakpoint such as number 1 was already defined at line 21 we could use the 'condition' command instead to set the condition on the breakpoint.
使用'condition '命令时,如果指定断点编号但又不指定表达式,可以将断点设置成无条件断点,例如,' condition1 '就将1号断点设置成无条件断点。
Breakpoints can be set to unconditional using the 'condition' command specifying a breakpoint number without an expression, for example 'condition 1' sets breakpoint 1 to unconditional.
该文在汇编嵌入式软件程序流程图自动生成的研究基础上,提出了以PC值为基准条件的断点设置、测机制以及虚拟插桩机制。
Based on the research of embedded assembly program flow chart automatic building, the breakpoint setting and checking mechanism, virtual instrumentation mechanism based on the PC values are proposed.
如果在设置断点条件时使用了无效语法,将立即出现警告消息。
If you set a breakpoint condition with invalid syntax, a warning message appears immediately.
如果在设置断点条件时使用了无效语法,将立即出现警告消息。
If you set a breakpoint condition with invalid syntax, a warning message appears immediately.
应用推荐