summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBProcess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/API/SBProcess.cpp')
-rw-r--r--lldb/source/API/SBProcess.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/lldb/source/API/SBProcess.cpp b/lldb/source/API/SBProcess.cpp
index d6bdfe162c7..66abd086c40 100644
--- a/lldb/source/API/SBProcess.cpp
+++ b/lldb/source/API/SBProcess.cpp
@@ -814,6 +814,8 @@ SBProcess::get() const
bool
SBProcess::GetDescription (SBStream &description)
{
+ Stream &strm = description.ref();
+
if (m_opaque_sp)
{
char path[PATH_MAX];
@@ -823,15 +825,15 @@ SBProcess::GetDescription (SBStream &description)
if (exe_module)
exe_name = exe_module->GetFileSpec().GetFilename().AsCString();
- description.Printf ("SBProcess: pid = %llu, state = %s, threads = %d%s%s",
- m_opaque_sp->GetID(),
- lldb_private::StateAsCString (GetState()),
- GetNumThreads(),
- exe_name ? ", executable = " : "",
- exe_name ? exe_name : "");
+ strm.Printf ("SBProcess: pid = %llu, state = %s, threads = %d%s%s",
+ m_opaque_sp->GetID(),
+ lldb_private::StateAsCString (GetState()),
+ GetNumThreads(),
+ exe_name ? ", executable = " : "",
+ exe_name ? exe_name : "");
}
else
- description.Printf ("No value");
+ strm.PutCString ("No value");
return true;
}
OpenPOWER on IntegriCloud