This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] fix pre-/post- in-/decrement
On Wed, Oct 13, 2010 at 11:23:39AM +0200, Ken Werner wrote:
> On Wednesday, October 13, 2010 1:00:04 am Tom Tromey wrote:
> > While I don't really mind having language checks in the expression
> > evaluator, it seems like this particular error condition is something
> > that could be detected in the C parser.
>
> Hmm interesting. I guess you are referring to c-exp.y as this generates the
> expression parser for both languages C and C++. I don't see how to control the
> type of the result of an operator there. I'm still quite new to the GDB
> parsing internals and would appreciate any insights.
You could add an expression operator to remove lval-ness, for
instance.
--
Daniel Jacobowitz
CodeSourcery