Change ARI usage to GNU style
[deliverable/binutils-gdb.git] / gdb / dcache.h
index f56d1095a2c6a2a79cec37e2b39da9751e2353c2..a58ac840d120f3f679fd92e1d6dc45949a6c69bb 100644 (file)
@@ -1,7 +1,7 @@
 /* Declarations for caching.  Typically used by remote back ends for
    caching remote memory.
 
-   Copyright (C) 1992-2017 Free Software Foundation, Inc.
+   Copyright (C) 1992-2019 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -34,6 +34,15 @@ DCACHE *dcache_init (void);
 /* Free a DCACHE.  */
 void dcache_free (DCACHE *);
 
+/* A deletion adapter that calls dcache_free.  */
+struct dcache_deleter
+{
+  void operator() (DCACHE *d) const
+  {
+    dcache_free (d);
+  }
+};
+
 enum target_xfer_status
   dcache_read_memory_partial (struct target_ops *ops, DCACHE *dcache,
                              CORE_ADDR memaddr, gdb_byte *myaddr,
This page took 0.024435 seconds and 4 git commands to generate.