Add a default-value bool flag pretty_print to the StructuredData Dump methods.

They will dump pretty-print (indentation, extra whitepsace) by default.  
I'll make a change to ProcessGDBRemote soon so it stops sending JSON strings
to debugserver pretty-printed; it's unnecessary extra bytes being sent between
the two.

llvm-svn: 276079
This commit is contained in:
Jason Molenda
2016-07-20 03:49:02 +00:00
parent 074f8d7777
commit d9c9da536f
4 changed files with 64 additions and 38 deletions

View File

@@ -32,7 +32,7 @@ using namespace lldb_private;
using namespace lldb;
void
StructuredPythonObject::Dump(Stream &s) const
StructuredPythonObject::Dump(Stream &s, bool pretty_print) const
{
s << "Python Obj: 0x" << GetValue();
}