Changeset 49044 in vbox for trunk/src/VBox/Runtime/common/dbg/dbgmoddeferred.cpp
- Timestamp:
- Oct 11, 2013 1:06:28 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/dbg/dbgmoddeferred.cpp
r46281 r49044 439 439 * 440 440 */ 441 442 /** @interface_method_impl{RTDBGMODVTIMG,pfnQueryProp} */ 443 static DECLCALLBACK(int ) rtDbgModDeferredImg_QueryProp(PRTDBGMODINT pMod, RTLDRPROP enmProp, void *pvBuf, size_t cbBuf) 444 { 445 int rc = rtDbgModDeferredDoIt(pMod, false /*fForceRetry*/); 446 if (RT_SUCCESS(rc)) 447 rc = pMod->pImgVt->pfnQueryProp(pMod, enmProp, pvBuf, cbBuf); 448 return rc; 449 } 441 450 442 451 … … 593 602 /*.pfnGetFormat = */ rtDbgModDeferredImg_GetFormat, 594 603 /*.pfnGetArch = */ rtDbgModDeferredImg_GetArch, 604 /*.pfnQueryProp = */ rtDbgModDeferredImg_QueryProp, 595 605 596 606 /*.u32EndMagic = */ RTDBGMODVTIMG_MAGIC … … 608 618 * @param hDbgCfg The debug config handle. Can be NIL. A 609 619 * reference will be retained. 620 * @param cbDeferred The size of the deferred instance data, 0 if the 621 * default structure is good enough. 610 622 * @param ppDeferred Where to return the instance data. Can be NULL. 611 623 */ 612 624 DECLHIDDEN(int) rtDbgModDeferredCreate(PRTDBGMODINT pDbgMod, PFNRTDBGMODDEFERRED pfnDeferred, RTUINTPTR cbImage, 613 RTDBGCFG hDbgCfg, PRTDBGMODDEFERRED *ppDeferred)625 RTDBGCFG hDbgCfg, size_t cbDeferred, PRTDBGMODDEFERRED *ppDeferred) 614 626 { 615 627 AssertReturn(!pDbgMod->pDbgVt, VERR_DBG_MOD_IPE); 616 628 617 PRTDBGMODDEFERRED pDeferred = (PRTDBGMODDEFERRED)RTMemAllocZ(sizeof(*pDeferred)); 629 if (cbDeferred < sizeof(RTDBGMODDEFERRED)) 630 cbDeferred = sizeof(RTDBGMODDEFERRED); 631 PRTDBGMODDEFERRED pDeferred = (PRTDBGMODDEFERRED)RTMemAllocZ(cbDeferred); 618 632 if (!pDeferred) 619 633 return VERR_NO_MEMORY;
Note:
See TracChangeset
for help on using the changeset viewer.