Skip to content
Snippets Groups Projects
Commit 6bdae19f authored by Guy Zana's avatar Guy Zana
Browse files

run_elf: add a debug print before running an elf (easy debugging)

parent 962eed70
No related branches found
No related tags found
No related merge requests found
//#include <algorithm> //#include <algorithm>
#include "debug.hh"
#include "sched.hh"
#include "elf.hh" #include "elf.hh"
#include <jni.h> #include <jni.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -22,6 +24,8 @@ bool run_elf(int argc, char** argv, int *return_code) ...@@ -22,6 +24,8 @@ bool run_elf(int argc, char** argv, int *return_code)
return (false); return (false);
} }
debug("run_elf(): running main() in the context of thread %p\n",
sched::thread::current());
int rc = main(argc, argv); int rc = main(argc, argv);
/* cleanups */ /* cleanups */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment