Debugger: Minor tweak to expression window.
- If the expression result is an integer, display it in both hex and decimal format.
This commit is contained in:
@@ -254,9 +254,16 @@ ExpressionEvaluationWindow::MessageReceived(BMessage* message)
|
|||||||
}
|
}
|
||||||
|
|
||||||
BString outputText;
|
BString outputText;
|
||||||
if (value != NULL)
|
if (value != NULL) {
|
||||||
value->ToString(outputText);
|
BVariant variantValue;
|
||||||
else {
|
value->ToVariant(variantValue);
|
||||||
|
if (variantValue.TypeIsInteger(variantValue.Type())) {
|
||||||
|
value->ToString(outputText);
|
||||||
|
outputText.SetToFormat("%#" B_PRIx64 " (%s)",
|
||||||
|
variantValue.ToUInt64(), outputText.String());
|
||||||
|
} else
|
||||||
|
value->ToString(outputText);
|
||||||
|
} else {
|
||||||
status_t result;
|
status_t result;
|
||||||
if (message->FindInt32("result", &result) != B_OK)
|
if (message->FindInt32("result", &result) != B_OK)
|
||||||
result = B_ERROR;
|
result = B_ERROR;
|
||||||
|
|||||||
Reference in New Issue
Block a user