This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] LP-MSPM0L1306:为什么在使用 CCS 1.5.0进行调试时生成第二个断点?

Guru**** 2001725 points
Other Parts Discussed in Thread: LP-MSPM0L1306
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1456724/lp-mspm0l1306-why-grayout-the-2nd-breakpoint-when-debugging-with-ccs-1-5-0

器件型号:LP-MSPM0L1306

工具与软件:

您好!

我在 LP-MSPM0L1306示例中将2个断点放置到 while 循环;gpio_toggle_output.c:

但调试中、第2个断点将变为灰色并被忽略:

为什么? 我如何在 while 循环中使用多个断点?

此致!

奥津靖则

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我的第一个猜测是代码已经被编译器重新排序、使得第二行(在某种意义上)"不存在"。 Toggle 函数是内联函数、由简单的赋值语句组成。

    如果你在第一个断点处停止、然后"单步执行"、我会想知道你最终到达的位置;这可能会告诉你函数调用的位置。