This adds a no-op deleter, which is used in subsequent patches.
gdb/ChangeLog
2019-05-08 Tom Tromey <tom@tromey.com>
* common/gdb_unique_ptr.h (struct noop_deleter): New.
+2019-05-08 Tom Tromey <tom@tromey.com>
+
+ * common/gdb_unique_ptr.h (struct noop_deleter): New.
+
2019-05-08 Tom Tromey <tom@tromey.com>
* nto-tdep.c (nto_inferior_data_reg): Change type.
template<typename T> using unique_xmalloc_ptr
= std::unique_ptr<T, xfree_deleter<T>>;
+/* A no-op deleter. */
+template<typename T>
+struct noop_deleter
+{
+ void operator() (T *ptr) const { }
+};
+
} /* namespace gdb */
#endif /* COMMON_GDB_UNIQUE_PTR_H */