mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Ability to set debug format for summaries
This commit is contained in:
parent
aa7cff43dd
commit
69d16f87f6
2 changed files with 22 additions and 3 deletions
|
@ -466,8 +466,8 @@ static double ConvertFloat80ToDouble(const byte fp80[10])
|
|||
|
||||
addr_target NS_BF_DBG::DecodeTargetDataPtr(const char*& strRef)
|
||||
{
|
||||
addr_target val = (addr_target)stouln(strRef, sizeof(intptr) * 2);
|
||||
strRef += sizeof(intptr) * 2;
|
||||
addr_target val = (addr_target)stouln(strRef, sizeof(intptr_target) * 2);
|
||||
strRef += sizeof(intptr_target) * 2;
|
||||
return val;
|
||||
}
|
||||
|
||||
|
@ -7699,6 +7699,9 @@ String WinDebugger::DbgTypedValueToString(const DbgTypedValue& origTypedValue, c
|
|||
DbgType* primType = summaryType->mTypeParam;
|
||||
String result;
|
||||
|
||||
if (primType->IsInteger())
|
||||
formatInfo.mTypeKindFlags = (DbgTypeKindFlags)(formatInfo.mTypeKindFlags | DbgTypeKindFlag_Int);
|
||||
|
||||
if ((dataPtr != 0) && (dataPtr != -1))
|
||||
{
|
||||
String evalString = "(" + primType->ToString() + ")" + ptrDataStr;
|
||||
|
@ -7796,6 +7799,9 @@ String WinDebugger::DbgTypedValueToString(const DbgTypedValue& origTypedValue, c
|
|||
result = "???";
|
||||
}
|
||||
|
||||
if (member->mType->IsInteger())
|
||||
formatInfo.mTypeKindFlags = (DbgTypeKindFlags)(formatInfo.mTypeKindFlags | DbgTypeKindFlag_Int);
|
||||
|
||||
if (formatInfo.mRawString)
|
||||
return result;
|
||||
|
||||
|
@ -9070,7 +9076,12 @@ String WinDebugger::EvaluateContinue(DbgPendingExpr* pendingExpr, BfPassInstance
|
|||
else if (checkType->IsInteger())
|
||||
val += "\n:type\tint";
|
||||
else if ((exprResult.mRegNum >= X64Reg_M128_XMM0) && (exprResult.mRegNum <= X64Reg_M128_XMM15))
|
||||
val += "\n:type\tmm128";
|
||||
val += "\n:type\tmm128";
|
||||
else
|
||||
val += "\n:type\tvaluetype";
|
||||
|
||||
if ((pendingExpr->mFormatInfo.mTypeKindFlags & DbgTypeKindFlag_Int) != 0)
|
||||
val += "\n:type\tint";
|
||||
|
||||
if (dbgExprEvaluator.mHadSideEffects)
|
||||
val += "\n:sideeffects";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue