diff options
| author | Greg Clayton <gclayton@apple.com> | 2011-10-21 21:41:45 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2011-10-21 21:41:45 +0000 |
| commit | 596ed24e433d62606051fd0d0dcafdcb688e7698 (patch) | |
| tree | 6cfc6eb5765073db9672c2fa9afd885d434f304a | |
| parent | 606a50a9f81d5c55fee3eb6d36934f9ac0989abf (diff) | |
| download | bcm5719-llvm-596ed24e433d62606051fd0d0dcafdcb688e7698.tar.gz bcm5719-llvm-596ed24e433d62606051fd0d0dcafdcb688e7698.zip | |
If a process plug-in was specified by name, always let the plug-in get used.
llvm-svn: 142688
| -rw-r--r-- | lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp | 7 | ||||
| -rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 3 |
2 files changed, 7 insertions, 3 deletions
diff --git a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp index 09350b30e00..d2d8dc6a1bd 100644 --- a/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp +++ b/lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp @@ -58,6 +58,9 @@ ProcessKDP::CreateInstance (Target &target, Listener &listener) bool ProcessKDP::CanDebug(Target &target, bool plugin_specified_by_name) { + if (plugin_specified_by_name) + return true; + // For now we are just making sure the file exists for a given module Module *exe_module = target.GetExecutableModulePointer(); if (exe_module) @@ -71,10 +74,8 @@ ProcessKDP::CanDebug(Target &target, bool plugin_specified_by_name) exe_objfile->GetStrata() == ObjectFile::eStrataKernel) return true; } - return false; } - // No target executable, assume we can debug if our plug-in was specified by name - return plugin_specified_by_name; + return false; } //---------------------------------------------------------------------- diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index 70147d4dce5..2c50b6ea874 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -103,6 +103,9 @@ ProcessGDBRemote::CreateInstance (Target &target, Listener &listener) bool ProcessGDBRemote::CanDebug (Target &target, bool plugin_specified_by_name) { + if (plugin_specified_by_name) + return true; + // For now we are just making sure the file exists for a given module Module *exe_module = target.GetExecutableModulePointer(); if (exe_module) |

