forked from Imagelibrary/binutils-gdb
Turn various value copying-related functions into methods
This patch turns a grab bag of value functions to methods of value. These are done together because their implementations are interrelated. Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
@@ -1866,12 +1866,11 @@ extract_bitfield_from_watchpoint_value (struct watchpoint *w, struct value *val)
|
||||
|
||||
bit_val = value::allocate (val->type ());
|
||||
|
||||
unpack_value_bitfield (bit_val,
|
||||
w->val_bitpos,
|
||||
w->val_bitsize,
|
||||
val->contents_for_printing ().data (),
|
||||
val->offset (),
|
||||
val);
|
||||
val->unpack_bitfield (bit_val,
|
||||
w->val_bitpos,
|
||||
w->val_bitsize,
|
||||
val->contents_for_printing ().data (),
|
||||
val->offset ());
|
||||
|
||||
return bit_val;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user