aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-02-08 04:57:03 +0000
committerAndrew Cagney <cagney@redhat.com>2005-02-08 04:57:03 +0000
commit9bbda5038131704610b27bee2c70e81c68374f61 (patch)
tree29a7f21f9bb6823656559ada652a519530f57498 /gdb/value.c
parent0a40490e6aa43a28c471f4db8a18a4820cbf58c3 (diff)
downloadgdb-9bbda5038131704610b27bee2c70e81c68374f61.zip
gdb-9bbda5038131704610b27bee2c70e81c68374f61.tar.gz
gdb-9bbda5038131704610b27bee2c70e81c68374f61.tar.bz2
2005-02-07 Andrew Cagney <cagney@gnu.org>
* value.c (set_value_bitpos, set_value_bitsize): Define. * value.h (set_value_bitpos, set_value_bitsize): Declare. * ada-lang.c, valarith.c: Update.
Diffstat (limited to 'gdb/value.c')
-rw-r--r--gdb/value.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/value.c b/gdb/value.c
index b584fb9..de9fd15 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -156,12 +156,22 @@ value_bitpos (struct value *value)
{
return value->bitpos;
}
+void
+set_value_bitpos (struct value *value, int bit)
+{
+ value->bitpos = bit;
+}
int
value_bitsize (struct value *value)
{
return value->bitsize;
}
+void
+set_value_bitsize (struct value *value, int bit)
+{
+ value->bitsize = bit;
+}
bfd_byte *
value_contents_raw (struct value *value)