org.eclipse.linuxtools.valgrind.launch.exe_1.3.18.201310312000

16:46:10.359 INFO  jd.cli.Main - Decompiling org.eclipse.linuxtools.valgrind.launch.exe_1.3.18.201310312000.jar
package org.eclipse.linuxtools.valgrind.launch;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import org.tizen.common.connection.ConnectionPlugin;
import org.tizen.common.sdb.command.SdbCommand;
import org.tizen.sdblib.IDevice;
import org.tizen.sdblib.exception.SdbCommandRejectedException;
import org.tizen.sdblib.exception.ShellCommandUnresponsiveException;
import org.tizen.sdblib.exception.TimeoutException;
import org.tizen.sdblib.util.SdbShellProcess;

public class CommandManager
{
  private static final String CMD_RET = "cmd_ret";
  
  public static Process runApplication(String paramString)
  {
    IDevice localIDevice = ConnectionPlugin.getDefault().getCurrentDevice();
    Process localProcess = null;
    try
    {
      localProcess = localIDevice.executeShellCommand(paramString, false);
    }
    catch (IOException localIOException)
    {
      localIOException.printStackTrace();
    }
    return localProcess;
  }
  
  public static String runShell(String paramString)
  {
    IDevice localIDevice = ConnectionPlugin.getDefault().getCurrentDevice();
    SdbShellProcess localSdbShellProcess = null;
    BufferedReader localBufferedReader = null;
    try
    {
      localSdbShellProcess = localIDevice.executeShellCommand(paramString);
      localBufferedReader = new BufferedReader(new InputStreamReader(localSdbShellProcess.getInputStream()));
    }
    catch (IOException localIOException1)
    {
      localIOException1.printStackTrace();
    }
    String str1 = null;
    String str2 = null;
    try
    {
      while ((str1 = localBufferedReader.readLine()) != null) {
        str2 = str1;
      }
    }
    catch (IOException localIOException2)
    {
      localIOException2.printStackTrace();
    }
    return str2;
  }
  
  public static String runShellRoot(String paramString)
  {
    IDevice localIDevice = ConnectionPlugin.getDefault().getCurrentDevice();
    SdbCommand localSdbCommand = new SdbCommand(localIDevice);
    Process localProcess = null;
    BufferedReader localBufferedReader = null;
    try
    {
      localProcess = localSdbCommand.runHostCommand(paramString, false);
      localBufferedReader = new BufferedReader(new InputStreamReader(localProcess.getInputStream()));
    }
    catch (IOException localIOException1)
    {
      localIOException1.printStackTrace();
    }
    String str1 = null;
    String str2 = null;
    try
    {
      while ((str1 = localBufferedReader.readLine()) != null) {
        str2 = str1;
      }
    }
    catch (IOException localIOException2)
    {
      localIOException2.printStackTrace();
    }
    return str2;
  }
  
  public static String[] runCommandReturningResult(String paramString)
  {
    IDevice localIDevice = ConnectionPlugin.getDefault().getCurrentDevice();
    CommonReceiver localCommonReceiver = new CommonReceiver();
    try
    {
      localIDevice.executeShellCommand(paramString, localCommonReceiver);
    }
    catch (TimeoutException localTimeoutException)
    {
      localTimeoutException.printStackTrace();
    }
    catch (SdbCommandRejectedException localSdbCommandRejectedException)
    {
      localSdbCommandRejectedException.printStackTrace();
    }
    catch (ShellCommandUnresponsiveException localShellCommandUnresponsiveException)
    {
      localShellCommandUnresponsiveException.printStackTrace();
    }
    catch (IOException localIOException)
    {
      localIOException.printStackTrace();
    }
    return localCommonReceiver.getOutput();
  }
  
  public static String[] runHostCommandReturningResult(String paramString)
  {
    IDevice localIDevice = ConnectionPlugin.getDefault().getCurrentDevice();
    CommonReceiver localCommonReceiver = new CommonReceiver();
    try
    {
      localIDevice.executeHostCommand(paramString, localCommonReceiver);
    }
    catch (IOException localIOException)
    {
      localIOException.printStackTrace();
    }
    return localCommonReceiver.getOutput();
  }
  
  public static void runCommand(String paramString)
  {
    try
    {
      ConnectionPlugin.getDefault().getCurrentDevice().executeShellCommand(paramString);
    }
    catch (SdbCommandRejectedException localSdbCommandRejectedException)
    {
      localSdbCommandRejectedException.printStackTrace();
    }
    catch (IOException localIOException)
    {
      localIOException.printStackTrace();
    }
  }
  
