summaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2000-01-18 14:37:34 +0000
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2000-01-18 14:37:34 +0000
commit7e5e4d5e007e970b12b5011fad935a20f494a726 (patch)
tree6984f50971d5774a42cb60d461e61e90e6b2b6d0 /libjava
parentf469fd1561f8ac159116fbc82fc15485dffd1353 (diff)
downloadgcc-7e5e4d5e007e970b12b5011fad935a20f494a726.tar.gz
2000-01-17 Andrew Haley <aph@cygnus.com>
* prims.cc (_Jv_RunMain): Set the name of this executable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31486 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog4
-rw-r--r--libjava/prims.cc6
2 files changed, 10 insertions, 0 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 5eaf47843cd..ce4526f36b2 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,7 @@
+2000-01-17 Andrew Haley <aph@cygnus.com>
+
+ * prims.cc (_Jv_RunMain): Set the name of this executable.
+
2000-01-17 Tom Tromey <tromey@cygnus.com>
* java/lang/natThrowable.cc (fillInStackTrace): Return `this' even
diff --git a/libjava/prims.cc b/libjava/prims.cc
index 6e11d8045bd..f1ff2132844 100644
--- a/libjava/prims.cc
+++ b/libjava/prims.cc
@@ -863,6 +863,12 @@ _Jv_RunMain (const char *class_name, int argc, const char **argv)
main_init ();
+#ifdef HAVE_PROC_SELF_EXE
+ char exec_name[20];
+ sprintf (exec_name, "/proc/%d/exe", getpid ());
+ _Jv_ThisExecutable (exec_name);
+#endif
+
arg_vec = JvConvertArgv (argc - 1, argv + 1);
main_group = new java::lang::ThreadGroup (23);
main_thread = new java::lang::FirstThread (main_group,