aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2014-08-14 14:00:02 -0700
committerJoel Brobecker <brobecker@adacore.com>2014-08-18 17:10:39 +0200
commit84754697d2ac74094af81cd484d4471c2e58117b (patch)
tree655ffbeb38e4bf7fc411d31a7014f22f2ad02193 /gdb/ChangeLog
parentda5c522f5be478d020c14038ace2ba2ee2b9e032 (diff)
downloadgdb-84754697d2ac74094af81cd484d4471c2e58117b.zip
gdb-84754697d2ac74094af81cd484d4471c2e58117b.tar.gz
gdb-84754697d2ac74094af81cd484d4471c2e58117b.tar.bz2
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.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 23bc214..4ca5ea8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
2014-08-18 Joel Brobecker <brobecker@adacore.com>
+ * 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.
+
+2014-08-18 Joel Brobecker <brobecker@adacore.com>
+
* ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
rewrite to avoid "else if" and "else" constructs. Should be
a no-op in practice.