summaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-09-23 14:39:56 -0600
committerTom Tromey <tom@tromey.com>2017-09-25 19:54:05 -0600
commit791199cc75fd294a4f5a228f83abdcbfb4c64c7e (patch)
tree284093a182da8b2db2f6937ef6039c9adbb84265 /gdb/regcache.c
parenta54018b72d75abf2e74bf36016702da06399c1d9 (diff)
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/regcache.c')
-rw-r--r--gdb/regcache.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index 4ef9151245..2a92cf0241 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -241,12 +241,6 @@ regcache_get_ptid (const struct regcache *regcache)
return regcache->ptid ();
}
-struct regcache *
-regcache_xmalloc (struct gdbarch *gdbarch, struct address_space *aspace)
-{
- return new regcache (gdbarch, aspace);
-}
-
void
regcache_xfree (struct regcache *regcache)
{