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: [PATCH 2/3] cleanup: use value_lazy_at instead of allocate_value_lazy/attribute setter


>>>>> "Sanimir" == Sanimir Agovic <sanimir.agovic@intel.com> writes:

Sanimir> I came across a pattern used to construct a value in the following way:
Sanimir>   struct value *val = allocate_value_lazy (type);
Sanimir>   VALUE_LVAL (val) = lval_memory;
Sanimir>   set_value_address (val, address);

Thanks for doing this.

Sanimir> 2013-08-27  Sanimir Agovic  <sanimir.agovic@intel.com>
Sanimir> 	* dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
Sanimir> 	of assembling value via allocate_value_lazy and attribute setter.
Sanimir> 	* findvar.c (default_read_var_value): Use value_at_lazy instead of
Sanimir> 	assembling value via allocate_value_lazy and attribute setter.
Sanimir> 	* valops.c (do_search_struct_field): Use value_at_lazy instead of
Sanimir> 	assembling value via allocate_value_lazy and attribute setter.

This is ok.

Tom


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