summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2019-02-15 20:43:56 +0000
committerZachary Turner <zturner@google.com>2019-02-15 20:43:56 +0000
commit63c300cfc1f77b8d4d13e543cb0f1d9185deb6f1 (patch)
tree361c02304c4be577769bc474b9405ed3241ac5a1 /lldb/source/Plugins/Process/gdb-remote
parentf59ea25ee62e7dee82c0bf2dd39494b6fa1f654e (diff)
downloadbcm5719-llvm-63c300cfc1f77b8d4d13e543cb0f1d9185deb6f1.tar.gz
bcm5719-llvm-63c300cfc1f77b8d4d13e543cb0f1d9185deb6f1.zip
Don't include UnixSignals.h from Host.
Host had a function to get the UnixSignals instance corresponding to the current host architecture. This means that Host had to include a file from Target. To break this dependency, just make this a static function directly in UnixSignals. We already have the function UnixSignals::Create(ArchSpec) anyway, so we just need to have UnixSignals::CreateForHost() which determines which value to pass for the ArchSpec. The goal here is to eventually break the Host->Target->Host circular dependency. Differential Revision: https://reviews.llvm.org/D57780 llvm-svn: 354168
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp
index 808299120c3..e19eb23ced5 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp
@@ -398,7 +398,7 @@ GDBRemoteCommunicationServerPlatform::Handle_jSignalsInfo(
StringExtractorGDBRemote &packet) {
StructuredData::Array signal_array;
- const auto &signals = Host::GetUnixSignals();
+ lldb::UnixSignalsSP signals = UnixSignals::CreateForHost();
for (auto signo = signals->GetFirstSignalNumber();
signo != LLDB_INVALID_SIGNAL_NUMBER;
signo = signals->GetNextSignalNumber(signo)) {
OpenPOWER on IntegriCloud