Changeset 73417 in vbox for trunk/src/VBox
- Timestamp:
- Aug 1, 2018 11:09:23 AM (6 years ago)
- Location:
- trunk/src/VBox/VMM/VMMR3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/DBGFReg.cpp
r73097 r73417 1050 1050 return rc; 1051 1051 } 1052 1053 1054 /** 1055 * Queries a descriptor table register value. 1056 * 1057 * @retval VINF_SUCCESS 1058 * @retval VERR_INVALID_VM_HANDLE 1059 * @retval VERR_INVALID_CPU_ID 1060 * @retval VERR_DBGF_REGISTER_NOT_FOUND 1061 * @retval VERR_DBGF_UNSUPPORTED_CAST 1062 * @retval VINF_DBGF_TRUNCATED_REGISTER 1063 * @retval VINF_DBGF_ZERO_EXTENDED_REGISTER 1064 * 1065 * @param pUVM The user mode VM handle. 1066 * @param idCpu The target CPU ID. Can be OR'ed with 1067 * DBGFREG_HYPER_VMCPUID. 1068 * @param enmReg The register that's being queried. 1069 * @param pu64Base Where to store the register base value. 1070 * @param pu16Limit Where to store the register limit value. 1071 */ 1072 VMMR3DECL(int) DBGFR3RegCpuQueryXdtr(PUVM pUVM, VMCPUID idCpu, DBGFREG enmReg, uint64_t *pu64Base, uint16_t *pu16Limit) 1073 { 1074 DBGFREGVAL Value; 1075 int rc = dbgfR3RegCpuQueryWorker(pUVM, idCpu, enmReg, DBGFREGVALTYPE_DTR, &Value); 1076 if (RT_SUCCESS(rc)) 1077 { 1078 *pu64Base = Value.dtr.u64Base; 1079 *pu16Limit = Value.dtr.u32Limit; 1080 } 1081 else 1082 { 1083 *pu64Base = 0; 1084 *pu16Limit = 0; 1085 } 1086 return rc; 1087 } 1088 1052 1089 1053 1090 #if 0 /* rewrite / remove */ … … 1770 1807 * "set.reg[.sub]". 1771 1808 * @param pu64Base Where to store the register base value. 1772 * @param pu 32Limit Where to store the register limit value.1773 */ 1774 VMMR3DECL(int) DBGFR3RegNmQueryXdtr(PUVM pUVM, VMCPUID idDefCpu, const char *pszReg, uint64_t *pu64Base, uint 32_t *pu32Limit)1809 * @param pu16Limit Where to store the register limit value. 1810 */ 1811 VMMR3DECL(int) DBGFR3RegNmQueryXdtr(PUVM pUVM, VMCPUID idDefCpu, const char *pszReg, uint64_t *pu64Base, uint16_t *pu16Limit) 1775 1812 { 1776 1813 DBGFREGVAL Value; … … 1779 1816 { 1780 1817 *pu64Base = Value.dtr.u64Base; 1781 *pu 32Limit = Value.dtr.u32Limit;1818 *pu16Limit = Value.dtr.u32Limit; 1782 1819 } 1783 1820 else 1784 1821 { 1785 1822 *pu64Base = 0; 1786 *pu 32Limit = 0;1823 *pu16Limit = 0; 1787 1824 } 1788 1825 return rc; -
trunk/src/VBox/VMM/VMMR3/VMMR3.def
r72327 r73417 110 110 DBGFR3OSDetect 111 111 DBGFR3OSQueryNameAndVersion 112 DBGFR3RegCpuQueryU8 113 DBGFR3RegCpuQueryU16 112 114 DBGFR3RegCpuQueryU32 115 DBGFR3RegCpuQueryU64 116 DBGFR3RegCpuQueryXdtr 117 DBGFR3RegCpuQueryLrd 113 118 DBGFR3RegFormatValue 114 119 DBGFR3RegNmQuery … … 121 126 DBGFR3MemRead 122 127 DBGFR3MemScan 128 DBGFR3ModInMem 123 129 DBGFR3AddrFromFlat 124 130 DBGFR3AsSymbolByName
Note:
See TracChangeset
for help on using the changeset viewer.