Tom de Vries 6c8052f6b2 [gdbsupport] Use std::span-style iterators for gdb::array_view
There's a plan to replace gdb::array_view with std::span (PR31422), and making
gdb::array_view more like std::span helps with that.

One difference is that std::span has:
...
constexpr iterator begin() const noexcept;
constexpr const_iterator cbegin() const noexcept;
...
while gdb::array_view has:
...
constexpr T *begin () noexcept;
constexpr const T *begin () const noexcept;
...

Fix this by renaming the second variant to cbegin, and making the first
variant const.

Likewise for gdb::array_view::end.

Tested on aarch64-linux.

Approved-By: Tom Tromey <tom@tromey.com>
2024-10-19 08:10:38 +02:00
..
2023-11-15 12:53:04 +00:00
2024-02-27 10:30:29 -07:00
2024-06-07 23:09:03 -04:00
2024-04-21 19:54:27 -06:00
2024-02-27 09:46:31 -07:00
2024-10-06 07:59:48 +02:00
2024-06-24 09:11:30 -06:00
2024-10-06 07:59:48 +02:00

This is a helper library that is used by gdb and gdbserver.

To send patches, follow the gdb patch submission instructions in
../gdb/CONTRIBUTE.  For maintainers, see ../gdb/MAINTAINERS.