| 1258 | } |
| 1259 | |
| 1260 | void DbgExprEvaluator::BeefTypeToString(const DbgTypedValue& val, String& outStr) |
| 1261 | { |
| 1262 | if (!val) |
| 1263 | return; |
| 1264 | |
| 1265 | mDebugTarget->GetCompilerSettings(); |
| 1266 | |
| 1267 | auto useVal = val; |
| 1268 | if (useVal.mType->IsBfObjectPtr()) |
| 1269 | { |
| 1270 | useVal.mType = useVal.mType->mTypeParam; |
| 1271 | useVal.mSrcAddress = useVal.mPtr; |
| 1272 | } |
| 1273 | |
| 1274 | typedef int32 _TypeId; |
| 1275 | typedef uint32 _TypeFlags; |
| 1276 | typedef int8 _TypeCode; |
| 1277 | |
| 1278 | #pragma pack(push, 1) |
| 1279 | struct _Type |
| 1280 | { |
| 1281 | int32 mSize; |
| 1282 | _TypeId mTypeId; |
| 1283 | _TypeId mBoxedType; |
| 1284 | _TypeFlags mTypeFlags; |
| 1285 | int32 mMemberDataOffset; |
| 1286 | _TypeCode mTypeCode; |
| 1287 | uint8 mAlign; |
| 1288 | }; |
| 1289 | |
| 1290 | struct _PointerType : _Type |
| 1291 | { |
| 1292 | int16 mPadding0; |
| 1293 | _TypeCode mElementType; |
| 1294 | }; |
| 1295 | |
| 1296 | struct _SizedArrayType : _Type |
| 1297 | { |
| 1298 | int16 mPadding0; |
| 1299 | _TypeId mElementType; |
| 1300 | int32 mElementCount; |
| 1301 | }; |
| 1302 | |
| 1303 | struct _String |
| 1304 | { |
| 1305 | }; |
| 1306 | struct _MethodData |
| 1307 | { |
| 1308 | }; |
| 1309 | struct _FieldData |
| 1310 | { |
| 1311 | }; |
| 1312 | struct _ClassVData |
| 1313 | { |
| 1314 | }; |
| 1315 | |
| 1316 | struct _TypeInstance : public _Type |
| 1317 | { |
no test coverage detected