diff options
author | Tom Tromey <tromey@adacore.com> | 2019-06-11 06:59:38 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2019-06-14 07:00:27 -0600 |
commit | abdb711e0855f0597a96db0486b598144b788212 (patch) | |
tree | a21b7030c6416a8b0005220652616532f06d3ec8 /gdb/regcache.c | |
parent | 9a9e394b05a841bdd9163f280d7ef19cc65634d6 (diff) | |
download | gdb-abdb711e0855f0597a96db0486b598144b788212.zip gdb-abdb711e0855f0597a96db0486b598144b788212.tar.gz 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.c | 7 |
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 |