[vmkit-commits] debug mixed Java and C code

Tang, Wei tangwei.ict at gmail.com
Mon Jul 2 07:10:13 PDT 2012


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 <tangwei.ict at gmail.com 
> <mailto:tangwei.ict at gmail.com>> 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 <tangwei.ict at gmail.com
>>     <mailto:tangwei.ict at gmail.com>> 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 <mailto: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  <mailto: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 <mailto: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: <http://lists.llvm.org/pipermail/vmkit-commits/attachments/20120702/1a2973d4/attachment.html>


More information about the vmkit-commits mailing list