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:
parent
a13654e089
commit
854b341612
@ -254,9 +254,16 @@ ExpressionEvaluationWindow::MessageReceived(BMessage* message)
|
||||
}
|
||||
|
||||
BString outputText;
|
||||
if (value != NULL)
|
||||
value->ToString(outputText);
|
||||
else {
|
||||
if (value != NULL) {
|
||||
BVariant variantValue;
|
||||
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;
|
||||
if (message->FindInt32("result", &result) != B_OK)
|
||||
result = B_ERROR;
|
||||
|
Loading…
x
Reference in New Issue
Block a user