mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:50:24 +08:00
Turn some value_contents functions into methods
This turns value_contents_raw, value_contents_writeable, and value_contents_all_raw into methods on value. The remaining functions will be changed later in the series; they were a bit trickier and so I didn't include them in this patch. Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
@ -762,7 +762,7 @@ test_print_fields (gdbarch *arch)
|
||||
}
|
||||
|
||||
value *val = value::allocate (the_struct);
|
||||
gdb_byte *contents = value_contents_writeable (val).data ();
|
||||
gdb_byte *contents = val->contents_writeable ().data ();
|
||||
store_unsigned_integer (contents, val->enclosing_type ()->length (),
|
||||
gdbarch_byte_order (arch), 0xe9);
|
||||
|
||||
|
Reference in New Issue
Block a user