Connecting cuda-gdb and eclipse

I’m building my cuda code to a library, and call it with JNI from my java app.

I’ve seen a couple of posts on the forum about debugging from within Eclipse, but I haven’t seem “This is how you do it”, nor “It can’t be done, because such and such”.

So I’ll start with the basic question.
Does anyone know for a fact, that it is possible?