Remove regcache_xfree
authorTom Tromey <tom@tromey.com>
Sat, 23 Sep 2017 20:41:07 +0000 (14:41 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 26 Sep 2017 01:54:06 +0000 (19:54 -0600)
commitc0e383c63818baee1daf51b8fb1bae34d1e0597f
tree5cee64be852dbf5ed10399f5a81088e9814cb609
parent791199cc75fd294a4f5a228f83abdcbfb4c64c7e
Remove regcache_xfree

This removes regcache_xfree in favor of plain "delete".

gdb/ChangeLog
2017-09-25  Tom Tromey  <tom@tromey.com>

* spu-tdep.c (spu2ppu_dealloc_cache): Use delete.
* regcache.h (regcache_xfree): Don't declare.
* regcache.c (regcache_xfree): Remove.
(do_regcache_xfree): Use delete.
* ppc-linux-tdep.c (ppu2spu_dealloc_cache): Use delete.
* linux-fork.c (free_fork): Use delete.
(fork_save_infrun_state): Likewise.
* jit.c (jit_dealloc_cache): Use delete.
* infrun.c (discard_infcall_suspend_state): Use delete.
gdb/ChangeLog
gdb/infrun.c
gdb/jit.c
gdb/linux-fork.c
gdb/ppc-linux-tdep.c
gdb/regcache.c
gdb/regcache.h
gdb/spu-tdep.c