]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Make cached_reg_t own its data
authorPedro Alves <pedro@palves.net>
Thu, 9 Nov 2023 20:44:12 +0000 (20:44 +0000)
committerPedro Alves <pedro@palves.net>
Wed, 20 Dec 2023 20:04:04 +0000 (20:04 +0000)
commitd5cebea18e7a9a927f4dd4915d093feb7df0e029
tree47a2f86caa6eb4d5ca55b28fd4181087e5ea2eef
parent5ac2d81b64af547cd7ac7251e9180730348572ad
Make cached_reg_t own its data

struct cached_reg_t owns its data buffer, but currently that is
managed manually.  Convert it to use a unique_xmalloc_ptr.

Approved-By: Tom Tromey <tom@tromey.com>
Change-Id: I05a107098b717299e76de76aaba00d7fbaeac77b
gdb/python/py-unwind.c
gdb/regcache.h
gdb/remote.c