Changeset 35242 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Dec 20, 2010 1:33:23 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDebugVM.cpp
r34971 r35242 70 70 * Parse arguments. 71 71 */ 72 const char *pszFilename = NULL; 72 const char *pszFilename = NULL; 73 const char *pszCompression = NULL; 73 74 74 75 RTGETOPTSTATE GetState; … … 76 77 static const RTGETOPTDEF s_aOptions[] = 77 78 { 78 { "--filename", 'f', RTGETOPT_REQ_STRING } 79 { "--filename", 'f', RTGETOPT_REQ_STRING }, 80 { "--compression", 'c', RTGETOPT_REQ_STRING } 79 81 }; 80 82 int rc = RTGetOptInit(&GetState, pArgs->argc, pArgs->argv, s_aOptions, RT_ELEMENTS(s_aOptions), 2, 0 /*fFlags*/); … … 85 87 switch (rc) 86 88 { 89 case 'c': 90 if (pszCompression) 91 return errorSyntax(USAGE_DEBUGVM, "The --compression option has already been given"); 92 pszCompression = ValueUnion.psz; 93 break; 87 94 case 'f': 88 95 if (pszFilename) … … 107 114 108 115 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); 110 118 return RTEXITCODE_SUCCESS; 111 119 }
Note:
See TracChangeset
for help on using the changeset viewer.