This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] GDB/622 - clear current breakpoint in commands causes trouble
- From: Kevin Buettner <kevinb at redhat dot com>
- To: Don Howard <dhoward at redhat dot com>, Michael Snyder <msnyder at redhat dot com>
- Cc: Joel Brobecker <brobecker at gnat dot com>, <gdb-patches at sources dot redhat dot com>
- Date: Mon, 26 Aug 2002 14:22:30 -0700
- Subject: Re: [RFA] GDB/622 - clear current breakpoint in commands causes trouble
- References: <Pine.LNX.4.33.0208221506430.11494-100000@theotherone.redhat-remotie.org>
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.)
Kevin