diff options
author | Tom Tromey <tromey@adacore.com> | 2020-03-30 11:50:35 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2020-03-30 11:54:50 -0600 |
commit | d8af906814bd69dad694e475288401b1dee6ac3a (patch) | |
tree | 0e95af57f2a2ff0ca8fb515d6b12ff62c2d7498d /gdb/ChangeLog | |
parent | 00386881a3d0f7ac89fcc5cc912da8cd69c04324 (diff) | |
download | gdb-d8af906814bd69dad694e475288401b1dee6ac3a.zip gdb-d8af906814bd69dad694e475288401b1dee6ac3a.tar.gz gdb-d8af906814bd69dad694e475288401b1dee6ac3a.tar.bz2 |
Change ada_which_variant_applies to value API
While debugging an Ada regression, I noticed that all the callers of
ada_which_variant_applies desconstruct a value, only to have it be
reconstructed by this function.
This patch removes this inefficiency in favor of simply passing in the
value directly.
Tested on x86-64 Fedora 30.
gdb/ChangeLog
2020-03-30 Tom Tromey <tromey@adacore.com>
* ada-valprint.c (print_variant_part): Update.
* ada-lang.h (ada_which_variant_applies): Update.
* ada-lang.c (ada_which_variant_applies): Remove outer_type and
outer_valaddr parameters; replace with "outer" value parameter.
(to_fixed_variant_branch_type): Update.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 203d89c..af7e151 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2020-03-30 Tom Tromey <tromey@adacore.com> + + * ada-valprint.c (print_variant_part): Update. + * ada-lang.h (ada_which_variant_applies): Update. + * ada-lang.c (ada_which_variant_applies): Remove outer_type and + outer_valaddr parameters; replace with "outer" value parameter. + (to_fixed_variant_branch_type): Update. + 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and |