aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.h
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.h
parenta54018b72d75abf2e74bf36016702da06399c1d9 (diff)
downloadgdb-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/regcache.h')
-rw-r--r--gdb/regcache.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/regcache.h b/gdb/regcache.h
index eb0454a..877ed59 100644
--- a/gdb/regcache.h
+++ b/gdb/regcache.h
@@ -37,8 +37,6 @@ extern struct regcache *get_thread_arch_aspace_regcache (ptid_t,
void regcache_xfree (struct regcache *regcache);
struct cleanup *make_cleanup_regcache_xfree (struct regcache *regcache);
-struct regcache *regcache_xmalloc (struct gdbarch *gdbarch,
- struct address_space *aspace);
/* Return REGCACHE's ptid. */
@@ -84,7 +82,7 @@ extern LONGEST regcache_raw_get_signed (struct regcache *regcache,
/* Set a raw register's value in the regcache's buffer. Unlike
regcache_raw_write, this is not write-through. The intention is
allowing to change the buffer contents of a read-only regcache
- allocated with regcache_xmalloc. */
+ allocated with new. */
extern void regcache_raw_set_cached_value
(struct regcache *regcache, int regnum, const gdb_byte *buf);