]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ada-lang.c
Ada: ada_to_fixed_value should also unwrap_value
authorJoel Brobecker <brobecker@gnat.com>
Wed, 29 Feb 2012 19:30:53 +0000 (19:30 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 29 Feb 2012 19:30:53 +0000 (19:30 +0000)
commitc48db5caef25bc89b8f444300c7740f01405938b
tree325e5b90f3107c0a37f1c1bc67ea72cd674cb664
parent2e6fda7d06e4fa05ef3abdde96805a5cb3880f88
Ada: ada_to_fixed_value should also unwrap_value

We should always unwrap a value before trying to "fix" it. It is
therefore logical that ada_to_fixed_value would call unwrap_value
before creating the fixed value.

This simplifies the code in ada-lang.c a bit.

gdb/ChangeLog:

        * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
        creating fixed value.
        (ada_value_ind, ada_coerce_ref, assign_component)
        (ada_evaluate_subexp): Remove call to unwrap_value before
        call to ada_to_fixed_value.
gdb/ChangeLog
gdb/ada-lang.c