【问题标题】:gdb "watch pointer " giving too many h/w watchpoints errorgdb“观察指针”给出太多硬件观察点错误
【发布时间】:2011-01-15 22:57:59
【问题描述】:
class Message{
    double *val
};

Message** val_msgs;
val_msgs = new Message*[120];
for(int i=0; i<120; i++)
    val_msgs[i]=new Message();

我正在使用 gdb 来观察 Message 数据结构中的变量

watch val_msgs[0]->val

但是,我得到了这个错误

(gdb) watch val_msgs[0]->val
Hardware watchpoint 2: this->val_msgs[0]->val
(gdb) c
Continuing.
pingCharmrun (ignored=0x7ffff73751c1) at machine.c:1151
1151    {
Current language:  auto; currently c
(gdb) c
Continuing.
Warning:
Could not insert hardware watchpoint 2.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.

如您所见,我只设置了 2 个观察点。 请帮忙?

【问题讨论】:

标签: c++ pointers gdb


【解决方案1】:

对上一个问题的回复可能会有所帮助:gdb problem setting hardware watchpoint/how to set software watchpoint

【讨论】:

    猜你喜欢
    • 2011-03-29
    • 2011-03-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-15
    相关资源
    最近更新 更多