From 3fe9aa9ea7d67621ba2b6b6752ea80e2fa875695 Mon Sep 17 00:00:00 2001 From: Kyle Galloway Date: Mon, 9 Apr 2007 13:24:00 +0000 Subject: gij.cc (main): Accept -agentlib and -agentpath options. 2007-04-09 Kyle Galloway * gij.cc (main): Accept -agentlib and -agentpath options. * prims.cc (parse_init_args): Deal with -agentlib and -agentpath. (load_jvmti_agent): New function. From-SVN: r123671 --- libjava/gij.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libjava/gij.cc') diff --git a/libjava/gij.cc b/libjava/gij.cc index b10e53b..a3b8529 100644 --- a/libjava/gij.cc +++ b/libjava/gij.cc @@ -121,11 +121,11 @@ main (int argc, char const** argv) continue; else if (! strcmp (arg, "-jrockit")) continue; - // Ignore JVM Tool Interface options + // JVM Tool Interface options. else if (! strncmp (arg, "-agentlib:", sizeof ("-agentlib:") - 1)) - continue; + add_option (vm_args, arg, NULL); else if (! strncmp (arg, "-agentpath:", sizeof ("-agentpath:") - 1)) - continue; + add_option (vm_args, arg, NULL); else if (! strcmp (arg, "-classpath") || ! strcmp (arg, "-cp")) { if (i >= argc - 1) -- cgit v1.1