diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-02-07 21:42:36 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-02-07 21:42:36 +0000 |
commit | 13bb5560e268fc77450c7e689f4b46e4dfbc9225 (patch) | |
tree | 63dc52008fe86ee08f928c118279826adb17e3f5 /gdb/value.c | |
parent | b44d461b0ebcb9f30595e5c3e4c748775349ecf1 (diff) | |
download | gdb-13bb5560e268fc77450c7e689f4b46e4dfbc9225.zip gdb-13bb5560e268fc77450c7e689f4b46e4dfbc9225.tar.gz gdb-13bb5560e268fc77450c7e689f4b46e4dfbc9225.tar.bz2 |
2005-02-07 Andrew Cagney <cagney@gnu.org>
* value.h (deprecated_value_lval_hack)
(deprecated_value_address_hack)
(deprecated_value_internalvar_hack_hack)
(deprecated_value_regnum_hack): Declare.
(VALUE_LVAL, VALUE_ADDRESS, VALUE_INTERNALVAR)
(VALUE_FRAME_ID, VALUE_REGNUM): Use.
* value.c (deprecated_value_lval_hack)
(deprecated_value_address_hack)
(deprecated_value_internalvar_hack_hack)
(deprecated_value_regnum_hack): Define.
Diffstat (limited to 'gdb/value.c')
-rw-r--r-- | gdb/value.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gdb/value.c b/gdb/value.c index 4bc26ff..1a8796e 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -234,6 +234,36 @@ set_value_pointed_to_offset (struct value *value, int val) { value->pointed_to_offset = val; } + +enum lval_type * +deprecated_value_lval_hack (struct value *value) +{ + return &value->lval; +} + +CORE_ADDR * +deprecated_value_address_hack (struct value *value) +{ + return &value->location.address; +} + +struct internalvar ** +deprecated_value_internalvar_hack (struct value *value) +{ + return &value->location.internalvar; +} + +struct frame_id * +deprecated_value_frame_id_hack (struct value *value) +{ + return &value->frame_id; +} + +short * +deprecated_value_regnum_hack (struct value *value) +{ + return &value->regnum; +} /* Return a mark in the value chain. All values allocated after the mark is obtained (except for those released) are subject to being freed |