[Lldb-commits] [lldb] r145558 - /lldb/trunk/source/Expression/DWARFExpression.cpp
Jim Ingham
jingham at apple.com
Wed Nov 30 19:01:30 PST 2011
Author: jingham
Date: Wed Nov 30 21:01:30 2011
New Revision: 145558
URL: http://llvm.org/viewvc/llvm-project?rev=145558&view=rev
Log:
If we are going to assert due to an unhanded opcode, stuff the opcode value into the CrashReporter string first.
Modified:
lldb/trunk/source/Expression/DWARFExpression.cpp
Modified: lldb/trunk/source/Expression/DWARFExpression.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/DWARFExpression.cpp?rev=145558&r1=145557&r2=145558&view=diff
==============================================================================
--- lldb/trunk/source/Expression/DWARFExpression.cpp (original)
+++ lldb/trunk/source/Expression/DWARFExpression.cpp Wed Nov 30 21:01:30 2011
@@ -24,6 +24,7 @@
#include "lldb/Expression/ClangExpressionVariable.h"
#include "lldb/Host/Endian.h"
+#include "lldb/Host/Host.h"
#include "lldb/lldb-private-log.h"
@@ -982,8 +983,11 @@
data.Skip_LEB128(&offset);
return offset - data_offset;
default:
- assert (!"Unhandled DW_OP_XXX opcode, add support for it");
- break;
+ {
+ Host::SetCrashDescriptionWithFormat ("Unhandled DW_OP_XXX opcode: %d, add support for it.", op);
+ assert (!"Unhandled DW_OP_XXX opcode: %d, add support for it.");
+ }
+ break;
}
return UINT32_MAX;
}
More information about the lldb-commits
mailing list