If a process plug-in was specified by name, always let the plug-in get used.

llvm-svn: 142688
This commit is contained in:
Greg Clayton 2011-10-21 21:41:45 +00:00
parent 606a50a9f8
commit 596ed24e43
2 changed files with 7 additions and 3 deletions

View File

@ -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;
}
//----------------------------------------------------------------------

View File

@ -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)