Changeset 80156 in vbox
- Timestamp:
- Aug 6, 2019 1:54:47 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/dbgf.h
r80153 r80156 909 909 #ifdef IN_RING3 /* The info callbacks API only works in ring-3. */ 910 910 911 struct RTGETOPTSTATE; 912 union RTGETOPTUNION; 913 911 914 /** 912 915 * Info helper callback structure. … … 931 934 */ 932 935 DECLCALLBACKMEMBER(void, pfnPrintfV)(PCDBGFINFOHLP pHlp, const char *pszFormat, va_list args) RT_IPRT_FORMAT_ATTR(2, 0); 936 937 /** 938 * Report getopt parsing trouble 939 * 940 * @param pHlp Pointer to this structure. 941 * @param rc The RTGetOpt return value. 942 * @param pValueUnion The value union. 943 * @param pState The getopt state. 944 */ 945 DECLCALLBACKMEMBER(void, pfnGetOptError)(PCDBGFINFOHLP pHlp, int rc, union RTGETOPTUNION *pValueUnion, 946 struct RTGETOPTSTATE *pState); 933 947 } DBGFINFOHLP; 934 948 … … 1131 1145 VMMR3DECL(PCDBGFINFOHLP) DBGFR3InfoLogHlp(void); 1132 1146 VMMR3DECL(PCDBGFINFOHLP) DBGFR3InfoLogRelHlp(void); 1147 VMMR3DECL(void) DBGFR3InfoGenricGetOptError(PCDBGFINFOHLP pHlp, int rc, union RTGETOPTUNION *pValueUnion, 1148 struct RTGETOPTSTATE *pState); 1133 1149 1134 1150 #endif /* IN_RING3 */ -
trunk/src/VBox/Debugger/DBGCCmdHlp.cpp
r80014 r80156 1305 1305 if (!pDbgc->DbgfOutputHlp.pfnPrintf) 1306 1306 { 1307 pDbgc->DbgfOutputHlp.pfnPrintf = dbgcHlpGetDbgfOutputHlp_Printf; 1308 pDbgc->DbgfOutputHlp.pfnPrintfV = dbgcHlpGetDbgfOutputHlp_PrintfV; 1307 pDbgc->DbgfOutputHlp.pfnPrintf = dbgcHlpGetDbgfOutputHlp_Printf; 1308 pDbgc->DbgfOutputHlp.pfnPrintfV = dbgcHlpGetDbgfOutputHlp_PrintfV; 1309 pDbgc->DbgfOutputHlp.pfnGetOptError = DBGFR3InfoGenricGetOptError; 1309 1310 } 1310 1311 -
trunk/src/VBox/Debugger/testcase/tstDBGCStubs.cpp
r80050 r80156 118 118 { 119 119 return VERR_INTERNAL_ERROR; 120 } 121 VMMR3DECL(void) DBGFR3InfoGenricGetOptError(PCDBGFINFOHLP pHlp, int rc, union RTGETOPTUNION *pValueUnion, struct RTGETOPTSTATE *pState) 122 { 120 123 } 121 124 VMMR3DECL(bool) DBGFR3IsHalted(PUVM pUVM) -
trunk/src/VBox/Main/src-client/MachineDebuggerImpl.cpp
r80114 r80156 889 889 static void MachineDebuggerInfoInit(PMACHINEDEBUGGERINOFHLP pHlp) 890 890 { 891 pHlp->Core.pfnPrintf = MachineDebuggerInfoPrintf; 892 pHlp->Core.pfnPrintfV = MachineDebuggerInfoPrintfV; 893 pHlp->pszBuf = NULL; 894 pHlp->cbBuf = 0; 895 pHlp->offBuf = 0; 896 pHlp->fOutOfMemory = false; 891 pHlp->Core.pfnPrintf = MachineDebuggerInfoPrintf; 892 pHlp->Core.pfnPrintfV = MachineDebuggerInfoPrintfV; 893 pHlp->Core.pfnGetOptError = DBGFR3InfoGenricGetOptError; 894 pHlp->pszBuf = NULL; 895 pHlp->cbBuf = 0; 896 pHlp->offBuf = 0; 897 pHlp->fOutOfMemory = false; 897 898 } 898 899 -
trunk/src/VBox/VMM/VMMR3/DBGFInfo.cpp
r80153 r80156 59 59 { 60 60 dbgfR3InfoLog_Printf, 61 dbgfR3InfoLog_PrintfV 61 dbgfR3InfoLog_PrintfV, 62 DBGFR3InfoGenricGetOptError, 62 63 }; 63 64 … … 66 67 { 67 68 dbgfR3InfoLogRel_Printf, 68 dbgfR3InfoLogRel_PrintfV 69 dbgfR3InfoLogRel_PrintfV, 70 DBGFR3InfoGenricGetOptError 69 71 }; 70 72 … … 73 75 { 74 76 dbgfR3InfoStdErr_Printf, 75 dbgfR3InfoStdErr_PrintfV 77 dbgfR3InfoStdErr_PrintfV, 78 DBGFR3InfoGenricGetOptError 76 79 }; 77 80 … … 127 130 128 131 129 /** Logger output. 130 * @copydoc DBGFINFOHLP::pfnPrintf */ 132 /** 133 * @interface_method_impl{DBGFINFOHLP,pfnGetOptError} 134 */ 135 VMMR3DECL(void) DBGFR3InfoGenricGetOptError(PCDBGFINFOHLP pHlp, int rc, PRTGETOPTUNION pValueUnion, PRTGETOPTSTATE pState) 136 { 137 RT_NOREF(pState); 138 char szMsg[1024]; 139 RTGetOptFormatError(szMsg, sizeof(szMsg), rc, pValueUnion); 140 pHlp->pfnPrintf(pHlp, "syntax error: %s\n", szMsg); 141 } 142 143 144 /** 145 * @interface_method_impl{DBGFINFOHLP,pfnPrintf, Logger output.} 146 */ 131 147 static DECLCALLBACK(void) dbgfR3InfoLog_Printf(PCDBGFINFOHLP pHlp, const char *pszFormat, ...) 132 148 { … … 138 154 } 139 155 140 /** Logger output. 141 * @copydoc DBGFINFOHLP::pfnPrintfV */ 156 157 /** 158 * @interface_method_impl{DBGFINFOHLP,pfnPrintfV, Logger output.} 159 */ 142 160 static DECLCALLBACK(void) dbgfR3InfoLog_PrintfV(PCDBGFINFOHLP pHlp, const char *pszFormat, va_list args) 143 161 { … … 159 177 160 178 161 /** Release logger output. 162 * @copydoc DBGFINFOHLP::pfnPrintf */ 179 /** 180 * @interface_method_impl{DBGFINFOHLP,pfnPrintf, Release logger output.} 181 */ 163 182 static DECLCALLBACK(void) dbgfR3InfoLogRel_Printf(PCDBGFINFOHLP pHlp, const char *pszFormat, ...) 164 183 { … … 170 189 } 171 190 172 /** Release logger output. 173 * @copydoc DBGFINFOHLP::pfnPrintfV */ 191 192 /** 193 * @interface_method_impl{DBGFINFOHLP,pfnPrintfV, Release logger output.} 194 */ 174 195 static DECLCALLBACK(void) dbgfR3InfoLogRel_PrintfV(PCDBGFINFOHLP pHlp, const char *pszFormat, va_list args) 175 196 { … … 179 200 180 201 181 /** Standard error output. 182 * @copydoc DBGFINFOHLP::pfnPrintf */ 202 /** 203 * @interface_method_impl{DBGFINFOHLP,pfnPrintf, Stdandard error output.} 204 */ 183 205 static DECLCALLBACK(void) dbgfR3InfoStdErr_Printf(PCDBGFINFOHLP pHlp, const char *pszFormat, ...) 184 206 { … … 190 212 } 191 213 192 /** Standard error output. 193 * @copydoc DBGFINFOHLP::pfnPrintfV */ 214 215 /** 216 * @interface_method_impl{DBGFINFOHLP,pfnPrintfV, Stdandard error output.} 217 */ 194 218 static DECLCALLBACK(void) dbgfR3InfoStdErr_PrintfV(PCDBGFINFOHLP pHlp, const char *pszFormat, va_list args) 195 219 { -
trunk/src/VBox/VMM/VMMR3/VMMGuruMeditation.cpp
r80050 r80156 199 199 RT_BZERO(pHlp, sizeof(*pHlp)); 200 200 201 pHlp->Core.pfnPrintf = vmmR3FatalDumpInfoHlp_pfnPrintf; 202 pHlp->Core.pfnPrintfV = vmmR3FatalDumpInfoHlp_pfnPrintfV; 201 pHlp->Core.pfnPrintf = vmmR3FatalDumpInfoHlp_pfnPrintf; 202 pHlp->Core.pfnPrintfV = vmmR3FatalDumpInfoHlp_pfnPrintfV; 203 pHlp->Core.pfnGetOptError = DBGFR3InfoGenricGetOptError; 203 204 204 205 /* -
trunk/src/VBox/VMM/VMMR3/VMMR3.def
r80113 r80156 102 102 DBGFR3InfoRegisterExternal 103 103 DBGFR3InfoDeregisterExternal 104 DBGFR3InfoGenricGetOptError 104 105 DBGFR3InjectNMI 105 106 DBGFR3LogModifyDestinations
Note:
See TracChangeset
for help on using the changeset viewer.