VirtualBox

Ignore:
Timestamp:
Feb 3, 2021 8:23:46 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142626
Message:

VMM/DBGF,Debugger: Removed the !defined(VBOX_WITH_LOTS_OF_DBGF_BPS) code. bugref:9837

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/DBGFInternal.h

    r87130 r87594  
    5555
    5656
    57 #ifdef VBOX_WITH_LOTS_OF_DBGF_BPS
    5857/** @name Global breakpoint table handling defines.
    5958 * @{ */
     
    8180#define DBGF_BP_L2_TBL_CHUNK_COUNT          (DBGF_BP_L2_TBL_ENTRY_COUNT_MAX / DBGF_BP_L2_TBL_ENTRIES_PER_CHUNK)
    8281/** @} */
    83 #endif
    8482
    8583
     
    775773
    776774
    777 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS
    778 /**
    779  * Breakpoint search optimization.
    780  */
    781 typedef struct DBGFBPSEARCHOPT
    782 {
    783     /** Where to start searching for hits.
    784      * (First enabled is #DBGF::aBreakpoints[iStartSearch]). */
    785     uint32_t volatile       iStartSearch;
    786     /** The number of aBreakpoints entries to search.
    787      * (Last enabled is #DBGF::aBreakpoints[iStartSearch + cToSearch - 1])  */
    788     uint32_t volatile       cToSearch;
    789 } DBGFBPSEARCHOPT;
    790 /** Pointer to a breakpoint search optimziation structure. */
    791 typedef DBGFBPSEARCHOPT *PDBGFBPSEARCHOPT;
    792 #else
    793 
    794775/** An invalid breakpoint chunk ID. */
    795776#define DBGF_BP_CHUNK_ID_INVALID                    UINT32_MAX
     
    10871068/** Pointer to a breakpoint L2 lookup table chunk - Ring-0 Ptr. */
    10881069typedef R0PTRTYPE(DBGFBPL2TBLCHUNKR0 *) PDBGFBPL2TBLCHUNKR0;
    1089 #endif
    10901070
    10911071
     
    11171097    /** The number of enabled hardware I/O breakpoints. */
    11181098    uint8_t                     cEnabledHwIoBreakpoints;
    1119 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS
     1099    uint8_t                     au8Alignment1[2]; /**< Alignment padding. */
    11201100    /** The number of enabled INT3 breakpoints. */
    1121     uint8_t                     cEnabledInt3Breakpoints;
    1122     uint8_t                     abPadding; /**< Unused padding space up for grabs. */
    1123     uint32_t                    uPadding;
    1124 #else
    1125     uint16_t                    u16Pad; /**< Unused padding space up for grabs. */
    1126     /** The number of enabled INT3 breakpoints. */
    1127     volatile uint32_t           cEnabledInt3Breakpoints;
    1128 #endif
     1101    uint32_t volatile           cEnabledInt3Breakpoints;
    11291102
    11301103    /** Debugger Attached flag.
     
    11611134    } SteppingFilter;
    11621135
    1163     uint32_t                    u32Padding[2]; /**< Alignment padding. */
    1164 
    1165 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS
    1166     /** Array of hardware breakpoints. (0..3)
    1167      * This is shared among all the CPUs because life is much simpler that way. */
    1168     DBGFBP                      aHwBreakpoints[4];
    1169     /** Array of int 3 and REM breakpoints. (4..)
    1170      * @remark This is currently a fixed size array for reasons of simplicity. */
    1171     DBGFBP                      aBreakpoints[32];
    1172 
    1173     /** MMIO breakpoint search optimizations. */
    1174     DBGFBPSEARCHOPT             Mmio;
    1175     /** I/O port breakpoint search optimizations. */
    1176     DBGFBPSEARCHOPT             PortIo;
    1177     /** INT3 breakpoint search optimizations. */
    1178     DBGFBPSEARCHOPT             Int3;
    1179 #else
     1136    uint32_t                    au32Alignment2[2]; /**< Alignment padding. */
     1137
    11801138    /** @name Breakpoint handling related state.
    11811139     * @{ */
    11821140    /** Array of hardware breakpoints (0..3).
    11831141     * This is shared among all the CPUs because life is much simpler that way. */
    1184     DBGFBPHW                        aHwBreakpoints[4];
     1142    DBGFBPHW                    aHwBreakpoints[4];
    11851143    /** @} */
    1186 #endif
    11871144
    11881145    /**
     
    12491206    uint32_t                offVM;
    12501207
    1251 #ifndef VBOX_WITH_LOTS_OF_DBGF_BPS
    1252     /** Current active breakpoint (id).
    1253      * This is ~0U if not active. It is set when a execution engine
    1254      * encounters a breakpoint and returns VINF_EM_DBG_BREAKPOINT. This is
    1255      * currently not used for REM breakpoints because of the lazy coupling
    1256      * between VBox and REM.
    1257      *
    1258      * @todo drop this in favor of aEvents!  */
    1259     uint32_t                iActiveBp;
    1260 #else
     1208    /** Flag whether the to invoke any owner handlers in ring-3 before dropping into the debugger. */
     1209    bool                    fBpInvokeOwnerCallback;
     1210    /** Set if we're singlestepping in raw mode.
     1211     * This is checked and cleared in the \#DB handler. */
     1212    bool                    fSingleSteppingRaw;
     1213    /** Alignment padding. */
     1214    bool                    afPadding[2];
    12611215    /** Current active breakpoint handle.
    12621216     * This is NIL_DBGFBP if not active. It is set when a execution engine
     
    12651219     * @todo drop this in favor of aEvents!  */
    12661220    DBGFBP                  hBpActive;
    1267     /** Flag whether the to invoke any owner handlers in ring-3 before dropping into the debugger. */
    1268     bool                    fBpInvokeOwnerCallback;
    1269 #endif
    1270     /** Set if we're singlestepping in raw mode.
    1271      * This is checked and cleared in the \#DB handler. */
    1272     bool                    fSingleSteppingRaw;
    1273 
    1274     /** Alignment padding. */
    1275     bool                    afPadding[3];
    12761221
    12771222    /** The number of events on the stack (aEvents).
     
    13261271    R0PTRTYPE(struct DBGFTRACERINSR0 *) pTracerR0;
    13271272
    1328 #ifdef VBOX_WITH_LOTS_OF_DBGF_BPS
    13291273    /** @name Breakpoint handling related state, Ring-0 only part.
    13301274     * @{ */
     
    13491293    bool                                fInit;
    13501294    /** @} */
    1351 #endif
    13521295} DBGFR0PERVM;
    13531296
     
    14241367    /** @} */
    14251368
    1426 #ifdef VBOX_WITH_LOTS_OF_DBGF_BPS
    14271369    /** @name Breakpoint handling related state.
    14281370     * @{ */
     
    14421384    RTSEMFASTMUTEX                  hMtxBpL2Wr;
    14431385    /** @} */
    1444 #endif
    14451386
    14461387    /** The type database lock. */
     
    14901431void dbgfR3AsTerm(PUVM pUVM);
    14911432void dbgfR3AsRelocate(PUVM pUVM, RTGCUINTPTR offDelta);
    1492 #ifdef VBOX_WITH_LOTS_OF_DBGF_BPS
    14931433DECLHIDDEN(int) dbgfR3BpInit(PUVM pUVM);
    14941434DECLHIDDEN(int) dbgfR3BpTerm(PUVM pUVM);
    1495 #else
    1496 int  dbgfR3BpInit(PVM pVM);
    1497 #endif
    14981435int  dbgfR3InfoInit(PUVM pUVM);
    14991436int  dbgfR3InfoTerm(PUVM pUVM);
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