  /* Error */
  public static boolean pull(String paramString1, String paramString2)
  {
    // Byte code:
    //   0: aconst_null
    //   1: astore_2
    //   2: aconst_null
    //   3: astore_3
    //   4: invokestatic 17	org/tizen/common/connection/ConnectionPlugin:getDefault	()Lorg/tizen/common/connection/ConnectionPlugin;
    //   7: invokevirtual 23	org/tizen/common/connection/ConnectionPlugin:getCurrentDevice	()Lorg/tizen/sdblib/IDevice;
    //   10: astore_2
    //   11: aload_2
    //   12: invokeinterface 107 1 0
    //   17: astore_3
    //   18: goto +30 -> 48
    //   21: astore 4
    //   23: aload 4
    //   25: invokevirtual 86	org/tizen/sdblib/exception/TimeoutException:printStackTrace	()V
    //   28: goto +20 -> 48
    //   31: astore 4
    //   33: aload 4
    //   35: invokevirtual 89	org/tizen/sdblib/exception/SdbCommandRejectedException:printStackTrace	()V
    //   38: goto +10 -> 48
    //   41: astore 4
    //   43: aload 4
    //   45: invokevirtual 33	java/io/IOException:printStackTrace	()V
    //   48: aconst_null
    //   49: astore 4
    //   51: new 111	java/io/FileOutputStream
    //   54: dup
    //   55: aload_1
    //   56: invokespecial 113	java/io/FileOutputStream:<init>	(Ljava/lang/String;)V
    //   59: astore 4
    //   61: aload_3
    //   62: aload_2
    //   63: aload_0
    //   64: invokeinterface 115 2 0
    //   69: aload 4
    //   71: aconst_null
    //   72: iconst_m1
    //   73: invokevirtual 119	org/tizen/sdblib/service/SyncService:doPull	(Lorg/tizen/sdblib/service/FileEntry;Ljava/io/OutputStream;Lorg/tizen/sdblib/service/ISyncProgressMonitor;I)Lorg/tizen/sdblib/service/SyncResult;
    //   76: astore 5
    //   78: aload 5
    //   80: invokevirtual 125	org/tizen/sdblib/service/SyncResult:isOk	()Z
    //   83: istore 7
    //   85: iconst_1
    //   86: anewarray 3	java/lang/Object
    //   89: dup
    //   90: iconst_0
    //   91: aload 4
    //   93: aastore
    //   94: invokestatic 131	org/tizen/common/util/IOUtil:tryClose	([Ljava/lang/Object;)V
    //   97: iload 7
    //   99: ireturn
    //   100: pop
    //   101: iconst_1
    //   102: anewarray 3	java/lang/Object
    //   105: dup
    //   106: iconst_0
    //   107: aload 4
    //   109: aastore
    //   110: invokestatic 131	org/tizen/common/util/IOUtil:tryClose	([Ljava/lang/Object;)V
    //   113: iconst_0
    //   114: ireturn
    //   115: astore 6
    //   117: iconst_1
    //   118: anewarray 3	java/lang/Object
    //   121: dup
    //   122: iconst_0
    //   123: aload 4
    //   125: aastore
    //   126: invokestatic 131	org/tizen/common/util/IOUtil:tryClose	([Ljava/lang/Object;)V
    //   129: aload 6
    //   131: athrow
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	132	0	paramString1	String
    //   0	132	1	paramString2	String
    //   1	62	2	localIDevice	IDevice
    //   3	59	3	localSyncService	org.tizen.sdblib.service.SyncService
    //   21	3	4	localTimeoutException	TimeoutException
    //   31	3	4	localSdbCommandRejectedException	SdbCommandRejectedException
    //   41	3	4	localIOException	IOException
    //   49	75	4	localFileOutputStream	java.io.FileOutputStream
    //   76	3	5	localSyncResult	org.tizen.sdblib.service.SyncResult
    //   115	15	6	localObject	Object
    //   83	15	7	bool	boolean
    //   100	1	11	localFileNotFoundException	java.io.FileNotFoundException
    // Exception table:
    //   from	to	target	type
    //   4	18	21	org/tizen/sdblib/exception/TimeoutException
    //   4	18	31	org/tizen/sdblib/exception/SdbCommandRejectedException
    //   4	18	41	java/io/IOException
    //   51	85	100	java/io/FileNotFoundException
    //   51	85	115	finally
    //   100	101	115	finally
  }
  
