aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-06-11 06:59:38 -0600
committerTom Tromey <tromey@adacore.com>2019-06-14 07:00:27 -0600
commitabdb711e0855f0597a96db0486b598144b788212 (patch)
treea21b7030c6416a8b0005220652616532f06d3ec8 /gdb/regcache.c
parent9a9e394b05a841bdd9163f280d7ef19cc65634d6 (diff)
downloadfsf-binutils-gdb-abdb711e0855f0597a96db0486b598144b788212.zip
fsf-binutils-gdb-abdb711e0855f0597a96db0486b598144b788212.tar.gz
fsf-binutils-gdb-abdb711e0855f0597a96db0486b598144b788212.tar.bz2
Remove alloca(0) calls
PR gdb/24653 points out that a gcc snapshot will complain about the calls to alloca(0) in gdb. These calls are only needed when using the C alloca. I'm inclined to think that no current platform needs this, so this patch removes the calls. Let me know what you think. gdb/ChangeLog 2019-06-14 Tom Tromey <tromey@adacore.com> PR gdb/24653: * regcache.c (registers_changed): Don't call alloca. * top.c (execute_command): Don't call alloca.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index 6e3eee9..323f0f5 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -454,13 +454,6 @@ void
registers_changed (void)
{
registers_changed_ptid (minus_one_ptid);
-
- /* Force cleanup of any alloca areas if using C alloca instead of
- a builtin alloca. This particular call is used to clean up
- areas allocated by low level target code which may build up
- during lengthy interactions between gdb and the target before
- gdb gives control to the user (ie watchpoints). */
- alloca (0);
}
void