2011-03-02 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Wed, 2 Mar 2011 23:40:42 +0000 (23:40 +0000)
committerMichael Snyder <msnyder@vmware.com>
Wed, 2 Mar 2011 23:40:42 +0000 (23:40 +0000)
* gdbserver/linux-arm-low.c (arm_arch_setup): Replace malloc
with xmalloc.

gdb/ChangeLog
gdb/gdbserver/linux-arm-low.c

index c27e6a7ec2f4c6752cc6013d9dd756c2a838bafe..97237dcf5aec2f7580348837c0f7f78a89d64294 100644 (file)
@@ -1,5 +1,8 @@
 2011-03-02  Michael Snyder  <msnyder@vmware.com>
 
+       * 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.
 
index 6cea015e97e348261e97492f156137822e216777..babb20c8c648b75af898092b13c1e4bf11721f59 100644 (file)
@@ -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)
        {
This page took 0.044931 seconds and 4 git commands to generate.