This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Emit a warning for ineffective set VAR = EXP command
> 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.
Thanks Tristan,
--
Joel