diff options
Diffstat (limited to 'gdb/dcache.h')
-rw-r--r-- | gdb/dcache.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/dcache.h b/gdb/dcache.h index 9c29074..a58ac84 100644 --- a/gdb/dcache.h +++ b/gdb/dcache.h @@ -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, |