Tom de Vries 24a601dd70 [gdb/build, c++20] Fix Wdeprecated-enum-enum-conversion
When building gdb with clang 15 and -std=c++20, I run into:
...
gdbsupport/common-exceptions.h:203:32: error: arithmetic between different \
  enumeration types ('const enum return_reason' and 'const enum errors') is \
  deprecated [-Werror,-Wdeprecated-enum-enum-conversion]
    size_t result = exc.reason + exc.error;
                    ~~~~~~~~~~ ^ ~~~~~~~~~
...

Fix this by using to_underlying.

Likewise in a few other places.

Tested on x86_64-linux.
2023-08-17 10:41:34 +02:00
..
2023-06-05 12:53:15 +02:00
2023-06-03 22:43:57 +02:00
2023-06-03 22:43:57 +02:00
2023-06-03 22:43:57 +02:00
2023-06-03 22:43:57 +02:00
2023-06-03 22:43:57 +02:00
2023-02-24 11:53:03 -07:00
2023-08-12 10:27:57 +09:30
2023-06-03 22:43:57 +02:00
2023-06-03 22:43:57 +02:00
2023-06-03 22:43:57 +02:00
2023-06-03 22:43:57 +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.