Index: src/arm64/simulator-arm64.cc |
diff --git a/src/arm64/simulator-arm64.cc b/src/arm64/simulator-arm64.cc |
index a4d69b49656de1da5b85ead6fb44cbab5cc6b60d..d63575be5e698fdf8eb99f7d635208e14529e8f6 100644 |
--- a/src/arm64/simulator-arm64.cc |
+++ b/src/arm64/simulator-arm64.cc |
@@ -3344,17 +3344,18 @@ void Simulator::Debug() { |
(strcmp(cmd, "po") == 0)) { |
if (argc == 2) { |
int64_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" |