diff options
author | Zachary Turner <zturner@google.com> | 2015-05-13 19:44:44 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-05-13 19:44:44 +0000 |
commit | 1aa755ce772a311a1c5280578d6303be8d088203 (patch) | |
tree | 035814bfbba814f7895eadd90e444460b1b5adc4 /lldb/source | |
parent | 7271bab3bbe73b801896598012ef5d66e178e4e9 (diff) | |
download | bcm5719-llvm-1aa755ce772a311a1c5280578d6303be8d088203.tar.gz bcm5719-llvm-1aa755ce772a311a1c5280578d6303be8d088203.zip |
Remove DoAttachToProcessWithId(lldb::pid_t).
There were two versions of DoAttachToprocessWithId. One that takes
a pid_t, and the other which takes a pid_t and a ProcessAttachInfo.
There were no callers of the former version, and all of the
implementations of this version were simply forwarding calls to
one version or the other.
llvm-svn: 237281
Diffstat (limited to 'lldb/source')
6 files changed, 1 insertions, 32 deletions
diff --git a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp index 87c6d15c3ba..2acc81bb483 100644 --- a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp +++ b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp @@ -406,15 +406,6 @@ ProcessKDP::DoLaunch (Module *exe_module, return error; } - -Error -ProcessKDP::DoAttachToProcessWithID (lldb::pid_t attach_pid) -{ - Error error; - error.SetErrorString ("attach to process by ID is not suppported in kdp remote debugging"); - return error; -} - Error ProcessKDP::DoAttachToProcessWithID (lldb::pid_t attach_pid, const ProcessAttachInfo &attach_info) { diff --git a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.h b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.h index f7f12350fa5..f67b0490905 100644 --- a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.h +++ b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.h @@ -97,9 +97,6 @@ public: DoConnectRemote (lldb_private::Stream *strm, const char *remote_url); virtual lldb_private::Error - DoAttachToProcessWithID (lldb::pid_t pid); - - virtual lldb_private::Error DoAttachToProcessWithID (lldb::pid_t pid, const lldb_private::ProcessAttachInfo &attach_info); virtual lldb_private::Error diff --git a/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp b/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp index 09f72cbde97..71284d1edaf 100644 --- a/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp +++ b/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp @@ -85,7 +85,7 @@ ProcessPOSIX::CanDebug(Target &target, bool plugin_specified_by_name) } Error -ProcessPOSIX::DoAttachToProcessWithID(lldb::pid_t pid) +ProcessPOSIX::DoAttachToProcessWithID (lldb::pid_t pid, const ProcessAttachInfo &attach_info) { Error error; assert(m_monitor == NULL); @@ -134,12 +134,6 @@ ProcessPOSIX::DoAttachToProcessWithID(lldb::pid_t pid) } Error -ProcessPOSIX::DoAttachToProcessWithID (lldb::pid_t pid, const ProcessAttachInfo &attach_info) -{ - return DoAttachToProcessWithID(pid); -} - -Error ProcessPOSIX::WillLaunch(Module* module) { Error error; diff --git a/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.h b/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.h index 5db66f59ee0..2e8f46e48d8 100644 --- a/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.h +++ b/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.h @@ -51,9 +51,6 @@ public: WillLaunch(lldb_private::Module *module) override; lldb_private::Error - DoAttachToProcessWithID(lldb::pid_t pid) override; - - lldb_private::Error DoAttachToProcessWithID (lldb::pid_t pid, const lldb_private::ProcessAttachInfo &attach_info) override; lldb_private::Error diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index 01c48d75822..1526b0911a1 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -1301,13 +1301,6 @@ ProcessGDBRemote::DidLaunch () } Error -ProcessGDBRemote::DoAttachToProcessWithID (lldb::pid_t attach_pid) -{ - ProcessAttachInfo attach_info; - return DoAttachToProcessWithID(attach_pid, attach_info); -} - -Error ProcessGDBRemote::DoAttachToProcessWithID (lldb::pid_t attach_pid, const ProcessAttachInfo &attach_info) { Log *log (ProcessGDBRemoteLog::GetLogIfAllCategoriesSet (GDBR_LOG_PROCESS)); diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h index e9d117c12db..a6c2d107dc1 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h @@ -105,9 +105,6 @@ public: Error WillLaunchOrAttach (); - - Error - DoAttachToProcessWithID (lldb::pid_t pid) override; Error DoAttachToProcessWithID (lldb::pid_t pid, const ProcessAttachInfo &attach_info) override; |