[Lldb-commits] [lldb] r175915 - If we crash while making a Python summary, the crash info will tell us more about it
Enrico Granata
egranata at apple.com
Fri Feb 22 12:01:16 PST 2013
Author: enrico
Date: Fri Feb 22 14:01:15 2013
New Revision: 175915
URL: http://llvm.org/viewvc/llvm-project?rev=175915&view=rev
Log:
If we crash while making a Python summary, the crash info will tell us more about it
Modified:
lldb/trunk/source/DataFormatters/TypeSummary.cpp
Modified: lldb/trunk/source/DataFormatters/TypeSummary.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/DataFormatters/TypeSummary.cpp?rev=175915&r1=175914&r2=175915&view=diff
==============================================================================
--- lldb/trunk/source/DataFormatters/TypeSummary.cpp (original)
+++ lldb/trunk/source/DataFormatters/TypeSummary.cpp Fri Feb 22 14:01:15 2013
@@ -28,6 +28,8 @@
#include "lldb/Target/StackFrame.h"
#include "lldb/Target/Target.h"
+#include "lldb/Host/Host.h"
+
using namespace lldb;
using namespace lldb_private;
@@ -199,6 +201,13 @@ ScriptSummaryFormat::FormatObject (Value
{
Timer scoped_timer (__PRETTY_FUNCTION__, __PRETTY_FUNCTION__);
+ if (!valobj)
+ return false;
+
+ Host::SetCrashDescriptionWithFormat("[Python summary] Name: %s - Function: %s",
+ valobj->GetName().AsCString("unknown"),
+ m_function_name.c_str());
+
TargetSP target_sp(valobj->GetTargetSP());
if (!target_sp)
More information about the lldb-commits
mailing list