gdb: use a range based for loop when iterating over an array
authorAndrew Burgess <aburgess@redhat.com>
Tue, 30 Nov 2021 14:18:09 +0000 (14:18 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Thu, 24 Feb 2022 16:10:29 +0000 (16:10 +0000)
commitdd1ae8eaa369ac5c7df7e55c929b42ac8ac44526
tree4c606731e7d459b85aa1c1317dada957e408bc53
parent7ff917016a203cdff3074abfcf96c1553944af94
gdb: use a range based for loop when iterating over an array

Make use of a range based for loop to iterate over a static global
array, removing the need to have a null entry at the end of the
array.

There should be no user visible changes after this commit.
gdb/python/py-type.c