日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

CDT源代码框架分析改造 线程对象的改造 添加标签 区分断点跟跟踪点

發布時間:2024/4/17 编程问答 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 CDT源代码框架分析改造 线程对象的改造 添加标签 区分断点跟跟踪点 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

cdt 到debug 通信路線

CBreakpointManager類中

?

protected void setBreakpointsOnTarget0( ICBreakpoint[] breakpoints ) { //添加標示符 String pointtype =breakpoint.getPointType();fileName = convertPath(fileName).toOSString();ICDIFunctionLocation location = cdiTarget.createFunctionLocation( fileName, function );ICDICondition condition = createCondition2( breakpoint );fBreakpointProblems.add(BreakpointProblems.reportUnresolvedBreakpoint(breakpoint, getDebugTarget().getName(), getDebugTarget().getInternalID()));if (bpManager2 != null)cdiBreakpoint = bpManager2.setFunctionBreakpoint( location, condition, true,breakpoints[i].isEnabled(), breakpoints[i].isTemporary(),breakpoint.getID(), symbolFile ,pointtype); .... }

Target

?

/***** wangmin * add type is tracepoint* */public ICDIFunctionBreakpoint setFunctionBreakpoint(ICDIFunctionLocation location,ICDICondition condition, boolean deferred, boolean enabled, boolean temp, String id, String symbolFilePath,String pointType) throws CDIException {BreakpointManager bMgr = ((Session)getSession()).getBreakpointManager();return bMgr.setFunctionBreakpoint(this, location, condition, deferred, enabled, temp, id, symbolFilePath, pointType);}

breakpointManager

?

/*** * wangmin add type* @param target* @param location* @param condition* @param deferred* @param enabled* @param temp* @param id* @param symbolFilePath* @return* @throws CDIException*/public ICDIFunctionBreakpoint setFunctionBreakpoint(Target target, ICDIFunctionLocation location,ICDICondition condition, boolean deferred, boolean enabled, boolean temp, String id, String symbolFilePath,String typePoint ) throws CDIException {FunctionBreakpoint bkpt = new FunctionBreakpoint(target, location, condition, enabled);//bkpt.setID(id);//duyingze 20080802 所有斷點使用統一的id bkpt.setPointType(typePoint);bkpt.setBpID(id);bkpt.setSymbolFilePath(symbolFilePath);setNewLocationBreakpoint(bkpt, deferred);return bkpt;}

這里注意下?FunctionBreakpoint 是LocationBreakpoint的子類

同樣是管理器中

調用mi。并且創建了一個MIBreakpointCreatedEvent事件。

?

?

protected void setNewLocationBreakpoint(LocationBreakpoint bkpt, boolean deferred) throws CDIException {Target target = (Target)bkpt.getTarget();MISession miSession = target.getMISession();try {setLocationBreakpoint(bkpt);List blist = getBreakpointsList(target);blist.add(bkpt);// Fire a created Event.MIBreakpoint[] miBreakpoints = bkpt.getMIBreakpoints();if (miBreakpoints != null && miBreakpoints.length > 0) {miSession.fireEvent(new MIBreakpointCreatedEvent(miSession, miBreakpoints[0].getNumber()));}}

?

轉載于:https://www.cnblogs.com/codeGirl-wangMin/p/4815518.html

總結

以上是生活随笔為你收集整理的CDT源代码框架分析改造 线程对象的改造 添加标签 区分断点跟跟踪点的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。