[Lldb-commits] [PATCH] Make the platform process connect path less chatty.
Stephane Sezer
sas at fb.com
Fri Dec 12 21:24:42 PST 2014
REPOSITORY
rL LLVM
http://reviews.llvm.org/D6593
Files:
lldb/trunk/source/Commands/CommandObjectProcess.cpp
lldb/trunk/source/Target/Process.cpp
Index: lldb/trunk/source/Commands/CommandObjectProcess.cpp
===================================================================
--- lldb/trunk/source/Commands/CommandObjectProcess.cpp
+++ lldb/trunk/source/Commands/CommandObjectProcess.cpp
@@ -268,7 +268,8 @@
ProcessSP process_sp (target->GetProcessSP());
if (process_sp)
{
- if (stream.GetData())
+ const char *data = stream.GetData();
+ if (data && strlen(data) > 0)
result.AppendMessage(stream.GetData());
result.AppendMessageWithFormat ("Process %" PRIu64 " launched: '%s' (%s)\n", process_sp->GetID(), exe_module_sp->GetFileSpec().GetPath().c_str(), archname);
result.SetStatus (eReturnStatusSuccessFinishResult);
Index: lldb/trunk/source/Target/Process.cpp
===================================================================
--- lldb/trunk/source/Target/Process.cpp
+++ lldb/trunk/source/Target/Process.cpp
@@ -1044,7 +1044,6 @@
{
case eStateInvalid:
case eStateUnloaded:
- case eStateConnected:
case eStateAttaching:
case eStateLaunching:
case eStateStepping:
@@ -1060,6 +1059,7 @@
}
break;
+ case eStateConnected:
case eStateRunning:
// Don't be chatty when we run...
break;
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6593.17253.patch
Type: text/x-patch
Size: 1399 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20141213/361be854/attachment.bin>
More information about the lldb-commits
mailing list