diff options
author | Tom Tromey <tom@tromey.com> | 2017-09-23 14:41:07 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-09-25 19:54:06 -0600 |
commit | c0e383c63818baee1daf51b8fb1bae34d1e0597f (patch) | |
tree | 5cee64be852dbf5ed10399f5a81088e9814cb609 /gdb/infrun.c | |
parent | 791199cc75fd294a4f5a228f83abdcbfb4c64c7e (diff) | |
download | gdb-c0e383c63818baee1daf51b8fb1bae34d1e0597f.zip gdb-c0e383c63818baee1daf51b8fb1bae34d1e0597f.tar.gz gdb-c0e383c63818baee1daf51b8fb1bae34d1e0597f.tar.bz2 |
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.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 26853b1..f44ca91 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -8921,7 +8921,7 @@ make_cleanup_restore_infcall_suspend_state void discard_infcall_suspend_state (struct infcall_suspend_state *inf_state) { - regcache_xfree (inf_state->registers); + delete inf_state->registers; xfree (inf_state->siginfo_data); xfree (inf_state); } |