harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From regi...@apache.org
Subject svn commit: r889047 - /harmony/enhanced/drlvm/trunk/vm/vmcore/src/init/parse_arguments.cpp
Date Thu, 10 Dec 2009 01:17:52 GMT
Author: regisxu
Date: Thu Dec 10 01:17:51 2009
New Revision: 889047

URL: http://svn.apache.org/viewvc?rev=889047&view=rev
Log:
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=889047&r1=889046&r2=889047&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 01:17:51
2009
@@ -348,6 +348,13 @@
         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);



Mime
View raw message