In DebuggerManager::FindTargetsDebugger
If attempting to debug a gcc virtual target (say codeblocks All target)
and the default compiler is set to Visual C++, FindTargetsDebugger will set the debugger to CDB because the virtual target address is returned as 0x0.
Something like the following may work.
void DebuggerManager::FindTargetsDebugger()
. . .
if (project)
{
const wxString &targetName = project->GetActiveBuildTarget();
if (project->BuildTargetValid(targetName))
target = project->GetBuildTarget(targetName);
}
// The above fails to find actual target for virtual targets //(pecan 2012/04/11)
Compiler *compiler = nullptr;
if (!target)
{
if (project) //(pecan 2012/04/11)
compiler = CompilerFactory::GetCompiler(project->GetCompilerID()); //(pecan 2012/04/11)
if (not compiler) //(pecan 2012/04/11)
compiler = CompilerFactory::GetDefaultCompiler();
if (!compiler)
. . .
Would be better if we could find a way to identify the actual target.
But I couldn't find one.