aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2012-05-22 15:55:30 +0000
committerPierre Muller <muller@sourceware.org>2012-05-22 15:55:30 +0000
commit8bea7ed1e00df357525f7bfc6592edc8aa1c8ea4 (patch)
tree35eb58e1288acd813178dbf50c4e13c208587911
parente4de50d4470ce6fbfce8b55af8be56b71e0889d9 (diff)
downloadgdb-8bea7ed1e00df357525f7bfc6592edc8aa1c8ea4.zip
gdb-8bea7ed1e00df357525f7bfc6592edc8aa1c8ea4.tar.gz
gdb-8bea7ed1e00df357525f7bfc6592edc8aa1c8ea4.tar.bz2
* common/buffer.c (buffer_grow): ARI fix: Remove unneeded
call to abort.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/common/buffer.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 400bd8e..45b73e4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
+ call to abort.
+
2012-05-22 Pedro Alves <palves@redhat.com>
* target.h (store_waitstatus): Move declaration ...
diff --git a/gdb/common/buffer.c b/gdb/common/buffer.c
index 059dd68..810173b 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;