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监视消息数据结构中的一个变量。
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.如你所见,我只设置了两个观察点。救命求你了?
发布于 2011-01-15 23:18:02
https://stackoverflow.com/questions/4702638
复制相似问题