+2017-01-04 Yao Qi <yao.qi@linaro.org>
+
+ * dwarf2loc.c (write_pieced_value): Don't use VALUE_FRAME_ID (to),
+ use c->frame_id when the piece location is DWARF_VALUE_REGISTER.
+
2017-01-01 Joel Brobecker <brobecker@adacore.com>
Update copyright year range in all GDB files.
const gdb_byte *contents;
struct piece_closure *c
= (struct piece_closure *) value_computed_closure (to);
- struct frame_info *frame;
size_t type_len;
size_t buffer_size = 0;
std::vector<gdb_byte> buffer;
int bits_big_endian
= gdbarch_bits_big_endian (get_type_arch (value_type (to)));
- /* VALUE_FRAME_ID is used instead of VALUE_NEXT_FRAME_ID here
- because FRAME is passed to get_frame_register_bytes() and
- put_frame_register_bytes(), both of which do their own "->next"
- operations. */
- frame = frame_find_by_id (VALUE_FRAME_ID (to));
- if (frame == NULL)
- {
- mark_value_bytes_optimized_out (to, 0, TYPE_LENGTH (value_type (to)));
- return;
- }
-
contents = value_contents (from);
bits_to_skip = 8 * value_offset (to);
if (value_bitsize (to))
{
case DWARF_VALUE_REGISTER:
{
+ struct frame_info *frame = frame_find_by_id (c->frame_id);
struct gdbarch *arch = get_frame_arch (frame);
int gdb_regnum = dwarf_reg_to_regnum_or_error (arch, p->v.regno);
int reg_offset = dest_offset;