Remove make_cleanup_regcache_xfree
authorTom Tromey <tom@tromey.com>
Sat, 23 Sep 2017 21:34:30 +0000 (15:34 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 26 Sep 2017 01:54:07 +0000 (19:54 -0600)
commit9ac86b52da268147b2565e4920357432bb7a34c3
treeecd744af89f932b6cad7bfcce62c28a91c33e85a
parentc0e383c63818baee1daf51b8fb1bae34d1e0597f
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.
gdb/ChangeLog
gdb/frame.c
gdb/frame.h
gdb/mi/mi-main.c
gdb/ppc-linux-tdep.c
gdb/regcache.c
gdb/regcache.h
gdb/spu-tdep.c
This page took 0.039624 seconds and 4 git commands to generate.