From: Daniel Jacobowitz Date: Tue, 4 Jul 2006 13:31:31 +0000 (+0000) Subject: * remote.c (init_remote_state): Use xrealloc instead of xmalloc. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7fca722e51f4517d93abefd8aab95e6a7a074e3d;p=binutils-gdb.git * remote.c (init_remote_state): Use xrealloc instead of xmalloc. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1a4e88a89f5..0f592a32f74 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2006-07-04 Daniel Jacobowitz + + * remote.c (init_remote_state): Use xrealloc instead of xmalloc. + 2006-07-03 Nathan J. Williams * bsd-kvm.c (bsd_kvm_open): Open the KVM interface read-write if diff --git a/gdb/remote.c b/gdb/remote.c index 89fe8007dc8..c8e93d00f80 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -334,7 +334,7 @@ init_remote_state (struct gdbarch *gdbarch) if (rs->buf_size < rsa->remote_packet_size) { rs->buf_size = 2 * rsa->remote_packet_size; - rs->buf = xmalloc (rs->buf_size); + rs->buf = xrealloc (rs->buf, rs->buf_size); } return rsa;