Add system(NULL) to fileio

Nathan Sidwell nathan@codesourcery.com
Tue Jun 13 13:29:00 GMT 2006


Nathan Sidwell wrote:

> ------------------------------------------------------------------------
> 
> 2006-06-09  Nathan Sidwell  <nathan@codesourcery.com>
> 
> 	gdb/
> 	* remote-file.io.c (remote_fileio_func_system): Treat zero length
> 	string as NULL.  Adjust for NULL pointer argument.
> 	* doc/gdb.texinfo (system): Document behaviour with zero length
> 	string.
> 
> 	gdb/testsuite/
> 	* gdb.base/fileio.c: Add system(NULL) test.
> 	* gdb.base/fileio.exp: Check it.

I applied the patch with the suggested changes to documentation and comment. 
Daniel pointed out that I'd misunderstood Eli's email as only approving the 
documentation change, but he has told me the patch is good.

nathan
-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::         CodeSourcery
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk



More information about the Gdb-patches mailing list