Changeset 93460 in vbox for trunk/src/VBox/Frontends/VBoxHeadless
- Timestamp:
- Jan 27, 2022 4:50:15 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r93115 r93460 799 799 unsigned cVRDEProperties = 0; 800 800 const char *aVRDEProperties[16]; 801 unsigned fRawR0 = ~0U;802 unsigned fRawR3 = ~0U;803 unsigned fPATM = ~0U;804 unsigned fCSAM = ~0U;805 801 unsigned fPaused = 0; 806 802 #ifdef VBOX_WITH_RECORDING … … 828 824 enum eHeadlessOptions 829 825 { 830 OPT_RAW_R0 = 0x100, 831 OPT_NO_RAW_R0, 832 OPT_RAW_R3, 833 OPT_NO_RAW_R3, 834 OPT_PATM, 835 OPT_NO_PATM, 836 OPT_CSAM, 837 OPT_NO_CSAM, 838 OPT_SETTINGSPW, 826 OPT_SETTINGSPW = 0x100, 839 827 OPT_SETTINGSPW_FILE, 840 828 OPT_COMMENT, … … 856 844 { "-vrdeproperty", 'e', RTGETOPT_REQ_STRING }, 857 845 { "--vrdeproperty", 'e', RTGETOPT_REQ_STRING }, 858 { "-rawr0", OPT_RAW_R0, 0 },859 { "--rawr0", OPT_RAW_R0, 0 },860 { "-norawr0", OPT_NO_RAW_R0, 0 },861 { "--norawr0", OPT_NO_RAW_R0, 0 },862 { "-rawr3", OPT_RAW_R3, 0 },863 { "--rawr3", OPT_RAW_R3, 0 },864 { "-norawr3", OPT_NO_RAW_R3, 0 },865 { "--norawr3", OPT_NO_RAW_R3, 0 },866 { "-patm", OPT_PATM, 0 },867 { "--patm", OPT_PATM, 0 },868 { "-nopatm", OPT_NO_PATM, 0 },869 { "--nopatm", OPT_NO_PATM, 0 },870 { "-csam", OPT_CSAM, 0 },871 { "--csam", OPT_CSAM, 0 },872 { "-nocsam", OPT_NO_CSAM, 0 },873 { "--nocsam", OPT_NO_CSAM, 0 },874 846 { "--settingspw", OPT_SETTINGSPW, RTGETOPT_REQ_STRING }, 875 847 { "--settingspwfile", OPT_SETTINGSPW_FILE, RTGETOPT_REQ_STRING }, … … 921 893 RTPrintf("Warning: too many VRDE properties. Ignored: '%s'\n", ValueUnion.psz); 922 894 break; 923 case OPT_RAW_R0:924 fRawR0 = true;925 break;926 case OPT_NO_RAW_R0:927 fRawR0 = false;928 break;929 case OPT_RAW_R3:930 fRawR3 = true;931 break;932 case OPT_NO_RAW_R3:933 fRawR3 = false;934 break;935 case OPT_PATM:936 fPATM = true;937 break;938 case OPT_NO_PATM:939 fPATM = false;940 break;941 case OPT_CSAM:942 fCSAM = true;943 break;944 case OPT_NO_CSAM:945 fCSAM = false;946 break;947 895 case OPT_SETTINGSPW: 948 896 pcszSettingsPw = ValueUnion.psz; … … 1164 1112 #endif /* defined(VBOX_WITH_RECORDING) */ 1165 1113 1114 #if 0 1166 1115 /* get the machine debugger (isn't necessarily available) */ 1167 1116 ComPtr <IMachineDebugger> machineDebugger; 1168 1117 console->COMGETTER(Debugger)(machineDebugger.asOutParam()); 1169 1118 if (machineDebugger) 1170 {1171 1119 Log(("Machine debugger available!\n")); 1172 } 1173 1174 if (fRawR0 != ~0U) 1175 { 1176 if (!machineDebugger) 1177 { 1178 RTPrintf("Error: No debugger object; -%srawr0 cannot be executed!\n", fRawR0 ? "" : "no"); 1179 break; 1180 } 1181 machineDebugger->COMSETTER(RecompileSupervisor)(!fRawR0); 1182 } 1183 if (fRawR3 != ~0U) 1184 { 1185 if (!machineDebugger) 1186 { 1187 RTPrintf("Error: No debugger object; -%srawr3 cannot be executed!\n", fRawR3 ? "" : "no"); 1188 break; 1189 } 1190 machineDebugger->COMSETTER(RecompileUser)(!fRawR3); 1191 } 1192 if (fPATM != ~0U) 1193 { 1194 if (!machineDebugger) 1195 { 1196 RTPrintf("Error: No debugger object; -%spatm cannot be executed!\n", fPATM ? "" : "no"); 1197 break; 1198 } 1199 machineDebugger->COMSETTER(PATMEnabled)(fPATM); 1200 } 1201 if (fCSAM != ~0U) 1202 { 1203 if (!machineDebugger) 1204 { 1205 RTPrintf("Error: No debugger object; -%scsam cannot be executed!\n", fCSAM ? "" : "no"); 1206 break; 1207 } 1208 machineDebugger->COMSETTER(CSAMEnabled)(fCSAM); 1209 } 1120 #endif 1210 1121 1211 1122 /* initialize global references */
Note:
See TracChangeset
for help on using the changeset viewer.