diff options
| author | Zachary Turner <zturner@google.com> | 2019-03-06 18:20:23 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2019-03-06 18:20:23 +0000 |
| commit | a89ce43cec5ee6aa621173a5cba716d7d734ddd1 (patch) | |
| tree | b5b24a255ce2d7efdd2cb9a9621f38f4be01f9f4 /lldb/source/Target | |
| parent | c01140ef1ff66869d4ea9465c3cd198d82d30cab (diff) | |
| download | bcm5719-llvm-a89ce43cec5ee6aa621173a5cba716d7d734ddd1.tar.gz bcm5719-llvm-a89ce43cec5ee6aa621173a5cba716d7d734ddd1.zip | |
Resubmit "Don't include UnixSignals.h from Host."
This was reverted because it breaks the GreenDragon bot, but
the reason for the breakage is lost, so I'm resubmitting this
now so we can find out what the problem is.
llvm-svn: 355528
Diffstat (limited to 'lldb/source/Target')
| -rw-r--r-- | lldb/source/Target/Platform.cpp | 4 | ||||
| -rw-r--r-- | lldb/source/Target/UnixSignals.cpp | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/lldb/source/Target/Platform.cpp b/lldb/source/Target/Platform.cpp index b57c3523e72..6dab52390fc 100644 --- a/lldb/source/Target/Platform.cpp +++ b/lldb/source/Target/Platform.cpp @@ -1712,9 +1712,9 @@ const UnixSignalsSP &Platform::GetRemoteUnixSignals() { return s_default_unix_signals_sp; } -const UnixSignalsSP &Platform::GetUnixSignals() { +UnixSignalsSP Platform::GetUnixSignals() { if (IsHost()) - return Host::GetUnixSignals(); + return UnixSignals::CreateForHost(); return GetRemoteUnixSignals(); } diff --git a/lldb/source/Target/UnixSignals.cpp b/lldb/source/Target/UnixSignals.cpp index fc08e8438c5..970510367f0 100644 --- a/lldb/source/Target/UnixSignals.cpp +++ b/lldb/source/Target/UnixSignals.cpp @@ -11,6 +11,7 @@ #include "Plugins/Process/Utility/LinuxSignals.h" #include "Plugins/Process/Utility/MipsLinuxSignals.h" #include "Plugins/Process/Utility/NetBSDSignals.h" +#include "lldb/Host/HostInfo.h" #include "lldb/Host/StringConvert.h" #include "lldb/Utility/ArchSpec.h" @@ -50,6 +51,12 @@ lldb::UnixSignalsSP UnixSignals::Create(const ArchSpec &arch) { } } +lldb::UnixSignalsSP UnixSignals::CreateForHost() { + static lldb::UnixSignalsSP s_unix_signals_sp = + Create(HostInfo::GetArchitecture()); + return s_unix_signals_sp; +} + //---------------------------------------------------------------------- // UnixSignals constructor //---------------------------------------------------------------------- |

