summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/gdbserver/linux-arm-low.c2
2 files changed, 4 insertions, 1 deletions
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 <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.
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)
{