Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-debug-dev] How does CDT interact with GDB/MI interface?

Your debug engine should implement the CDI interfaces (org.eclipse.cdt.debug.core.cdi.*). As a reference you can use the gdb/mi implementation of CDI (org.eclipse.cdt.debug.mi.core and org.eclipse.cdt.debug.mi.ui).
To learn how to call C functions from Java see Java Native Interface (JNI) specifications or tutorials.  
----- Original Message -----
From: Felix Yuan
Sent: Tuesday, October 21, 2003 9:05 AM
Subject: [cdt-debug-dev] How does CDT interact with GDB/MI interface?

Hi,
I'm developing a new debugger engine for CDT instead of gdb. So I want to know how dose CDT interact with GDB/MI interface. The structure of CDT is perfect, but it is too complex to be understood in short time. I have tried to trace into the source files of CDT when debugging run-time workbench. But after some steps, I was dazed by so many codes.
 
So, I hope somebody could give me a shortcut to solve this problem.
 
Maybe what I should know is how Java interatcts with C programme. It's a much easier question, but I have no idea about it.
When I launch a C program in a Java program, how can I control the C thread through Java? Can I call the functions of C program in Java?
 
Thanks in advance!
 
sincerely yours,
Felix

Back to the top