Vs2013在Linux开发中的应用(20): 断点设置
来源:互联网 发布:三星召回事件知乎 编辑:程序博客网 时间:2024/06/06 09:03
当vs设置断点时,SDM将调用:
// Creates a pending breakpoint in the engine. A pending breakpoint is contains all the information needed to bind a breakpoint to // a location in the debuggee. int IDebugEngine2.CreatePendingBreakpoint(IDebugBreakpointRequest2 pBPRequest, out IDebugPendingBreakpoint2 ppPendingBP)
在此回调中,我们实现并填充IDebugPendingBreakpoint2接口:
AD7PendingBreakpoint pendingBreakpoint = new AD7PendingBreakpoint(pBPRequest, m_engine, this);
ppPendingBP= (IDebugPendingBreakpoint2)pendingBreakpoint;
但此时并不需要通知gdb设置断点。
接着SDM将调用
// Binds this pending breakpoint to one or more codelocations.
intIDebugPendingBreakpoint2.Bind() {
在这个回调函数中我们将通知gdb绑定断点(-break-insert命令),下面是gdb对命令的响应:
-break-insertrc.c:1564
^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0805fc75",func="main",file="../../app/rc/rc.c",fullname="/mnt/hgfs/nvs_dev/src/ipc/app/rc/rc.c",line="1564",times="0",original-location="rc.c:1564"}
当gdb正常设置断点后,我们需要通知SDM断点绑定成功:
Send(
newAD7BreakpointBoundEvent((AD7PendingBreakpoint)pendingBreakpoint, boundBreakpoint),
AD7BreakpointBoundEvent.IID,
null
);
- Vs2013在Linux开发中的应用(20): 断点设置
- Vs2013在Linux开发中的应用(24):触发断点
- Vs2013在Linux开发中的应用(14): 远程调试设想
- Vs2013在Linux开发中的应用(17): 调试参数传递
- Vs2013在Linux开发中的应用(18): 应用程序调试方案
- Vs2013在Linux开发中的应用(19): 启动gdb
- Vs2013在Linux开发中的应用(21): 线程创建
- Vs2013在Linux开发中的应用(22):模块加载
- Vs2013在Linux开发中的应用(23):信息输出
- Vs2013在Linux开发中的应用(25):曙光
- Vs2013在Linux开发中的应用(26):表达式计算
- Vs2013在Linux开发中的应用(27):线程列表
- Vs2013在Linux开发中的应用(29):寄存器信息
- Vs2013在Linux开发中的应用(30):程序中断
- Vs2013在Linux开发中的应用(32):文本可视化
- Vs2013在Linux开发中的应用(33):反汇编
- Vs2013在Linux开发中的应用(35):Telnet支持
- Vs2013在Linux开发中的应用(16): 修改调试器参数
- mybatis 批量删除
- 设计模式-Adapter模式
- latex中插入图片
- 我的征程是未来!带你展望2015年最重要的网页设计趋势
- math.h中的常量
- Vs2013在Linux开发中的应用(20): 断点设置
- jquery mobile touch 实例
- n阶行列式计算----c语言实现(完结)
- win32 console application 如何修改图标?
- 黑马程序员——Java基础——网络编程
- codevs2555a+b=?
- n个数的全排列的相关问题
- 19个方便渗透测试的Chrome扩展
- 归并法排序