  /* Error */
  public static boolean push(String paramString1, String paramString2)
  {
    // Byte code:
    //   0: aconst_null
    //   1: astore_2
    //   2: aconst_null
    //   3: astore_3
    //   4: invokestatic 17	org/tizen/common/connection/ConnectionPlugin:getDefault	()Lorg/tizen/common/connection/ConnectionPlugin;
    //   7: invokevirtual 23	org/tizen/common/connection/ConnectionPlugin:getCurrentDevice	()Lorg/tizen/sdblib/IDevice;
    //   10: astore_2
    //   11: aload_2
    //   12: invokeinterface 107 1 0
    //   17: astore_3
    //   18: goto +30 -> 48
    //   21: astore 4
    //   23: aload 4
    //   25: invokevirtual 86	org/tizen/sdblib/exception/TimeoutException:printStackTrace	()V
    //   28: goto +20 -> 48
    //   31: astore 4
    //   33: aload 4
    //   35: invokevirtual 89	org/tizen/sdblib/exception/SdbCommandRejectedException:printStackTrace	()V
    //   38: goto +10 -> 48
    //   41: astore 4
    //   43: aload 4
    //   45: invokevirtual 33	java/io/IOException:printStackTrace	()V
    //   48: aconst_null
    //   49: astore 4
    //   51: new 142	java/io/FileInputStream
    //   54: dup
    //   55: aload_0
    //   56: invokespecial 144	java/io/FileInputStream:<init>	(Ljava/lang/String;)V
    //   59: astore 4
    //   61: aload_3
    //   62: aload 4
    //   64: aload_2
    //   65: aload_1
    //   66: invokeinterface 115 2 0
    //   71: aconst_null
    //   72: iconst_m1
    //   73: invokevirtual 145	org/tizen/sdblib/service/SyncService:doPush	(Ljava/io/InputStream;Lorg/tizen/sdblib/service/FileEntry;Lorg/tizen/sdblib/service/ISyncProgressMonitor;I)Lorg/tizen/sdblib/service/SyncResult;
    //   76: astore 5
    //   78: aload 5
    //   80: invokevirtual 125	org/tizen/sdblib/service/SyncResult:isOk	()Z
    //   83: istore 7
    //   85: iconst_1
    //   86: anewarray 3	java/lang/Object
    //   89: dup
    //   90: iconst_0
    //   91: aload 4
    //   93: aastore
    //   94: invokestatic 131	org/tizen/common/util/IOUtil:tryClose	([Ljava/lang/Object;)V
    //   97: iload 7
    //   99: ireturn
    //   100: pop
    //   101: iconst_1
    //   102: anewarray 3	java/lang/Object
    //   105: dup
    //   106: iconst_0
    //   107: aload 4
    //   109: aastore
    //   110: invokestatic 131	org/tizen/common/util/IOUtil:tryClose	([Ljava/lang/Object;)V
    //   113: iconst_0
    //   114: ireturn
    //   115: astore 6
    //   117: iconst_1
    //   118: anewarray 3	java/lang/Object
    //   121: dup
    //   122: iconst_0
    //   123: aload 4
    //   125: aastore
    //   126: invokestatic 131	org/tizen/common/util/IOUtil:tryClose	([Ljava/lang/Object;)V
    //   129: aload 6
    //   131: athrow
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	132	0	paramString1	String
    //   0	132	1	paramString2	String
    //   1	64	2	localIDevice	IDevice
    //   3	59	3	localSyncService	org.tizen.sdblib.service.SyncService
    //   21	3	4	localTimeoutException	TimeoutException
    //   31	3	4	localSdbCommandRejectedException	SdbCommandRejectedException
    //   41	3	4	localIOException	IOException
    //   49	75	4	localFileInputStream	java.io.FileInputStream
    //   76	3	5	localSyncResult	org.tizen.sdblib.service.SyncResult
    //   115	15	6	localObject	Object
    //   83	15	7	bool	boolean
    //   100	1	11	localFileNotFoundException	java.io.FileNotFoundException
    // Exception table:
    //   from	to	target	type
    //   4	18	21	org/tizen/sdblib/exception/TimeoutException
    //   4	18	31	org/tizen/sdblib/exception/SdbCommandRejectedException
    //   4	18	41	java/io/IOException
    //   51	85	100	java/io/FileNotFoundException
    //   51	85	115	finally
    //   100	101	115	finally
  }
  
  public static boolean isPathExist(String paramString)
  {
    String[] arrayOfString = runCommandReturningResult(paramString);
    return (arrayOfString == null) || (!arrayOfString[0].equals("No such file or directory"));
  }
  
  public static boolean isEmulator()
  {
    return ConnectionPlugin.getDefault().getCurrentDevice().isEmulator();
  }
  
