aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-12-27 13:36:55 -0700
committerTom Tromey <tom@tromey.com>2020-12-27 13:36:55 -0700
commitc8f02daac9e367c7c2dc4c3ce08e85c733a56c7c (patch)
treec9c0eff97eb5493330f2515f10d9d79a5b1af068 /gdb/stack.c
parent9e87bc7f0fe304ba506bd26c8d818dd57b7d0eb4 (diff)
downloadgdb-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