@Override
 protected void launchProcess(
     ILaunchConfiguration configuration, ILaunch launch, IProgressMonitor monitor)
     throws CoreException {
   String mode = launch.getLaunchMode();
   gdbLaunchDelegate.launch(configuration, mode, launch, monitor);
 }
  @Override
  public ILaunch getLaunchForDebugMode(ILaunchConfiguration configuration, String mode)
      throws CoreException {

    ILaunchConfigurationWorkingCopy workingCopy = configuration.getWorkingCopy();

    setAttributes(workingCopy);

    workingCopy.doSave();

    return gdbLaunchDelegate.getLaunch(configuration, mode);
  }