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] patch for review of PR gdb/10462


>>>>> ">" == mbilal  <mbilal@codesourcery.com> writes:

>> please find attached,  proposed patch for  PR gdb/10462
>> that is, argument must be  preceded by  space.

>> +      if (strlen(*line) != 0 && c->type == set_cmd && **line != ' ' )

Space after 'strlen' and no space before the ')'.
Also, it seems like isspace would be better here.

Finally, this could use a test case.
You can just add one to some relevant .exp file.

Tom


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