This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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)



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]