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

Andrew Cagney ac131313@ges.redhat.com
Tue Aug 27 15:28: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.)

http://sources.redhat.com/gdb/current/onlinedocs/gdbint_13.html#SEC115
(yep)




More information about the Gdb-patches mailing list