From tangwei.ict at gmail.com Mon Jul 2 04:47:22 2012 From: tangwei.ict at gmail.com (Tang, Wei) Date: Mon, 02 Jul 2012 19:47:22 +0800 Subject: [vmkit-commits] debug mixed Java and C code In-Reply-To: References: Message-ID: <4FF18A4A.902@gmail.com> Hi guys, Due to some files in Classpath implemented in Java, for example runtime.java, and files in vmkit implemented in C/C++. Anybody has experience in debugging such mixed code project. Regards! wei From koutheir at gmail.com Mon Jul 2 05:39:43 2012 From: koutheir at gmail.com (Koutheir Attouchi) Date: Mon, 2 Jul 2012 14:39:43 +0200 Subject: [vmkit-commits] debug mixed Java and C code In-Reply-To: <4FF18A4A.902@gmail.com> References: <4FF18A4A.902@gmail.com> Message-ID: Yes, I do. Koutheir ATTOUCHI. LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi Blog: http://koutheir.blogspot.com On Mon, Jul 2, 2012 at 1:47 PM, Tang, Wei wrote: > Hi guys, > Due to some files in Classpath implemented in Java, for example > runtime.java, and files in vmkit implemented in C/C++. Anybody has > experience in debugging such mixed code project. > > > Regards! > wei > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tangwei.ict at gmail.com Mon Jul 2 06:00:54 2012 From: tangwei.ict at gmail.com (Tang, Wei) Date: Mon, 02 Jul 2012 21:00:54 +0800 Subject: [vmkit-commits] debug mixed Java and C code In-Reply-To: References: <4FF18A4A.902@gmail.com> Message-ID: <4FF19B86.1060406@gmail.com> Would you share more details or point me to useful resource? Thanks in advance! Regards! wei On 07/02/2012 08:39 PM, Koutheir Attouchi wrote: > Yes, I do. > > Koutheir ATTOUCHI. > LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi > Blog: http://koutheir.blogspot.com > > > > > On Mon, Jul 2, 2012 at 1:47 PM, Tang, Wei > wrote: > > Hi guys, > Due to some files in Classpath implemented in Java, for example > runtime.java, and files in vmkit implemented in C/C++. Anybody has > experience in debugging such mixed code project. > > > Regards! > wei > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > > > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits -------------- next part -------------- An HTML attachment was scrubbed... URL: From koutheir at gmail.com Mon Jul 2 06:20:45 2012 From: koutheir at gmail.com (Koutheir Attouchi) Date: Mon, 2 Jul 2012 15:20:45 +0200 Subject: [vmkit-commits] debug mixed Java and C code In-Reply-To: <4FF19B86.1060406@gmail.com> References: <4FF18A4A.902@gmail.com> <4FF19B86.1060406@gmail.com> Message-ID: Please explain your exact problem. General debugging of Java and C++ source code (and eventually assembly) is a very broad topic. Koutheir ATTOUCHI. LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi Blog: http://koutheir.blogspot.com On Mon, Jul 2, 2012 at 3:00 PM, Tang, Wei wrote: > Would you share more details or point me to useful resource? > Thanks in advance! > > Regards! > wei > > On 07/02/2012 08:39 PM, Koutheir Attouchi wrote: > > Yes, I do. > > Koutheir ATTOUCHI. > LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi > Blog: http://koutheir.blogspot.com > > > > > On Mon, Jul 2, 2012 at 1:47 PM, Tang, Wei wrote: > >> Hi guys, >> Due to some files in Classpath implemented in Java, for example >> runtime.java, and files in vmkit implemented in C/C++. Anybody has >> experience in debugging such mixed code project. >> >> >> Regards! >> wei >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> > > > > _______________________________________________ > vmkit-commits mailing listvmkit-commits at cs.uiuc.eduhttp://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tangwei.ict at gmail.com Mon Jul 2 07:10:13 2012 From: tangwei.ict at gmail.com (Tang, Wei) Date: Mon, 02 Jul 2012 22:10:13 +0800 Subject: [vmkit-commits] debug mixed Java and C code In-Reply-To: References: <4FF18A4A.902@gmail.com> <4FF19B86.1060406@gmail.com> Message-ID: <4FF1ABC5.9040405@gmail.com> For example JNI handling, I want to investigate what the call stack looks like if vmkit failed to load a JNI shared library. I guessed the process should be vmkit -> execuateClass -> calling java system loadlibrary in Runtime.java -> a exception is thrown when load failing. How can I debug this process easily? Another question, the exception handling in vmkit is based on setjmp/longjmp? Regards! wei On 07/02/2012 09:20 PM, Koutheir Attouchi wrote: > Please explain your exact problem.General debugging of Java and C++ > source code (and eventually assembly) is a very broad topic. > > Koutheir ATTOUCHI. > LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi > Blog: http://koutheir.blogspot.com > > > > > On Mon, Jul 2, 2012 at 3:00 PM, Tang, Wei > wrote: > > Would you share more details or point me to useful resource? > Thanks in advance! > > Regards! > wei > > On 07/02/2012 08:39 PM, Koutheir Attouchi wrote: >> Yes, I do. >> >> Koutheir ATTOUCHI. >> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >> Blog: http://koutheir.blogspot.com >> >> >> >> >> On Mon, Jul 2, 2012 at 1:47 PM, Tang, Wei > > wrote: >> >> Hi guys, >> Due to some files in Classpath implemented in Java, for >> example >> runtime.java, and files in vmkit implemented in C/C++. >> Anybody has >> experience in debugging such mixed code project. >> >> >> Regards! >> wei >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> >> >> >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > > > > _______________________________________________ > vmkit-commits mailing list > vmkit-commits at cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits -------------- next part -------------- An HTML attachment was scrubbed... URL: From koutheir at gmail.com Mon Jul 2 08:31:01 2012 From: koutheir at gmail.com (Koutheir Attouchi) Date: Mon, 2 Jul 2012 17:31:01 +0200 Subject: [vmkit-commits] debug mixed Java and C code In-Reply-To: <4FF1ABC5.9040405@gmail.com> References: <4FF18A4A.902@gmail.com> <4FF19B86.1060406@gmail.com> <4FF1ABC5.9040405@gmail.com> Message-ID: I think Nicolas Geoffray should have the answer to your question. Because you should have an idea about how this process is designed before starting debugging the source code. I didn't address this area, but I did the debugging you talk about. Koutheir ATTOUCHI. LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi Blog: http://koutheir.blogspot.com On Mon, Jul 2, 2012 at 4:10 PM, Tang, Wei wrote: > For example JNI handling, I want to investigate what the call stack > looks like if vmkit failed to > load a JNI shared library. I guessed the process should be > vmkit -> execuateClass -> calling java system loadlibrary in Runtime.java > -> a exception is thrown when load failing. > > How can I debug this process easily? > > Another question, the exception handling in vmkit is based on > setjmp/longjmp? > > Regards! > wei > > > > On 07/02/2012 09:20 PM, Koutheir Attouchi wrote: > > Please explain your exact problem. General debugging of Java and C++ > source code (and eventually assembly) is a very broad topic. > > Koutheir ATTOUCHI. > LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi > Blog: http://koutheir.blogspot.com > > > > > On Mon, Jul 2, 2012 at 3:00 PM, Tang, Wei wrote: > >> Would you share more details or point me to useful resource? >> Thanks in advance! >> >> Regards! >> wei >> >> On 07/02/2012 08:39 PM, Koutheir Attouchi wrote: >> >> Yes, I do. >> >> Koutheir ATTOUCHI. >> LinkedIn profile: http://www.linkedin.com/in/koutheirattouchi >> Blog: http://koutheir.blogspot.com >> >> >> >> >> On Mon, Jul 2, 2012 at 1:47 PM, Tang, Wei wrote: >> >>> Hi guys, >>> Due to some files in Classpath implemented in Java, for example >>> runtime.java, and files in vmkit implemented in C/C++. Anybody has >>> experience in debugging such mixed code project. >>> >>> >>> Regards! >>> wei >>> _______________________________________________ >>> vmkit-commits mailing list >>> vmkit-commits at cs.uiuc.edu >>> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >>> >> >> >> >> _______________________________________________ >> vmkit-commits mailing listvmkit-commits at cs.uiuc.eduhttp://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> >> >> _______________________________________________ >> vmkit-commits mailing list >> vmkit-commits at cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits >> >> > > > _______________________________________________ > vmkit-commits mailing listvmkit-commits at cs.uiuc.eduhttp://lists.cs.uiuc.edu/mailman/listinfo/vmkit-commits > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: