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/linux-fork.c | |
parent | 791199cc75fd294a4f5a228f83abdcbfb4c64c7e (diff) | |
download | binutils-gdb-c0e383c63818baee1daf51b8fb1bae34d1e0597f.tar.gz |
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/linux-fork.c')
-rw-r--r-- | gdb/linux-fork.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/linux-fork.c b/gdb/linux-fork.c index 22a11c6529b..6b9c6a87601 100644 --- a/gdb/linux-fork.c +++ b/gdb/linux-fork.c @@ -126,7 +126,7 @@ free_fork (struct fork_info *fp) if (fp) { if (fp->savedregs) - regcache_xfree (fp->savedregs); + delete fp->savedregs; if (fp->filepos) xfree (fp->filepos); xfree (fp); @@ -292,7 +292,7 @@ fork_save_infrun_state (struct fork_info *fp, int clobber_regs) DIR *d; if (fp->savedregs) - regcache_xfree (fp->savedregs); + delete fp->savedregs; fp->savedregs = regcache_dup (get_current_regcache ()); fp->clobber_regs = clobber_regs; |