Changeset 75482 in vbox for trunk/src/VBox/Runtime/common/dbg
- Timestamp:
- Nov 15, 2018 12:40:53 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/dbg/dbgmodcontainer.cpp
r74980 r75482 29 29 * Header Files * 30 30 *********************************************************************************************************************************/ 31 #define LOG_GROUP RTLOGGROUP_DBG 31 32 #include <iprt/dbg.h> 32 33 #include "internal/iprt.h" … … 34 35 #include <iprt/avl.h> 35 36 #include <iprt/err.h> 37 #include <iprt/log.h> 36 38 #include <iprt/mem.h> 37 39 #define RTDBGMODCNT_WITH_MEM_CACHE … … 410 412 static void rtDbgModContainer_SymbolReplace(PRTDBGMODCTN pThis, PAVLRUINTPTRTREE pAddrTree, PRTDBGMODCTNSYMBOL pToRemove) 411 413 { 414 RTLogPrintf("rtDbgModContainer_SymbolReplace: pToRemove=%p ordinal=%u %04x:%08RX64 %s\n", 415 pToRemove, pToRemove->OrdinalCore.Key, pToRemove->iSeg, pToRemove->AddrCore.Key, pToRemove->NameCore.pszString); 416 412 417 /* Unlink it. */ 413 418 PRTSTRSPACECORE pRemovedName = RTStrSpaceRemove(&pThis->Names, pToRemove->NameCore.pszString); … … 426 431 RTMemFree(pToRemove); 427 432 428 /* Jump the last symbol ordinal to take its place. */ 429 PAVLU32NODECORE pLastOrdinal = RTAvlU32Remove(&pThis->SymbolOrdinalTree, pThis->iNextSymbolOrdinal - 1); 430 AssertReturnVoid(pLastOrdinal); 431 432 pThis->iNextSymbolOrdinal -= 1; 433 pLastOrdinal->Key = iOrdinal; 434 bool fInsert = RTAvlU32Insert(&pThis->SymbolOrdinalTree, pLastOrdinal); 435 Assert(fInsert); RT_NOREF_PV(fInsert); 433 /* Jump the last symbol ordinal to take its place, unless pToRemove is the last one. */ 434 if (iOrdinal >= pThis->iNextSymbolOrdinal - 1) 435 pThis->iNextSymbolOrdinal -= 1; 436 else 437 { 438 PAVLU32NODECORE pLastOrdinal = RTAvlU32Remove(&pThis->SymbolOrdinalTree, pThis->iNextSymbolOrdinal - 1); 439 AssertReturnVoid(pLastOrdinal); 440 441 pThis->iNextSymbolOrdinal -= 1; 442 pLastOrdinal->Key = iOrdinal; 443 bool fInsert = RTAvlU32Insert(&pThis->SymbolOrdinalTree, pLastOrdinal); 444 Assert(fInsert); RT_NOREF_PV(fInsert); 445 } 436 446 } 437 447 … … 494 504 if (piOrdinal) 495 505 *piOrdinal = pThis->iNextSymbolOrdinal; 506 RTLogPrintf("rtDbgModContainer_SymbolAdd: ordinal=%u %04x:%08RX64 LB %#RX64 %s\n", 507 pThis->iNextSymbolOrdinal, iSeg, off, cb, pSymbol->NameCore.pszString); 496 508 pThis->iNextSymbolOrdinal++; 497 509 return rc; … … 559 571 *piOrdinal = pThis->iNextSymbolOrdinal; 560 572 pThis->iNextSymbolOrdinal++; 573 RTLogPrintf("rtDbgModContainer_SymbolAdd: ordinal=%u %04x:%08RX64 LB %#RX64 %s [replace codepath]\n", 574 pThis->iNextSymbolOrdinal, iSeg, off, cb, pSymbol->NameCore.pszString); 561 575 return rc; 562 576 }
Note:
See TracChangeset
for help on using the changeset viewer.