vbox的更動 46593 路徑 trunk/src/VBox/Debugger/VBoxDbgStatsQt4.cpp
- 時間撮記:
- 2013-6-17 下午02:32:51 (11 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Debugger/VBoxDbgStatsQt4.cpp
r44528 r46593 353 353 */ 354 354 static ssize_t getNodePath(PCDBGGUISTATSNODE pNode, char *psz, ssize_t cch); 355 356 /** 357 * Calculates the full path of a node, returning the string pointer. 358 * 359 * @returns @a psz. On failure, NULL. 360 * 361 * @param pNode The node. 362 * @param psz The output buffer. 363 * @param cch The size of the buffer. 364 */ 365 static char *getNodePath2(PCDBGGUISTATSNODE pNode, char *psz, ssize_t cch); 355 366 356 367 /** … … 1312 1323 1313 1324 1325 /*static*/ char * 1326 VBoxDbgStatsModel::getNodePath2(PCDBGGUISTATSNODE pNode, char *psz, ssize_t cch) 1327 { 1328 if (VBoxDbgStatsModel::getNodePath(pNode, psz, cch) < 0) 1329 return NULL; 1330 return psz; 1331 } 1332 1333 1334 1314 1335 /*static*/ bool 1315 1336 VBoxDbgStatsModel::isNodeAncestorOf(PCDBGGUISTATSNODE pAncestor, PCDBGGUISTATSNODE pDescendant) … … 1434 1455 VBoxDbgStatsModel::updateCallbackHandleOutOfOrder(const char *pszName) 1435 1456 { 1457 #if defined(VBOX_STRICT) || defined(LOG_ENABLED) 1458 char szStrict[1024]; 1459 #endif 1460 1436 1461 /* 1437 1462 * We might be inserting a new node between pPrev and pNode … … 1451 1476 PDBGGUISTATSNODE pNode = m_pUpdateParent->papChildren[m_iUpdateChild]; 1452 1477 PDBGGUISTATSNODE const pPrev = prevDataNode(pNode); 1478 AssertMsg(strcmp(pszName, getNodePath2(pNode, szStrict, sizeof(szStrict))), ("%s\n", szStrict)); 1479 AssertMsg(strcmp(pszName, getNodePath2(pPrev, szStrict, sizeof(szStrict))), ("%s\n", szStrict)); 1480 Log(("updateCallbackHandleOutOfOrder: pszName='%s' m_szUpdateParent='%s' m_cchUpdateParent=%u pNode='%s'\n", 1481 pszName, m_szUpdateParent, m_cchUpdateParent, getNodePath2(pNode, szStrict, sizeof(szStrict)))); 1482 1453 1483 pNode = pNode->pParent; 1454 1484 while (pNode != m_pRoot) … … 1459 1489 m_cchUpdateParent -= pNode->cchName + 1; 1460 1490 m_szUpdateParent[m_cchUpdateParent] = '\0'; 1491 Log2(("updateCallbackHandleOutOfOrder: m_szUpdateParent='%s' m_cchUpdateParent=%u, removed '/%s' (%u)\n", m_szUpdateParent, m_cchUpdateParent, pNode->pszName, __LINE__)); 1461 1492 pNode = pNode->pParent; 1462 1493 } … … 1470 1501 { 1471 1502 /* Find the end of this component. */ 1472 const char * const pszSubName = &pszName[m_cchUpdateParent];1503 const char * const pszSubName = &pszName[m_cchUpdateParent]; 1473 1504 const char *pszEnd = strchr(pszSubName, '/'); 1474 1505 if (!pszEnd) … … 1482 1513 m_szUpdateParent[m_cchUpdateParent] = '\0'; 1483 1514 Assert(m_cchUpdateParent < sizeof(m_szUpdateParent)); 1515 Log2(("updateCallbackHandleOutOfOrder: m_szUpdateParent='%s' m_cchUpdateParent=%u (%u)\n", m_szUpdateParent, m_cchUpdateParent, __LINE__)); 1484 1516 1485 1517 if (!pNode->cChildren) … … 1571 1603 m_pUpdateParent = pNode->pParent; 1572 1604 m_iUpdateChild = pNode->iSelf; 1605 Log2(("updateCallbackHandleOutOfOrder: m_szUpdateParent='%s' m_cchUpdateParent=%u (%u)\n", m_szUpdateParent, m_cchUpdateParent, __LINE__)); 1573 1606 1574 1607 return pNode;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器