diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2014-02-18 16:23:10 +0000 | 
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2014-02-18 16:23:10 +0000 | 
| commit | 866dcdacfe59f5f448e008fe2c4cb9dfcf72b2ec (patch) | |
| tree | 95cb16075f0af1b3a05b9b84eb18dda8e6c903e9 /source/Plugins/Process/POSIX | |
| parent | de889deb2c386f2a7831befaf226e5c86685fa53 (diff) | |
Diffstat (limited to 'source/Plugins/Process/POSIX')
| -rw-r--r-- | source/Plugins/Process/POSIX/POSIXThread.cpp | 4 | ||||
| -rw-r--r-- | source/Plugins/Process/POSIX/ProcessPOSIX.cpp | 16 | ||||
| -rw-r--r-- | source/Plugins/Process/POSIX/ProcessPOSIX.h | 8 | 
3 files changed, 6 insertions, 22 deletions
| diff --git a/source/Plugins/Process/POSIX/POSIXThread.cpp b/source/Plugins/Process/POSIX/POSIXThread.cpp index 16399748c5443..8d4c71ff269a9 100644 --- a/source/Plugins/Process/POSIX/POSIXThread.cpp +++ b/source/Plugins/Process/POSIX/POSIXThread.cpp @@ -83,6 +83,7 @@ POSIXThread::GetMonitor()      return process.GetMonitor();  } +// Overridden by FreeBSDThread; this is used only on Linux.  void  POSIXThread::RefreshStateAfterStop()  { @@ -150,8 +151,6 @@ POSIXThread::GetRegisterContext()          {              case ArchSpec::eCore_mips64:              { -                RegisterInfoInterface *reg_interface = NULL; -                  switch (target_arch.GetTriple().getOS())                  {                      case llvm::Triple::FreeBSD: @@ -257,6 +256,7 @@ POSIXThread::GetUnwinder()      return m_unwinder_ap.get();  } +// Overridden by FreeBSDThread; this is used only on Linux.  void  POSIXThread::WillResume(lldb::StateType resume_state)  { diff --git a/source/Plugins/Process/POSIX/ProcessPOSIX.cpp b/source/Plugins/Process/POSIX/ProcessPOSIX.cpp index 70ad3a66d9ef2..62394623c59d9 100644 --- a/source/Plugins/Process/POSIX/ProcessPOSIX.cpp +++ b/source/Plugins/Process/POSIX/ProcessPOSIX.cpp @@ -200,7 +200,7 @@ ProcessPOSIX::GetFilePath(  Error  ProcessPOSIX::DoLaunch (Module *module, -                       const ProcessLaunchInfo &launch_info) +                        ProcessLaunchInfo &launch_info)  {      Error error;      assert(m_monitor == NULL); @@ -632,20 +632,6 @@ ProcessPOSIX::DoDeallocateMemory(lldb::addr_t addr)      return error;  } -addr_t -ProcessPOSIX::ResolveIndirectFunction(const Address *address, Error &error) -{ -    addr_t function_addr = LLDB_INVALID_ADDRESS; -    if (address == NULL) { -        error.SetErrorStringWithFormat("unable to determine direct function call for NULL address"); -    } else if (!InferiorCall(this, address, function_addr)) { -        function_addr = LLDB_INVALID_ADDRESS; -        error.SetErrorStringWithFormat("unable to determine direct function call for indirect function %s", -                                       address->CalculateSymbolContextSymbol()->GetName().AsCString()); -    } -    return function_addr; -} -  size_t  ProcessPOSIX::GetSoftwareBreakpointTrapOpcode(BreakpointSite* bp_site)  { diff --git a/source/Plugins/Process/POSIX/ProcessPOSIX.h b/source/Plugins/Process/POSIX/ProcessPOSIX.h index 790041be321a9..7f705d33fe68c 100644 --- a/source/Plugins/Process/POSIX/ProcessPOSIX.h +++ b/source/Plugins/Process/POSIX/ProcessPOSIX.h @@ -58,7 +58,7 @@ public:      virtual lldb_private::Error      DoLaunch (lldb_private::Module *exe_module,  -              const lldb_private::ProcessLaunchInfo &launch_info); +              lldb_private::ProcessLaunchInfo &launch_info);      virtual void      DidLaunch(); @@ -104,9 +104,6 @@ public:      virtual lldb_private::Error      DoDeallocateMemory(lldb::addr_t ptr); -    virtual lldb::addr_t -    ResolveIndirectFunction(const lldb_private::Address *address, lldb_private::Error &error); -      virtual size_t      GetSoftwareBreakpointTrapOpcode(lldb_private::BreakpointSite* bp_site); @@ -148,7 +145,8 @@ public:      // ProcessPOSIX internal API.      /// Registers the given message with this process. -    void SendMessage(const ProcessMessage &message); +    virtual void +    SendMessage(const ProcessMessage &message);      ProcessMonitor &      GetMonitor() { assert(m_monitor); return *m_monitor; } | 
