aboutsummaryrefslogtreecommitdiff
path: root/gdb/values.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2000-03-21 01:27:34 +0000
committerMichael Snyder <msnyder@vmware.com>2000-03-21 01:27:34 +0000
commit2e70b7b9621d412ac2a8ed58f9476a521a01508a (patch)
tree5087565b1d10b1ba596aed7478cf066a1456e29b /gdb/values.c
parent9d1f7ab2c8992e290f1821a8ebd9298df9d1d077 (diff)
downloadgdb-2e70b7b9621d412ac2a8ed58f9476a521a01508a.zip
gdb-2e70b7b9621d412ac2a8ed58f9476a521a01508a.tar.gz
gdb-2e70b7b9621d412ac2a8ed58f9476a521a01508a.tar.bz2
2000-03-20 Eli Zaretskii <eliz@is.elta.co.il>
* breakpoint.c (insert_breakpoints, remove_breakpoint) (bpstat_stop_status, can_use_hardware_watchpoint): Don't insert, remove, or check status of hardware watchpoints for entire structs and arrays unless the user explicitly asked to watch that struct or array. (insert_breakpoints): Try to insert watchpoints for all the values on the value chain, even if some of them fail to insert. * values.c (value_primitive_field): Set the offset in struct value we return when the field is a packed bitfield.
Diffstat (limited to 'gdb/values.c')
-rw-r--r--gdb/values.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/values.c b/gdb/values.c
index 6f2642e..760d2f8 100644
--- a/gdb/values.c
+++ b/gdb/values.c
@@ -802,6 +802,8 @@ value_primitive_field (arg1, offset, fieldno, arg_type)
fieldno));
VALUE_BITPOS (v) = TYPE_FIELD_BITPOS (arg_type, fieldno) % 8;
VALUE_BITSIZE (v) = TYPE_FIELD_BITSIZE (arg_type, fieldno);
+ VALUE_OFFSET (v) = VALUE_OFFSET (arg1) + offset
+ + TYPE_FIELD_BITPOS (arg_type, fieldno) / 8;
}
else if (fieldno < TYPE_N_BASECLASSES (arg_type))
{