Changeset 87594 in vbox for trunk/src/VBox/Debugger
- Timestamp:
- Feb 3, 2021 8:23:46 PM (4 years ago)
- Location:
- trunk/src/VBox/Debugger
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/DBGCEmulateCodeView.cpp
r86755 r87594 945 945 946 946 947 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS948 /**949 * Breakpoint enumeration callback function.950 *951 * @returns VBox status code. Any failure will stop the enumeration.952 * @param pUVM The user mode VM handle.953 * @param pvUser The user argument.954 * @param pBp Pointer to the breakpoint information. (readonly)955 */956 static DECLCALLBACK(int) dbgcEnumBreakpointsCallback(PUVM pUVM, void *pvUser, PCDBGFBP pBp)957 #else958 947 /** 959 948 * Breakpoint enumeration callback function. … … 966 955 */ 967 956 static DECLCALLBACK(int) dbgcEnumBreakpointsCallback(PUVM pUVM, void *pvUser, DBGFBP hBp, PCDBGFBPPUB pBp) 968 #endif969 957 { 970 958 PDBGC pDbgc = (PDBGC)pvUser; 971 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS972 PDBGCBP pDbgcBp = dbgcBpGet(pDbgc, pBp->iBp);973 #else974 959 PDBGCBP pDbgcBp = dbgcBpGet(pDbgc, hBp); 975 #endif976 960 977 961 /* 978 962 * BP type and size. 979 963 */ 980 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS981 DBGCCmdHlpPrintf(&pDbgc->CmdHlp, "%#4x %c ", pBp->iBp, pBp->fEnabled ? 'e' : 'd');982 #else983 964 DBGCCmdHlpPrintf(&pDbgc->CmdHlp, "%#4x %c ", hBp, DBGF_BP_PUB_IS_ENABLED(pBp->fFlagsAndType) ? 'e' : 'd'); 984 #endif985 965 bool fHasAddress = false; 986 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS987 switch (pBp->enmType)988 #else989 966 switch (DBGF_BP_PUB_GET_TYPE(pBp->fFlagsAndType)) 990 #endif991 967 { 992 968 case DBGFBPTYPE_INT3: … … 1011 987 } 1012 988 1013 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS1014 case DBGFBPTYPE_REM:1015 DBGCCmdHlpPrintf(&pDbgc->CmdHlp, " r %RGv", pBp->u.Rem.GCPtr);1016 fHasAddress = true;1017 break;1018 #endif1019 1020 989 /** @todo realign the list when I/O and MMIO breakpoint command have been added and it's possible to test this code. */ 1021 990 case DBGFBPTYPE_PORT_IO: 1022 991 case DBGFBPTYPE_MMIO: 1023 992 { 1024 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS1025 uint32_t fAccess = pBp->enmType == DBGFBPTYPE_PORT_IO ? pBp->u.PortIo.fAccess : pBp->u.Mmio.fAccess;1026 DBGCCmdHlpPrintf(&pDbgc->CmdHlp, pBp->enmType == DBGFBPTYPE_PORT_IO ? " i" : " m");1027 #else1028 993 uint32_t fAccess = DBGF_BP_PUB_GET_TYPE(pBp->fFlagsAndType) == DBGFBPTYPE_PORT_IO ? pBp->u.PortIo.fAccess : pBp->u.Mmio.fAccess; 1029 994 DBGCCmdHlpPrintf(&pDbgc->CmdHlp, DBGF_BP_PUB_GET_TYPE(pBp->fFlagsAndType) == DBGFBPTYPE_PORT_IO ? " i" : " m"); 1030 #endif1031 995 DBGCCmdHlpPrintf(&pDbgc->CmdHlp, " %c%c%c%c%c%c", 1032 996 fAccess & DBGFBPIOACCESS_READ_MASK ? 'r' : '-', … … 1043 1007 fAccess & DBGFBPIOACCESS_WRITE_QWORD ? '8' : '-', 1044 1008 fAccess & DBGFBPIOACCESS_WRITE_OTHER ? '+' : '-'); 1045 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS1046 if (pBp->enmType == DBGFBPTYPE_PORT_IO)1047 #else1048 1009 if (DBGF_BP_PUB_GET_TYPE(pBp->fFlagsAndType) == DBGFBPTYPE_PORT_IO) 1049 #endif1050 1010 DBGCCmdHlpPrintf(&pDbgc->CmdHlp, " %04x-%04x", 1051 1011 pBp->u.PortIo.uPort, pBp->u.PortIo.uPort + pBp->u.PortIo.cPorts - 1); … … 1056 1016 1057 1017 default: 1058 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS1059 DBGCCmdHlpPrintf(&pDbgc->CmdHlp, " unknown type %d!!", pBp->enmType);1060 #else1061 1018 DBGCCmdHlpPrintf(&pDbgc->CmdHlp, " unknown type %d!!", DBGF_BP_PUB_GET_TYPE(pBp->fFlagsAndType)); 1062 #endif1063 1019 AssertFailed(); 1064 1020 break; -
trunk/src/VBox/Debugger/DBGCRemoteKd.cpp
r87580 r87594 1160 1160 typedef struct KDCTXHWBP 1161 1161 { 1162 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS1163 /** The DBGF breakpoint handle if active, UINT32_MAX if not active. */1164 uint32_t hDbgfBp;1165 #else1166 1162 /** The DBGF breakpoint handle if active, NIL_DBGFBP if not active. */ 1167 1163 DBGFBP hDbgfBp; 1168 #endif1169 1164 /** The linear address of the breakpoint if active. */ 1170 1165 RTGCPTR GCPtrBp; … … 1245 1240 #define KD_PTR_GET(a_pThis, a_GCPtr) ((a_pThis)->f32Bit ? (a_GCPtr) & ~UINT64_C(0xffffffff00000000) : (a_GCPtr)) 1246 1241 1247 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS1248 # define NIL_DBGFBP ((uint32_t)UINT32_MAX)1249 #endif1250 1251 1242 1252 1243 /********************************************************************************************************************************* 1253 1244 * Internal Functions * 1254 1245 *********************************************************************************************************************************/ 1255 1256 1246 static void dbgcKdCtxMsgSend(PKDCTX pThis, bool fWarning, const char *pszMsg); 1257 1247 -
trunk/src/VBox/Debugger/Makefile.kmk
r86755 r87594 35 35 Debugger_TEMPLATE = VBOXR3 36 36 Debugger_DEFS = IN_VMM_R3 IN_DBG_R3 IN_DIS 37 ifdef VBOX_WITH_LOTS_OF_DBGF_BPS38 Debugger_DEFS += VBOX_WITH_LOTS_OF_DBGF_BPS39 endif40 37 ifneq ($(KBUILD_TYPE),release) 41 38 Debugger_DEFS += VBOX_WITH_DEBUGGER_TCP_BY_DEFAULT
Note:
See TracChangeset
for help on using the changeset viewer.