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/stack.c | |
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/stack.c')
0 files changed, 0 insertions, 0 deletions