[Lldb-commits] [lldb] r176578 - Adding support for DW_OP_stack_value in DWARFExpression::Evaluate

Andrew Kaylor andrew.kaylor at intel.com
Wed Mar 6 13:13:10 PST 2013


Author: akaylor
Date: Wed Mar  6 15:13:09 2013
New Revision: 176578

URL: http://llvm.org/viewvc/llvm-project?rev=176578&view=rev
Log:
Adding support for DW_OP_stack_value in DWARFExpression::Evaluate

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=176578&r1=176577&r2=176578&view=diff
==============================================================================
--- lldb/trunk/source/Expression/DWARFExpression.cpp (original)
+++ lldb/trunk/source/Expression/DWARFExpression.cpp Wed Mar  6 15:13:09 2013
@@ -2612,6 +2612,18 @@ DWARFExpression::Evaluate
                 error_ptr->SetErrorString ("Unimplemented opcode DW_OP_call4.");
             return false;
 
+        //----------------------------------------------------------------------
+        // OPCODE: DW_OP_stack_value
+        // OPERANDS: None
+        // DESCRIPTION: Specifies that the object does not exist in memory but
+        // rather is a constant value.  The value from the top of the stack is
+        // the value to be used.  This is the actual object value and not the
+        // location.
+        //----------------------------------------------------------------------
+        case DW_OP_stack_value:
+            stack.back().SetValueType(Value::eValueTypeScalar);
+            break;
+
 #if 0
         //----------------------------------------------------------------------
         // OPCODE: DW_OP_call_ref





More information about the lldb-commits mailing list