mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Debug expr fixes
This commit is contained in:
parent
69d16f87f6
commit
4087bf8e2a
4 changed files with 27 additions and 6 deletions
|
@ -4705,6 +4705,13 @@ void DbgExprEvaluator::Visit(BfIndexerExpression* indexerExpr)
|
|||
}
|
||||
}
|
||||
|
||||
if ((collection.mType->IsBfObjectPtr()) || (collection.mType->IsStruct()))
|
||||
{
|
||||
// This should have been handled by some other cases
|
||||
mResult = DbgTypedValue();
|
||||
Fail(StrFormat("Unable to index type '%s'", TypeToString(collection.mType).c_str()), indexerExpr->mOpenBracket);
|
||||
}
|
||||
|
||||
auto memberType = collection.mType->mTypeParam;
|
||||
auto result = ReadTypedValue(memberType, target + indexArgument.GetInt64() * memberType->GetStride(), DbgAddrType_Target);
|
||||
if (mResult.mIsReadOnly)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue