VirtualBox

Changeset 99010 in vbox for trunk


Ignore:
Timestamp:
Mar 16, 2023 6:12:43 PM (21 months ago)
Author:
vboxsync
Message:

Debugger: Build a debugger library specific for the armv8 target, bugref:10385

Location:
trunk/src/VBox/Debugger
Files:
2 edited

Legend:

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

    r98103 r99010  
    13431343        if (!DBGCVAR_ISPOINTER(pDbgc->DisasmPos.enmType))
    13441344        {
     1345#if defined(VBOX_VMM_TARGET_ARMV8)
     1346            AssertReleaseFailed();
     1347#else
    13451348            /** @todo Batch query CS, RIP, CPU mode and flags. */
    13461349            PVMCPU pVCpu = VMMR3GetCpuByIdU(pUVM, pDbgc->idCpu);
     
    13621365                }
    13631366            }
     1367#endif
    13641368
    13651369            fFlags |= DBGF_DISAS_FLAGS_CURRENT_GUEST;
     
    21082112        if (!DBGCVAR_ISPOINTER(pDbgc->DisasmPos.enmType))
    21092113        {
     2114#if defined(VBOX_VMM_TARGET_ARMV8)
     2115            AssertReleaseFailed();
     2116#else
    21102117            /** @todo Batch query CS, RIP, CPU mode and flags. */
    21112118            PVMCPU pVCpu = VMMR3GetCpuByIdU(pUVM, pDbgc->idCpu);
     
    21272134                }
    21282135            }
     2136#endif
    21292137
    21302138            fFlags |= DBGF_DISAS_FLAGS_CURRENT_GUEST;
     
    22442252        if (!DBGCVAR_ISPOINTER(pDbgc->SourcePos.enmType))
    22452253        {
     2254#if defined(VBOX_VMM_TARGET_ARMV8)
     2255            AssertReleaseFailed();
     2256#else
    22462257            PVMCPU pVCpu = VMMR3GetCpuByIdU(pUVM, pDbgc->idCpu);
    22472258            pDbgc->SourcePos.enmType     = DBGCVAR_TYPE_GC_FAR;
    22482259            pDbgc->SourcePos.u.GCFar.off = CPUMGetGuestEIP(pVCpu);
    22492260            pDbgc->SourcePos.u.GCFar.sel = CPUMGetGuestCS(pVCpu);
     2261#endif
    22502262        }
    22512263        pDbgc->SourcePos.enmRangeType = DBGCVAR_RANGE_NONE;
     
    36913703static RTGCPHYS dbgcGetGuestPageMode(PDBGC pDbgc, bool *pfPAE, bool *pfLME, bool *pfPSE, bool *pfPGE, bool *pfNXE)
    36923704{
     3705#if defined(VBOX_VMM_TARGET_ARMV8)
     3706    AssertReleaseFailed();
     3707    RT_NOREF(pDbgc, pfPAE, pfLME, pfPSE, pfPGE, pfNXE);
     3708    return ~(RTGCPHYS)0;
     3709#else
    36933710    PVMCPU      pVCpu = VMMR3GetCpuByIdU(pDbgc->pUVM, pDbgc->idCpu);
    36943711    RTGCUINTREG cr4   = CPUMGetGuestCR4(pVCpu);
     
    37063723    *pfNXE = false; /* GUEST64 GUESTNX */
    37073724    return CPUMGetGuestCR3(pVCpu);
     3725#endif
    37083726}
    37093727
     
    64426460        if (!DBGCVAR_ISPOINTER(pDbgc->DisasmPos.enmType))
    64436461        {
     6462#if defined(VBOX_VMM_TARGET_ARMV8)
     6463            AssertReleaseFailed();
     6464#else
    64446465            /** @todo Batch query CS, RIP, CPU mode and flags. */
    64456466            PVMCPU pVCpu = VMMR3GetCpuByIdU(pUVM, pDbgc->idCpu);
     
    64616482                }
    64626483            }
     6484#endif
    64636485
    64646486            fFlags |= DBGF_DISAS_FLAGS_CURRENT_GUEST;
  • trunk/src/VBox/Debugger/Makefile.kmk

    r98439 r99010  
    6666        DBGCIoProvIpc.cpp \
    6767        DBGCScreenAscii.cpp
     68
     69ifdef VBOX_WITH_VIRT_ARMV8
     70 ifdef VBOX_WITH_DEBUGGER
     71  LIBRARIES += Debugger-armv8
     72 endif # VBOX_WITH_DEBUGGER
     73
     74 #
     75 # Debugger library - linked into VBoxVMM, ARMv8 variant.
     76 #
     77 # @todo Can this be merged into one library later maybe?
     78 Debugger-armv8_TEMPLATE  = VBoxR3Dll
     79 Debugger-armv8_DEFS      = VBOX_VMM_TARGET_ARMV8 IN_VMM_R3 IN_DBG_R3 IN_DIS
     80 ifneq ($(KBUILD_TYPE),release)
     81  Debugger-armv8_DEFS    += VBOX_WITH_DEBUGGER_TCP_BY_DEFAULT
     82 endif
     83 Debugger-armv8_SOURCES   = \
     84        DBGConsole.cpp \
     85        DBGCEval.cpp \
     86        DBGCBuiltInSymbols.cpp \
     87        DBGCCmdHlp.cpp \
     88        DBGCCmdWorkers.cpp \
     89        DBGCCommands.cpp \
     90        DBGCDumpImage.cpp \
     91        DBGCFunctions.cpp \
     92        DBGCEmulateCodeView.cpp \
     93        DBGCOps.cpp \
     94        DBGCGdbRemoteStub.cpp \
     95        DBGCRemoteKd.cpp \
     96        DBGCIo.cpp \
     97        DBGCIoProvTcp.cpp \
     98        DBGCIoProvUdp.cpp \
     99        DBGCIoProvIpc.cpp \
     100        DBGCScreenAscii.cpp
     101endif
    68102
    69103#
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