  public static boolean isRunSuccessfuly(String[] paramArrayOfString)
  {
    if (paramArrayOfString != null) {
      for (int i = 0; i < paramArrayOfString.length; i++) {
        if ((paramArrayOfString[i].startsWith("cmd_ret")) && (paramArrayOfString[i].contains("0"))) {
          return true;
        }
      }
    }
    return false;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.linuxtools.valgrind.launch.CommandManager
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.linuxtools.valgrind.launch;

import java.util.ArrayList;
import java.util.List;
import org.tizen.sdblib.receiver.MultiLineReceiver;

class CommonReceiver
  extends MultiLineReceiver
{
  private List<String> output = null;
  
  public String[] getOutput()
  {
    if (output == null) {
      return null;
    }
    String[] arrayOfString = new String[output.size()];
    output.toArray(arrayOfString);
    return arrayOfString;
  }
  
  public void processNewLines(String[] paramArrayOfString)
  {
    if (output == null) {
      output = new ArrayList();
    }
    for (int i = 0; i < paramArrayOfString.length; i++) {
      output.add(paramArrayOfString[i]);
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.linuxtools.valgrind.launch.CommonReceiver
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.linuxtools.valgrind.launch;

import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;

class TizenValgrindLaunchDelegate$1
  implements Runnable
{
  TizenValgrindLaunchDelegate$1(TizenValgrindLaunchDelegate paramTizenValgrindLaunchDelegate) {}
  
  public void run()
  {
    try
    {
      PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("org.eclipse.linuxtools.valgrind.ui.valgrindview");
    }
    catch (PartInitException localPartInitException)
    {
      localPartInitException.printStackTrace();
    }
  }
}

/* Location:
 * Qualified Name:     org.eclipse.linuxtools.valgrind.launch.TizenValgrindLaunchDelegate.1
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.linuxtools.valgrind.launch;

import org.eclipse.swt.widgets.MessageBox;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI;

class TizenValgrindLaunchDelegate$2
  implements Runnable
{
  TizenValgrindLaunchDelegate$2(TizenValgrindLaunchDelegate paramTizenValgrindLaunchDelegate) {}
  
  public void run()
  {
    IWorkbenchWindow localIWorkbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    MessageBox localMessageBox = new MessageBox(localIWorkbenchWindow.getShell(), 40);
    localMessageBox.setMessage("Operation canceled by user.");
    localMessageBox.open();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.linuxtools.valgrind.launch.TizenValgrindLaunchDelegate.2
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.linuxtools.valgrind.launch;

import org.eclipse.swt.widgets.MessageBox;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI;

class TizenValgrindLaunchDelegate$3
  implements Runnable
{
  TizenValgrindLaunchDelegate$3(TizenValgrindLaunchDelegate paramTizenValgrindLaunchDelegate) {}
  
  public void run()
  {
    IWorkbenchWindow localIWorkbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    MessageBox localMessageBox = new MessageBox(localIWorkbenchWindow.getShell(), 40);
    localMessageBox.setMessage(Messages.getString("ValgrindLaunchPlugin.Confirm_cancel"));
    localMessageBox.open();
  }
}

/* Location:
 * Qualified Name:     org.eclipse.linuxtools.valgrind.launch.TizenValgrindLaunchDelegate.3
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.linuxtools.valgrind.launch;

class TizenValgrindLaunchDelegate$ValgrindCanceledException
  extends Exception
{
  private static final long serialVersionUID = 1L;
  
  public TizenValgrindLaunchDelegate$ValgrindCanceledException(TizenValgrindLaunchDelegate paramTizenValgrindLaunchDelegate) {}
}

/* Location:
 * Qualified Name:     org.eclipse.linuxtools.valgrind.launch.TizenValgrindLaunchDelegate.ValgrindCanceledException
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.linuxtools.valgrind.launch;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import org.eclipse.cdt.debug.core.CDebugUtils;
import org.eclipse.cdt.launch.LaunchUtils;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.debug.core.ILaunch;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.model.IProcess;
import org.eclipse.linuxtools.valgrind.core.ValgrindCommand;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.MessageBox;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.tizen.nativecommon.ProjectUtil;
import org.tizen.nativecommon.launch.IProjectLaunchCommand;
import org.tizen.nativecommon.launch.TizenLaunchDelegate;

public class TizenValgrindLaunchDelegate
  extends TizenLaunchDelegate
{
  protected static final String MAKE_DIRECTORY_CMD = "mkdir -p ";
  protected static final String CHANGE_DIRECTORY_CMD = "cd ";
  protected IValgrindLaunchDelegate dynamicDelegate;
  protected ValgrindCommand command;
  protected static final String EQUALS = "=";
  protected static final String EMPTY_STRING = "";
  protected static final String NO = "no";
  protected static final String YES = "yes";
  protected static final String BADA_EXT = ".exe";
  protected static final String PACKAGE_NAME = "valgrind";
  protected static final String PACKAGE_FILENAME_ARM = "valgrind_armel.deb";
  protected static final String LAUNCHPAD_LAUNCHER = "launch_app ";
  protected static final String LAUNCHPAD_SYNCMODE = " __AUL_SDK__ VALGRIND __DLP_VALGRIND_ARG__ ";
  protected String toolID;
  protected int confirmMsg = 0;
  
  private String getPackageName(ILaunchConfiguration paramILaunchConfiguration)
    throws CoreException
  {
    IProject localIProject = ProjectUtil.getProject(paramILaunchConfiguration);
    IProjectLaunchCommand localIProjectLaunchCommand = ProjectUtil.getProjectManifest(localIProject);
    return localIProjectLaunchCommand.getPackageName();
  }
  
  private String getExecutableName(ILaunchConfiguration paramILaunchConfiguration)
    throws CoreException
  {
    String str = ProjectUtil.getExecutableName(paramILaunchConfiguration);
    if (str.endsWith(".exe")) {
      str = str.substring(0, str.length() - ".exe".length());
    }
    return str;
  }
  
  /* Error */
  public void launch(ILaunchConfiguration paramILaunchConfiguration, String paramString, ILaunch paramILaunch, IProgressMonitor paramIProgressMonitor)
    throws CoreException
  {
    // Byte code:
    //   0: aload 4
    //   2: ifnonnull +12 -> 14
    //   5: new 94	org/eclipse/core/runtime/NullProgressMonitor
    //   8: dup
    //   9: invokespecial 96	org/eclipse/core/runtime/NullProgressMonitor:<init>	()V
    //   12: astore 4
    //   14: invokestatic 97	org/eclipse/linuxtools/profiling/launch/ProfileLaunchPlugin:isProfiling	()Z
    //   17: ifeq +25 -> 42
    //   20: aload 4
    //   22: invokeinterface 103 1 0
    //   27: ldc 108
    //   29: invokestatic 110	org/eclipse/linuxtools/valgrind/launch/Messages:getString	(Ljava/lang/String;)Ljava/lang/String;
    //   32: ldc 116
    //   34: invokestatic 110	org/eclipse/linuxtools/valgrind/launch/Messages:getString	(Ljava/lang/String;)Ljava/lang/String;
    //   37: aconst_null
    //   38: invokestatic 118	org/eclipse/linuxtools/profiling/launch/ProfileLaunchShortcut:showErrorDialog	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V
    //   41: return
    //   42: invokestatic 124	org/eclipse/linuxtools/profiling/launch/ProfileLaunchPlugin:checkTarget	()I
    //   45: istore 5
    //   47: iload 5
    //   49: ifne +25 -> 74
    //   52: aload 4
    //   54: invokeinterface 103 1 0
    //   59: ldc 108
    //   61: invokestatic 110	org/eclipse/linuxtools/valgrind/launch/Messages:getString	(Ljava/lang/String;)Ljava/lang/String;
    //   64: ldc 127
    //   66: invokestatic 110	org/eclipse/linuxtools/valgrind/launch/Messages:getString	(Ljava/lang/String;)Ljava/lang/String;
    //   69: aconst_null
    //   70: invokestatic 118	org/eclipse/linuxtools/profiling/launch/ProfileLaunchShortcut:showErrorDialog	(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V
    //   73: return
    //   74: invokestatic 129	org/eclipse/linuxtools/profiling/launch/ProfileLaunchPlugin:startProfiling	()V
    //   77: aload_1
    //   78: invokestatic 59	org/tizen/nativecommon/ProjectUtil:getProject	(Lorg/eclipse/debug/core/ILaunchConfiguration;)Lorg/eclipse/core/resources/IProject;
    //   81: invokestatic 132	org/tizen/nativecommon/ProjectUtil:getXmlStore	(Lorg/eclipse/core/resources/IProject;)Lorg/tizen/nativecommon/IXMLStore;
    //   84: astore 6
    //   86: aload 6
    //   88: invokeinterface 136 1 0
    //   93: ifeq +10 -> 103
    //   96: aload_0
    //   97: ldc -115
    //   99: aconst_null
    //   100: invokevirtual 143	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:newCoreException	(Ljava/lang/String;Ljava/lang/Throwable;)V
    //   103: aload 4
    //   105: getstatic 147	org/tizen/nativecommon/launch/TizenLaunchMessages:LAUNCH_APPLICATION	Ljava/lang/String;
    //   108: bipush 30
    //   110: invokeinterface 152 3 0
    //   115: aload_0
    //   116: invokevirtual 156	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:activateProgressView	()V
    //   119: aload_0
    //   120: aload_1
    //   121: invokevirtual 159	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:verifyCProjectConfigurationSettings	(Lorg/eclipse/debug/core/ILaunchConfiguration;)V
    //   124: aload_0
    //   125: aload_1
    //   126: invokestatic 59	org/tizen/nativecommon/ProjectUtil:getProject	(Lorg/eclipse/debug/core/ILaunchConfiguration;)Lorg/eclipse/core/resources/IProject;
    //   129: new 163	org/eclipse/core/runtime/SubProgressMonitor
    //   132: dup
    //   133: aload 4
    //   135: bipush 9
    //   137: invokespecial 165	org/eclipse/core/runtime/SubProgressMonitor:<init>	(Lorg/eclipse/core/runtime/IProgressMonitor;I)V
    //   140: invokevirtual 168	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:verifyDeviceReachability	(Lorg/eclipse/core/resources/IProject;Lorg/eclipse/core/runtime/IProgressMonitor;)V
    //   143: aload_0
    //   144: aload_1
    //   145: aload_2
    //   146: new 163	org/eclipse/core/runtime/SubProgressMonitor
    //   149: dup
    //   150: aload 4
    //   152: bipush 11
    //   154: invokespecial 165	org/eclipse/core/runtime/SubProgressMonitor:<init>	(Lorg/eclipse/core/runtime/IProgressMonitor;I)V
    //   157: invokevirtual 172	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:verifyBuildConfiguration	(Lorg/eclipse/debug/core/ILaunchConfiguration;Ljava/lang/String;Lorg/eclipse/core/runtime/IProgressMonitor;)V
    //   160: aload_0
    //   161: aload_1
    //   162: invokevirtual 176	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:setConsole	(Lorg/eclipse/debug/core/ILaunchConfiguration;)V
    //   165: aload_0
    //   166: new 179	org/tizen/nativecommon/launch/TizenLaunchCommand
    //   169: dup
    //   170: aload_0
    //   171: getfield 181	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:currentDevice	Lorg/tizen/sdblib/IDevice;
    //   174: aload_0
    //   175: getfield 185	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:launchConsole	Lorg/tizen/nativecommon/launch/TizenLaunchConsole;
    //   178: invokespecial 189	org/tizen/nativecommon/launch/TizenLaunchCommand:<init>	(Lorg/tizen/sdblib/IDevice;Lorg/tizen/common/ui/view/console/ConsoleManager;)V
    //   181: putfield 192	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:tizenCommand	Lorg/tizen/nativecommon/launch/TizenLaunchCommand;
    //   184: aload_0
    //   185: getfield 185	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:launchConsole	Lorg/tizen/nativecommon/launch/TizenLaunchConsole;
    //   188: invokevirtual 196	org/tizen/nativecommon/launch/TizenLaunchConsole:show	()V
    //   191: aload_2
    //   192: ldc -55
    //   194: invokevirtual 203	java/lang/String:equals	(Ljava/lang/Object;)Z
    //   197: ifeq +38 -> 235
    //   200: aload_0
    //   201: aload_1
    //   202: new 163	org/eclipse/core/runtime/SubProgressMonitor
    //   205: dup
    //   206: aload 4
    //   208: bipush 9
    //   210: invokespecial 165	org/eclipse/core/runtime/SubProgressMonitor:<init>	(Lorg/eclipse/core/runtime/IProgressMonitor;I)V
    //   213: invokevirtual 207	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:deployApplication	(Lorg/eclipse/debug/core/ILaunchConfiguration;Lorg/eclipse/core/runtime/IProgressMonitor;)V
    //   216: aload 4
    //   218: iconst_1
    //   219: invokeinterface 211 2 0
    //   224: aload_0
    //   225: aload_3
    //   226: aload_1
    //   227: aload 4
    //   229: invokevirtual 215	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:launchApplicationWithValgrind	(Lorg/eclipse/debug/core/ILaunch;Lorg/eclipse/debug/core/ILaunchConfiguration;Lorg/eclipse/core/runtime/IProgressMonitor;)V
    //   232: goto +29 -> 261
    //   235: aload_0
    //   236: getstatic 219	org/tizen/nativecommon/launch/TizenLaunchMessages:CANNOT_LAUNCH	Ljava/lang/String;
    //   239: aconst_null
    //   240: invokevirtual 143	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:newCoreException	(Ljava/lang/String;Ljava/lang/Throwable;)V
    //   243: goto +18 -> 261
    //   246: astore 7
    //   248: aload 4
    //   250: invokeinterface 103 1 0
    //   255: invokestatic 222	org/eclipse/linuxtools/profiling/launch/ProfileLaunchPlugin:stopProfiling	()V
    //   258: aload 7
    //   260: athrow
    //   261: aload 4
    //   263: invokeinterface 103 1 0
    //   268: invokestatic 222	org/eclipse/linuxtools/profiling/launch/ProfileLaunchPlugin:stopProfiling	()V
    //   271: return
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	272	0	this	TizenValgrindLaunchDelegate
    //   0	272	1	paramILaunchConfiguration	ILaunchConfiguration
    //   0	272	2	paramString	String
    //   0	272	3	paramILaunch	ILaunch
    //   0	272	4	paramIProgressMonitor	IProgressMonitor
    //   45	3	5	i	int
    //   84	3	6	localIXMLStore	org.tizen.nativecommon.IXMLStore
    //   246	13	7	localObject	Object
    // Exception table:
    //   from	to	target	type
    //   74	246	246	finally
  }
  
  /* Error */
  protected void launchApplicationWithValgrind(ILaunch paramILaunch, ILaunchConfiguration paramILaunchConfiguration, IProgressMonitor paramIProgressMonitor)
    throws CoreException
  {
    // Byte code:
    //   0: new 231	java/lang/StringBuilder
    //   3: dup
    //   4: getstatic 233	org/tizen/common/TizenPlatformConstants:TOOLS_TARGET_PATH	Ljava/lang/String;
    //   7: invokestatic 238	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   10: invokespecial 242	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   13: ldc -11
    //   15: invokevirtual 247	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   18: invokevirtual 251	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   21: astore 4
    //   23: new 231	java/lang/StringBuilder
    //   26: dup
    //   27: ldc -2
    //   29: invokespecial 242	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   32: aload 4
    //   34: invokevirtual 247	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   37: ldc_w 256
    //   40: invokevirtual 247	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   43: invokevirtual 251	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   46: astore 5
    //   48: aload 5
    //   50: invokestatic 258	org/eclipse/linuxtools/valgrind/launch/CommandManager:runCommandReturningResult	(Ljava/lang/String;)[Ljava/lang/String;
    //   53: astore 6
    //   55: aload 6
    //   57: invokestatic 264	org/eclipse/linuxtools/valgrind/launch/CommandManager:isRunSuccessfuly	([Ljava/lang/String;)Z
    //   60: ifne +42 -> 102
    //   63: aload_0
    //   64: getstatic 219	org/tizen/nativecommon/launch/TizenLaunchMessages:CANNOT_LAUNCH	Ljava/lang/String;
    //   67: new 268	java/lang/Exception
    //   70: dup
    //   71: new 231	java/lang/StringBuilder
    //   74: dup
    //   75: ldc_w 270
    //   78: invokespecial 242	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   81: getstatic 233	org/tizen/common/TizenPlatformConstants:TOOLS_TARGET_PATH	Ljava/lang/String;
    //   84: invokevirtual 247	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   87: ldc_w 272
    //   90: invokevirtual 247	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   93: invokevirtual 251	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   96: invokespecial 274	java/lang/Exception:<init>	(Ljava/lang/String;)V
    //   99: invokevirtual 143	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:newCoreException	(Ljava/lang/String;Ljava/lang/Throwable;)V
    //   102: aload_3
    //   103: invokeinterface 275 1 0
    //   108: ifeq +11 -> 119
    //   111: new 278	org/eclipse/core/runtime/OperationCanceledException
    //   114: dup
    //   115: invokespecial 280	org/eclipse/core/runtime/OperationCanceledException:<init>	()V
    //   118: athrow
    //   119: aload_0
    //   120: aload_2
    //   121: invokevirtual 281	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:getDebugLaunchCommand	(Lorg/eclipse/debug/core/ILaunchConfiguration;)Ljava/lang/String;
    //   124: astore 7
    //   126: aload 7
    //   128: ldc 30
    //   130: invokevirtual 77	java/lang/String:endsWith	(Ljava/lang/String;)Z
    //   133: ifeq +22 -> 155
    //   136: aload 7
    //   138: iconst_0
    //   139: aload 7
    //   141: invokevirtual 83	java/lang/String:length	()I
    //   144: ldc 30
    //   146: invokevirtual 83	java/lang/String:length	()I
    //   149: isub
    //   150: invokevirtual 87	java/lang/String:substring	(II)Ljava/lang/String;
    //   153: astore 7
    //   155: new 231	java/lang/StringBuilder
    //   158: dup
    //   159: ldc_w 284
    //   162: invokespecial 242	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   165: aload 7
    //   167: invokevirtual 247	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   170: invokevirtual 251	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   173: astore 5
    //   175: aload 5
    //   177: invokestatic 286	org/eclipse/linuxtools/valgrind/launch/CommandManager:runHostCommandReturningResult	(Ljava/lang/String;)[Ljava/lang/String;
    //   180: astore 6
    //   182: aload 6
    //   184: invokestatic 264	org/eclipse/linuxtools/valgrind/launch/CommandManager:isRunSuccessfuly	([Ljava/lang/String;)Z
    //   187: ifne +20 -> 207
    //   190: aload_0
    //   191: getstatic 219	org/tizen/nativecommon/launch/TizenLaunchMessages:CANNOT_LAUNCH	Ljava/lang/String;
    //   194: new 268	java/lang/Exception
    //   197: dup
    //   198: ldc_w 289
    //   201: invokespecial 274	java/lang/Exception:<init>	(Ljava/lang/String;)V
    //   204: invokevirtual 143	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:newCoreException	(Ljava/lang/String;Ljava/lang/Throwable;)V
    //   207: aload_3
    //   208: invokeinterface 275 1 0
    //   213: ifeq +11 -> 224
    //   216: new 278	org/eclipse/core/runtime/OperationCanceledException
    //   219: dup
    //   220: invokespecial 280	org/eclipse/core/runtime/OperationCanceledException:<init>	()V
    //   223: athrow
    //   224: aload_3
    //   225: iconst_3
    //   226: invokeinterface 211 2 0
    //   231: aload_3
    //   232: invokeinterface 275 1 0
    //   237: ifeq +11 -> 248
    //   240: new 278	org/eclipse/core/runtime/OperationCanceledException
    //   243: dup
    //   244: invokespecial 280	org/eclipse/core/runtime/OperationCanceledException:<init>	()V
    //   247: athrow
    //   248: aload_3
    //   249: iconst_1
    //   250: invokeinterface 211 2 0
    //   255: aload_0
    //   256: aload_0
    //   257: aload_2
    //   258: invokevirtual 291	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:getTool	(Lorg/eclipse/debug/core/ILaunchConfiguration;)Ljava/lang/String;
    //   261: putfield 294	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:toolID	Ljava/lang/String;
    //   264: aload_0
    //   265: invokestatic 296	org/eclipse/linuxtools/valgrind/launch/ValgrindLaunchPlugin:getDefault	()Lorg/eclipse/linuxtools/valgrind/launch/ValgrindLaunchPlugin;
    //   268: aload_0
    //   269: getfield 294	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:toolID	Ljava/lang/String;
    //   272: invokevirtual 302	org/eclipse/linuxtools/valgrind/launch/ValgrindLaunchPlugin:getToolDelegate	(Ljava/lang/String;)Lorg/eclipse/linuxtools/valgrind/launch/IValgrindLaunchDelegate;
    //   275: putfield 306	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:dynamicDelegate	Lorg/eclipse/linuxtools/valgrind/launch/IValgrindLaunchDelegate;
    //   278: aload_0
    //   279: aload_2
    //   280: invokespecial 308	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:getValgrindArgumentsArray	(Lorg/eclipse/debug/core/ILaunchConfiguration;)[Ljava/lang/String;
    //   283: astore 8
    //   285: new 312	java/util/ArrayList
    //   288: dup
    //   289: iconst_1
    //   290: invokespecial 314	java/util/ArrayList:<init>	(I)V
    //   293: astore 9
    //   295: aload 9
    //   297: aload 8
    //   299: invokestatic 316	java/util/Arrays:asList	([Ljava/lang/Object;)Ljava/util/List;
    //   302: invokevirtual 322	java/util/ArrayList:addAll	(Ljava/util/Collection;)Z
    //   305: pop
    //   306: aload 9
    //   308: aload 9
    //   310: invokevirtual 326	java/util/ArrayList:size	()I
    //   313: anewarray 78	java/lang/String
    //   316: invokevirtual 329	java/util/ArrayList:toArray	([Ljava/lang/Object;)[Ljava/lang/Object;
    //   319: checkcast 333	[Ljava/lang/String;
    //   322: astore 10
    //   324: ldc 21
    //   326: astore 11
    //   328: new 231	java/lang/StringBuilder
    //   331: dup
    //   332: ldc 39
    //   334: invokespecial 242	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   337: aload_0
    //   338: aload_2
    //   339: invokespecial 335	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:getPackageName	(Lorg/eclipse/debug/core/ILaunchConfiguration;)Ljava/lang/String;
    //   342: invokevirtual 247	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   345: ldc_w 337
    //   348: invokevirtual 247	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   351: aload_0
    //   352: aload_2
    //   353: invokespecial 339	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:getExecutableName	(Lorg/eclipse/debug/core/ILaunchConfiguration;)Ljava/lang/String;
    //   356: invokevirtual 247	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   359: ldc 42
    //   361: invokevirtual 247	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   364: invokevirtual 251	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   367: astore 11
    //   369: goto +19 -> 388
    //   372: astore 12
    //   374: aload_0
    //   375: aload 12
    //   377: invokevirtual 340	org/eclipse/core/runtime/CoreException:getMessage	()Ljava/lang/String;
    //   380: aload 12
    //   382: invokevirtual 343	org/eclipse/core/runtime/CoreException:getCause	()Ljava/lang/Throwable;
    //   385: invokevirtual 143	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:newCoreException	(Ljava/lang/String;Ljava/lang/Throwable;)V
    //   388: iconst_0
    //   389: istore 12
    //   391: goto +75 -> 466
    //   394: iload 12
    //   396: aload 10
    //   398: arraylength
    //   399: iconst_1
    //   400: isub
    //   401: if_icmpne +31 -> 432
    //   404: new 231	java/lang/StringBuilder
    //   407: dup
    //   408: aload 11
    //   410: invokestatic 238	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   413: invokespecial 242	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   416: aload 10
    //   418: iload 12
    //   420: aaload
    //   421: invokevirtual 247	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   424: invokevirtual 251	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   427: astore 11
    //   429: goto +34 -> 463
    //   432: new 231	java/lang/StringBuilder
    //   435: dup
    //   436: aload 11
    //   438: invokestatic 238	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   441: invokespecial 242	java/lang/StringBuilder:<init>	(Ljava/lang/String;)V
    //   444: aload 10
    //   446: iload 12
    //   448: aaload
    //   449: invokevirtual 247	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   452: ldc_w 347
    //   455: invokevirtual 247	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   458: invokevirtual 251	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   461: astore 11
    //   463: iinc 12 1
    //   466: iload 12
    //   468: aload 10
    //   470: arraylength
    //   471: if_icmplt -77 -> 394
    //   474: aload_2
    //   475: ldc_w 349
    //   478: iconst_1
    //   479: invokeinterface 351 3 0
    //   484: pop
    //   485: aload_3
    //   486: invokeinterface 275 1 0
    //   491: ifeq +11 -> 502
    //   494: new 278	org/eclipse/core/runtime/OperationCanceledException
    //   497: dup
    //   498: invokespecial 280	org/eclipse/core/runtime/OperationCanceledException:<init>	()V
    //   501: athrow
    //   502: aload_0
    //   503: aload_2
    //   504: aload_1
    //   505: aload 11
    //   507: aload_3
    //   508: invokespecial 355	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:runApplication	(Lorg/eclipse/debug/core/ILaunchConfiguration;Lorg/eclipse/debug/core/ILaunch;Ljava/lang/String;Lorg/eclipse/core/runtime/IProgressMonitor;)V
    //   511: aload_3
    //   512: iconst_2
    //   513: invokeinterface 211 2 0
    //   518: aload_0
    //   519: aload_2
    //   520: invokevirtual 359	org/eclipse/linuxtools/valgrind/launch/TizenValgrindLaunchDelegate:createLaunchStr	(Lorg/eclipse/debug/core/ILaunchConfiguration;)Ljava/lang/String;
    //   523: astore 12
    //   525: invokestatic 362	org/eclipse/linuxtools/valgrind/ui/ValgrindUIPlugin:getDefault	()Lorg/eclipse/linuxtools/valgrind/ui/ValgrindUIPlugin;
    //   528: aload 12
    //   530
1 2 3 4

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd