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: [PATCH] Fix -trace-save crash when argument is missing


On 16-10-17 04:08 PM, Yao Qi wrote:
> HI Simon,
> Patch is good to me.  A nit below,
> 
> On Fri, Oct 14, 2016 at 4:25 PM, Simon Marchi <simon.marchi@ericsson.com> wrote:
>> +
>> +  if (oind >= argc)
> 
> Nit:  if (argc - oind != 1)
> 
>> +    error (_("Argument required (file in which to save trace data)"));
>> +

Good idea, otherwise giving too many arguments still works, when it
shouldn't.  I'll change the error message to:

  "Exactly one argument required ..."

Thanks.


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