]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ada-lang.c
ada_evaluate_subexp<OP_VAR_VALUE>: Avoid static fixing when possible.
authorJoel Brobecker <brobecker@adacore.com>
Thu, 14 Aug 2014 21:00:02 +0000 (14:00 -0700)
committerJoel Brobecker <brobecker@adacore.com>
Mon, 18 Aug 2014 15:10:39 +0000 (17:10 +0200)
commit84754697d2ac74094af81cd484d4471c2e58117b
tree655ffbeb38e4bf7fc411d31a7014f22f2ad02193
parentda5c522f5be478d020c14038ace2ba2ee2b9e032
ada_evaluate_subexp<OP_VAR_VALUE>: Avoid static fixing when possible.

Now that the OP_VAR_VALUE section of this function has been reorganized
a bit, we can fall-back on standard evaluation when static fixing is
not required. This patch does that, but being exclusive about when
static fixing has to be used, rather than doing it all the time when
noside is EVAL_AVOID_SIDE_EFFECTS.

This will pave the way for later when we want to evaluate entities
that have no GNAT encodings related to them but dynamic properties
instead. In that case, we expect the standard evaluation to resolve
those dynamic properties for us, even in no-side-effect mode.

gdb/ChangeLog:

        * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
        When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
        fixed value for records and unions for which some GNAT encodings
        are present.
gdb/ChangeLog
gdb/ada-lang.c