[Lldb-commits] [lldb] r145668 - in /lldb/trunk: include/lldb/API/SBTarget.h source/API/SBTarget.cpp
Greg Clayton
gclayton at apple.com
Thu Dec 1 18:10:57 PST 2011
Author: gclayton
Date: Thu Dec 1 20:10:57 2011
New Revision: 145668
URL: http://llvm.org/viewvc/llvm-project?rev=145668&view=rev
Log:
After moving lldb::pid_t to 64 bits, keep a deprecated version around for
previous binaries that link against this for a few builds to make sure we
can continue to run against previous binaries.
Modified:
lldb/trunk/include/lldb/API/SBTarget.h
lldb/trunk/source/API/SBTarget.cpp
Modified: lldb/trunk/include/lldb/API/SBTarget.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBTarget.h?rev=145668&r1=145667&r2=145668&view=diff
==============================================================================
--- lldb/trunk/include/lldb/API/SBTarget.h (original)
+++ lldb/trunk/include/lldb/API/SBTarget.h Thu Dec 1 20:10:57 2011
@@ -181,6 +181,14 @@
lldb::pid_t pid,
lldb::SBError& error);
+#if defined(__APPLE__)
+ // We need to keep this around for a build or two since Xcode links
+ // to the 32 bit version of this function. We will take it out soon.
+ lldb::SBProcess
+ AttachToProcessWithID (SBListener &listener,
+ ::pid_t pid, // 32 bit int process ID
+ lldb::SBError& error); // DEPRECATED
+#endif
//------------------------------------------------------------------
/// Attach to process with name.
///
Modified: lldb/trunk/source/API/SBTarget.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBTarget.cpp?rev=145668&r1=145667&r2=145668&view=diff
==============================================================================
--- lldb/trunk/source/API/SBTarget.cpp (original)
+++ lldb/trunk/source/API/SBTarget.cpp Thu Dec 1 20:10:57 2011
@@ -284,6 +284,17 @@
return sb_process;
}
+#if defined(__APPLE__)
+
+lldb::SBProcess
+SBTarget::AttachToProcessWithID (SBListener &listener,
+ ::pid_t pid,
+ lldb::SBError& error)
+{
+ return AttachToProcessWithID (listener, (lldb::pid_t)pid, error);
+}
+
+#endif // #if defined(__APPLE__)
lldb::SBProcess
SBTarget::AttachToProcessWithID
More information about the lldb-commits
mailing list