diff options
author | Tom Tromey <tom@tromey.com> | 2017-09-23 15:34:30 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-09-25 19:54:07 -0600 |
commit | 9ac86b52da268147b2565e4920357432bb7a34c3 (patch) | |
tree | ecd744af89f932b6cad7bfcce62c28a91c33e85a /gdb/regcache.c | |
parent | c0e383c63818baee1daf51b8fb1bae34d1e0597f (diff) | |
download | gdb-9ac86b52da268147b2565e4920357432bb7a34c3.zip gdb-9ac86b52da268147b2565e4920357432bb7a34c3.tar.gz gdb-9ac86b52da268147b2565e4920357432bb7a34c3.tar.bz2 |
Remove make_cleanup_regcache_xfree
This removes make_cleanup_regcache_xfree in favor of using
std::unique_ptr as the return type of frame_save_as_regcache.
gdb/ChangeLog
2017-09-25 Tom Tromey <tom@tromey.com>
* spu-tdep.c (spu2ppu_sniffer): Update.
* regcache.h (make_cleanup_regcache_xfree): Don't declare.
* regcache.c (do_regcache_xfree, make_cleanup_regcache_xfree):
Remove.
* ppc-linux-tdep.c (ppu2spu_sniffer): Update.
* mi/mi-main.c (mi_cmd_data_list_changed_registers): Update.
* frame.h (frame_save_as_regcache): Return std::unique_ptr.
* frame.c (frame_save_as_regcache): Return std::unique_ptr.
(frame_pop): Update.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r-- | gdb/regcache.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c index 54aed6c..ab6a651 100644 --- a/gdb/regcache.c +++ b/gdb/regcache.c @@ -241,18 +241,6 @@ regcache_get_ptid (const struct regcache *regcache) return regcache->ptid (); } -static void -do_regcache_xfree (void *data) -{ - delete (struct regcache *) data; -} - -struct cleanup * -make_cleanup_regcache_xfree (struct regcache *regcache) -{ - return make_cleanup (do_regcache_xfree, regcache); -} - /* Cleanup routines for invalidating a register. */ struct register_to_invalidate |