summaryrefslogtreecommitdiffstats
path: root/libjava/gij.cc
diff options
context:
space:
mode:
authorkgallowa <kgallowa@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-09 13:24:00 +0000
committerkgallowa <kgallowa@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-09 13:24:00 +0000
commit4a7e19a162b161c195c9aaf33af8133428ea0380 (patch)
tree4bdc9140017b37dc50c4160804f5a2aa7e3a648e /libjava/gij.cc
parentd8a0d6b8af37fd836425e5d8e2f510c7e8753bd5 (diff)
downloadppe42-gcc-4a7e19a162b161c195c9aaf33af8133428ea0380.tar.gz
ppe42-gcc-4a7e19a162b161c195c9aaf33af8133428ea0380.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123671 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gij.cc')
-rw-r--r--libjava/gij.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libjava/gij.cc b/libjava/gij.cc
index b10e53b0808..a3b8529c4c9 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)
OpenPOWER on IntegriCloud