summaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2011-03-02 23:40:41 +0000
committerMichael Snyder <msnyder@specifix.com>2011-03-02 23:40:41 +0000
commit8591831e402c0f1ff9b5ae3366b7cb3201d64762 (patch)
tree3729ab32ff9fac2d3014fbc68c4cc6d593495eba /gdb/gdbserver
parent904b297d1e06a0730bd85388658b72ef9641d91e (diff)
downloadgdb-8591831e402c0f1ff9b5ae3366b7cb3201d64762.tar.gz
2011-03-02 Michael Snyder <msnyder@vmware.com>
* gdbserver/linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/linux-arm-low.c2
1 files changed, 1 insertions, 1 deletions
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)
{