VirtualBox

Ignore:
Timestamp:
Dec 20, 2010 1:33:23 PM (14 years ago)
Author:
vboxsync
Message:

IMachineDebugger: Stubbed a few, new methods that may come in handy in the 4.0 product cycle. Adjusted the dumpGuestCore method so that it can later be amended with any stream compression method we like.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageDebugVM.cpp

    r34971 r35242  
    7070     * Parse arguments.
    7171     */
    72     const char                 *pszFilename  = NULL;
     72    const char                 *pszFilename = NULL;
     73    const char                 *pszCompression = NULL;
    7374
    7475    RTGETOPTSTATE               GetState;
     
    7677    static const RTGETOPTDEF    s_aOptions[] =
    7778    {
    78         { "--filename", 'f', RTGETOPT_REQ_STRING }
     79        { "--filename",     'f', RTGETOPT_REQ_STRING },
     80        { "--compression",  'c', RTGETOPT_REQ_STRING }
    7981    };
    8082    int rc = RTGetOptInit(&GetState, pArgs->argc, pArgs->argv, s_aOptions, RT_ELEMENTS(s_aOptions), 2, 0 /*fFlags*/);
     
    8587        switch (rc)
    8688        {
     89            case 'c':
     90                if (pszCompression)
     91                    return errorSyntax(USAGE_DEBUGVM, "The --compression option has already been given");
     92                pszCompression = ValueUnion.psz;
     93                break;
    8794            case 'f':
    8895                if (pszFilename)
     
    107114
    108115    com::Bstr bstrFilename(szAbsFilename);
    109     CHECK_ERROR2_RET(pDebugger, DumpGuestCore(bstrFilename.raw()), RTEXITCODE_FAILURE);
     116    com::Bstr bstrCompression(pszCompression);
     117    CHECK_ERROR2_RET(pDebugger, DumpGuestCore(bstrFilename.raw(), bstrCompression.raw()), RTEXITCODE_FAILURE);
    110118    return RTEXITCODE_SUCCESS;
    111119}
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