gdb: add gdbarch_up
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 3 Oct 2022 16:56:30 +0000 (12:56 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 2 Feb 2023 15:02:34 +0000 (10:02 -0500)
commitd246d904adf3e338c731c123219a8246281002e2
tree7101189c695967d5cf6261358fc8b302f1758837
parent9056c917b3e7a7d41c586087bdb8779197254d1e
gdb: add gdbarch_up

Add a gdbarch_up unique pointer type, that calls gdbarch_free on
deletion.  This is used in the ROCm support patch at the end of this
series.

Change-Id: I4b808892d35d69a590ce83180f41afd91705b2c8
Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/gdbarch.h