diff options
Diffstat (limited to 'gdb/python/py-unwind.c')
-rw-r--r-- | gdb/python/py-unwind.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/python/py-unwind.c b/gdb/python/py-unwind.c index 3d87a19..1669834 100644 --- a/gdb/python/py-unwind.c +++ b/gdb/python/py-unwind.c @@ -133,7 +133,7 @@ pyuw_value_obj_to_pointer (PyObject *pyo_value, CORE_ADDR *addr) if ((value = value_object_to_value (pyo_value)) != NULL) { *addr = unpack_pointer (value_type (value), - value_contents (value)); + value_contents (value).data ()); rc = 1; } } @@ -631,7 +631,8 @@ pyuw_sniffer (const struct frame_unwind *self, struct frame_info *this_frame, gdb_assert (data_size == TYPE_LENGTH (value_type (value))); cached_frame->reg[i].data = (gdb_byte *) xmalloc (data_size); - memcpy (cached_frame->reg[i].data, value_contents (value), data_size); + memcpy (cached_frame->reg[i].data, + value_contents (value).data (), data_size); } } |