mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed null function references showing as "<null parent>"
This commit is contained in:
parent
8659afa944
commit
d28392f8fd
1 changed files with 7 additions and 4 deletions
|
@ -7551,6 +7551,9 @@ String WinDebugger::DbgTypedValueToString(const DbgTypedValue& origTypedValue, c
|
||||||
ptrUseDataStr = ptrDataStr;
|
ptrUseDataStr = ptrDataStr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool isNull = wasPtr && (dataPtr == 0);
|
||||||
|
bool isBadSrc = !wasPtr && (dataPtr == 0);
|
||||||
|
|
||||||
if ((ptrVal == 0) && (dwValueType->IsTypedPrimitive()))
|
if ((ptrVal == 0) && (dwValueType->IsTypedPrimitive()))
|
||||||
{
|
{
|
||||||
DbgTypedValue rawVal;
|
DbgTypedValue rawVal;
|
||||||
|
@ -7574,15 +7577,15 @@ String WinDebugger::DbgTypedValueToString(const DbgTypedValue& origTypedValue, c
|
||||||
ptrDataStr = expr;
|
ptrDataStr = expr;
|
||||||
ptrUseDataStr = expr;
|
ptrUseDataStr = expr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This keeps 'function' types from showing null as "<null parent>"
|
||||||
|
isBadSrc = false;
|
||||||
}
|
}
|
||||||
else if ((ptrVal == 0) && (dwValueType->IsCompositeType()))
|
else if ((ptrVal == 0) && (dwValueType->IsCompositeType()))
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isNull = wasPtr && (dataPtr == 0);
|
|
||||||
bool isBadSrc = !wasPtr && (dataPtr == 0);
|
|
||||||
|
|
||||||
DbgTypedValue useTypedValue = typedValue;
|
DbgTypedValue useTypedValue = typedValue;
|
||||||
if ((origHadRef) || ((typedValue.mType->HasPointer()) && (!dwUseType->HasPointer())))
|
if ((origHadRef) || ((typedValue.mType->HasPointer()) && (!dwUseType->HasPointer())))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue