From: Michael Snyder Date: Wed, 2 Mar 2011 23:40:42 +0000 (+0000) Subject: 2011-03-02 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c3e8aadde1fc15abf3396796ee81cd0681c94152;p=binutils-gdb.git 2011-03-02 Michael Snyder * gdbserver/linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c27e6a7ec2f..97237dcf5ae 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2011-03-02 Michael Snyder + * gdbserver/linux-arm-low.c (arm_arch_setup): Replace malloc + with xmalloc. + * target-descriptions.c (tdesc_gdb_type): No need to call xstrdup, callee saves a copy. diff --git a/gdb/gdbserver/linux-arm-low.c b/gdb/gdbserver/linux-arm-low.c index 6cea015e97e..babb20c8c64 100644 --- a/gdb/gdbserver/linux-arm-low.c +++ b/gdb/gdbserver/linux-arm-low.c @@ -336,7 +336,7 @@ arm_arch_setup (void) registers. Support was added in 2.6.30. */ pid = lwpid_of (get_thread_lwp (current_inferior)); errno = 0; - buf = malloc (32 * 8 + 4); + buf = xmalloc (32 * 8 + 4); if (ptrace (PTRACE_GETVFPREGS, pid, 0, buf) < 0 && errno == EIO) {