Enable chained function calls in C++ expressions.
[deliverable/binutils-gdb.git] / gdb / value.c
index ecfb154b8bc27269a84b9ddf364771053b8b4541..3a9c3a9cfd00f53c0753a2f9830fe5eb17f879db 100644 (file)
@@ -1724,6 +1724,18 @@ value_non_lval (struct value *arg)
    return arg;
 }
 
+/* Write contents of V at ADDR and set its lval type to be LVAL_MEMORY.  */
+
+void
+value_force_lval (struct value *v, CORE_ADDR addr)
+{
+  gdb_assert (VALUE_LVAL (v) == not_lval);
+
+  write_memory (addr, value_contents_raw (v), TYPE_LENGTH (value_type (v)));
+  v->lval = lval_memory;
+  v->location.address = addr;
+}
+
 void
 set_value_component_location (struct value *component,
                              const struct value *whole)
This page took 0.023176 seconds and 4 git commands to generate.