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.

llvm-svn: 145668
This commit is contained in:
Greg Clayton 2011-12-02 02:10:57 +00:00
parent e04741d03a
commit 1ba6cfd1e6
2 changed files with 19 additions and 0 deletions

View File

@ -181,6 +181,14 @@ public:
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.
///

View File

@ -284,6 +284,17 @@ SBTarget::Launch
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