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.
This commit is contained in:
parent
791199cc75
commit
c0e383c638
8 changed files with 19 additions and 17 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue