]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/aarch64-linux-tdep.c
gdb: Replace gdb::optional with std::optional
authorLancelot Six <lancelot.six@amd.com>
Fri, 13 Oct 2023 09:27:48 +0000 (09:27 +0000)
committerLancelot Six <lancelot.six@amd.com>
Tue, 21 Nov 2023 11:52:35 +0000 (11:52 +0000)
commit6b09f1342cf2d8e2b13a0d634acc3bcf2852a73b
tree07259601270022a6cbeb89826560262f015e1589
parent6b62451ad08056f0ba02e192ec34ef67c4294ef4
gdb: Replace gdb::optional with std::optional

Since GDB now requires C++17, we don't need the internally maintained
gdb::optional implementation.  This patch does the following replacing:
  - gdb::optional -> 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
Approved-By: Tom Tromey <tom@tromey.com>
Approved-By: Pedro Alves <pedro@palves.net>
147 files changed:
gdb/aarch64-linux-tdep.c
gdb/ada-lang.c
gdb/ada-lex.l
gdb/ada-valprint.c
gdb/amd-dbgapi-target.c
gdb/annotate.c
gdb/arm-fbsd-tdep.c
gdb/arm-fbsd-tdep.h
gdb/arm-linux-tdep.c
gdb/arm-tdep.c
gdb/auto-load.c
gdb/auxv.c
gdb/auxv.h
gdb/avr-tdep.c
gdb/breakpoint.c
gdb/buildsym.c
gdb/cli/cli-cmds.c
gdb/cli/cli-cmds.h
gdb/cli/cli-decode.c
gdb/cli/cli-decode.h
gdb/cli/cli-option.c
gdb/cli/cli-option.h
gdb/command.h
gdb/compile/compile.c
gdb/darwin-nat.c
gdb/debuginfod-support.c
gdb/disasm.c
gdb/disasm.h
gdb/dwarf2/attribute.h
gdb/dwarf2/cu.h
gdb/dwarf2/die.h
gdb/dwarf2/index-cache.h
gdb/dwarf2/index-write.c
gdb/dwarf2/line-header.c
gdb/dwarf2/macro.c
gdb/dwarf2/macro.h
gdb/dwarf2/read-gdb-index.c
gdb/dwarf2/read.c
gdb/dwarf2/read.h
gdb/eval.c
gdb/event-top.c
gdb/exceptions.c
gdb/extension-priv.h
gdb/extension.c
gdb/extension.h
gdb/f-lang.c
gdb/fbsd-nat.c
gdb/fbsd-nat.h
gdb/fbsd-tdep.c
gdb/gdbthread.h
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/guile/scm-ports.c
gdb/ia64-tdep.c
gdb/inf-child.c
gdb/inf-child.h
gdb/infcmd.c
gdb/inferior.c
gdb/inferior.h
gdb/inflow.c
gdb/infrun.c
gdb/interps.c
gdb/interps.h
gdb/jit.c
gdb/linux-nat.c
gdb/linux-nat.h
gdb/linux-tdep.c
gdb/linux-tdep.h
gdb/linux-thread-db.c
gdb/main.c
gdb/mi/mi-cmd-stack.c
gdb/mi/mi-cmd-var.c
gdb/mi/mi-cmds.c
gdb/mi/mi-cmds.h
gdb/mi/mi-interp.c
gdb/mi/mi-interp.h
gdb/mi/mi-main.c
gdb/nat/linux-osdata.c
gdb/nat/windows-nat.c
gdb/nat/windows-nat.h
gdb/observable.h
gdb/osdata.c
gdb/parse.c
gdb/ppc-linux-nat.c
gdb/ppc-linux-tdep.c
gdb/ppc-tdep.h
gdb/printcmd.c
gdb/probe.c
gdb/procfs.c
gdb/psymtab.c
gdb/psymtab.h
gdb/python/py-disasm.c
gdb/python/py-framefilter.c
gdb/python/py-inferior.c
gdb/python/py-mi.c
gdb/python/py-utils.c
gdb/python/python-internal.h
gdb/python/python.c
gdb/ravenscar-thread.c
gdb/record-btrace.c
gdb/regcache.c
gdb/remote.c
gdb/riscv-tdep.c
gdb/s390-linux-tdep.c
gdb/skip.c
gdb/solib-aix.c
gdb/solib-dsbt.c
gdb/solib-svr4.c
gdb/solib-target.c
gdb/source-cache.c
gdb/stack.c
gdb/stack.h
gdb/symfile.c
gdb/symtab.c
gdb/symtab.h
gdb/target.c
gdb/target.h
gdb/thread.c
gdb/tracefile-tfile.c
gdb/tracepoint.c
gdb/tui/tui-disasm.c
gdb/tui/tui-layout.c
gdb/unittests/optional-selftests.c
gdb/utils.c
gdb/valarith.c
gdb/valops.c
gdb/value.c
gdb/value.h
gdb/windows-nat.c
gdb/xml-support.c
gdb/xml-support.h
gdb/xml-syscall.c
gdb/xml-tdesc.c
gdb/xml-tdesc.h
gdbserver/linux-aarch64-low.cc
gdbserver/regcache.cc
gdbserver/regcache.h
gdbserver/win32-low.cc
gdbsupport/common-debug.h
gdbsupport/event-loop.cc
gdbsupport/filestuff.cc
gdbsupport/filestuff.h
gdbsupport/forward-scope-exit.h
gdbsupport/range-chain.h
gdbsupport/scoped_ignore_sigttou.h
gdbsupport/thread-pool.cc
gdbsupport/thread-pool.h