diff options
author | Chaoren Lin <chaorenl@google.com> | 2015-07-14 01:09:28 +0000 |
---|---|---|
committer | Chaoren Lin <chaorenl@google.com> | 2015-07-14 01:09:28 +0000 |
commit | 98d0a4b39a89ad4d667d9150a008a0c36be94f1f (patch) | |
tree | 8aa89e4e73f775f57c5335d345f6dbbed804c13a /lldb/source/Host/linux/Host.cpp | |
parent | 2b05416be8cc116c2910684cb6097039cd1e2cc5 (diff) | |
download | bcm5719-llvm-98d0a4b39a89ad4d667d9150a008a0c36be94f1f.tar.gz bcm5719-llvm-98d0a4b39a89ad4d667d9150a008a0c36be94f1f.zip |
Refactor Unix signals.
Summary:
- Consolidate Unix signals selection in UnixSignals.
- Make Unix signals available from platform.
- Add jSignalsInfo packet to retrieve Unix signals from remote platform.
- Get a copy of the platform signal for each remote process.
- Update SB API for signals.
- Update signal utility in test suite.
Reviewers: ovyalov, clayborg
Subscribers: chaoren, jingham, labath, emaste, tberghammer, lldb-commits
Differential Revision: http://reviews.llvm.org/D11094
llvm-svn: 242101
Diffstat (limited to 'lldb/source/Host/linux/Host.cpp')
-rw-r--r-- | lldb/source/Host/linux/Host.cpp | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/lldb/source/Host/linux/Host.cpp b/lldb/source/Host/linux/Host.cpp index dddd2f3e89d..6217b1d2f1e 100644 --- a/lldb/source/Host/linux/Host.cpp +++ b/lldb/source/Host/linux/Host.cpp @@ -36,8 +36,7 @@ #include "lldb/Core/ModuleSpec.h" #include "lldb/Symbol/ObjectFile.h" #include "Plugins/Process/Linux/ProcFileReader.h" -#include "Plugins/Process/Utility/LinuxSignals.h" -#include "Plugins/Process/Utility/MipsLinuxSignals.h" + using namespace lldb; using namespace lldb_private; @@ -390,26 +389,6 @@ Host::GetEnvironment (StringList &env) return i; } -// TODO: Generalize this with a function Host::GetSignals() as discussed at http://reviews.llvm.org/D10180 -const lldb_private::UnixSignalsSP& -Host::GetUnixSignals () -{ - ArchSpec target_arch = HostInfoBase::GetArchitecture(); - if(target_arch.GetTriple ().getArch () == llvm::Triple::mips64 || - target_arch.GetTriple ().getArch () == llvm::Triple::mips64el || - target_arch.GetTriple ().getArch () == llvm::Triple::mips || - target_arch.GetTriple ().getArch () == llvm::Triple::mipsel) { - static const lldb_private::UnixSignalsSP s_unix_signals_sp (new process_linux::MipsLinuxSignals ()); - return s_unix_signals_sp; - } - else - { - static const lldb_private::UnixSignalsSP s_unix_signals_sp (new process_linux::LinuxSignals ()); - return s_unix_signals_sp; - } - -} - Error Host::ShellExpandArguments (ProcessLaunchInfo &launch_info) { |