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: [RFA] Emit a warning for ineffective set VAR = EXP command


On May 9, 2012, at 4:17 PM, Joel Brobecker wrote:

>> I don't know who should approve this adjustment, but here is the
>> version that deals with pre/post inc/dec.  Note that it still warns
>> for expressions such as i++ * 2.
> 
> I think a warning is fine in this case. "set i++ * 2" almost certainly
> means something is fishy, because the multiplication is useless.
> 
>> 2012-05-09  Tristan Gingold  <gingold@adacore.com>
>> 
>> 	* printcmd.c (set_command): Add pre/post inc/dec.
> 
> This looks good to me.

Now committed.

Tristan.


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