[PATCH 0/5] Small cleanups in array_operation::evaluate

Tom Tromey tromey@adacore.com
Mon Aug 28 19:59:30 GMT 2023


While working on another, larger, series, I found a few small cleanups
to do in array_operation::evaluate.  I've made each one a separate
patch to try to keep each one reasonably obvious.

Regression tested on x86-64 Fedora 36.

---
Tom Tromey (5):
      Use gdb::array_view for value_array
      Declare 'tem' in loop header in array_operation::evaluate
      Hoist array bounds check in array_operation::evaluate
      Remove redundant variable from array_operation::evaluate
      Remove another redundant variable from array_operation::evaluate

 gdb/eval.c      | 29 +++++++++++------------------
 gdb/rust-lang.c |  2 +-
 gdb/valops.c    |  3 ++-
 gdb/value.h     |  2 +-
 4 files changed, 15 insertions(+), 21 deletions(-)
---
base-commit: b8a175b415454df6a039ba0b5d2ff13c3c180275
change-id: 20230828-cleanup-array-op-49e3af3bd743

Best regards,
-- 
Tom Tromey <tromey@adacore.com>



More information about the Gdb-patches mailing list