From: Michael Snyder Date: Sat, 5 Mar 2011 00:21:10 +0000 (+0000) Subject: 2011-03-04 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cfdee94ab418b8ee1b2e5aba6f9de8fc3771b4fb;p=binutils-gdb.git 2011-03-04 Michael Snyder * gdbserver/server.c (queue_stop_reply): Call xmalloc not malloc. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1fdb680e3cc..043be2ee64c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2011-03-04 Michael Snyder + * gdbserver/server.c (queue_stop_reply): Call xmalloc not malloc. + * xml-syscall.c (syscall_start_syscall): Assert name is non null. 2011-03-04 Thiago Jung Bauermann diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 0ddf9de50aa..8a19809d7ca 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -121,7 +121,7 @@ queue_stop_reply (ptid_t ptid, struct target_waitstatus *status) { struct vstop_notif *new_notif; - new_notif = malloc (sizeof (*new_notif)); + new_notif = xmalloc (sizeof (*new_notif)); new_notif->next = NULL; new_notif->ptid = ptid; new_notif->status = *status;