diff options
Diffstat (limited to 'oprofile/org.eclipse.linuxtools.oprofile.launch/src/org/eclipse/linuxtools/oprofile/launch/launching/OprofileLaunchConfigurationDelegate.java')
-rw-r--r-- | oprofile/org.eclipse.linuxtools.oprofile.launch/src/org/eclipse/linuxtools/oprofile/launch/launching/OprofileLaunchConfigurationDelegate.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/oprofile/org.eclipse.linuxtools.oprofile.launch/src/org/eclipse/linuxtools/oprofile/launch/launching/OprofileLaunchConfigurationDelegate.java b/oprofile/org.eclipse.linuxtools.oprofile.launch/src/org/eclipse/linuxtools/oprofile/launch/launching/OprofileLaunchConfigurationDelegate.java index d68f4eba7c..4c1915eca0 100644 --- a/oprofile/org.eclipse.linuxtools.oprofile.launch/src/org/eclipse/linuxtools/oprofile/launch/launching/OprofileLaunchConfigurationDelegate.java +++ b/oprofile/org.eclipse.linuxtools.oprofile.launch/src/org/eclipse/linuxtools/oprofile/launch/launching/OprofileLaunchConfigurationDelegate.java @@ -16,7 +16,10 @@ import org.eclipse.debug.core.ILaunchConfiguration; import org.eclipse.debug.core.ILaunchManager; import org.eclipse.debug.core.ILaunchesListener2; import org.eclipse.linuxtools.oprofile.core.OpcontrolException; +import org.eclipse.linuxtools.oprofile.core.Oprofile; import org.eclipse.linuxtools.oprofile.core.OprofileCorePlugin; +import org.eclipse.linuxtools.oprofile.core.OprofileProperties; +import org.eclipse.linuxtools.oprofile.core.daemon.OpInfo; import org.eclipse.linuxtools.oprofile.core.daemon.OprofileDaemonEvent; import org.eclipse.linuxtools.oprofile.launch.configuration.LaunchOptions; import org.eclipse.swt.widgets.Display; @@ -27,6 +30,10 @@ public class OprofileLaunchConfigurationDelegate extends AbstractOprofileLaunchC protected boolean preExec(LaunchOptions options, OprofileDaemonEvent[] daemonEvents) { //set up and launch the oprofile daemon try { + // Set current project to allow using the oprofile path that + // was chosen for the project + Oprofile.setCurrentProject(getProject()); + if (!oprofileStatus()) return false; |