[Lldb-commits] [PATCH] Attach to process fix for Linux

Greg Clayton gclayton at apple.com
Fri Oct 12 09:13:16 PDT 2012


Looks good. I modified it a bit to ensure that the public state is set to eStateAttaching and the bool for setting when to detach only if we get the run lock.

% svn commit source/Plugins/Process/Linux/ProcessMonitor.cpp source/Target/Process.cpp
Sending        source/Plugins/Process/Linux/ProcessMonitor.cpp
Sending        source/Target/Process.cpp
Transmitting file data ..
Committed revision 165804.

On Oct 12, 2012, at 8:46 AM, "Kopec, Matt" <matt.kopec at intel.com> wrote:

> Hi all,
>  
> This patch fixes some problems with attaching to a process on Linux.
>  
> 1.      The run lock wasn’t being locked when attaching.
> 2.      The inferior pid wasn’t being set in the ProcessMonitor object after attaching with ptrace.
>  
> Thanks,
> Matt
> <attach.patch>_______________________________________________
> lldb-commits mailing list
> lldb-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits





More information about the lldb-commits mailing list