From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30038 invoked by alias); 4 Mar 2011 23:48:49 -0000 Received: (qmail 30030 invoked by uid 22791); 4 Mar 2011 23:48:48 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SHORT_BODY,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-outbound-2.vmware.com (HELO smtp-outbound-2.vmware.com) (65.115.85.73) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Mar 2011 23:48:44 +0000 Received: from mailhost4.vmware.com (mailhost4.vmware.com [10.16.67.124]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 4C0AF4F008 for ; Fri, 4 Mar 2011 15:48:43 -0800 (PST) Received: from msnyder-server.eng.vmware.com (promd-2s-dhcp138.eng.vmware.com [10.20.124.138]) by mailhost4.vmware.com (Postfix) with ESMTP id 3D5B5C9EF6 for ; Fri, 4 Mar 2011 15:48:43 -0800 (PST) Message-ID: <4D717A5A.4050909@vmware.com> Date: Fri, 04 Mar 2011 23:48:00 -0000 From: Michael Snyder User-Agent: Thunderbird 2.0.0.24 (X11/20101201) MIME-Version: 1.0 To: "gdb-patches@sourceware.org" Subject: [RFA] gdbserver/server.c (queue_stop_reply): Call xmalloc not malloc. Content-Type: multipart/mixed; boundary="------------000508090807070608000305" X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-03/txt/msg00343.txt.bz2 This is a multi-part message in MIME format. --------------000508090807070608000305 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 5 OK? --------------000508090807070608000305 Content-Type: text/plain; name="null10.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="null10.txt" Content-length: 702 2011-03-04 Michael Snyder * gdbserver/server.c (queue_stop_reply): Call xmalloc not malloc. Index: gdbserver/server.c =================================================================== RCS file: /cvs/src/src/gdb/gdbserver/server.c,v retrieving revision 1.140 diff -u -p -u -p -r1.140 server.c --- gdbserver/server.c 28 Feb 2011 01:46:51 -0000 1.140 +++ gdbserver/server.c 4 Mar 2011 23:46:52 -0000 @@ -121,7 +121,7 @@ queue_stop_reply (ptid_t ptid, struct ta { 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; --------------000508090807070608000305--