From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1688 invoked by alias); 27 Aug 2002 22:25:58 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 1681 invoked from network); 27 Aug 2002 22:25:57 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 27 Aug 2002 22:25:57 -0000 Received: from ges.redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id B84AD3C40; Tue, 27 Aug 2002 18:25:57 -0400 (EDT) Message-ID: <3D6BFC75.30207@ges.redhat.com> Date: Tue, 27 Aug 2002 15:28:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020824 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kevin Buettner Cc: Don Howard , Michael Snyder , Joel Brobecker , gdb-patches@sources.redhat.com Subject: Re: [RFA] GDB/622 - clear current breakpoint in commands causes trouble References: <1020826212230.ZM32374@localhost.localdomain> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-08/txt/msg00921.txt.bz2 > On Aug 23, 10:48am, Don Howard wrote: > > >> One question: is it important to use xstrdup() over >> plain strdup()? > > > Don is right, xstrdup() should be used instead of strdup(). If there's > some good reason to prefer strdup(), then the return value needs to > be checked. (Joel's 2002-07-31 patch isn't doing this.) http://sources.redhat.com/gdb/current/onlinedocs/gdbint_13.html#SEC115 (yep)