diff options
| author | Greg Clayton <gclayton@apple.com> | 2010-10-07 04:19:01 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2010-10-07 04:19:01 +0000 |
| commit | 05faeb71350f65bbe8e41b68b22345e992e9a497 (patch) | |
| tree | e01f0087d0afd0f1050c255be597fcbdcbfe7c49 /lldb/source/Plugins/Process | |
| parent | 1b468683c273ca438345381fa89d52355bb04a80 (diff) | |
| download | bcm5719-llvm-05faeb71350f65bbe8e41b68b22345e992e9a497.tar.gz bcm5719-llvm-05faeb71350f65bbe8e41b68b22345e992e9a497.zip | |
Cleaned up the SWIG stuff so all includes happen as they should, no pulling
tricks to get types to resolve. I did this by correctly including the correct
files: stdint.h and all lldb-*.h files first before including the API files.
This allowed me to remove all of the hacks that were in the lldb.swig file
and it also allows all of the #defines in lldb-defines.h and enumerations
in lldb-enumerations.h to appear in the lldb.py module. This will make the
python script code a lot more readable.
Cleaned up the "process launch" command to not execute a "process continue"
command, it now just does what it should have with the internal API calls
instead of executing another command line command.
Made the lldb_private::Process set the state to launching and attaching if
WillLaunch/WillAttach return no error respectively.
llvm-svn: 115902
Diffstat (limited to 'lldb/source/Plugins/Process')
| -rw-r--r-- | lldb/source/Plugins/Process/MacOSX-User/source/ProcessMacOSX.cpp | 4 | ||||
| -rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 3 |
2 files changed, 0 insertions, 7 deletions
diff --git a/lldb/source/Plugins/Process/MacOSX-User/source/ProcessMacOSX.cpp b/lldb/source/Plugins/Process/MacOSX-User/source/ProcessMacOSX.cpp index 756a644afeb..e1c1bcc2fae 100644 --- a/lldb/source/Plugins/Process/MacOSX-User/source/ProcessMacOSX.cpp +++ b/lldb/source/Plugins/Process/MacOSX-User/source/ProcessMacOSX.cpp @@ -360,7 +360,6 @@ ProcessMacOSX::DoAttachToProcessWithID (lldb::pid_t attach_pid) Log *log = ProcessMacOSXLog::GetLogIfAllCategoriesSet (PD_LOG_PROCESS); if (attach_pid != LLDB_INVALID_PROCESS_ID) { - SetPrivateState (eStateAttaching); SetID(attach_pid); // Let ourselves know we are going to be using SBS if the correct flag bit is set... #if defined (__arm__) @@ -1642,8 +1641,6 @@ ProcessMacOSX::LaunchForDebug if (launch_type == eLaunchPosixSpawn) { - - //SetState (eStateAttaching); errno = 0; if (::ptrace (PT_ATTACHEXC, pid, 0, 0) == 0) launch_err.Clear(); @@ -1967,7 +1964,6 @@ ProcessMacOSX::SBLaunchForDebug // m_args.push_back(arg); Task().StartExceptionThread(); StartSTDIOThread(); - SetState (eStateAttaching); int err = ptrace (PT_ATTACHEXC, m_pid, 0, 0); if (err == 0) { diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index d84fedd9b48..c3b0c9d1c66 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -652,7 +652,6 @@ ProcessGDBRemote::DoAttachToProcessWithID (lldb::pid_t attach_pid) if (attach_pid != LLDB_INVALID_PROCESS_ID) { - SetPrivateState (eStateAttaching); char host_port[128]; snprintf (host_port, sizeof(host_port), "localhost:%u", get_random_port ()); error = StartDebugserverProcess (host_port, // debugserver_url @@ -753,8 +752,6 @@ ProcessGDBRemote::DoAttachToProcessWithName (const char *process_name, bool wait //Log *log = ProcessGDBRemoteLog::GetLogIfAllCategoriesSet (GDBR_LOG_PROCESS); if (process_name && process_name[0]) { - - SetPrivateState (eStateAttaching); char host_port[128]; ArchSpec arch_spec = GetTarget().GetArchitecture(); snprintf (host_port, sizeof(host_port), "localhost:%u", get_random_port ()); |

