diff options
author | Roland Grunberg | 2011-08-25 17:00:45 +0000 |
---|---|---|
committer | Roland Grunberg | 2011-08-25 17:00:45 +0000 |
commit | a412c3967ae55368fc9fee6b139fb12a7042459c (patch) | |
tree | f98418d51d581a69196e804e4e7f5ef45aa2526d /systemtap/org.eclipse.linuxtools.threadprofiler | |
parent | 419ae3eddd69b48655ebd0815b0fa9b55c6d0726 (diff) | |
download | org.eclipse.linuxtools-a412c3967ae55368fc9fee6b139fb12a7042459c.tar.gz org.eclipse.linuxtools-a412c3967ae55368fc9fee6b139fb12a7042459c.tar.xz org.eclipse.linuxtools-a412c3967ae55368fc9fee6b139fb12a7042459c.zip |
Fix threadprofiler plugin to use launch configurations correctly.
Diffstat (limited to 'systemtap/org.eclipse.linuxtools.threadprofiler')
-rw-r--r-- | systemtap/org.eclipse.linuxtools.threadprofiler/src/org/eclipse/linuxtools/threadprofiler/LaunchThreadProfiler.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/systemtap/org.eclipse.linuxtools.threadprofiler/src/org/eclipse/linuxtools/threadprofiler/LaunchThreadProfiler.java b/systemtap/org.eclipse.linuxtools.threadprofiler/src/org/eclipse/linuxtools/threadprofiler/LaunchThreadProfiler.java index 10983fba29..7af8e84f62 100644 --- a/systemtap/org.eclipse.linuxtools.threadprofiler/src/org/eclipse/linuxtools/threadprofiler/LaunchThreadProfiler.java +++ b/systemtap/org.eclipse.linuxtools.threadprofiler/src/org/eclipse/linuxtools/threadprofiler/LaunchThreadProfiler.java @@ -1,6 +1,7 @@ package org.eclipse.linuxtools.threadprofiler; import org.eclipse.cdt.core.model.IBinary; +import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; import org.eclipse.linuxtools.callgraph.launch.SystemTapLaunchShortcut; public class LaunchThreadProfiler extends SystemTapLaunchShortcut{ @@ -8,13 +9,13 @@ public class LaunchThreadProfiler extends SystemTapLaunchShortcut{ public void launch(IBinary bin, String mode) { try { name = "Thread Profiler"; - config = createConfiguration(bin, name); + ILaunchConfigurationWorkingCopy wc = createConfiguration(bin, name); outputPath = "/home/chwang/threadprofiler.output"; binaryPath = bin.getResource().getLocation().toString(); binaryPath = binaryPath.replaceAll("\\(", "\\\\\\(").replaceAll("\\)", "\\\\\\)").replaceAll(" ", "\\ "); arguments = binaryPath; - finishLaunch(name, mode); + finishLaunch(name, mode, wc); } catch (Exception e) { e.printStackTrace(); } |