diff options
author | Tom Tromey <tom@tromey.com> | 2020-12-27 13:36:55 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-12-27 13:36:55 -0700 |
commit | c8f02daac9e367c7c2dc4c3ce08e85c733a56c7c (patch) | |
tree | c9c0eff97eb5493330f2515f10d9d79a5b1af068 /gdb/ChangeLog | |
parent | 9e87bc7f0fe304ba506bd26c8d818dd57b7d0eb4 (diff) | |
download | gdb-c8f02daac9e367c7c2dc4c3ce08e85c733a56c7c.zip gdb-c8f02daac9e367c7c2dc4c3ce08e85c733a56c7c.tar.gz gdb-c8f02daac9e367c7c2dc4c3ce08e85c733a56c7c.tar.bz2 |
Simplify MULTI_SUBSCRIPT implementation
The MULTI_SUBSCRIPT code in evaluate_subexp_standard has a comment
saying that perhaps the EVAL_SKIP handling is incorrect. This patch
simplifies this code. In particular, it precomputes all the indices
in a separate loop and removes some complicated flow-control.
Tested using the gdb.modula2 and gdb.dlang test suites, as these are
the only parsers that emit MULTI_SUBSCRIPT.
gdb/ChangeLog
2020-12-27 Tom Tromey <tom@tromey.com>
* eval.c (evaluate_subexp_standard) <case MULTI_SUBSCRIPT>:
Simplify.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 649652e..449afdc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2020-12-27 Tom Tromey <tom@tromey.com> + + * eval.c (evaluate_subexp_standard) <case MULTI_SUBSCRIPT>: + Simplify. + 2020-12-24 Andrew Burgess <andrew.burgess@embecosm.com> PR gdb/27059 |