Changeset 70203 in vbox for trunk/src/VBox/Runtime/r0drv/nt/dbgkrnlinfo-r0drv-nt.cpp
- Timestamp:
- Dec 18, 2017 2:59:05 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/nt/dbgkrnlinfo-r0drv-nt.cpp
r70149 r70203 617 617 RTR0DBG_NT_DEBUG_LOG(("RTR0DbgKrnlInfoQuerySymbol: pszModule=%s pszSymbol=%s\n", pszModule ? pszModule : "<null>", pszSymbol)); 618 618 619 void *pvTmpSymbol = NULL; 620 if (!ppvSymbol) 621 ppvSymbol = &pvTmpSymbol; 622 619 623 int rc; 620 uintptr_t uValue = 0;621 624 if (!pszModule) 622 625 { 623 626 /* 624 627 * Search both ntoskrnl and hal, may use MmGetSystemRoutineAddress as fallback. 628 * Note! MmGetSystemRoutineAddress was buggy in before XP SP2 according to Geoff Chappell. 625 629 */ 626 630 if (g_NtOsKrnlInfo.pbImageBase) … … 632 636 Assert(g_NtOsKrnlInfo.fOkay); 633 637 Assert(g_HalInfo.fOkay); 634 RTR0DBG_NT_DEBUG_LOG(("RTR0DbgKrnlInfoQuerySymbol: Calling RTR0DbgKrnlInfoQuerySymbol on NT kernel...\n"));638 //RTR0DBG_NT_DEBUG_LOG(("RTR0DbgKrnlInfoQuerySymbol: Calling RTR0DbgKrnlInfoQuerySymbol on NT kernel...\n")); 635 639 rc = rtR0DbgKrnlInfoLookupSymbol(&g_NtOsKrnlInfo, pszSymbol, ppvSymbol); 636 640 if (RT_FAILURE(rc)) 637 641 { 638 RTR0DBG_NT_DEBUG_LOG(("RTR0DbgKrnlInfoQuerySymbol: Calling RTR0DbgKrnlInfoQuerySymbol on HAL kernel...\n"));642 //RTR0DBG_NT_DEBUG_LOG(("RTR0DbgKrnlInfoQuerySymbol: Calling RTR0DbgKrnlInfoQuerySymbol on HAL kernel...\n")); 639 643 rc = rtR0DbgKrnlInfoLookupSymbol(&g_HalInfo, pszSymbol, ppvSymbol); 640 644 } 641 RTR0DBG_NT_DEBUG_LOG(("RTR0DbgKrnlInfoQuerySymbol: returns %d\n", rc));645 RTR0DBG_NT_DEBUG_LOG(("RTR0DbgKrnlInfoQuerySymbol: #1 returns %d *ppvSymbol=%p\n", rc, *ppvSymbol)); 642 646 } 643 647 else … … 668 672 rc = VERR_SYMBOL_NOT_FOUND; 669 673 RTUtf16Free(pwszSymbol); 674 RTR0DBG_NT_DEBUG_LOG(("RTR0DbgKrnlInfoQuerySymbol: #2 returns %d *ppvSymbol=%p\n", rc, *ppvSymbol)); 670 675 } 671 676 } … … 730 735 } 731 736 if (pModInfo) 737 { 732 738 rc = rtR0DbgKrnlInfoLookupSymbol(pModInfo, pszSymbol, ppvSymbol); 739 RTR0DBG_NT_DEBUG_LOG(("RTR0DbgKrnlInfoQuerySymbol: #3 returns %d *ppvSymbol=%p\n", rc, *ppvSymbol)); 740 } 733 741 } 734 if (ppvSymbol)735 *ppvSymbol = (void *)uValue;736 742 return rc; 737 743 }
Note:
See TracChangeset
for help on using the changeset viewer.