From 6bdae19f7b8d893fc293eb85650bd27d99faa74c Mon Sep 17 00:00:00 2001 From: Guy Zana <guy@cloudius-systems.com> Date: Mon, 26 Aug 2013 15:10:27 +0300 Subject: [PATCH] run_elf: add a debug print before running an elf (easy debugging) --- java/jni/elf-loader.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/java/jni/elf-loader.cc b/java/jni/elf-loader.cc index 88f03d53e..47cd2b84b 100644 --- a/java/jni/elf-loader.cc +++ b/java/jni/elf-loader.cc @@ -1,4 +1,6 @@ //#include <algorithm> +#include "debug.hh" +#include "sched.hh" #include "elf.hh" #include <jni.h> #include <stdlib.h> @@ -22,6 +24,8 @@ bool run_elf(int argc, char** argv, int *return_code) return (false); } + debug("run_elf(): running main() in the context of thread %p\n", + sched::thread::current()); int rc = main(argc, argv); /* cleanups */ -- GitLab