[cfe-dev] clang via JNI + libclang-c

Renato Golin renato.golin at linaro.org
Fri Oct 11 04:09:22 PDT 2013


On 11 October 2013 10:42, Anton Smirnov <dev at antonsmirnov.name> wrote:

> 10-11 15:35:15.473: ERROR/CLANG_DEBUG(2491): parsing: index=0xbeb06704
> filename=./testfile.cpp args_count=0 files_count=1
>         file=./testfile.cpp
>

So, here, the object address was correct, in the array.


// oops, where is filename ? (probably CXIndex at 0xbeb06704 is corrupted
> for some reason)
> 10-11 15:35:15.503: ERROR/CLANG_DEBUG(2491): after parse filename: []
>

Is this from another call? Can you print the address/contents of the array?
It might be that the array is pointing to the wrong place, or the array's
own address has somehow changed, thus it's not CXIndex that is corrupted,
but the array representation.


// pack translation unit and return index to java
> 10-11 15:35:15.503: ERROR/CLANG_DEBUG(2491): hold translationUnit to
> index=0 (0x656480dc) -> 0xbeb066c8
>

Is this still the array? The address is different than you use to have
earlier.

cheers,
--renato
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131011/8d9b03f7/attachment.html>


More information about the cfe-dev mailing list