VirtualBox

Changeset 57991 in vbox


Ignore:
Timestamp:
Oct 1, 2015 7:28:46 PM (9 years ago)
Author:
vboxsync
Message:

VBoxManage/VBoxManageDebugVM.cpp: Fixed hang when processing log groups starting with "h", e.g. "VBoxManage debugvm <VM Name> log --debug -hex".

File:
1 edited

Legend:

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

    r57358 r57991  
    211211        { "--release",      DEBUGVM_LOG_RELEASE, RTGETOPT_REQ_NOTHING }
    212212    };
    213     int rc = RTGetOptInit(&GetState, pArgs->argc, pArgs->argv, s_aOptions, RT_ELEMENTS(s_aOptions), 2, RTGETOPTINIT_FLAGS_OPTS_FIRST);
     213    int rc = RTGetOptInit(&GetState, pArgs->argc, pArgs->argv, s_aOptions, RT_ELEMENTS(s_aOptions), 2,
     214                          /*
     215                           * Note: RTGETOPTINIT_FLAGS_NO_STD_OPTS is needed to not get into an infinite hang in the following
     216                           *       while-loop when processing log groups starting with "h",
     217                           *       e.g. "VBoxManage debugvm <VM Name> log --debug -hex".
     218                           */
     219                          RTGETOPTINIT_FLAGS_OPTS_FIRST | RTGETOPTINIT_FLAGS_NO_STD_OPTS);
    214220    AssertRCReturn(rc, RTEXITCODE_FAILURE);
    215221
     
    247253        strSettings.append(strTmp);
    248254    }
     255
     256
    249257
    250258    com::Bstr bstrSettings(strSettings);
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