mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-16 04:18:50 +00:00
gdb: Replace gdb::optional with std::optional
Since GDB now requires a C++17, we don't need the internally maintained gdb::optional implementation. This patch does the following replacing: - gdb::optonal -> std::optional - gdb::in_place -> std::in_place - #include "gdbsupport/gdb_optional.h" -> #include <optional> This change has mostly been done automatically. One exception is gdbsupport/thread-pool which did not use the gdb:: prefix as it already lives in the gdb namespace. Change-Id: I19a92fa03e89637bab136c72e34fd351524f65e9
This commit is contained in:
@@ -732,7 +732,7 @@ arm_linux_core_read_description (struct gdbarch *gdbarch,
|
||||
struct target_ops *target,
|
||||
bfd *abfd)
|
||||
{
|
||||
gdb::optional<gdb::byte_vector> auxv = target_read_auxv_raw (target);
|
||||
std::optional<gdb::byte_vector> auxv = target_read_auxv_raw (target);
|
||||
CORE_ADDR arm_hwcap = linux_get_hwcap (auxv, target, gdbarch);
|
||||
|
||||
if (arm_hwcap & HWCAP_VFP)
|
||||
|
||||
Reference in New Issue
Block a user