Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 gdb hbreak 命令设置硬件断点
hbreak *address
但我收到以下错误:“目标中没有硬件断点支持”。
有没有办法解决这个问题?
首先尝试启动命令。GDB 经常说,当程序尚未启动时,即使有硬件支持(在这种情况下,这是一个非常具有误导性的信息)。
您的硬件可能不支持硬件断点,或者您可能没有可用的硬件断点寄存器。您仍然可以使用软件断点作为修复。