2011-03-02 Michael Snyder <msnyder@vmware.com>
* gdbserver/linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
This commit is contained in:
parent
3494b66d76
commit
c3e8aadde1
|
@ -1,5 +1,8 @@
|
||||||
2011-03-02 Michael Snyder <msnyder@vmware.com>
|
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
|
* target-descriptions.c (tdesc_gdb_type): No need to call
|
||||||
xstrdup, callee saves a copy.
|
xstrdup, callee saves a copy.
|
||||||
|
|
||||||
|
|
|
@ -336,7 +336,7 @@ arm_arch_setup (void)
|
||||||
registers. Support was added in 2.6.30. */
|
registers. Support was added in 2.6.30. */
|
||||||
pid = lwpid_of (get_thread_lwp (current_inferior));
|
pid = lwpid_of (get_thread_lwp (current_inferior));
|
||||||
errno = 0;
|
errno = 0;
|
||||||
buf = malloc (32 * 8 + 4);
|
buf = xmalloc (32 * 8 + 4);
|
||||||
if (ptrace (PTRACE_GETVFPREGS, pid, 0, buf) < 0
|
if (ptrace (PTRACE_GETVFPREGS, pid, 0, buf) < 0
|
||||||
&& errno == EIO)
|
&& errno == EIO)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue