Split out eval_op_m2_subscript
authorTom Tromey <tom@tromey.com>
Mon, 8 Mar 2021 14:27:57 +0000 (07:27 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 8 Mar 2021 14:28:09 +0000 (07:28 -0700)
commita49881f73ef1bb670b74e99bfa76cd68ee1487c1
treefa6d3dee503ba39d377e1037e9f4397a5bf9971d
parent41bdced5aef96b040b9b3eadf35306c8b2fc71d3
Split out eval_op_m2_subscript

This splits BINOP_SUBSCRIPT into a new function for future use.

gdb/ChangeLog
2021-03-08  Tom Tromey  <tom@tromey.com>

* m2-lang.c (eval_op_m2_subscript): New function.
(evaluate_subexp_modula2): Use it.
gdb/ChangeLog
gdb/m2-lang.c