Index: src/arm/simulator-arm.cc |
diff --git a/src/arm/simulator-arm.cc b/src/arm/simulator-arm.cc |
index 3518bfa2c3b1310ab2ee743017cde5f1f5d92d88..60a5e806bee2fca1c0bd5d6b9192f2acc6299761 100644 |
--- a/src/arm/simulator-arm.cc |
+++ b/src/arm/simulator-arm.cc |
@@ -342,17 +342,18 @@ void ArmDebugger::Debug() { |
|| (strcmp(cmd, "printobject") == 0)) { |
if (argc == 2) { |
int32_t value; |
+ OFStream os(stdout); |
if (GetValue(arg1, &value)) { |
Object* obj = reinterpret_cast<Object*>(value); |
- PrintF("%s: \n", arg1); |
+ os << arg1 << ": \n"; |
#ifdef DEBUG |
- obj->PrintLn(); |
+ obj->Print(os); |
+ os << "\n"; |
#else |
- obj->ShortPrint(); |
- PrintF("\n"); |
+ os << Brief(obj) << "\n"; |
#endif |
} else { |
- PrintF("%s unrecognized\n", arg1); |
+ os << arg1 << " unrecognized\n"; |
} |
} else { |
PrintF("printobject <value>\n"); |