[Lldb-commits] [lldb] r177900 - <rdar://problem/13404009>
Han Ming Ong
hanming at apple.com
Mon Mar 25 13:11:18 PDT 2013
Author: hanming
Date: Mon Mar 25 15:11:18 2013
New Revision: 177900
URL: http://llvm.org/viewvc/llvm-project?rev=177900&view=rev
Log:
<rdar://problem/13404009>
Only get the attach_info's user ID if the supplied user info is invalid.
Modified:
lldb/trunk/source/API/SBTarget.cpp
Modified: lldb/trunk/source/API/SBTarget.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBTarget.cpp?rev=177900&r1=177899&r2=177900&view=diff
==============================================================================
--- lldb/trunk/source/API/SBTarget.cpp (original)
+++ lldb/trunk/source/API/SBTarget.cpp Mon Mar 25 15:11:18 2013
@@ -865,13 +865,13 @@ SBTarget::Attach (SBAttachInfo &sb_attac
if (process_sp)
{
ProcessAttachInfo &attach_info = sb_attach_info.ref();
- lldb::pid_t attach_pid = attach_info.GetProcessID();
- if (attach_pid != LLDB_INVALID_PROCESS_ID)
+ if (attach_info.ProcessIDIsValid() && !attach_info.UserIDIsValid())
{
PlatformSP platform_sp = target_sp->GetPlatform();
// See if we can pre-verify if a process exists or not
if (platform_sp && platform_sp->IsConnected())
{
+ lldb::pid_t attach_pid = attach_info.GetProcessID();
ProcessInstanceInfo instance_info;
if (platform_sp->GetProcessInfo(attach_pid, instance_info))
{
More information about the lldb-commits
mailing list