1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 229288

when using GDB6.6, if the solib-search-path is used, the launch will fail because the -gdb-set sysroot command will fail.  The concept of sysroot seems to have been introduced with GDB 6.7

Let's comment it out since it was used only as a safeguard.
This commit is contained in:
Marc Khouzam 2008-07-30 14:54:21 +00:00
parent d6faf244f9
commit c928924a21

View file

@ -49,7 +49,6 @@ import org.eclipse.dd.mi.service.command.commands.MIGDBSetArgs;
import org.eclipse.dd.mi.service.command.commands.MIGDBSetAutoSolib; import org.eclipse.dd.mi.service.command.commands.MIGDBSetAutoSolib;
import org.eclipse.dd.mi.service.command.commands.MIGDBSetNonStop; import org.eclipse.dd.mi.service.command.commands.MIGDBSetNonStop;
import org.eclipse.dd.mi.service.command.commands.MIGDBSetSolibSearchPath; import org.eclipse.dd.mi.service.command.commands.MIGDBSetSolibSearchPath;
import org.eclipse.dd.mi.service.command.commands.MIGDBSetSysroot;
import org.eclipse.dd.mi.service.command.commands.MITargetSelect; import org.eclipse.dd.mi.service.command.commands.MITargetSelect;
import org.eclipse.dd.mi.service.command.commands.RawCommand; import org.eclipse.dd.mi.service.command.commands.RawCommand;
import org.eclipse.dd.mi.service.command.output.MIInfo; import org.eclipse.dd.mi.service.command.output.MIInfo;
@ -282,13 +281,16 @@ public class FinalLaunchSequence extends Sequence {
new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor) { new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor) {
@Override @Override
protected void handleSuccess() { protected void handleSuccess() {
// If we are able to set the solib-search-path, // Sysroot is not available in GDB6.6 and will make the launch fail in that case.
// we should disable the sysroot variable, as indicated // Let's remove it for now
// in the GDB documentation. This is to avoid the sysroot requestMonitor.done();
// variable finding libraries that were not meant to be found. // // If we are able to set the solib-search-path,
fCommandControl.queueCommand( // // we should disable the sysroot variable, as indicated
new MIGDBSetSysroot(fCommandControl.getControlDMContext()), // // in the GDB documentation. This is to avoid the sysroot
new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor)); // // variable finding libraries that were not meant to be found.
// fCommandControl.queueCommand(
// new MIGDBSetSysroot(fCommandControl.getControlDMContext()),
// new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor));
}; };
}); });
} else { } else {