[RFA] GDB/622 - clear current breakpoint in commands causes trouble

Kevin Buettner kevinb@redhat.com
Mon Aug 26 15:31:00 GMT 2002


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



More information about the Gdb-patches mailing list