From: Pierre Muller Date: Tue, 22 May 2012 15:55:30 +0000 (+0000) Subject: * common/buffer.c (buffer_grow): ARI fix: Remove unneeded X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8bea7ed1e00df357525f7bfc6592edc8aa1c8ea4;p=binutils-gdb.git * common/buffer.c (buffer_grow): ARI fix: Remove unneeded call to abort. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 400bd8e857d..45b73e47c8b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-05-22 Pierre Muller + + * common/buffer.c (buffer_grow): ARI fix: Remove unneeded + call to abort. + 2012-05-22 Pedro Alves * target.h (store_waitstatus): Move declaration ... diff --git a/gdb/common/buffer.c b/gdb/common/buffer.c index 059dd6823b1..810173ba4c7 100644 --- a/gdb/common/buffer.c +++ b/gdb/common/buffer.c @@ -47,8 +47,6 @@ buffer_grow (struct buffer *buffer, const char *data, size_t size) while (buffer->used_size + size > new_buffer_size) new_buffer_size *= 2; new_buffer = xrealloc (buffer->buffer, new_buffer_size); - if (!new_buffer) - abort (); memcpy (new_buffer + buffer->used_size, data, size); buffer->buffer = new_buffer; buffer->buffer_size = new_buffer_size;