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


> > This warns about "set variable $j++" presumably -- should the warning be 
> > disabled for pre/post increments/decrements?
> 
> I am not opposed to disable warnings for pre/post inc/dec.
> But this usage is dubious (the help explicitly mentions VAR=EXP !)
> 
> Opinion ?

I think we should avoid the warning for pre/post inc/dec. This
type of expression might be a little outside the method proposed
in our documentation, but I think it's still a perfectly valid
expression that results in an assignment being performed.

-- 
Joel


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