- Timestamp:
- Oct 30, 2018 4:46:17 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/dbg/dbgmoddbghelp.cpp
r73494 r75188 57 57 PRTDBGMODINT pMod; 58 58 uint64_t uModAddr; 59 RTLDRADDR uNextRva; 59 60 60 61 /** UTF-8 version of the previous file name. */ … … 367 368 368 369 369 /** @callback_method_impl{FNRTLDRENUMSEGS, Copies the PE segments over into370 * 370 /** @callback_method_impl{FNRTLDRENUMSEGS, 371 * Copies the PE segments over into the container.} */ 371 372 static DECLCALLBACK(int) rtDbgModDbgHelpAddSegmentsCallback(RTLDRMOD hLdrMod, PCRTLDRSEG pSeg, void *pvUser) 372 373 { … … 380 381 Assert(!pSeg->pszName[pSeg->cchName]); 381 382 382 if (!pSeg->RVA) 383 RTLDRADDR cb = RT_MAX(pSeg->cb, pSeg->cbMapped); 384 RTLDRADDR uRva = pSeg->RVA; 385 if (!uRva) 383 386 pArgs->uModAddr = pSeg->LinkAddress; 384 385 RTLDRADDR cb = RT_MAX(pSeg->cb, pSeg->cbMapped); 386 return RTDbgModSegmentAdd(pArgs->hCnt, pSeg->RVA, cb, pSeg->pszName, 0 /*fFlags*/, NULL); 387 else if (uRva == NIL_RTLDRADDR) 388 { 389 cb = 0; 390 uRva = pArgs->uNextRva; 391 } 392 pArgs->uNextRva = uRva + cb; 393 394 return RTDbgModSegmentAdd(pArgs->hCnt, uRva, cb, pSeg->pszName, 0 /*fFlags*/, NULL); 387 395 } 388 396 … … 457 465 { 458 466 rc = RTErrConvertFromWin32(GetLastError()); 467 if (RT_SUCCESS_NP(rc)) 468 rc = VERR_DBG_NO_MATCHING_INTERPRETER; 459 469 LogFlow(("rtDbgModDbgHelp_TryOpen: Error loading the module '%s' at %#llx: %Rrc (%u)\n", 460 470 pMod->pszDbgFile, (uint64_t)uImageBase, rc, GetLastError())); … … 470 480 { 471 481 rc = RTErrConvertFromWin32(GetLastError()); 482 if (RT_SUCCESS_NP(rc)) 483 rc = VERR_DBG_NO_MATCHING_INTERPRETER; 472 484 LogFlow(("rtDbgModDbgHelp_TryOpen: SymInitialize failed: %Rrc (%u)\n", rc, GetLastError())); 473 485 }
Note:
See TracChangeset
for help on using the changeset viewer.