You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by re...@apache.org on 2009/12/10 09:52:45 UTC

svn commit: r889144 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/init/parse_arguments.cpp

Author: regisxu
Date: Thu Dec 10 08:52:39 2009
New Revision: 889144

URL: http://svn.apache.org/viewvc?rev=889144&view=rev
Log:
Revert r889047(Apply patch for HARMONY-6399: [drlvm] drlvm doesn't support "-javaagent" option)

Modified:
    harmony/enhanced/drlvm/trunk/vm/vmcore/src/init/parse_arguments.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/vmcore/src/init/parse_arguments.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/vmcore/src/init/parse_arguments.cpp?rev=889144&r1=889143&r2=889144&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/vmcore/src/init/parse_arguments.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/vmcore/src/init/parse_arguments.cpp Thu Dec 10 08:52:39 2009
@@ -348,13 +348,6 @@
         else if (begins_with(option, "-agentpath:")) {
             p_env->TI->addAgent(option);
         }
-        else if (begins_with(option, "-javaagent:")) {
-            char* dest = (char*) STD_MALLOC(strlen("-agentlib:hyinstrument=") + strlen(option + 11) + 1);
-            strcpy(dest, "-agentlib:hyinstrument=");
-            strcat(dest, option + 11);
-            p_env->TI->addAgent(dest);
-            STD_FREE((void*) dest);
-        }
         else if (begins_with(option, "-Xrun")) {
             // Compatibility with JNDI
             p_env->TI->addAgent(option);