VirtualBox

Changeset 105531 in vbox for trunk


Ignore:
Timestamp:
Jul 27, 2024 12:54:02 AM (6 months ago)
Author:
vboxsync
Message:

VBoxDbg: Extended the dumpimage command, creating standalone tool of it (VBoxDumpImage). bugref:10727

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

Legend:

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

    r105508 r105531  
    344344        /* Adjust the RVA if we're reading beyond the end of the image. */
    345345        if (uRva + m_cbBufAlloc > RT_ALIGN_Z(cbMaxRva, 8))
    346             uRva = m_cbBufAlloc > RT_ALIGN_Z(cbMaxRva, 8) ? RT_ALIGN_Z(cbMaxRva, 8) - m_cbBufAlloc : 0;
     346            uRva = m_cbBufAlloc < RT_ALIGN_Z(cbMaxRva, 8) ? RT_ALIGN_Z(cbMaxRva, 8) - m_cbBufAlloc : 0;
    347347
    348348        /* Do the read.  In case of failure readBytesAtRva will zero the buffer. */
  • trunk/src/VBox/Debugger/Makefile.kmk

    r101554 r105531  
    6868
    6969ifdef VBOX_WITH_VIRT_ARMV8
    70  ifdef VBOX_WITH_DEBUGGER
    71   LIBRARIES += Debugger-armv8
    72  endif # VBOX_WITH_DEBUGGER
    73 
    7470 #
    7571 # Debugger library - linked into VBoxVMM, ARMv8 variant.
    7672 #
    7773 # @todo Can this be merged into one library later maybe?
     74 ifdef VBOX_WITH_DEBUGGER
     75  LIBRARIES += Debugger-armv8
     76 endif
    7877 Debugger-armv8_TEMPLATE  = VBoxR3Dll
    7978 Debugger-armv8_DEFS      = VBOX_VMM_TARGET_ARMV8 IN_VMM_R3 IN_DBG_R3 IN_DIS
     
    9998        DBGCIoProvIpc.cpp \
    10099        DBGCScreenAscii.cpp
    101 endif
     100endif # VBOX_WITH_VIRT_ARMV8
     101
     102
     103#
     104# Executable Image dumper based on the dumpimage debugger command.
     105#
     106PROGRAMS += VBoxDumpImage
     107VBoxDumpImage_TEMPLATE = VBoxR3Tool
     108VBoxDumpImage_DEFS    := DBGC_DUMP_IMAGE_TOOL
     109VBoxDumpImage_SOURCES := DBGCDumpImage.cpp
     110$(call VBOX_SET_VER_INFO_DLL,VBoxDumpImage,VirtualBox Executable Image Dumper Utility)
     111
    102112
    103113#
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