Index: src/mips/simulator-mips.cc |
diff --git a/src/mips/simulator-mips.cc b/src/mips/simulator-mips.cc |
index f329703517886f0564bfe47a9d8df567c48b29bf..052eaed8272f7224d1fc7830dc92c48770cb108f 100644 |
--- a/src/mips/simulator-mips.cc |
+++ b/src/mips/simulator-mips.cc |
@@ -455,17 +455,18 @@ void MipsDebugger::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"); |