Implement TARGET_OBJECT_STACK_MEMORY.
[deliverable/binutils-gdb.git] / gdb / value.c
index f26e16c7d626012f17a8a58b3b70b503dd7616b9..589e03b14964df01e5387c090316b9c819067f0b 100644 (file)
@@ -196,6 +196,10 @@ struct value
   /* If value is a variable, is it initialized or not.  */
   int initialized;
 
+  /* If value is from the stack.  If this is set, read_stack will be
+     used instead of read_memory to enable extra caching.  */
+  int stack;
+
   /* Actual contents of the value.  Target byte-order.  NULL or not
      valid if lazy is nonzero.  */
   gdb_byte *contents;
@@ -424,6 +428,18 @@ set_value_lazy (struct value *value, int val)
   value->lazy = val;
 }
 
+int
+value_stack (struct value *value)
+{
+  return value->stack;
+}
+
+void
+set_value_stack (struct value *value, int val)
+{
+  value->stack = val;
+}
+
 const gdb_byte *
 value_contents (struct value *value)
 {
This page took 0.024708 seconds and 4 git commands to generate.