Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions rtems/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ patches/*
!patches/gcc-7.5.0-zlib-darwin-fdopen.patch
!patches/gcc-7.5.0-darwin-arm64-host-hooks.patch
!patches/gdb-9.1-zlib-darwin-fdopen.patch
!patches/gdb-9.1-darwin-clang-enum-constexpr.patch
!patches/binutils-2.34-zlib-darwin-fdopen.patch
tar
build
Expand Down
2 changes: 2 additions & 0 deletions rtems/config/tools/rtems-gdb-9.1-1.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
%hash sha512 gdb-9-1-linker-error-fix.diff QAtNCgJsDdfKno+IqHwqRGz1SR3YdTm34ERox2fqpgaGHI6H4GqNfmkJcJaIvSgzNxif24vqWO+bF/Djqa6wNg==
%patch add gdb --rsb-file=gdb-9.1-zlib-darwin-fdopen.patch -p1 file://%{_topdir}/patches/gdb-9.1-zlib-darwin-fdopen.patch
%hash sha512 gdb-9.1-zlib-darwin-fdopen.patch ecdc7ce221dd0459230dc8acb3edf08827bb61f9856360c0ab8ad85754e484d1c7aeabf34a7789b75a457bcf59ced8f8b418b0e5fb6721545c3fe3741a0addd8
%patch add gdb --rsb-file=gdb-9.1-darwin-clang-enum-constexpr.patch -p1 file://%{_topdir}/patches/gdb-9.1-darwin-clang-enum-constexpr.patch
%hash sha512 gdb-9.1-darwin-clang-enum-constexpr.patch gTXe5w0Q99d0+RrpRnSS1o+2CQrM4iTzdbOmX7QjkTeHZvC4TuyrW2+89a43np+CjYYOnG5caNuJfMiVLgNmFA==

%if %{_build_os} == win32
%if %{_windows_os} == cygwin
Expand Down
12 changes: 12 additions & 0 deletions rtems/patches/gdb-9.1-darwin-clang-enum-constexpr.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- a/gdb/gdbsupport/enum-flags.h
+++ b/gdb/gdbsupport/enum-flags.h
@@ -82,8 +82,7 @@ template<> struct integer_for_size<8, 1> { typedef int64_t type; };
template<typename T>
struct enum_underlying_type
{
- typedef typename
- integer_for_size<sizeof (T), static_cast<bool>(T (-1) < T (0))>::type
+ typedef typename std::underlying_type<T>::type
type;
};