diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1fdb680e3c..043be2ee64 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 0ddf9de50a..8a19809d7c 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;