Vs2013在Linux开发中的应用(24):触发断点

当gdb命中断点时,它将在断点的位置停下来并给出信息:

*stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x0805fc75",func="main",args=[{name="argc",value="1"},{name="argv",value="0xbffff6e4"}],file="../../app/rc/rc.c",fullname="/mnt/hgfs/nvs_dev/src/ipc/app/rc/rc.c",line="1565"},thread-id="1",stopped-threads="all",core="0"

在这里,我们只需要断点编号和线程号,其余信息都存储在SDM中,只要向SDM发送事件:

Send(newAD7BreakpointEvent(newAD7BoundBreakpointsEnum(boundBreakpoints)), AD7BreakpointEvent.IID, _threads[e.Thread]);

困难是人的教科书。

Vs2013在Linux开发中的应用(24):触发断点

相关文章:

你感兴趣的文章:

标签云: