VirtualBox

Changeset 73360 in vbox


Ignore:
Timestamp:
Jul 25, 2018 6:51:12 PM (6 years ago)
Author:
vboxsync
Message:

VMM,REM,DBGC: Use RTDBGSYMADDR_FLAGS_SKIP_ABS_IN_DEFERRED.

Location:
trunk/src
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Debugger/DBGCEmulateCodeView.cpp

    r73351 r73360  
    10041004        DBGFADDRESS Addr;
    10051005        int rc = DBGFR3AsSymbolByAddr(pUVM, pDbgc->hDbgAs, DBGFR3AddrFromFlat(pDbgc->pUVM, &Addr, pBp->u.GCPtr),
    1006                                       RTDBGSYMADDR_FLAGS_LESS_OR_EQUAL, &off, &Sym, NULL);
     1006                                      RTDBGSYMADDR_FLAGS_LESS_OR_EQUAL | RTDBGSYMADDR_FLAGS_SKIP_ABS_IN_DEFERRED,
     1007                                      &off, &Sym, NULL);
    10071008        if (RT_SUCCESS(rc))
    10081009        {
     
    11881189    RTDBGSYMBOL Symbol;
    11891190    RTGCINTPTR  offDispSym;
    1190     int rc = DBGFR3AsSymbolByAddr(pUVM, hDbgAs, pAddress, RTDBGSYMADDR_FLAGS_LESS_OR_EQUAL, &offDispSym, &Symbol, NULL);
     1191    int rc = DBGFR3AsSymbolByAddr(pUVM, hDbgAs, pAddress,
     1192                                  RTDBGSYMADDR_FLAGS_LESS_OR_EQUAL | RTDBGSYMADDR_FLAGS_SKIP_ABS_IN_DEFERRED,
     1193                                  &offDispSym, &Symbol, NULL);
    11911194    if (RT_FAILURE(rc) || offDispSym > _1G)
    1192         rc = DBGFR3AsSymbolByAddr(pUVM, hDbgAs, pAddress, RTDBGSYMADDR_FLAGS_GREATER_OR_EQUAL, &offDispSym, &Symbol, NULL);
     1195        rc = DBGFR3AsSymbolByAddr(pUVM, hDbgAs, pAddress,
     1196                                  RTDBGSYMADDR_FLAGS_GREATER_OR_EQUAL | RTDBGSYMADDR_FLAGS_SKIP_ABS_IN_DEFERRED,
     1197                                  &offDispSym, &Symbol, NULL);
    11931198    if (RT_SUCCESS(rc) && offDispSym < _1G)
    11941199    {
     
    34973502                        RTINTPTR    offDisp;
    34983503                        RTDBGSYMBOL Symbol;
    3499                         rc = DBGFR3AsSymbolByAddr(pUVM, pDbgc->hDbgAs, &Addr, RTDBGSYMADDR_FLAGS_LESS_OR_EQUAL,
     3504                        rc = DBGFR3AsSymbolByAddr(pUVM, pDbgc->hDbgAs, &Addr,
     3505                                                  RTDBGSYMADDR_FLAGS_LESS_OR_EQUAL | RTDBGSYMADDR_FLAGS_SKIP_ABS_IN_DEFERRED,
    35003506                                                  &offDisp, &Symbol, NULL);
    35013507                        if (RT_SUCCESS(rc))
     
    59025908        DBGFADDRESS Addr;
    59035909        rc = DBGFR3AsSymbolByAddr(pUVM, pDbgc->hDbgAs, DBGFR3AddrFromFlat(pDbgc->pUVM, &Addr, AddrVar.u.GCFlat),
    5904                                   RTDBGSYMADDR_FLAGS_LESS_OR_EQUAL, &offDisp, &Symbol, NULL);
     5910                                  RTDBGSYMADDR_FLAGS_LESS_OR_EQUAL | RTDBGSYMADDR_FLAGS_SKIP_ABS_IN_DEFERRED,
     5911                                  &offDisp, &Symbol, NULL);
    59055912        if (RT_FAILURE(rc))
    5906             return pCmdHlp->pfnVBoxError(pCmdHlp, rc, "DBGFR3ASymbolByAddr(,,%RGv,,)\n", AddrVar.u.GCFlat);
     5913            return pCmdHlp->pfnVBoxError(pCmdHlp, rc, "DBGFR3AsSymbolByAddr(,,%RGv,,)\n", AddrVar.u.GCFlat);
    59075914
    59085915        if (!offDisp)
  • trunk/src/VBox/VMM/VMMR3/DBGFDisas.cpp

    r70948 r73360  
    377377        RTDBGSYMBOL     Sym;
    378378        RTGCINTPTR      off;
    379         rc = DBGFR3AsSymbolByAddr(pState->pVM->pUVM, pState->hDbgAs, &Addr, RTDBGSYMADDR_FLAGS_LESS_OR_EQUAL,
     379        rc = DBGFR3AsSymbolByAddr(pState->pVM->pUVM, pState->hDbgAs, &Addr,
     380                                  RTDBGSYMADDR_FLAGS_LESS_OR_EQUAL | RTDBGSYMADDR_FLAGS_SKIP_ABS_IN_DEFERRED,
    380381                                  &off, &Sym, NULL /*phMod*/);
    381382        if (RT_SUCCESS(rc))
  • trunk/src/VBox/VMM/VMMR3/DBGFR3BugCheck.cpp

    r73357 r73360  
    8787    RTGCINTPTR   offDisp = 0;
    8888    PRTDBGSYMBOL pSym = DBGFR3AsSymbolByAddrA(pUVM, DBGF_AS_GLOBAL, DBGFR3AddrFromFlat(pUVM, &Addr, uFlatAddr),
    89                                               0 /*fFlags*/, &offDisp, NULL /*phMod*/);
     89                                              RTDBGSYMADDR_FLAGS_LESS_OR_EQUAL | RTDBGSYMADDR_FLAGS_SKIP_ABS_IN_DEFERRED,
     90                                              &offDisp, NULL /*phMod*/);
    9091    if (pSym)
    9192    {
  • trunk/src/VBox/VMM/VMMR3/DBGFStack.cpp

    r69111 r73360  
    158158        if (DBGFADDRESS_IS_VALID(&pFrame->AddrPC))
    159159        {
    160             pFrame->pSymPC  = DBGFR3AsSymbolByAddrA(pUVM, hAs, &pFrame->AddrPC, RTDBGSYMADDR_FLAGS_LESS_OR_EQUAL,
     160            pFrame->pSymPC  = DBGFR3AsSymbolByAddrA(pUVM, hAs, &pFrame->AddrPC,
     161                                                    RTDBGSYMADDR_FLAGS_LESS_OR_EQUAL | RTDBGSYMADDR_FLAGS_SKIP_ABS_IN_DEFERRED,
    161162                                                    NULL /*poffDisp*/, NULL /*phMod*/);
    162163            pFrame->pLinePC = DBGFR3AsLineByAddrA(pUVM, hAs, &pFrame->AddrPC, NULL /*poffDisp*/, NULL /*phMod*/);
     
    292293    }
    293294
    294     pFrame->pSymReturnPC  = DBGFR3AsSymbolByAddrA(pUVM, hAs, &pFrame->AddrReturnPC, RTDBGSYMADDR_FLAGS_LESS_OR_EQUAL,
     295    pFrame->pSymReturnPC  = DBGFR3AsSymbolByAddrA(pUVM, hAs, &pFrame->AddrReturnPC,
     296                                                  RTDBGSYMADDR_FLAGS_LESS_OR_EQUAL | RTDBGSYMADDR_FLAGS_SKIP_ABS_IN_DEFERRED,
    295297                                                  NULL /*poffDisp*/, NULL /*phMod*/);
    296298    pFrame->pLineReturnPC = DBGFR3AsLineByAddrA(pUVM, hAs, &pFrame->AddrReturnPC, NULL /*poffDisp*/, NULL /*phMod*/);
  • trunk/src/VBox/VMM/VMMR3/PATMR3Dbg.cpp

    r70948 r73360  
    198198            int rc = DBGFR3AsSymbolByAddr(pVM->pUVM, DBGF_AS_GLOBAL,
    199199                                          DBGFR3AddrFromFlat(pVM->pUVM, &Addr, pPatchRec->patch.pPrivInstrGC),
    200                                           RTDBGSYMADDR_FLAGS_LESS_OR_EQUAL,
     200                                          RTDBGSYMADDR_FLAGS_LESS_OR_EQUAL | RTDBGSYMADDR_FLAGS_SKIP_ABS_IN_DEFERRED,
    201201                                          &offDisp, &Symbol, NULL /*phMod*/);
    202202            if (RT_SUCCESS(rc))
  • trunk/src/VBox/VMM/VMMR3/VMMGuruMeditation.cpp

    r72880 r73360  
    553553                            RTGCINTPTR   offDisp = 0;
    554554                            PRTDBGSYMBOL pSym  = DBGFR3AsSymbolByAddrA(pVM->pUVM, DBGF_AS_R0, &Addr,
    555                                                                        RTDBGSYMADDR_FLAGS_LESS_OR_EQUAL, &offDisp, NULL);
     555                                                                       RTDBGSYMADDR_FLAGS_LESS_OR_EQUAL | RTDBGSYMADDR_FLAGS_SKIP_ABS_IN_DEFERRED,
     556                                                                       &offDisp, NULL);
    556557                            RTGCINTPTR   offLineDisp;
    557558                            PRTDBGLINE   pLine = DBGFR3AsLineByAddrA(pVM->pUVM, DBGF_AS_R0, &Addr, &offLineDisp, NULL);
  • trunk/src/recompiler/VBoxRecompiler.c

    r73097 r73360  
    42284228
    42294229    int rc = DBGFR3AsSymbolByAddr(pVM->pUVM, DBGF_AS_GLOBAL, DBGFR3AddrFromFlat(pVM->pUVM, &Addr, orig_addr),
    4230                                   RTDBGSYMADDR_FLAGS_LESS_OR_EQUAL, &off, &Sym, NULL /*phMod*/);
     4230                                  RTDBGSYMADDR_FLAGS_LESS_OR_EQUAL | RTDBGSYMADDR_FLAGS_SKIP_ABS_IN_DEFERRED,
     4231                                  &off, &Sym, NULL /*phMod*/);
    42314232    if (RT_SUCCESS(rc))
    42324233    {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette