From 8bea7ed1e00df357525f7bfc6592edc8aa1c8ea4 Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Tue, 22 May 2012 15:55:30 +0000 Subject: [PATCH] * common/buffer.c (buffer_grow): ARI fix: Remove unneeded call to abort. --- gdb/ChangeLog | 5 +++++ gdb/common/buffer.c | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) 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; -- 2.30.2