CDT Source Code Framework Analysis Transformation of Threading Objects add tags to differentiate breakpoints and track points

Source: Internet
Author: User

CDT to debug communication route

In the Cbreakpointmanager class

protected voidsetBreakpointsOnTarget0 (icbreakpoint[] breakpoints) {//Add identifierString 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 (), Symbolfi Le, Pointtype); ..}

Target

    /*** * Wangmin * Add type is tracepoint **/     Publicicdifunctionbreakpoint setfunctionbreakpoint (icdifunctionlocation location, icdicondition condition,BooleanDeferredBooleanEnabledBooleanTemp, string ID, string symbolfilepath,string pointtype)throwscdiexception {Breakpointmanager bmgr=( Session) getsession ()). Getbreakpointmanager (); returnBmgr.setfunctionbreakpoint ( This, location, condition, deferred, enabled, temp, ID, Symbolfilepath, pointtype); }

Breakpointmanager

    /*** * wangmin Add type *@paramTarget *@paramLocation *@paramcondition *@paramDeferred *@paramenabled *@paramTemp *@paramID *@paramSymbolfilepath *@return     * @throwscdiexception*/     Publicicdifunctionbreakpoint setfunctionbreakpoint (target target, icdifunctionlocation location, icdicondition Condition,BooleanDeferredBooleanEnabledBooleanTemp, string ID, string symbolfilepath,string typepoint)throwscdiexception {functionbreakpoint bkpt=NewFunctionbreakpoint (target, location, condition, enabled); //Bkpt.setid (ID); //Duyingze 20080802 All breakpoints use a uniform IDBkpt.setpointtype (Typepoint);        Bkpt.setbpid (ID);        Bkpt.setsymbolfilepath (Symbolfilepath);        Setnewlocationbreakpoint (bkpt, deferred); returnbkpt; }

Note here that Functionbreakpoint is a subclass of Locationbreakpoint.

is also in Manager

Call MI. And a Mibreakpointcreatedevent event was created.

    protected voidSetnewlocationbreakpoint (Locationbreakpoint bkpt,BooleanDeferredthrowscdiexception {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 (NewMibreakpointcreatedevent (Misession, mibreakpoints[0].getnumber ())); }        }

CDT Source Code Framework Analysis Transformation of Threading Objects add tags to differentiate breakpoints and track points

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.