This is the mail archive of the gdb-patches@sourceware.org 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: [RFC] 09/10 Add "continue --all"


> From: Pedro Alves <pedro@codesourcery.com>
> Date: Tue, 6 May 2008 16:49:50 +0100
> 
> +  if (args != NULL)
> +    {
> +      if (strncmp (args, "--all", 5) == 0)

Can we please void literal constants like 5 here?  sizeof should be
our friend, and you actually use it 3 lines below this:

> +	{
> +	  all_threads = 1;
> +	  args += sizeof ("--all") - 1;
> +	  if (*args == '\0')
> +	    args = NULL;
> +	}


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