X-Git-Url: http://drtracing.org/?a=blobdiff_plain;ds=sidebyside;f=gdb%2Fvalue.c;h=589e03b14964df01e5387c090316b9c819067f0b;hb=4e5d721fc0b3a9de5764a7b3bf3d6be4132ab67b;hp=f26e16c7d626012f17a8a58b3b70b503dd7616b9;hpb=f1c2d4afbe03f4303f200ba418a446da410cba17;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/value.c b/gdb/value.c index f26e16c7d6..589e03b149 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -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) {