我正在为STM32嵌入式系统调试此软件。在其中一个函数中,我的程序一直遇到某种断点:
SIGTRAP,跟踪/断点陷阱
然而,在GDB中,当我执行 info breakpoints
时,我得到了 No breakpoints or watchpoints
。 实际上,该断点对应于我很久之前设置的断点,当时是在另一个版本的可执行文件中。 当我设置那个断点时,GDB告诉我 automatically using a hardware breakpoint on read-only memory
(或类似的消息)。
我认为硬件断点仍留在芯片上,尽管已加载了新版本的软件。 如果确实存在虚假的断点,如何定位并删除它?