From 2e70b7b9621d412ac2a8ed58f9476a521a01508a Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Tue, 21 Mar 2000 01:27:34 +0000 Subject: 2000-03-20 Eli Zaretskii * 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. --- gdb/values.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/values.c') 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)) { -- cgit v1.1