diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-03-02 23:40:42 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-03-02 23:40:42 +0000 |
commit | c3e8aadde1fc15abf3396796ee81cd0681c94152 (patch) | |
tree | 2d2178ea866b60a52526d559cefee65d6e128957 /gdb | |
parent | 3494b66d76fd4258a2464fd43bd186558960baf5 (diff) | |
download | gdb-c3e8aadde1fc15abf3396796ee81cd0681c94152.zip gdb-c3e8aadde1fc15abf3396796ee81cd0681c94152.tar.gz gdb-c3e8aadde1fc15abf3396796ee81cd0681c94152.tar.bz2 |
2011-03-02 Michael Snyder <msnyder@vmware.com>
* gdbserver/linux-arm-low.c (arm_arch_setup): Replace malloc
with xmalloc.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/gdbserver/linux-arm-low.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c27e6a7..97237dc 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 6cea015..babb20c 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) { |