mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
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.
This commit is contained in:
@ -1205,7 +1205,7 @@ jit_frame_sniffer (const struct frame_unwind *self,
|
||||
|
||||
*cache = XCNEW (struct jit_unwind_private);
|
||||
priv_data = (struct jit_unwind_private *) *cache;
|
||||
priv_data->regcache = regcache_xmalloc (gdbarch, aspace);
|
||||
priv_data->regcache = new regcache (gdbarch, aspace);
|
||||
priv_data->this_frame = this_frame;
|
||||
|
||||
callbacks.priv_data = priv_data;
|
||||
|
Reference in New Issue
Block a user