More explicit local variable names in ada_value_primitive_packed_val
authorJoel Brobecker <brobecker@adacore.com>
Fri, 9 Oct 2015 21:10:03 +0000 (14:10 -0700)
committerJoel Brobecker <brobecker@adacore.com>
Fri, 9 Oct 2015 21:27:43 +0000 (14:27 -0700)
commit086ca51f460e52828fa02096638a3f36e272ccd2
tree7d9ed572db87feb6150a3850658309adb47a5d07
parentc5bcd27856f388ae4935b525b1016e812803ddf5
More explicit local variable names in ada_value_primitive_packed_val

A number of local variables declared in ada_value_primitive_packed_val
have a name that could, IMO, be improved to, either: Be more explicit
about what the variable is about (Eg: "src" is an index, so rename it
to "src_idx"); or be more consistent with other variables that they
relate to: for instance, several variables refer to the source via
"src" (Eg: srcBitsLeft, nsrc), but the buffer they refer to is called
"bytes", so patch renames "bytes" to "src".

This should help read and understand a little more easily the code
inside this function.  No real code change otherwise.

gdb/ChangeLog:

        * ada-lang.c (ada_value_primitive_packed_val): Make the name
        of various local variables more explicit and consistent.
        No real code change otherwise.
gdb/ChangeLog
gdb/ada-lang.c
This page took 0.023691 seconds and 4 git commands to generate.