import org.xml.sax.SAXException;
import com.samsung.ide.common.util.DialogUtil;
+import com.samsung.ide.connection.device.DeviceManager;
+import com.samsung.ide.connection.machine.IMachine;
import com.samsung.ide.connection.session.ISession;
import com.samsung.freshide.launch.SLPLaunchDelegate;
abort(Messages.getString("MemcheckLaunchDelegate.Error_parsing_output"), e, ICDTLaunchConfigurationConstants.ERR_INTERNAL_ERROR); //$NON-NLS-1$
e.printStackTrace();
} catch (SAXException e) {
- abort(Messages.getString("MemcheckLaunchDelegate.Error_parsing_output"), e, ICDTLaunchConfigurationConstants.ERR_INTERNAL_ERROR); //$NON-NLS-1$
+ Exception te;
+ if(DeviceManager.getSelectedDevice().getMachineType().equals(IMachine.REAL_DEVICE))
+ {
+ te = new Exception("Currently valgrind profiling is not supported in 'Real Device'. Please use valgrind profiling in 'Emulator'.");
+ }
+ else
+ te = e;
+
+ abort(Messages.getString("MemcheckLaunchDelegate.Error_parsing_output"), te, ICDTLaunchConfigurationConstants.ERR_INTERNAL_ERROR); //$NON-NLS-1$
e.printStackTrace();
} catch (InterruptedException e) {
}