VirtualBox

Changeset 64592 in vbox for trunk


Ignore:
Timestamp:
Nov 6, 2016 7:17:52 PM (8 years ago)
Author:
vboxsync
Message:

Debugger/CodeView: Fix for the no branch tables existing case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Debugger/DBGCEmulateCodeView.cpp

    r64591 r64592  
    16421642    }
    16431643
    1644     idx = 0;
    1645     DBGFFLOWBRANCHTBL hFlowBranchTbl = DBGFR3FlowBranchTblItNext(hFlowBranchTblIt);
    1646     while (hFlowBranchTbl)
    1647     {
    1648         paDumpBranchTbl[idx].hFlowBranchTbl = hFlowBranchTbl;
    1649         paDumpBranchTbl[idx].cchHeight      = DBGFR3FlowBranchTblGetSlots(hFlowBranchTbl) + 4; /* Spacing and border. */
    1650         paDumpBranchTbl[idx].cchWidth       = 25 + 4; /* Spacing and border. */
    1651         idx++;
    1652         hFlowBranchTbl = DBGFR3FlowBranchTblItNext(hFlowBranchTblIt);
     1644    if (paDumpBranchTbl)
     1645    {
     1646        idx = 0;
     1647        DBGFFLOWBRANCHTBL hFlowBranchTbl = DBGFR3FlowBranchTblItNext(hFlowBranchTblIt);
     1648        while (hFlowBranchTbl)
     1649        {
     1650            paDumpBranchTbl[idx].hFlowBranchTbl = hFlowBranchTbl;
     1651            paDumpBranchTbl[idx].cchHeight      = DBGFR3FlowBranchTblGetSlots(hFlowBranchTbl) + 4; /* Spacing and border. */
     1652            paDumpBranchTbl[idx].cchWidth       = 25 + 4; /* Spacing and border. */
     1653            idx++;
     1654            hFlowBranchTbl = DBGFR3FlowBranchTblItNext(hFlowBranchTblIt);
     1655        }
    16531656    }
    16541657
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette