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 4/5] Consider addressable memory unit size in various value functions


On 07/27/2015 11:05 PM, Simon Marchi wrote:
> -      offset += TYPE_FIELD_BITPOS (arg_type, fieldno) / 8;
> +      offset += TYPE_FIELD_BITPOS (arg_type, fieldno) /
> +	          (HOST_CHAR_BIT * unit_size);

wrap in parens so alignment ends up correct (per gnu coding conventions),
and put / operator at beginning of line:

 offset += (TYPE_FIELD_BITPOS (arg_type, fieldno)
	    / (HOST_CHAR_BIT * unit_size));

OK with that change.

Thanks,
Pedro Alves


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