prims.cc (_Jv_RunMain): Set the name of this executable.
2000-01-17 Andrew Haley <aph@cygnus.com> * prims.cc (_Jv_RunMain): Set the name of this executable. From-SVN: r31486
This commit is contained in:
parent
e5f614d777
commit
0447654432
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue