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]

[commit value_zero] Re: [patch] Fix crash on lval_computed value_zero/value_one


On Wed, 27 Jul 2011 20:56:29 +0200, Pedro Alves wrote:
> value_zero should really be named "value_that_looks_sufficiently_like_the_value_Id_get_if_I_were_fully_evaluating_the_expression_but_Im_avoiding_touching_the_target_so_I_dont_care_about_the_values_contents_in_end".

It is a good hint that one should handle EVAL_AVOID_SIDE_EFFECTS in a special
way iff it can save operations involving target.  Sometimes it seemed as
a needless optimization of CPU cycles but remote targets can make
a difference.

That value_zero part is checked in:
	http://sourceware.org/ml/gdb-cvs/2011-07/msg00229.html


Thanks for the review,
Jan


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