diff options
author | Kyle Galloway <kgallowa@redhat.com> | 2007-04-09 13:24:00 +0000 |
---|---|---|
committer | Kyle Galloway <kgallowa@gcc.gnu.org> | 2007-04-09 13:24:00 +0000 |
commit | 3fe9aa9ea7d67621ba2b6b6752ea80e2fa875695 (patch) | |
tree | 4bdc9140017b37dc50c4160804f5a2aa7e3a648e /libjava/gij.cc | |
parent | c7b852c8a60d46ba79c50b9d2a4f3cba4847c896 (diff) | |
download | gcc-3fe9aa9ea7d67621ba2b6b6752ea80e2fa875695.zip gcc-3fe9aa9ea7d67621ba2b6b6752ea80e2fa875695.tar.gz gcc-3fe9aa9ea7d67621ba2b6b6752ea80e2fa875695.tar.bz2 |
gij.cc (main): Accept -agentlib and -agentpath options.
2007-04-09 Kyle Galloway <kgallowa@redhat.com>
* 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
Diffstat (limited to 'libjava/gij.cc')
-rw-r--r-- | libjava/gij.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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) |