diff options
author | Tom Tromey <tom@tromey.com> | 2017-09-23 14:39:56 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-09-25 19:54:05 -0600 |
commit | 791199cc75fd294a4f5a228f83abdcbfb4c64c7e (patch) | |
tree | 284093a182da8b2db2f6937ef6039c9adbb84265 /gdb/ppc-linux-tdep.c | |
parent | a54018b72d75abf2e74bf36016702da06399c1d9 (diff) | |
download | gdb-791199cc75fd294a4f5a228f83abdcbfb4c64c7e.zip gdb-791199cc75fd294a4f5a228f83abdcbfb4c64c7e.tar.gz gdb-791199cc75fd294a4f5a228f83abdcbfb4c64c7e.tar.bz2 |
Remove regcache_xmalloc
This patch removes regcache_xmalloc in favor of plain "new".
gdb/ChangeLog
2017-09-25 Tom Tromey <tom@tromey.com>
* regcache.h (regcache_xmalloc): Don't declare.
(regcache_raw_set_cached_value): Update comment.
* regcache.c (regcache_xmalloc): Remove.
* ppc-linux-tdep.c (ppu2spu_sniffer): Use new.
* jit.c (jit_frame_sniffer): Use new.
* frame.c (frame_save_as_regcache): Use new.
Diffstat (limited to 'gdb/ppc-linux-tdep.c')
-rw-r--r-- | gdb/ppc-linux-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c index df664ea..4c851eb 100644 --- a/gdb/ppc-linux-tdep.c +++ b/gdb/ppc-linux-tdep.c @@ -1363,7 +1363,7 @@ ppu2spu_sniffer (const struct frame_unwind *self, = FRAME_OBSTACK_CALLOC (1, struct ppu2spu_cache); struct address_space *aspace = get_frame_address_space (this_frame); - struct regcache *regcache = regcache_xmalloc (data.gdbarch, aspace); + struct regcache *regcache = new regcache (data.gdbarch, aspace); struct cleanup *cleanups = make_cleanup_regcache_xfree (regcache); regcache_save (regcache, ppu2spu_unwind_register, &data); discard_cleanups (cleanups); |